.seo-product-actions{display:flex;flex-wrap:wrap;gap:10px}.seo-product-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;font-weight:800;border-radius:14px}.pd-icon{width:19px;height:19px;flex:none}.seo-product-directory{columns:3;line-height:1.8}.seo-product-directory a{color:inherit}@media(max-width:700px){.seo-product-directory{columns:1}.seo-product-actions .btn{flex:1 1 44%}}

/* Purchase controls remain usable on narrow screens and large desktop displays. */
@media(min-width:701px){.pd{align-items:start}.pd .gal{position:sticky;top:24px}.pd>div:last-child{min-width:0}.seo-product-actions .btn{flex:1 1 160px}}
@media(max-width:700px){.mobile-action-row{display:flex;gap:10px}.mobile-action-row>.btn{flex:1 1 0;min-width:0;min-height:48px;font-size:14px;padding:10px 8px;white-space:normal;text-align:center}.seo-product-actions:empty{display:none}.seo-product-actions .btn{min-height:48px}.thumbs button{min-width:48px;min-height:48px}}

/* =====================================================================
   ECOSAVE v18 — PRODUCT DETAIL PAGE UI UPGRADE
   ===================================================================== */
.ec-pd-crumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d1fae5;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.05);
}
.ec-pd-crumb .crumb-home {
  color: #047857;
}
.ec-pd-crumb .crumb-cat {
  background: #ecfdf5;
  color: #065f46;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}
.ec-pd-crumb .crumb-sep {
  color: #9ca3af;
}
.ec-pd-crumb .crumb-cur {
  color: #374151;
  font-weight: 600;
}
.ec-pd-shell {
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(15, 41, 30, 0.06);
  gap: 32px !important;
}
.ec-pd-main-img {
  position: relative;
  border-radius: 22px !important;
  border: 1px solid #dcfce7 !important;
  background: linear-gradient(145deg, #f0fdf4, #ffffff, #fefce8) !important;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(5, 150, 105, 0.07);
}
.ec-pd-float-off {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
}
.ec-pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.ec-pd-thumbs .js-thumb img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.ec-pd-thumbs .js-thumb[aria-pressed="true"] img {
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}
.ec-pd-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.ec-pd-eco-pill {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  border: 1px solid #6ee7b7;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.ec-pd-cat-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.ec-pd-sku {
  background: #f3f4f6;
  color: #4b5563;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.ec-pd-title {
  font-size: 28px !important;
  line-height: 1.22 !important;
  color: #064e3b;
  margin: 0 0 14px !important;
  letter-spacing: -0.02em;
}
.ec-pd-price-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%, #fffbeb 100%);
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.ec-pd-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 10px !important;
}
.ec-pd-now {
  font-size: 32px;
  font-weight: 900;
  color: #047857;
}
.ec-pd-mrp {
  font-size: 17px;
  color: #9ca3af;
  font-weight: 600;
}
.ec-pd-save {
  font-style: normal;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  border: 1px solid #fcd34d;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}
.ec-pd-tax-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tax-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.tax-pill.tp-green { background: #dcfce7; color: #166534; }
.tax-pill.tp-blue  { background: #dbeafe; color: #1e40af; }
.tax-pill.tp-amber { background: #fef3c7; color: #92400e; }

.ec-pd-qty-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}
.ec-pd-pack-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  color: #b45309 !important;
  border: 1.5px solid #f59e0b;
  padding: 5px 12px !important;
  border-radius: 999px;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  align-self: center;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.14);
}
@media (max-width: 760px) {
  .ec-pd-price {
    gap: 6px 8px;
  }
  .ec-pd-now {
    font-size: 26px;
  }
  .ec-pd-pack-pill {
    font-size: 12px !important;
    padding: 4px 10px !important;
  }
  .ec-pd-qty-bar {
    gap: 8px;
  }
  .ec-pd-live-pack-calc {
    width: 100%;
    justify-content: center;
  }
}
.ec-pd-actions .ec-pd-btn-add {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}
.ec-pd-actions .ec-pd-btn-buy {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}
.ec-pd-actions .ec-pd-btn-wa {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #6ee7b7 !important;
}
.ec-pd-actions .ec-pd-btn-share {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}
.ec-pd-pin-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  margin: 14px 0;
}
.ec-pd-perks {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 16px !important;
}
.ec-pd-perks .perk-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px !important;
  border-radius: 14px !important;
  border: 1px solid transparent;
}
.ec-pd-perks .pk-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.ec-pd-perks .perk-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}
.ec-pd-perks .perk-card small {
  display: block;
  font-size: 11.5px;
  opacity: 0.82;
}
.perk-card.pk-blue    { background: #eff6ff !important; border-color: #bfdbfe !important; color: #1e3a8a; }
.perk-card.pk-emerald { background: #ecfdf5 !important; border-color: #a7f3d0 !important; color: #064e3b; }
.perk-card.pk-amber   { background: #fffbeb !important; border-color: #fde68a !important; color: #78350f; }
.perk-card.pk-violet  { background: #f5f3ff !important; border-color: #ddd6fe !important; color: #4c1d95; }

.ec-pd-desc-card {
  background: #ffffff !important;
  border: 1px solid #d1fae5 !important;
  border-radius: 22px !important;
  padding: 24px !important;
  margin-top: 24px !important;
  box-shadow: 0 8px 24px rgba(15, 41, 30, 0.04);
}
@media (max-width: 700px) {
  .ec-pd-shell { padding: 16px; border-radius: 20px; }
  .ec-pd-title { font-size: 22px !important; }
  .ec-pd-perks { grid-template-columns: 1fr !important; }
}

.ec-pd-perks .perk-card > div { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }


/* ===== Product Detail Image Zoom Badge & Fullscreen Lightbox (Desktop + Mobile) ===== */
.ec-pd-main-img {
  cursor: zoom-in !important;
}
.ec-pd-main-img img#mainImg {
  cursor: zoom-in !important;
  transition: transform 0.2s ease;
}
.ec-pd-zoom-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  border: 1px solid rgba(5, 150, 105, 0.35);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #065f46;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ec-pd-zoom-pill:hover {
  background: #ecfdf5;
  transform: translateY(-1px);
}
.ec-pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(9, 18, 14, 0.92);
  backdrop-filter: blur(10px);
  user-select: none;
}
.ec-pd-lightbox[hidden] {
  display: none !important;
}
.ec-pdl-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ec-pdl-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
}
.ec-pdl-counter {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.ec-pdl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ec-pdl-btn {
  height: 38px;
  min-width: 38px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ec-pdl-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.ec-pdl-close {
  background: rgba(225, 29, 72, 0.85);
  border-color: rgba(254, 205, 211, 0.4);
  font-size: 16px;
}
.ec-pdl-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 56px;
  overflow: hidden;
}
.ec-pdl-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.ec-pdl-img {
  max-width: 92vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease;
  cursor: zoom-in;
}
.ec-pdl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-pdl-prev { left: 14px; }
.ec-pdl-next { right: 14px; }
.ec-pdl-thumbs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px 16px;
  overflow-x: auto;
}
.ec-pdl-thumb {
  width: 56px;
  height: 56px;
  padding: 3px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}
