/* VYZZ Storefront Design System (ported from Next.js) */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #dcfce7;
  --primary-glow: rgba(22, 163, 74, 0.18);
  --accent: #ea580c;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-hover: rgba(22, 163, 74, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-light-bg: #f8fafc;
  --card-from: #ffffff;
  --card-to: #f8fafc;
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 20px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.1);
  --btn-primary-text: #ffffff;
  --btn-outline-color: var(--foreground);
  --input-bg: #ffffff;
  --input-color: var(--foreground);
  --placeholder: #94a3b8;
  --hover-bg: #f1f5f9;
  --grid-color: rgba(22, 163, 74, 0.07);
  --header-bg: rgba(255, 255, 255, 0.92);
  --gradient-from: #15803d;
  --gradient-mid: #16a34a;
  --gradient-to: #22c55e;
  --font-inter: 'Poppins', system-ui, sans-serif;
  --font-jakarta: 'Poppins', system-ui, sans-serif;
}

.dark {
  --background: #090909;
  --foreground: #f3f4f6;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --primary: #4ade80;
  --primary-dark: #22c55e;
  --primary-glow: rgba(74, 222, 128, 0.25);
  --accent: #fb923c;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(74, 222, 128, 0.35);
  --glass-bg: rgba(20, 20, 20, 0.85);
  --glass-light-bg: rgba(255, 255, 255, 0.04);
  --card-from: #1a1a1a;
  --card-to: #111111;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
  --btn-primary-text: #052e16;
  --btn-outline-color: #f3f4f6;
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-color: #f3f4f6;
  --placeholder: #6b7280;
  --hover-bg: rgba(255, 255, 255, 0.06);
  --grid-color: rgba(74, 222, 128, 0.04);
  --header-bg: rgba(9, 9, 9, 0.9);
  --gradient-from: #4ade80;
  --gradient-mid: #86efac;
  --gradient-to: #22c55e;
}

* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.font-display {
  font-family: var(--font-jakarta);
  letter-spacing: -0.025em;
}

.glass { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); }
.glass-light { background: var(--glass-light-bg); backdrop-filter: blur(12px); border: 1px solid var(--border); }

.card-premium {
  background: linear-gradient(145deg, var(--card-from) 0%, var(--card-to) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.card-premium:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-from) 0%, var(--gradient-to) 100%);
  color: var(--btn-primary-text);
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px -2px var(--primary-glow);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover { box-shadow: 0 4px 20px -2px var(--primary-glow); transform: translateY(-1px); filter: brightness(1.05); }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--btn-outline-color);
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.text-gradient {
  background: linear-gradient(135deg, var(--gradient-from) 0%, var(--gradient-mid) 50%, var(--gradient-to) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.section-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

@keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 16px -4px var(--primary-glow); } 50% { box-shadow: 0 0 32px -4px var(--primary-glow); } }

.animate-fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }


