/* === Основний стиль для Loop карток === */

/* Заголовки у Loop Subscription */

/* H1 */
.loop-subscription-form h1,
.loop-container h1 {
  font-size: 28px;
  font-weight: 300;
  text-align: center;
  color: #051425;
  margin-bottom: 6px;
  margin-left: 32px;
  margin-right: 32px;
}

/* H2 */
.loop-subscription-form h2,
.loop-container h2,
.loop-h2,
.loop-bundle-size-selector-label {
  font-size: 20px;
  font-weight: 300;
  text-align: center;
  color: #051425;
  margin-bottom: 6px;
  margin-left: 42px;
  margin-right: 42px;
}

/* Адаптивність для мобільних */
@media screen and (max-width: 768px) {
  .loop-subscription-form h1,
  .loop-container h1 {
    font-size: 24px;
  }

  .loop-subscription-form h2,
  .loop-container h2,
  .loop-h2,
  .loop-bundle-size-selector-label {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  p.loop-text-p1.m-0.loop-bundle-product-card-title.loop-pointer {
    font-size: 17px !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
  }
}


/* Контейнер картки */
.loop-card-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #fff;
}

/* Зображення */
.loop-image-product-lg img {
  width: 100% !important;
  max-width: 280px;
  max-height: 280px;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  margin: 0 auto;
}

/* Тіло картки */
.loop-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px !important;
  text-align: center;
}

/* Кнопка */
.loop-card-body .btn {
  border-radius: 54px !important;
  padding: 12px 24px !important;
  font-size: 16px;
  width: 100%;
}

/* === Мобільна версія === */
@media screen and (max-width: 768px) {
  .loop-card-header {
    max-hight: 340;
    padding: 2px;
  }

  .loop-image-product-lg img {
    width: 100% !important;
    height: 218px !important;
    max-width: 100%;
    object-fit: cover !important;
    aspect-ratio: auto !important;
    border-radius: 10px;
  }

  .loop-card-body {
    gap: 2px;
  }

  .loop-card-body .btn {
    font-size: 12px;
    padding: 6px 8px;
  }

}
@media (max-width: 768px) {
    .loop-products-align {
        margin: 0 15px !important;
    }
}
@media (max-width: 768px) {
  .loop-btn-size-md {
    padding: 10px;
  }
}
.loop-card-header{
 min-height: 150px !important;
}
.loop-drawer-product-title {
  text-align: left !important;
}

.loop-bundle-image-container img{
  display: none !important;
}
.loop-card .d-flex {
    // display: inline-block !important;
}

.loop-product-title .loop-text-p1 {
  text-align: left !important;
}
.diet-badge {
  display: inline-flex;         /* Use flex to align items inside the badge */
  align-items: center;          /* Center items vertically */
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 8px;
  margin-top: 8px;
  margin-bottom: 5px;   
  margin-right: 5px;
}
.diet-badge-wrapper {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  margin-bottom: 5px;
}

.diet-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 8px;
  margin: 0;
}


.diet-badge[data-diet=" Plant-based"] {
  color: #2e7d32 !important;
  background:#e8f5e9  !important;
}


/* Keto badge styling */
.diet-badge[data-diet="Keto"] {
  color: #d84315 !important;
  background: #fbe9e7 !important;
}

/* Pescatarian badge styling */
.diet-badge[data-diet="Pescatarian"] {
  color: #1565c0 !important;
  background: #e3f2fd !important;
}
.diet-badge[data-diet="Plant-based"] {
  color: #2e7d32 !important;
  background: #e8f5e9 !important;
}

/* Low calories badge styling */
.diet-badge[data-diet="Low calories"] {
  color: rgb(255, 159, 57) !important;
  background: rgb(255, 249, 196) !important;
}

/* Rich in Protein badge styling */
.diet-badge[data-diet="Rich in Protein"] {
  color: rgb(131, 52, 201) !important;
  background: rgb(247, 234, 255) !important;
}
.loop-bundle-product-card-title {
    font-family: 'Coolvetica', sans-serif !important;
    font-size: 21px !important;
    
}