.ec-pdl-thumb.is-active {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
}
.ec-pdl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 760px) {
  .ec-pdl-stage {
    padding: 8px 12px;
  }
  .ec-pdl-img {
    max-width: 94vw;
    max-height: 70vh;
  }
  .ec-pdl-prev { left: 8px; width: 38px; height: 38px; font-size: 22px; }
  .ec-pdl-next { right: 8px; width: 38px; height: 38px; font-size: 22px; }
}

/* Hide Product directory box on storefront */
.seo-product-directory-sec, section.desc:has(.seo-product-directory) { display: none !important; }


.ec-pd-cashback-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 9px 13px;
  background: linear-gradient(135deg, #fffbeb 0%, #ecfdf5 100%);
  border: 1.5px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.08);
}
.ec-pd-cb-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.ec-pd-cb-copy {
  flex: 1;
  min-width: 0;
}
.ec-pd-cb-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  color: #065f46;
}
.ec-pd-cb-copy strong span {
  color: #b45309;
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid #f59e0b;
}
.ec-pd-cb-copy small {
  display: block;
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}
.ec-pd-cb-tag {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
@media (max-width: 760px) {
  .ec-pd-cashback-strip {
    padding: 8px 10px;
    gap: 8px;
  }
  .ec-pd-cb-copy strong {
    font-size: 12.5px;
  }
  .ec-pd-cb-tag {
    font-size: 9.5px;
    padding: 3px 7px;
  }
}
