/**
 * Lifwel PDP / catalogue site-bridge
 * Defeats global Bootstrap + frontend/assets/style.css conflicts
 * so template-2 PDP and product cards render correctly.
 *
 * Scopes:
 * - .pdp-v2-root / .product-listing-root → PDP + shop/category/search
 * - #product-container → homepage latest products
 *
 * Listing grids use the same markup as PDP related:
 *   .related-grid > .product-card
 */
/* ============================================================
   PDP root isolation
   ============================================================ */
.pdp-v2-root {
  font-family: 'Poppins', Arial, sans-serif;
  color: #000;
  background: #fff;
  max-width: 1728px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.pdp-v2-root .wrap {
  max-width: none;
}
.pdp-v2-root h1,
.pdp-v2-root h2,
.pdp-v2-root h3,
.pdp-v2-root h4,
.pdp-v2-root p,
.pdp-v2-root li,
.pdp-v2-root span,
.pdp-v2-root button,
.pdp-v2-root strong {
  font-family: 'Poppins', Arial, sans-serif;
}
.pdp-v2-root button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.pdp-v2-root .flavor-chip {
  padding: 4px 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(0, 0, 0, 0.55) !important;
  white-space: nowrap;
}
.pdp-v2-root .flavor-chip.active,
.pdp-v2-root .flavor-chip[aria-selected="true"] {
  color: #5d380f !important;
  font-weight: 600 !important;
}
.pdp-v2-root .flavor-sep {
  display: inline-block !important;
  width: 1px !important;
  height: 16px !important;
  background: rgba(0, 0, 0, 0.18) !important;
  flex-shrink: 0;
  margin: 0 2px;
}

/* Defeat Bootstrap .btn so template .btn / .btn-buy / .btn-cart win */
.pdp-v2-root .cta-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px !important;
}
.pdp-v2-root .cta-row .btn {
  --bs-btn-padding-x: 0;
  --bs-btn-padding-y: 0;
  --bs-btn-font-size: 16px;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1;
  --bs-btn-border-width: 0;
  --bs-btn-border-radius: 13px;
  --bs-btn-box-shadow: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 190px;
  height: 54px !important;
  padding: 0 18px !important;
  border-radius: 13px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
  vertical-align: middle;
  user-select: none;
  box-shadow: none !important;
  background-image: none !important;
}
.pdp-v2-root .cta-row .btn-buy {
  background: #5d380f !important;
  color: #fff !important;
  border: 1.5px solid #5d380f !important;
}
.pdp-v2-root .cta-row .btn-buy:hover,
.pdp-v2-root .cta-row .btn-buy:focus {
  background: #4a2c0b !important;
  color: #fff !important;
  border-color: #4a2c0b !important;
}
.pdp-v2-root .cta-row .btn-cart {
  background: #f0ede9 !important;
  color: #5d380f !important;
  border: 1px solid rgba(93, 56, 15, 0.35) !important;
}
.pdp-v2-root .cta-row .btn-cart:hover,
.pdp-v2-root .cta-row .btn-cart:focus {
  background: #fbefdb !important;
  color: #5d380f !important;
  border-color: #5d380f !important;
}
.pdp-v2-root img {
  max-width: 100%;
  height: auto;
}
.pdp-v2-root .thumb img,
.pdp-v2-root .stage-img,
.pdp-v2-root .feature-row img,
.pdp-v2-root .btn-ico img,
.pdp-v2-root .trust-ico img {
  height: auto;
}
.pdp-v2-root .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-v2-root .stage-img {
  height: 100%;
  object-fit: contain;
}

/* Clinical section */
.pdp-v2-root .clinical-visual {
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  min-height: 420px;
  background: linear-gradient(135deg, #c9a06a 0%, #8b5a2b 55%, #5d380f 100%);
}
.pdp-v2-root .clinical-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}
.pdp-v2-root .clinical-product {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 58% !important;
  max-width: 340px !important;
  height: auto !important;
  margin: 40px auto !important;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}
.pdp-v2-root .clinical-grid {
  align-items: stretch !important;
}
.pdp-v2-root .stat-grid {
  align-content: stretch !important;
}
.pdp-v2-root .stat {
  box-shadow: none !important;
}
.pdp-v2-root .stat p {
  margin-bottom: 0 !important;
}