.hero-grid {
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-grid-light {
  background-image: linear-gradient(rgba(22, 163, 74, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 163, 74, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.input-premium {
  background: var(--input-bg); border: 1px solid var(--border); color: var(--input-color);
  border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s;
}
.input-premium:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.header-scrolled {
  background: var(--header-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.category-overlay { background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.text-muted { color: var(--muted); }

/* Section typography — left-aligned, consistent */
.section-header { text-align: left; }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.section-title {
  font-family: var(--font-jakarta);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
  letter-spacing: -0.02em;
}
@media (min-width: 1024px) {
  .section-title { font-size: 1.75rem; }
}
.section-subtitle {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

/* Shop by goal — MuscleBlaze-style pills */
.goal-bar { background: #1a2332; }
.goal-pill {
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}
.goal-pill:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
.goal-pill-active {
  background: #fff;
  border-color: #fff;
  color: #0f172a;
  font-weight: 600;
}

/* Popular section tabs */
.popular-tab {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--muted);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.popular-tab-active {
  font-weight: 700;
  color: var(--foreground);
  border-bottom-color: var(--primary);
}
.popular-tab-sep { color: var(--border); font-weight: 300; user-select: none; }

/* Product listing filters */
.filter-chip {
  display: inline-flex; cursor: pointer; align-items: center;
  border-radius: 9999px; border: 1px solid var(--border);
  padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 500;
  color: var(--muted); transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip-active {
  border-color: var(--primary); background: var(--primary-light);
  color: #15803d; font-weight: 600;
}
.filter-check {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 400; color: var(--foreground);
}
.filter-check input { border-radius: 0.25rem; accent-color: var(--primary); }
.filter-active-chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  border-radius: 9999px; background: #ecfdf5; border: 1px solid #a7f3d0;
  padding: 0.25rem 0.65rem; font-size: 0.75rem; font-weight: 500; color: #047857;
}
.filter-active-chip:hover { background: #d1fae5; }

/* Full-width hero slider */
.hero-full { background: #0f172a; }
.hero-full__image { object-position: center center; }
.hero-full__nav {
  position: absolute; top: 50%; z-index: 20;
  display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35); color: #fff; backdrop-filter: blur(8px);
  transform: translateY(-50%); transition: background 0.2s; cursor: pointer;
}
.hero-full__nav:hover { background: rgba(0,0,0,0.55); }
.hero-full__nav--prev { left: 1rem; }
.hero-full__nav--next { right: 1rem; }
.hero-full__dots {
  position: absolute; bottom: 1.25rem; left: 50%; z-index: 20;
  display: flex; gap: 0.5rem;
  transform: translateX(-50%);
}
.hero-full__dot {
  height: 0.5rem; width: 0.5rem; border-radius: 9999px; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.45); transition: all 0.25s ease;
}
.hero-full__dot--active { width: 2rem; background: #22c55e; }
@media (max-width: 640px) {
  .hero-full__nav { display: none; }
}

/* Professional custom selects */
.vyzz-select, select.vyzz-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Veg / Non-Veg badges */
.veg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; border: 1.5px solid; padding: 0.2rem;
  width: 1.25rem; height: 1.25rem;
}
.veg-badge__dot { width: 8px; height: 8px; border-radius: 2px; }
.veg-badge--veg { border-color: #16a34a; background: #f0fdf4; }
.veg-badge--veg .veg-badge__dot { background: #16a34a; }
.veg-badge--non { border-color: #dc2626; background: #fef2f2; }
.veg-badge--non .veg-badge__dot { background: #dc2626; border-radius: 50%; }

/* Wishlist button */
.wishlist-btn {
  display: flex; align-items: center; justify-content: center;
  height: 2rem; width: 2rem; border-radius: 9999px;
  background: rgba(255,255,255,0.92); border: 1px solid var(--border);
  color: #94a3b8; transition: all 0.2s ease;
}
.wishlist-btn:hover, .wishlist-btn.is-wishlisted { color: #ef4444; border-color: #fecaca; background: #fef2f2; }
.wishlist-btn.is-wishlisted svg { fill: currentColor; }

/* Cart drawer */
.cart-drawer-root { z-index: 9998; }
.cart-drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.45); backdrop-filter: blur(2px); z-index: 9998; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 9999;
  display: flex; flex-direction: column;
  width: min(100%, 420px); height: 100vh;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(15,23,42,0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-drawer--open { transform: translateX(0); }
.cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-drawer__footer { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; background: var(--surface-2); }
.mobile-filter-drawer { animation: slideInRight 0.3s ease; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.qty-btn {
  display: flex; height: 1.75rem; width: 1.75rem; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border); font-size: 1rem; font-weight: 600;
  transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Scroll reveal (GSAP removed — sections visible by default) */
/* .page-content { animation: pageIn 0.4s ease-out; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
} */
.search-result-item { transform-origin: center; }
.add-to-cart-btn:active { transform: scale(0.97); }
.card-premium { will-change: transform; }
.filter-chip { transition: all 0.2s ease; }
.filter-chip:hover { transform: translateY(-1px); }
.filter-chip-active { box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25); }
.cart-trigger { transition: transform 0.2s ease; }
.nav-link { will-change: transform; }

/* Product page hero */
.product-hero {
  background: linear-gradient(135deg, #0f172a 0%, #14532d 50%, #15803d 100%);
  color: #fff;
}
.product-hero__grid {
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Truncation + tooltip */
.vyzz-truncate {
  display: inline-block;
  max-width: var(--truncate-max, 12rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

[data-tip] {
  position: relative;
}

.vyzz-truncate--tip[data-tip] {
  cursor: help;
}

.vyzz-truncate--tip[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 60;
  transform: translateX(-50%);
  max-width: min(20rem, 70vw);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

.vyzz-truncate--tip[data-tip]:hover::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  z-index: 60;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
  pointer-events: none;
}

/* Cards/search: simple hover tooltips without breaking form controls */
[data-tip]:not(.vyzz-truncate--tip):hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 60;
  transform: translateX(-50%);
  max-width: min(20rem, 70vw);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

[data-tip]:not(.vyzz-truncate--tip):hover::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  z-index: 60;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
  pointer-events: none;
}

/* Never paint tooltip pseudo-elements on form controls */
select[data-tip]::after,
select[data-tip]::before,
option[data-tip]::after,
option[data-tip]::before {
  content: none !important;
  display: none !important;
}

.product-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Product cards ─── */
.product-card {
  isolation: isolate;
  background: #fff;
}

.product-card__top {
  position: relative;
  background: #fff;
}

.product-card__media {
  position: relative;
  display: block;
}

.product-card-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}

.product-card-image {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card-image {
  transform: scale(1.05);
}

.product-card-image-placeholder {
  aspect-ratio: 1;
  width: 100%;
  background: #f8fafc;
}

.product-card__body {
  position: relative;
  background: #fff;
}

.product-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.product-card:hover .product-card__shine {
  transform: translateX(120%);
}

.product-card__badges {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.product-card__badge--orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.product-card__badge--green { background: linear-gradient(135deg, #16a34a, #15803d); }

.product-card__discount {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  padding: 0.25rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

.product-card__wishlist {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 3;
}

.product-card__wishlist .wishlist-btn {
  height: 2.25rem;
  width: 2.25rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.product-card__category {
  display: inline-flex;
  max-width: 100%;
  border-radius: 9999px;
  background: #ecfdf5;
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #15803d;
}

.product-card__desc {
  min-height: 2.5rem;
}

.product-card__pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card__price {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #15803d;
}

.product-card__compare {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-card__stock {
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.product-card__stock.is-in-stock {
  background: #ecfdf5;
  color: #15803d;
}

.product-card__stock.is-sold-out {
  background: #fef2f2;
  color: #dc2626;
}

.product-card__footer {
  border-top: 1px solid #ecfdf5;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  padding: 0.85rem 1rem 1rem;
}

.product-card__footer .vyzz-select {
  border-radius: 0.75rem;
  font-size: 0.75rem;
}

.product-card__footer .btn-primary.add-to-cart-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding-block: 0.55rem;
  box-shadow: 0 8px 20px -10px rgba(21, 128, 61, 0.55);
}

.product-card__footer .qty-btn {
  height: 2rem;
  width: 2rem;
  border-radius: 0.65rem;
}

[x-cloak] { display: none !important; }

.product-gallery {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}
@media (min-width: 640px) {
  .product-gallery.has-thumbs { grid-template-columns: 4.5rem 1fr; }
}
.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  order: 2;
}
@media (min-width: 640px) {
  .product-gallery__thumbs {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 36rem;
    order: 0;
  }
}
.product-gallery__thumb {
  height: 4.25rem;
  width: 4.25rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  background: #fff;
}
.product-gallery__thumb img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 0.25rem;
}
.product-gallery__thumb.is-active { border-color: var(--primary); }
.product-gallery__stage {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
}
.product-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 36rem;
  object-fit: contain;
}
.product-gallery__badges {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.product-discount-pill {
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
}
.product-gallery__expand {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 5;
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  color: #334155;
}
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.88);
  padding: 1.5rem;
}
.product-lightbox__image { max-height: 90vh; max-width: 90vw; object-fit: contain; border-radius: 0.75rem; }
.product-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}
.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 0.5rem;
}
@media (min-width: 480px) {
  .product-feature-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.product-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
}
.product-feature-item__icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.product-title-truncate {
  --truncate-max: min(100%, 36rem);
  display: block;
  max-width: 100%;
}
.product-action-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.85rem;
  border: 1.5px solid var(--border);
  background: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.product-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.product-action-btn.is-wishlisted {
  border-color: #fecaca;
  color: #ef4444;
  background: #fef2f2;
}
.product-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .product-trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.product-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
}
.product-trust-icon {
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #15803d;
}

/* Product detail — compact buy panel */
.product-detail-layout {
  align-items: start;
}

@media (min-width: 1024px) {
  .product-buy-panel {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    padding-right: 0.35rem;
    scrollbar-width: thin;
  }
}

.product-option-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.product-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-option-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.product-option-pill:hover:not(:disabled) {
  border-color: #86efac;
  background: #f0fdf4;
}

.product-option-pill.is-active {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #15803d;
  box-shadow: 0 0 0 1px #16a34a;
}

.product-option-pill:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  text-decoration: line-through;
}

.product-combo-picker {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.85rem;
}

.product-combo-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .product-combo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-combo-slot {
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  background: #fafafa;
  padding: 0.65rem 0.75rem;
}

.product-combo-slot__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.product-combo-slot--selectable {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.product-combo-slot--fixed {
  border-color: #f1f5f9;
  background: #fafafa;
}

.product-combo-slot__hint {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #15803d;
}

.product-pack-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.product-pack-row > button {
  min-width: 7.5rem;
  flex-shrink: 0;
}

.product-purchase-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.product-purchase-bar .btn-primary {
  flex: 1 1 12rem;
  min-width: 0;
}

.product-pincode-details summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.product-pincode-details summary::-webkit-details-marker {
  display: none;
}

.product-pincode-details summary::after {
  content: ' +';
  color: #94a3b8;
}

.product-pincode-details[open] summary::after {
  content: ' −';
}

.product-pincode-details .rounded-xl {
  margin-top: 0.65rem;
  border-color: #e2e8f0;
  background: #fff;
  padding: 0.75rem;
}

.product-feature-grid--compact {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.product-feature-grid--compact .product-feature-item {
  min-width: 4.5rem;
  flex-shrink: 0;
}

.product-feature-grid--compact .product-feature-item__icon {
  height: 2.25rem;
  width: 2.25rem;
}

.product-feature-grid--compact .product-feature-item {
  font-size: 0.625rem;
}

.product-tabs__nav {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.product-tabs__btn {
  flex-shrink: 0;
  padding: 0.7rem 0.1rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.product-tabs__btn.is-active {
  font-weight: 700;
  color: var(--foreground);
  border-bottom-color: var(--primary);
}
.product-highlights {
  border-radius: 1.25rem;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  padding: 1.35rem 1.5rem;
}

.cms-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #475569;
  letter-spacing: 0.01em;
}

.cms-content > :first-child {
  margin-top: 0;
}

.cms-content > :last-child {
  margin-bottom: 0;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4 {
  font-family: var(--font-jakarta, 'Poppins', system-ui, sans-serif);
  color: #0f172a;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cms-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ecfdf5;
}

.cms-content h2:first-child {
  margin-top: 0;
}

.cms-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.cms-content h4 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.cms-content p {
  margin-bottom: 1.25rem;
}

.cms-content p + h2,
.cms-content p + h3,
.cms-content ul + h2,
.cms-content ol + h2,
.cms-content ul + h3,
.cms-content ol + h3 {
  margin-top: 2.5rem;
}

.cms-content ul,
.cms-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.cms-content ul {
  list-style: disc;
}

.cms-content ol {
  list-style: decimal;
}

.cms-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.cms-content li > ul,
.cms-content li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.cms-content a {
  color: #15803d;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.cms-content a:hover {
  color: #166534;
}

.cms-content strong,
.cms-content b {
  color: #0f172a;
  font-weight: 600;
}

.cms-content em,
.cms-content i {
  font-style: italic;
}

.cms-content blockquote {
  margin: 1.5rem 0;
  border-left: 4px solid #86efac;
  background: #f0fdf4;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  color: #334155;
  font-style: normal;
}

.cms-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.cms-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.cms-content th,
.cms-content td {
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  text-align: left;
}

.cms-content th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
}

.cms-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