.loop-container .loop-bundle-header-wrapper .loop-bundle-size-selector-wrapper .loop-bundle-discount-text-box {
    margin: 8px 0 0 !important;
}
.loop-container .loop-bundle-select-product-title-container {
    margin-top: 5px;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card {
    padding: 0;
    border-radius: 20px !important;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header {
    padding: 0;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-image-product-lg img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 20px 20px 0 0 !important;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-bundle-product-image-container {
    display: flex;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-card-body {
    padding: 16px !important;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-card-body .loop-product-card-description-body {
    align-items: flex-start;
    gap: 4px;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-body-footer-wrapper {
    padding: 0 16px 16px 16px;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-card-body .loop-product-card-description-body .diet-badge {
    margin: 2px 0 !important;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-card-body .loop-product-card-description-body .diet-badge-wrapper {
    margin: 0 !important;
}
.loop-drawer .loop-drawer-content .loop-drawer-body .loop-drawer-product-description-container .loop-drawer-product-image-carousel .carousel-inner .carousel-item img {
    border-radius: 20px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    display: inline-block;
    max-height: fit-content;
}
.loop-drawer .loop-drawer-content .loop-drawer-body .loop-drawer-product-description-container .loop-drawer-product-image-carousel .carousel-inner {
    height: auto !important;
}
.loop-drawer .loop-drawer-content .loop-drawer-body .loop-drawer-product-description-container .loop-drawer-product-title-price-variant-container h2 {
    margin: 10px 0;
    font-size: 40px;
    line-height: 1.2;
}
@media screen and (max-width: 768px) {
    .loop-container .loop-products-available .loop-products-align {
        margin: 0 !important;
        gap: 30px 8px;
    }
    .loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-card-body {
        padding: 10px 8px !important;
    }
    .loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-body-footer-wrapper {
        padding: 0 8px 10px 8px;
    }
}
.loop-drawer .loop-drawer-content .loop-drawer-body .loop-drawer-product-description-container .loop-drawer-product-image-carousel .carousel-inner .carousel-item {
    display: block;
    max-width: 100%;
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative;
    vertical-align: middle;
}
.loop-drawer .loop-drawer-content .loop-drawer-body .loop-drawer-product-description-container .loop-drawer-product-image-carousel .carousel-inner .carousel-item::after {
    content: "";
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 100%;
}
.loop-drawer .loop-drawer-content .loop-drawer-body .loop-drawer-product-description-container .loop-drawer-product-image-carousel .carousel-control-prev, .loop-drawer .loop-drawer-content .loop-drawer-body .loop-drawer-product-description-container .loop-drawer-product-image-carousel .carousel-control-next {
    top: 50%;
}
@media screen and (max-width: 1023px) {
    .loop-drawer .loop-drawer-content .loop-drawer-body .loop-drawer-product-description-container .loop-drawer-product-title-price-variant-container h2 {
        font-size: 28px;
    }
}
@media screen and (max-width: 767px) {
    .loop-container .footer-description-wrapper .loop-bundle-footer-description {
        width: 100%;
    }
}
@media screen and (max-width: 500px) {
    .loop-container .loop-products-available .loop-products-align {
        margin: 0 !important;
        gap: 15px 4px;
    }
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-card-body .loop-product-card-description-body .nutrition-container {
    gap: 10px;
}
    .loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-card-body {
        padding: 8px 6px !important;
    }
    .loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-body-footer-wrapper {
        padding: 0 6px 6px 6px;
    }
}
    .loop-container .loop-products-available .loop-products-align .loop-bundle-product-wrapper {
        max-width: 100%;
        width: 100%;
        min-width: 100%;
    }
    .loop-container .loop-products-available .loop-products-align .loop-bundle-product-wrapper .loop-bundle-product-container {
        max-width: 100%;
        width: 100%;
        min-width: 100%;
    }
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-card-body .diet-badge-wrapper{
  display: none !important;
}

.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card {
    padding: 0;
    border-radius: 26px !important;
    border: 0;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header {
    padding: 0;
}
.loop-container .loop-products-available .loop-bundle-product-wrapper .loop-card .loop-card-header .loop-card-body .loop-product-card-description-body .loop-display-product-price .loop-product-price {
    color: #959393;
}

p.loop-text-p2.m-0.loop-bundle-p-2.loop-discounted-price {
  font-weight: 700 !important;
}
 .loop-bundle-footer .loop-card-header{
   padding: 0px;
   min-height: auto !important;

    }
    .loop-bundle-footer .loop-image-product-sm img{
        width: 100%;
        height: auto;
      aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    .loop-bundle-footer .loop-bundle-foolter-producct-container .width-120 {
        width: 150px;
    }
    .loop-bundle-footer .loop-image-product-sm{
        width: 100%;
        height: auto;
        
    }
    .loop-bundle-footer .loop-selected-products .loop-selected-product-card{
        border-radius: 12px;
        padding: 10px 12px 14px 12px;
    }
    .loop-bundle-footer .loop-selected-products .loop-selected-product-card .loop-card-body .loop-selected-products-title {
       font-size: 12px;
        color: #000;
        display: -webkit-box;
        max-width: 100%;
        height: 24px;
        margin: 0 auto;
        line-height: 1;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }
     .loop-bundle-footer .loop-display-selected-products{
         z-index: 1;
        position: relative;
     }
     .loop-bundle-footer .loop-display-selected-products .loop-selected-products .loop-bundle-foolter-producct-container .loop-card-icon{
        width: 25px;
        height: 25px;   
    }
    .loop-bundle-footer .loop-display-selected-products .loop-selected-products{
         gap: 17px;
    }
    .loop-bundle-footer{
        background: #f3f3f394;
    }
    .loop-bundle-footer::after{
        content: "";
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        position: absolute;
        z-index: 0;
        border-radius: 16px;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(16px);
    }
.loop-bundle-footer .loop-display-selected-products .loop-selected-products .loop-bundle-foolter-producct-container .loop-card-icon div {
    width: 100%;
    height: 100%;
}
.loop-bundle-footer .loop-display-selected-products .loop-selected-products .loop-bundle-foolter-producct-container .loop-card-icon div svg {
    width: 8px;
    height: 8px;
}
.loop-bundle-footer .loop-display-selected-products .loop-selected-products .loop-bundle-foolter-producct-container .loop-card-icon div svg path {
    fill: #000;
}