/* ============================================================
   Product cards (PDP related + catalogue listing + homepage)
   ============================================================ */
.pdp-v2-root .related-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}

.pdp-v2-root .product-card,
.catalogue-grid .product-card,
#product-container .product-card {
  display: block !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  height: auto !important;
  border: 1.5px solid rgba(93, 56, 15, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: #fff !important;
}
.pdp-v2-root .product-card:hover,
.catalogue-grid .product-card:hover,
#product-container .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(93, 56, 15, 0.14) !important;
  border-color: #5d380f !important;
}
.pdp-v2-root .pc-media-link,
.catalogue-grid .pc-media-link,
#product-container .pc-media-link {
  display: block !important;
  text-decoration: none !important;
  color: inherit;
}
.pdp-v2-root .pc-media,
.catalogue-grid .pc-media,
#product-container .pc-media {
  background: #fbefdb !important;
  height: 260px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.pdp-v2-root .pc-media img,
.pdp-v2-root .product-card .pc-media img,
.catalogue-grid .pc-media img,
.catalogue-grid .product-card .pc-media img,
#product-container .pc-media img,
#product-container .product-card .pc-media img {
  width: auto !important;
  height: 88% !important;
  max-width: 78% !important;
  max-height: none !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
  flex-shrink: 0 !important;
}
.pdp-v2-root .product-card:hover .pc-media img,
.catalogue-grid .product-card:hover .pc-media img,
#product-container .product-card:hover .pc-media img {
  transform: scale(1.05);
}
.pdp-v2-root .pc-body,
.catalogue-grid .pc-body,
#product-container .pc-body {
  padding: 20px 22px 24px !important;
  text-align: left !important;
}
.pdp-v2-root .pc-title,
.catalogue-grid .pc-title,
#product-container .pc-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #5d380f !important;
  margin: 0 !important;
}
.pdp-v2-root .pc-title a,
.catalogue-grid .pc-title a,
#product-container .pc-title a {
  color: inherit !important;
  text-decoration: none !important;
}
.pdp-v2-root .pc-ing,
.catalogue-grid .pc-ing,
#product-container .pc-ing {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  font-size: 13px !important;
  color: rgba(93, 56, 15, 0.75) !important;
  line-height: 1.4 !important;
}
.pdp-v2-root .pc-ingredients,
.catalogue-grid .pc-ingredients,
#product-container .pc-ingredients {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 8px !important;
}
.pdp-v2-root .pc-ingredients .ingredients-pill,
.catalogue-grid .pc-ingredients .ingredients-pill,
#product-container .pc-ingredients .ingredients-pill {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border-radius: 40px !important;
  background: rgba(93, 56, 15, 0.09) !important;
  color: #5d380f !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pdp-v2-root .pc-benefits,
.catalogue-grid .pc-benefits,
#product-container .pc-benefits {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 16px !important;
}
.pdp-v2-root .pc-benefits li,
.catalogue-grid .pc-benefits li,
#product-container .pc-benefits li {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  list-style: none !important;
}
.pdp-v2-root .pc-benefits img,
.catalogue-grid .pc-benefits img,
#product-container .pc-benefits img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  object-fit: contain !important;
  background: transparent !important;
}
.pdp-v2-root .pc-label,
.catalogue-grid .pc-label,
#product-container .pc-label {
  margin: 14px 0 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #000 !important;
}
.pdp-v2-root .pc-sizes,
.catalogue-grid .pc-sizes,
#product-container .pc-sizes {
  margin-top: 8px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.pdp-v2-root .ps-pill,
.catalogue-grid .ps-pill,
#product-container .ps-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 58px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: #f3f3f3 !important;
  border: 1px solid transparent !important;
  color: #000 !important;
}
.pdp-v2-root .ps-pill.sel,
.catalogue-grid .ps-pill.sel,
#product-container .ps-pill.sel {
  background: #fbefdb !important;
  border-color: #5d380f !important;
  color: #5d380f !important;
}
.pdp-v2-root .pc-flavors,
.catalogue-grid .pc-flavors,
#product-container .pc-flavors {
  margin: 8px 0 0 !important;
  font-size: 13px !important;
  color: rgba(0, 0, 0, 0.65) !important;
  line-height: 1.4 !important;
}
.pdp-v2-root .pc-price,
.catalogue-grid .pc-price,
#product-container .pc-price {
  margin-top: 16px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}
.pdp-v2-root .pc-price .p,
.catalogue-grid .pc-price .p,
#product-container .pc-price .p {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #5d380f !important;
}
.pdp-v2-root .pc-price .m,
.catalogue-grid .pc-price .m,
#product-container .pc-price .m {
  font-size: 14px !important;
  color: rgba(0, 0, 0, 0.4) !important;
  text-decoration: line-through !important;
}
.pdp-v2-root .pc-price .off,
.catalogue-grid .pc-price .off,
#product-container .pc-price .off {
  background: #e53935 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 14px !important;
  padding: 4px 8px !important;
}
.pdp-v2-root .pc-actions,
.catalogue-grid .pc-actions,
#product-container .pc-actions {
  margin-top: 16px !important;
  display: flex !important;
  gap: 10px !important;
}

/* Listing grids: push actions to bottom so card heights match related feel */
.product-listing-root .related-grid .product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}
.product-listing-root .related-grid .pc-body {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column !important;
}
.product-listing-root .related-grid .pc-actions {
  margin-top: auto !important;
}
.pdp-v2-root .product-card .btn-buy,
.pdp-v2-root .product-card .btn-cart,
.catalogue-grid .product-card .btn-buy,
.catalogue-grid .product-card .btn-cart,
#product-container .product-card .btn-buy,
#product-container .product-card .btn-cart {
  flex: 1 1 auto !important;
  height: 44px !important;
  min-width: 0 !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  padding: 0 10px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
}
.pdp-v2-root .product-card .btn-buy:disabled,
.pdp-v2-root .product-card .btn-cart:disabled,
.catalogue-grid .product-card .btn-buy:disabled,
.catalogue-grid .product-card .btn-cart:disabled,
#product-container .product-card .btn-buy:disabled,
#product-container .product-card .btn-cart:disabled {
  opacity: 0.65 !important;
  cursor: wait !important;
}
.pdp-v2-root .product-card .btn-buy,
.catalogue-grid .product-card .btn-buy,
#product-container .product-card .btn-buy {
  background: #5d380f !important;
  color: #fff !important;
  border: 1.5px solid #5d380f !important;
}
.pdp-v2-root .product-card .btn-cart,
.catalogue-grid .product-card .btn-cart,
#product-container .product-card .btn-cart {
  background: #f0ede9 !important;
  color: #5d380f !important;
  border: 1px solid rgba(93, 56, 15, 0.35) !important;
}
.pdp-v2-root .product-card .btn-ico,
.catalogue-grid .product-card .btn-ico,
#product-container .product-card .btn-ico {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.pdp-v2-root .product-card .btn-buy .btn-ico,
.catalogue-grid .product-card .btn-buy .btn-ico,
#product-container .product-card .btn-buy .btn-ico {
  background: rgba(255, 255, 255, 0.18) !important;
}
.pdp-v2-root .product-card .btn-cart .btn-ico,
.catalogue-grid .product-card .btn-cart .btn-ico,
#product-container .product-card .btn-cart .btn-ico {
  background: #5d380f !important;
}
.pdp-v2-root .product-card .btn-buy .btn-ico img,
.catalogue-grid .product-card .btn-buy .btn-ico img,
#product-container .product-card .btn-buy .btn-ico img {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  filter: brightness(0) invert(1) !important;
  background: transparent !important;
}
.pdp-v2-root .product-card .btn-cart .btn-ico img,
.catalogue-grid .product-card .btn-cart .btn-ico img,
#product-container .product-card .btn-cart .btn-ico img {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  filter: none !important;
  background: transparent !important;
}

@media (max-width: 1100px) {
  .pdp-v2-root .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .pdp-v2-root .related-grid {
    grid-template-columns: 1fr !important;
  }
  .pdp-v2-root .pc-media,
  .catalogue-grid .pc-media,
  #product-container .pc-media {
    height: 220px !important;
  }
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}
