:root {
  --purple: #5b4fe8;
  --purple-dark: #4a3fd4;
  --purple-light: #eeecfd;
  --purple-muted: #7b72ef;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --bg-sidebar: #f3f4f6;
  --bg-dark: #111827;
  --bg-hero: linear-gradient(135deg, #fafafe 0%, #f0effe 50%, #e8e6fd 100%);
  --accent: #5b4fe8;
  --accent-light: #eeecfd;
  --accent-dark: #4a3fd4;
  --green: #10b981;
  --green-light: #34d399;
  --green-bg: #ecfdf5;
  --star: #f59e0b;
  --ink: #111827;
  --text: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --line: #e5e7eb;
  --shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 12px 40px rgba(91, 79, 232, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 14px;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  isolation: isolate;
}

/* Subtle logo watermarks — fixed side columns, evenly spaced (see shared.js) */
:root {
  --wm-strip-width: 88px;
  --wm-logo-size: 48px;
  --wm-logo-gap: 104px;
  --wm-opacity: 0.035;
}
.site-side-watermarks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.account-bg > .site-side-watermarks {
  z-index: 0;
}
.site-side-watermark-col {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--wm-strip-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wm-logo-gap);
  padding: calc((var(--wm-logo-gap) + var(--wm-logo-size)) / 2) 0;
  box-sizing: border-box;
  opacity: var(--wm-opacity);
}
.site-side-watermark-col--left {
  left: max(0px, env(safe-area-inset-left, 0px));
}
.site-side-watermark-col--right {
  right: max(0px, env(safe-area-inset-right, 0px));
}
.site-side-watermark-logo {
  width: var(--wm-logo-size);
  height: var(--wm-logo-size);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
@media (max-width: 768px) {
  .site-side-watermarks {
    display: none;
  }
}
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.announcement {
  background: var(--announcement-bg, var(--purple-dark));
  color: var(--announcement-text, #fff);
  text-align: center;
  padding: var(--announcement-pad, 8px 16px);
  font-size: 0.8rem;
  letter-spacing: var(--announcement-track, 0.04em);
}
.announcement a { color: var(--announcement-link, #c7d2fe); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.storefront-main { padding-bottom: 0; }
.storefront-container { padding-bottom: 48px; }

/* Hero Carousel — full width, top of page */
.hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-carousel-viewport {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 12 / 5;
  max-height: 420px;
  min-height: clamp(170px, 44vw, 240px);
  background: var(--bg-dark);
}
.hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
}
.hero-slide-banner,
.hero-slide-banner a,
.hero-banner-frame,
.hero-banner-link {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-banner-link {
  color: inherit;
}
.hero-banner-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-color: var(--bg-dark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.hero-banner-frame {
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide-banner img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 12 / 5;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--bg-dark);
}

.hero-slide-text {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
}
.hero-slide-text .hero-slide-content {
  padding-bottom: 56px;
}

.hero-slide-product {
  height: 100%;
  min-height: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.hero-slide-product .hero-slide-bg {
  background: linear-gradient(135deg, #e0f4ff 0%, #b8e4ff 50%, #87ceeb 100%);
}
.hero-slide-product .hero-slide-bg::after {
  background:
    radial-gradient(ellipse at 75% 45%, rgba(255, 255, 255, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(91, 79, 232, 0.07) 0%, transparent 50%);
  opacity: 1;
}
.hero-slide-product .hero-slide-content {
  color: #1a2744;
}
.hero-slide-product .hero-product-copy h1 {
  color: #1a2744;
}
.hero-slide-product .hero-eyebrow {
  color: var(--purple);
}
.hero-slide-product .hero-sub {
  color: #475569;
}
.hero-slide-product .hero-product-visual {
  background: rgba(255, 255, 255, 0.88);
}
.hero-slide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 56px;
}
.hero-product-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin: 8px 0 12px;
}
.hero-product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-height: 220px;
}
.hero-product-visual img {
  max-width: 100%;
  max-height: clamp(180px, 28vw, 320px);
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-hero);
}
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(61, 122, 82, 0.2) 0%, transparent 50%);
}
.hero-slide-content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
  color: #fff;
  width: 100%;
}
.hero-carousel-section .slider-prev { left: 20px; }
.hero-carousel-section .slider-next { right: 20px; }
.hero-carousel-section .slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 5;
}
.hero-carousel-section .slider-dot {
  background: rgba(255,255,255,0.4);
}
.hero-carousel-section .slider-dot.active {
  background: var(--accent);
  width: 28px;
}

/* Legacy banner (unused) */
.banner-slider-section {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 0;
  overflow: hidden;
}
.banner-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.banner-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
}
.banner-slide img {
  width: 100%;
  height: clamp(180px, 28vw, 420px);
  object-fit: cover;
  display: block;
}
.banner-slide a { display: block; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--bg-dark);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 5;
  transition: var(--transition);
}
.slider-arrow:hover { background: var(--accent); color: var(--bg-dark); }
.banner-slider-section .slider-prev { left: 36px; }
.banner-slider-section .slider-next { right: 36px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  padding: 0;
}
.slider-dot.active { background: var(--green); width: 24px; border-radius: 4px; }

/* Category slider */
.category-slider-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 16px 8px;
}
.category-slider-header {
  align-items: center;
  margin-bottom: 14px;
}
.category-slider-title {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
}
.category-scroll-more {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
}
.category-scroll-more:hover { color: var(--green); }
.category-slider-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 2px 4px 10px;
}
.category-slider-wrap::-webkit-scrollbar { display: none; }
.category-slider-track {
  display: flex;
  gap: 12px;
  width: max-content;
  min-width: 100%;
}
.category-card {
  flex: 0 0 92px;
  width: 92px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  color: inherit;
}
.category-card-img-wrap {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
  border: 2px solid transparent;
  transition: var(--transition);
}
.category-card.active .category-card-img-wrap,
.category-card:hover .category-card-img-wrap {
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(45, 90, 61, 0.15);
}
.category-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.category-card-name {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

/* Categories browse page */
.categories-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.categories-hero {
  text-align: center;
  margin-bottom: 36px;
}
.categories-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.categories-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 10px;
  color: var(--text);
}
.categories-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.category-browse-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 90, 61, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.category-browse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45, 90, 61, 0.12);
  border-color: rgba(45, 90, 61, 0.22);
}
.category-browse-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f4ef, #efe6dc);
}
.category-browse-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.category-browse-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.category-browse-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text);
}
.category-browse-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.categories-loading,
.categories-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 48px 16px;
}

/* Featured Products Slider */
.featured-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}
.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}
.featured-nav { display: flex; gap: 8px; position: static; }
.featured-nav .slider-arrow { position: static; transform: none; }

.featured-track-wrap {
  overflow: hidden;
  margin: 0 -8px;
  position: relative;
}
.featured-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}
.featured-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
}
.featured-card {
  flex: 0 0 calc(20% - 13px);
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.featured-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f3ef;
}
.featured-card-info { padding: 12px; }
.featured-card-name {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card-price {
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
}

/* About Section */
.about-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
}
.about-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.75;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.highlight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.highlight-card span { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.highlight-card h4 { font-size: 0.95rem; margin-bottom: 6px; font-weight: 600; }
.highlight-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Location Section */
.location-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 24px;
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.location-details { margin-top: 24px; }
.location-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.location-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(45, 90, 61, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.location-item h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2px; font-weight: 500; }
.location-item p, .location-item a { font-size: 1rem; font-weight: 500; }
.location-item a { color: var(--green); }
.location-item a:hover { text-decoration: underline; }
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 320px;
}
.location-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
}
.footer-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.85rem;
}
.footer-link:hover { text-decoration: underline; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Site navigation */
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav-home { margin-left: auto; margin-right: 8px; }
.site-nav-link {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.site-nav-link:hover, .site-nav-link.active {
  background: var(--bg-dark);
  color: var(--accent-light);
}
.site-nav-vendor {
  color: var(--accent);
  font-weight: 600;
}
.site-nav-vendor:hover, .site-nav-vendor.active {
  background: rgba(196, 92, 38, 0.12);
  color: var(--accent);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--green);
  background: transparent;
  display: inline-block;
  text-align: center;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.88rem;
}
.btn-outline:hover { background: var(--bg-dark); color: var(--accent-light); border-color: var(--bg-dark); }

/* Static pages */
.page-body { min-height: 100vh; display: flex; flex-direction: column; }
.page-body main { flex: 1; }
.header-pages .header-inner { justify-content: space-between; }
.header-pages .site-nav { flex: 1; justify-content: center; }

.page-hero {
  position: relative;
  padding: 56px 24px 64px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-hero);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(201, 168, 76, 0.12) 0%, transparent 55%);
}
.page-hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
}
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--accent-light); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  font-weight: 300;
}

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.content-prose p {
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 0.98rem;
}
.content-prose p:first-child {
  font-size: 1.05rem;
  color: var(--text);
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  margin-bottom: 40px;
}
.about-sidebar { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list span { color: var(--text-muted); }
.info-text { margin-bottom: 8px; }
.info-text a { color: var(--green); font-weight: 500; }

.highlights-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.highlight-card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.highlight-card-premium:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-dark);
}
.highlight-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.highlight-card-premium h4 { font-size: 0.95rem; margin-bottom: 8px; }
.highlight-card-premium p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.location-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.location-cards { display: flex; flex-direction: column; gap: 16px; }
.info-card-large { padding: 28px; }
.address-line { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.address-sub { color: var(--text-muted); font-size: 0.92rem; }
.contact-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.hours-list span { color: var(--text-muted); }
.location-map-large iframe { height: 480px; }

/* Privacy policy page */
.policy-picker-banner {
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(45,90,61,0.1));
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  color: var(--text);
}
.policy-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.policy-option-card {
  text-align: left;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  cursor: pointer;
}
.policy-option-card:hover { border-color: var(--green-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.policy-option-card.selected {
  border-color: var(--accent-dark);
  background: linear-gradient(180deg, rgba(201,168,76,0.08), var(--bg-card));
  box-shadow: var(--shadow-lg);
}
.policy-option-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.policy-option-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.policy-option-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.policy-option-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}
.policy-option-card.selected .policy-option-cta { color: var(--accent-dark); }

.policy-document { margin-bottom: 24px; }
.policy-doc-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.policy-doc-badge {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.policy-doc-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.policy-doc-meta { font-size: 0.85rem; color: var(--text-muted); }
.policy-section { margin-bottom: 28px; }
.policy-section h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--green);
}
.policy-section p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.policy-choice-bar {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.choice-bar-inner strong { color: var(--accent); }
.choice-bar-inner p { margin-top: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.75); }

@media (max-width: 900px) {
  .site-nav-home { display: none; }
  .about-page-grid, .location-page-grid { grid-template-columns: 1fr; }
  .highlights-row { grid-template-columns: 1fr 1fr; }
  .policy-options { grid-template-columns: 1fr; }
  .contact-cards-row { grid-template-columns: 1fr; }
  .header-pages .site-nav { display: none; }
}
@media (max-width: 600px) {
  .highlights-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .featured-card { flex: 0 0 calc(33.333% - 11px); }
  .about-grid, .location-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr 1fr; }
  .banner-slider-section .slider-prev { left: 12px; }
  .banner-slider-section .slider-next { right: 12px; }
}
@media (max-width: 600px) {
  .featured-card { flex: 0 0 calc(50% - 8px); min-width: 150px; }
  .about-highlights { grid-template-columns: 1fr; }
}

.header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg, var(--bg-card));
  border-bottom: var(--header-border, 1px solid var(--line));
  box-shadow: var(--header-shadow, none);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--header-pad, 14px 20px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--header-gap, 20px);
}

.mobile-menu-btn {
  display: none;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bg-dark);
  border-radius: 2px;
  position: relative;
}
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.mobile-menu-icon::before { top: -6px; }
.mobile-menu-icon::after { top: 6px; }

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 320px);
  background: var(--bg-card);
  z-index: 300;
  box-shadow: var(--shadow-lg);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}
.mobile-nav-drawer:not([hidden]) {
  transform: translateX(0);
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-head strong {
  font-size: 1.05rem;
}
.mobile-nav-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.4rem;
  line-height: 1;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(45, 90, 61, 0.08);
  color: var(--green);
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 20, 0.45);
  z-index: 299;
}
body.mobile-nav-open { overflow: hidden; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }

.logo--wordmark {
  padding: 4px 8px;
  background: #fff;
  border-radius: 10px;
  border: none;
  box-shadow: none;
  transition: box-shadow 0.2s, transform 0.15s;
}
.logo--wordmark:hover {
  box-shadow: 0 4px 16px rgba(91, 79, 232, 0.12);
  transform: translateY(-1px);
}
.logo-wordmark {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(196px, 38vw);
  object-fit: contain;
}

.logo--footer {
  gap: 14px;
  margin-bottom: 16px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.logo--footer:hover { box-shadow: none; }
.logo-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.25));
}
.logo-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.2;
}
.logo-footer-copy strong {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: -0.02em;
}
.logo-footer-copy small {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.01em;
}

/* Legacy text logo fallback */
.logo-mark {
  width: 44px; height: 44px;
  background: var(--bg-hero);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  border: 1px solid var(--accent-dark);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.logo-text small { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.search-form {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}
.search-form select {
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  outline: none;
  cursor: pointer;
  max-width: 150px;
}
.search-form button {
  background: var(--purple);
  color: #fff;
  padding: 0 22px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--purple-dark); }

.search-bar {
  flex: 1; max-width: 520px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.12); }
.search-bar svg { color: var(--text-muted); flex-shrink: 0; }
.search-bar input { flex: 1; border: none; outline: none; font-size: 0.95rem; background: transparent; font-family: inherit; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.icon-btn:hover {
  background: var(--purple-light);
  color: var(--purple);
}
.cart-count,
.wishlist-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: var(--bg-dark);
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.icon-btn.active { color: var(--purple); }
.wishlist-btn.active svg { fill: currentColor; }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card);
}
.lang-switch-btn {
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lang-switch-btn.active {
  background: var(--purple);
  color: #fff;
}
.lang-switch-btn:hover:not(.active) { background: var(--purple-light); }

.product-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #9a9088;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: color 0.2s, transform 0.2s;
}
.product-fav-btn:hover { transform: scale(1.06); color: var(--purple); }
.product-fav-btn.active { color: #c0392b; }

.search-suggest-section { padding: 6px 0; border-bottom: 1px solid #f0ebe6; }
.search-suggest-section:last-child { border-bottom: none; }
.search-suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b5344;
}
.search-suggest-clear {
  border: none;
  background: none;
  font-size: 0.72rem;
  color: var(--purple);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.search-suggest-item.active,
.search-suggest-item:focus-visible {
  background: #faf6f2;
  outline: none;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mobile-nav-head .lang-switcher { margin-left: auto; margin-right: 8px; }

@media (max-width: 900px) {
  .header-actions {
    gap: 2px;
    flex-shrink: 0;
  }
  .header-actions .icon-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .header-actions .icon-btn svg {
    width: 20px;
    height: 20px;
  }
  .header-actions .lang-switcher {
    flex-shrink: 0;
  }
  .header-actions .lang-switch-btn {
    padding: 4px 7px;
    font-size: 0.68rem;
  }
  .header-actions .wishlist-btn,
  .header-actions .cart-btn {
    flex-shrink: 0;
  }
  .header-actions .cart-count,
  .header-actions .wishlist-count {
    top: 1px;
    right: 1px;
    min-width: 15px;
    height: 15px;
    font-size: 0.55rem;
    padding: 0 3px;
  }
  /* Text CTAs duplicate the account icon — hide on narrow headers */
  .header-pages .header-actions > .btn {
    display: none;
  }
  .mobile-menu-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 6px 4px;
    padding: 8px 6px;
  }
  .logo-wordmark {
    max-width: min(96px, 100%);
    height: 32px;
  }
  .mobile-menu-btn {
    width: 34px;
    height: 34px;
  }
  .header-actions {
    gap: 1px;
  }
  .header-actions .icon-btn {
    width: 30px;
    height: 30px;
  }
  .header-actions .icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .header-actions .lang-switch-btn {
    padding: 3px 6px;
    font-size: 0.62rem;
  }
}

.category-nav {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px 10px;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-pill {
  padding: 6px 16px; border-radius: 50px; font-size: 0.82rem;
  white-space: nowrap; color: var(--text-muted); border: 1px solid transparent; transition: var(--transition);
}
.category-pill:hover, .category-pill.active { background: var(--bg-dark); color: var(--accent-light); border-color: var(--bg-dark); }

.hero { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--bg-hero); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(61, 122, 82, 0.2) 0%, transparent 50%);
}
.hero-content { position: relative; max-width: 1400px; margin: 0 auto; padding: 80px 24px; color: #fff; }
.hero-eyebrow { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent-light); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 520px; margin-bottom: 32px; font-weight: 300; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn { padding: 14px 28px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; transition: var(--transition); }
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-full { width: 100%; }
.hero-stats { display: flex; gap: 48px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.hero-stats span { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

.shop-section {
  max-width: none;
  margin: 0;
  padding: 0 0 24px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}
.markethub-shop { padding-bottom: 0; }
.filters-sidebar .sidebar-block h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
}
.sidebar-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.sidebar-block h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.category-list button {
  width: 100%; text-align: left; padding: 6px 12px; border-radius: 8px;
  font-size: 0.86rem; line-height: 1.3; color: var(--text-muted); transition: var(--transition);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.category-list button:hover, .category-list button.active {
  background: rgba(45, 90, 61, 0.08); color: var(--green); font-weight: 500;
}
.category-list button.active {
  box-shadow: inset 3px 0 0 var(--green);
  padding-left: 9px;
}
.category-list .count {
  font-size: 0.75rem; color: var(--text-light); font-weight: 500;
  background: rgba(45, 90, 61, 0.06); padding: 2px 8px; border-radius: 999px;
  flex-shrink: 0;
}
.category-list button.active .count { background: rgba(45, 90, 61, 0.14); color: var(--green); }

.category-list-panel { display: flex; flex-direction: column; gap: 10px; }
.category-list-viewport {
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.category-list-viewport.is-expanded.is-scrollable {
  max-height: min(640px, 70vh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 90, 61, 0.25) transparent;
  padding-right: 2px;
}
.category-list-viewport.is-expanded.is-scrollable::-webkit-scrollbar { width: 5px; }
.category-list-viewport.is-expanded.is-scrollable::-webkit-scrollbar-thumb {
  background: rgba(45, 90, 61, 0.25); border-radius: 999px;
}
.category-list-search-wrap { position: relative; }
.category-list-search {
  width: 100%; padding: 9px 12px 9px 34px; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.85rem;
  background: var(--bg-card); color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a7568' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.category-list-search:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.12);
}
.category-list-search::placeholder { color: var(--text-light); }
.category-list-toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 9px 12px; margin-top: 2px;
  border-radius: 8px; border: 1px dashed rgba(45, 90, 61, 0.28);
  background: rgba(45, 90, 61, 0.04); color: var(--green);
  font-size: 0.82rem; font-weight: 600; transition: var(--transition);
}
.category-list-toggle:hover {
  background: rgba(45, 90, 61, 0.1); border-color: rgba(45, 90, 61, 0.45);
}
.category-list-toggle-meta {
  font-size: 0.75rem; font-weight: 500; color: var(--text-light);
}
.category-list-toggle-chevron { transition: transform 0.25s ease; flex-shrink: 0; }
.category-list-toggle.is-expanded .category-list-toggle-chevron { transform: rotate(180deg); }
.category-list-empty {
  padding: 12px; font-size: 0.85rem; color: var(--text-light); text-align: center;
}

.mobile-category-btn {
  display: none; align-items: center; gap: 6px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card); font-family: inherit; font-size: 0.85rem;
  font-weight: 600; color: var(--green); transition: var(--transition);
}
.mobile-category-btn:hover { background: rgba(45, 90, 61, 0.06); border-color: rgba(45, 90, 61, 0.3); }

.category-filter-drawer {
  position: fixed; top: 0; right: 0; z-index: 260;
  width: min(100vw, 340px); height: 100vh; height: 100dvh;
  background: var(--bg-card); border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(15, 26, 20, 0.12);
  transform: translateX(100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column;
}
.category-filter-drawer.open { transform: translateX(0); }
.category-filter-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.category-filter-header h3 {
  font-family: var(--font-display); font-size: 1.15rem; margin: 0;
}
.category-filter-drawer .category-list-panel {
  flex: 1; min-height: 0; padding: 16px 20px 24px;
  display: flex; flex-direction: column; overflow: hidden;
}
.category-filter-drawer .category-list-viewport {
  flex: 1; min-height: 0;
}
.category-filter-drawer .category-list-viewport.is-expanded.is-scrollable {
  max-height: none; overflow-y: auto;
}
body.category-filter-open { overflow: hidden; }

.price-filters label,
.rating-filters label,
.vendor-filters label,
.vendor-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}
.price-filters input,
.rating-filters input,
.vendor-filters input {
  accent-color: var(--green);
  flex-shrink: 0;
  margin: 0;
}

.products-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.toolbar-left h2 { font-family: var(--font-display); font-size: 1.75rem; }
.result-count { font-size: 0.85rem; color: var(--text-muted); margin-left: 12px; }
#sortSelect { padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.88rem; background: var(--bg-card); cursor: pointer; }

.products-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--grid-gap, 16px);
}
.product-card {
  background: var(--bg-card);
  border: var(--product-border, 1px solid var(--line));
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--product-shadow, none);
}
.product-card:hover {
  box-shadow: var(--product-shadow-hover, var(--shadow-lg));
  transform: var(--product-hover-transform, translateY(-2px));
}
.product-image-wrap,
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  padding: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-image-wrap img,
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(15, 26, 20, 0.72);
  color: #fff;
  backdrop-filter: blur(4px);
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--bg-dark); color: var(--accent);
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 50px;
}
.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-info h3,
.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.vendor-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.price-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.price-rating .price strong,
.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.price-rating .price s,
.product-original {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 4px;
  text-decoration: line-through;
}
.rating,
.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.rating svg,
.product-rating .stars { color: var(--star); }
.delivery-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.add-to-cart {
  width: 100%;
  padding: 10px;
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  margin-top: auto;
}
.add-to-cart:hover { background: var(--purple-dark); }
.add-to-cart--sold-out {
  background: #e8e4df;
  color: #9a9088;
  cursor: not-allowed;
}
.add-to-cart--sold-out:hover { background: #e8e4df; }
.product-card--sold-out .product-img-wrap img { opacity: 0.55; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); font-size: 0.88rem; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--bg-dark); color: var(--accent-light); border-color: var(--bg-dark); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.modal-overlay { position: fixed; inset: 0; background: rgba(15, 26, 20, 0.6); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay[hidden] { display: none; }
.login-popup-overlay { z-index: 250; background: rgba(15, 26, 20, 0.72); }
.login-popup-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.login-popup-modal::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--accent) 50%, var(--green-light) 100%);
}
.login-popup-body { padding: 32px 28px 28px; }
.login-popup-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
  font-weight: 600;
}
.login-popup-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
}
.login-popup-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}
.login-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.login-method-tab {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  transition: var(--transition);
}
.login-method-tab:hover { border-color: var(--accent); }
.login-method-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.login-popup-sub .otp-input,
.review-input.otp-input {
  letter-spacing: 0.35em;
  font-size: 1.15rem;
  text-align: center;
  font-weight: 600;
}
.login-popup-error {
  font-size: 0.88rem;
  color: #c0392b;
  margin: -6px 0 12px;
}
.login-popup-submit { margin-top: 4px; margin-bottom: 16px; }
.login-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.login-popup-skip {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-popup-skip:hover {
  color: var(--green);
  background: rgba(45, 90, 61, 0.06);
}
.product-modal { background: var(--bg-card); border-radius: var(--radius-lg); max-width: 980px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); font-size: 1.5rem; z-index: 10; display: flex; align-items: center; justify-content: center; }
.modal-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px; }
.modal-gallery { display: flex; flex-direction: column; gap: 12px; }
.modal-gallery-main {
  position: relative;
  aspect-ratio: 1;
  background: #f5f3ef;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--bg-dark);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: var(--transition);
}
.gallery-arrow:hover { background: var(--accent); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.modal-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: var(--transition);
}
.modal-thumb.active,
.modal-thumb:hover {
  border-color: var(--accent);
  opacity: 1;
}
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-image { aspect-ratio: 1; background: #f5f3ef; border-radius: var(--radius); overflow: hidden; }
.modal-image img { width: 100%; height: 100%; object-fit: contain; }
.modal-info h2 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; margin-bottom: 12px; }
.modal-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.modal-title-row h2 { margin-bottom: 0; }
.modal-oos-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.35);
}
.modal-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; font-size: 0.85rem; color: var(--text-muted); }
.modal-stock--out { color: #c0392b; font-weight: 700; font-size: 0.9rem; }
.modal-stock--low { color: #d35400; font-weight: 600; }
.modal-stock--in { color: #2d7a3a; }
.modal-price-row { margin-bottom: 4px; }
.modal-gallery--sold-out img { opacity: 0.5; filter: grayscale(25%); }
.modal-sold-out-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
}
.modal-oos-actions {
  width: 100%;
  flex-basis: 100%;
  padding: 14px 16px;
  background: #fdf2f0;
  border: 1px solid #f5c6c0;
  border-radius: var(--radius);
}
.modal-oos-label {
  margin: 0 0 10px;
  font-weight: 600;
  color: #c0392b;
  font-size: 0.95rem;
}
.stock-notify-form { margin-top: 12px; }
.modal-price { font-size: 2rem; font-weight: 700; color: var(--green); }
.modal-original { font-size: 1rem; color: var(--text-light); text-decoration: line-through; margin-left: 8px; }
.modal-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin: 20px 0; }
.modal-desc p { margin-bottom: 0.75em; }
.modal-desc p:last-child { margin-bottom: 0; }
/* Restore bullets — global `ul { list-style: none }` + padding:0 reset hides product lists */
.modal-desc ul,
.modal-desc ol,
.product-desc-body ul,
.product-desc-body ol {
  margin: 0.5em 0 0.75em;
  padding-left: 1.4em;
  list-style-position: outside;
}
.modal-desc ul,
.product-desc-body ul {
  list-style-type: disc;
}
.modal-desc ol,
.product-desc-body ol {
  list-style-type: decimal;
}
.modal-desc li,
.product-desc-body li {
  display: list-item;
  margin: 0.28em 0;
}
.modal-desc h2, .modal-desc h3 { color: var(--text); margin: 0.75em 0 0.35em; font-size: 1rem; }
.modal-desc a { color: var(--green); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.modal-share-hint {
  font-size: 0.85rem;
  color: var(--green);
  margin-top: 8px;
  word-break: break-all;
}

/* --- Product modal: information blocks & description (cache v48) --- */
.product-info-section {
  border-top: 1px solid var(--border);
  padding: 28px 32px 8px;
}
.product-info-heading,
.product-desc-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}
.product-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.product-info-grid--single {
  grid-template-columns: 1fr;
}
.product-info-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.product-info-block--warranty {
  background: var(--purple-light);
  border-color: rgba(91, 79, 232, 0.18);
}
.product-info-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.product-info-dl {
  margin: 0;
}
.product-info-row {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 8px 12px;
  padding: 7px 0;
  font-size: 0.88rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}
.product-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.product-info-row dt {
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}
.product-info-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}
.product-info-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}
.product-info-link:hover {
  text-decoration: underline;
  color: var(--purple-dark);
}
.product-info-stars {
  color: var(--star);
  letter-spacing: 0.5px;
}
.product-info-rating {
  font-weight: 700;
  color: var(--ink);
}
.product-info-review-count {
  color: var(--text-muted);
  font-weight: 400;
}
.product-info-warranty-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
}
.product-info-warranty-text strong {
  color: var(--purple-dark);
}
.product-desc-section {
  border-top: 1px solid var(--border);
  padding: 28px 32px 12px;
}
.product-desc-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--purple) 0%, rgba(91, 79, 232, 0.15) 100%);
  margin: 0 0 20px;
}
.product-desc-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.4;
}
.product-desc-image {
  max-width: 520px;
  margin: 0 0 20px;
  background: #f5f3ef;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-desc-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.product-desc-body {
  margin: 0;
  max-width: 820px;
}

.product-reviews {
  border-top: 1px solid var(--border);
  padding: 28px 32px 32px;
}
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.reviews-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.reviews-summary-stars { color: var(--accent); letter-spacing: 1px; }
.reviews-summary strong { color: var(--text); font-size: 1.05rem; }
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.reviews-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 16px 0;
}
.review-item {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.review-item-user { border-color: rgba(232, 117, 42, 0.25); }
.review-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.review-author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.review-author-line strong { font-size: 0.92rem; }
.review-location {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.review-location::before { content: '· '; }
.review-verified {
  font-size: 0.72rem;
  font-weight: 600;
  color: #2d7a3a;
  background: rgba(45, 122, 58, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}
.review-date {
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
}
.review-stars {
  color: var(--accent);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.review-stars span {
  color: var(--text-muted);
  margin-left: 6px;
  font-size: 0.82rem;
}
.review-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.review-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.review-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.review-like-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
}
.review-like-btn.is-liked {
  border-color: #c0392b;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
}
.review-like-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.review-reply-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}
.review-reply-badge-vendor {
  color: var(--primary);
  background: rgba(26, 71, 42, 0.1);
}
.review-reply-badge-owner {
  color: #1a472a;
  background: rgba(26, 71, 42, 0.14);
}
.review-reply-badge-staff {
  color: #5c4d7a;
  background: rgba(92, 77, 122, 0.12);
}
.review-reply-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.review-reply-form textarea {
  width: 100%;
  margin-bottom: 8px;
}
.review-vendor-reply {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(26, 71, 42, 0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
}
.review-vendor-reply p {
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.review-reply-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-left: 6px;
}
.reviews-signin-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 12px 0;
}
.reviews-signin-hint a { color: var(--primary); font-weight: 600; }
.product-qa {
  border-top: 1px solid var(--border);
  padding: 28px 32px 32px;
}
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  max-height: 280px;
  overflow-y: auto;
}
.qa-item {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.qa-question time {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-left: 8px;
}
.qa-question p,
.qa-answer p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.qa-answer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.qa-pending {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}
.qa-form { margin-top: 8px; }
.review-form {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.review-form h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.review-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.star-picker {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.star-pick {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--border);
  font-size: 1.2rem;
  transition: var(--transition);
}
.star-pick.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232, 117, 42, 0.08);
}
.star-pick:hover { border-color: var(--accent); }
.review-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--bg-card);
  margin-bottom: 14px;
}
.review-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 117, 42, 0.12);
}

.password-field-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.password-field-wrap > input {
  padding-right: 44px;
}

.password-field-wrap:has(> .review-input) {
  margin-bottom: 14px;
}

.password-field-wrap > .review-input {
  margin-bottom: 0;
}

.password-toggle-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.password-toggle-btn:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.password-toggle-icon {
  display: inline-flex;
  line-height: 0;
}

.password-toggle-icon[hidden] {
  display: none !important;
}

.password-field-wrap input[type="password"]::-ms-reveal {
  display: none;
}

.password-field-wrap input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.account-card .password-field-wrap > input {
  padding-right: 44px;
}
.review-textarea { resize: vertical; min-height: 96px; }
.review-form .btn-primary { margin-top: 4px; }
.review-form-note {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #2d7a3a;
  font-weight: 500;
}

.cart-drawer {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 100vw;
  height: 100dvh; max-height: 100dvh;
  background: var(--bg-card); z-index: 300; transform: translateX(100%);
  transition: transform 0.3s ease; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 250; }
.drawer-overlay[hidden] { display: none; }
.cart-header {
  flex-shrink: 0;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-family: var(--font-display); font-size: 1.3rem; }
.cart-body {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.cart-items { padding: 16px 24px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #f5f3ef; }
.cart-item-name { font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-price { color: var(--green); font-weight: 600; font-size: 0.9rem; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-qty button { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; }
.cart-empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.cart-footer {
  flex-shrink: 0;
  padding: 16px 24px max(20px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.cart-footer .btn-full { min-height: 48px; font-size: 1rem; }
.cart-footer .btn-full:disabled { opacity: 0.55; cursor: not-allowed; }
.cart-delivery-progress {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--purple-light, #eeecfd);
  border: 1px solid var(--purple-muted, #7b72ef);
}
.cart-delivery-progress--empty {
  background: rgba(245, 243, 239, 0.9);
  border-color: var(--border);
}
.cart-delivery-progress--unlocked {
  background: var(--green-bg, #ecfdf5);
  border-color: var(--green, #10b981);
}
.cart-delivery-progress-msg {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--purple, #5b4fe8);
}
.cart-delivery-progress--empty .cart-delivery-progress-msg {
  font-weight: 500;
  color: var(--text-muted, #6b5344);
}
.cart-delivery-progress--unlocked .cart-delivery-progress-msg {
  color: var(--green, #10b981);
}
.cart-delivery-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(91, 79, 232, 0.15);
  overflow: hidden;
}
.cart-delivery-progress--empty .cart-delivery-progress-track {
  background: rgba(0, 0, 0, 0.06);
}
.cart-delivery-progress--unlocked .cart-delivery-progress-track {
  background: rgba(16, 185, 129, 0.2);
}
.cart-delivery-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--purple, #5b4fe8);
  transition: width 0.35s ease;
}
.cart-delivery-progress--unlocked .cart-delivery-progress-fill {
  background: var(--green, #10b981);
}
.cart-delivery-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted, #6b5344);
}
.cart-delivery-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-muted, #6b5344);
}
.cart-delivery-progress-free {
  color: var(--green, #10b981);
  font-weight: 600;
  font-size: 0.88rem;
}
.cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1.1rem; }
.cart-total strong { color: var(--green); font-size: 1.3rem; }
body.cart-open .pm-chat-root { visibility: hidden; pointer-events: none; }

body.product-modal-open .pm-chat-root:not(.pm-chat-root--custom-pos) {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

body.product-modal-open.sticky-buy-visible .pm-chat-root:not(.pm-chat-root--custom-pos) {
  bottom: calc(156px + env(safe-area-inset-bottom, 0px));
}

.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 48px 24px 20px; }
.footer-brand-block { max-width: 1400px; margin: 0 auto 28px; }
.footer-brand-block .logo--footer { margin-bottom: 12px; }
.footer-brand-block p { max-width: 520px; font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,0.62); }
.footer-payments {
  max-width: 1400px;
  margin: 0 auto 22px;
}
.footer-payments-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-payment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
}
.footer-payment-logo {
  display: block;
  width: auto;
  height: 18px;
  flex-shrink: 0;
}
.footer-payment-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.footer-payment-icon--cod { color: rgba(255,255,255,0.82); }
.footer a { color: rgba(255,255,255,0.72); }
.footer a:hover { color: var(--accent-light); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.42); }
.footer-links-small,
.site-footer-bar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
}
.footer-links-small a,
.site-footer-bar-links a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-links-small a:hover,
.site-footer-bar-links a:hover { color: var(--accent-light); text-decoration: underline; }
.footer-link-sep,
.site-footer-bar-links .footer-link-sep { color: rgba(255,255,255,0.28); user-select: none; }
.site-footer-bar {
  margin-top: auto;
  padding: 10px 16px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border, #e8dfd6);
  background: rgba(255,255,255,0.6);
}
.site-footer-bar-copy { font-size: 0.7rem; color: #8a7568; }
.site-footer-bar-links a { color: #7a6558; }
.site-footer-bar-links a:hover { color: var(--accent, #c45c26); }

@media (max-width: 900px) {
  .mobile-menu-btn { display: flex; }
  .header-pages .site-nav { display: none; }
  .category-card {
    flex: 0 0 calc(28vw - 8px);
    width: calc(28vw - 8px);
    max-width: 110px;
  }
  .category-card-img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .shop-section { grid-template-columns: 1fr; padding: 32px 16px 56px; }
  .sidebar { display: none; }
  .mobile-category-btn { display: inline-flex; }
  .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .hero-slide-split { grid-template-columns: 1fr; gap: 20px; }
  .modal-detail { grid-template-columns: 1fr; }
  .also-bought-row { padding: 24px 20px 0; }
  .product-reviews { padding: 24px 20px 28px; }
  .site-nav-home { display: none; }
  .featured-section { padding: 24px 16px; }
  .page-content { padding: 32px 16px 56px; }
  .footer-payment-badge { font-size: 0.78rem; padding: 5px 10px 5px 8px; }
  .footer-payment-logo { height: 16px; }
  .content-card { padding: 24px 20px; }
  .page-hero { padding: 40px 16px 48px; }
}

@media (max-width: 768px) {
  .announcement {
    font-size: 0.72rem;
    padding: 6px 12px;
    line-height: 1.4;
  }
  .hero-slide-banner img {
    object-fit: contain;
    object-position: center;
  }
  .hero-carousel-viewport {
    aspect-ratio: 10 / 9;
    min-height: clamp(300px, 78vw, 360px);
    max-height: 360px;
  }
  .hero-slide-text {
    align-items: flex-start;
    overflow: visible;
  }
  .hero-slide-text .hero-slide-content,
  .hero-slide-split {
    padding-bottom: 52px;
  }
  .hero-slide-content {
    padding: 22px 46px 58px;
  }
  .hero-slide-content .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }
  .hero-slide-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .hero-slide-content h1 em {
    font-style: italic;
    color: var(--accent-light);
  }
  .hero-slide-content .hero-sub {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 14px;
    max-width: none;
  }
  .hero-slide-content .hero-actions {
    margin-bottom: 0;
    gap: 8px;
  }
  .hero-slide-content .btn {
    padding: 10px 16px;
    font-size: 0.78rem;
  }
  .hero-carousel-section .slider-prev { left: 6px; }
  .hero-carousel-section .slider-next { right: 6px; }
  .hero-carousel-section .slider-dots {
    bottom: 12px;
  }
  .hero-carousel-section .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  .hero-product-visual {
    min-height: 120px;
    max-height: 180px;
    padding: 12px;
  }
  .hero-slide-product {
    align-items: flex-start;
  }
  .hero-product-visual img {
    max-height: 150px;
  }
  .product-image-wrap img { object-fit: cover; }
  .product-info { padding: 10px; }
  .product-name { font-size: 0.78rem; margin-bottom: 6px; }
  .product-price { font-size: 0.95rem; }
  .product-price-row { margin-bottom: 8px; }
  .product-rating { margin-bottom: 6px; font-size: 0.72rem; }
  /* Legacy full-width carousel product slides (not hero-row) */
  .hero-carousel-section .hero-slide-product .hero-slide-split {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 40px;
    align-items: stretch;
  }
  .hero-carousel-section .hero-slide-product .hero-product-visual {
    order: -1;
    min-height: 0;
    max-height: none;
    width: 100%;
    padding: 12px 16px;
    overflow: visible;
  }
  .hero-carousel-section .hero-slide-product .hero-product-visual img {
    max-width: 100%;
    max-height: min(150px, 40vw);
    width: auto;
    margin: 0 auto;
    object-fit: contain;
  }
  .featured-card { flex: 0 0 calc(46% - 8px); min-width: 120px; }
  .products-toolbar { margin-bottom: 16px; }
  .toolbar-left h2 { font-size: 1.35rem; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .login-popup-modal {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .login-popup-body { padding: 24px 20px 20px; }
  .login-popup-title { font-size: 1.4rem; }
  .product-modal {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    --preview-sticky-buy-height: 72px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body.product-modal-open .product-modal {
    padding-bottom: calc(var(--preview-sticky-buy-height) + env(safe-area-inset-bottom, 0px) + 12px);
    scroll-padding-bottom: calc(var(--preview-sticky-buy-height) + env(safe-area-inset-bottom, 0px) + 12px);
  }

  #modalBuyBox {
    scroll-margin-bottom: calc(var(--preview-sticky-buy-height, 68px) + env(safe-area-inset-bottom, 0px) + 16px);
  }

  #modalAddCart {
    flex: 1 1 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }
  .modal-detail { padding: 16px; gap: 20px; }
  .modal-gallery-main {
    aspect-ratio: auto;
    max-height: min(42vh, 280px);
    min-height: 180px;
  }
  .modal-info h2 { font-size: 1.25rem; }
  .modal-price { font-size: 1.5rem; }
  .modal-close { top: 10px; right: 10px; width: 36px; height: 36px; }
  .modal-actions .btn { flex: 1 1 calc(50% - 6px); text-align: center; }
  .product-info-section,
  .product-desc-section { padding: 20px 16px 8px; }
  .product-info-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-info-row { grid-template-columns: 1fr; gap: 2px; }
  .product-desc-image { max-width: 100%; }
  .cart-drawer { width: 100vw; max-width: 100vw; }
  .cart-header { padding: 16px 20px; }
  .cart-items { padding: 12px 20px; }
  .cart-footer { padding: 14px 20px max(16px, env(safe-area-inset-bottom, 0px)); }
  .category-nav { padding: 0 12px 8px; }
}

@media (max-width: 600px) {
  .hero-stats { gap: 24px; }
  .logo--wordmark { padding: 5px 10px; border-radius: 10px; }
  .logo-wordmark { height: 34px; max-width: min(160px, 46vw); }
  .logo-icon { width: 42px; height: 42px; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .product-card { border-radius: var(--radius); }
  .add-to-cart { padding: 8px 10px; font-size: 0.72rem; }
  .modal-gallery-main {
    max-height: min(36vh, 240px);
    min-height: 160px;
  }
  .pagination { margin-top: 28px; gap: 6px; }
  .page-btn { width: 36px; height: 36px; font-size: 0.82rem; }
  .reviews-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .review-item { flex-direction: column; gap: 8px; }
  .review-date { white-space: normal; }
}

/* ── MarketHub storefront layout ── */
.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: var(--purple-light);
  border: 1px solid rgba(91, 79, 232, 0.22);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 12px 0 8px;
  color: var(--purple);
}
.sidebar-toggle svg { color: var(--purple); flex-shrink: 0; }

.hero-row {
  --hero-compact-height: clamp(220px, 20vw, 300px);
  --sidebar-rail-width: 72px;
  --sidebar-expanded-width: 240px;
  display: grid;
  grid-template-columns: var(--sidebar-rail-width) 1fr;
  gap: 12px;
  padding: 12px 0 0;
  align-items: start;
  transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.hero-row.sidebar-expanded {
  grid-template-columns: var(--sidebar-expanded-width) 1fr;
}

.category-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.28);
  z-index: 45;
  border: none;
  padding: 0;
  cursor: default;
}
.category-sidebar-overlay.is-visible {
  display: block;
}
@media (max-width: 900px) {
  .category-sidebar-overlay { display: none !important; }
}

.category-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: var(--sidebar-rail-width);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
@media (min-width: 901px) {
  .category-sidebar {
    position: sticky;
    top: 72px;
    z-index: 50;
    align-self: start;
  }
  .category-sidebar.is-expanded {
    width: var(--sidebar-expanded-width);
    box-shadow: var(--shadow-lg);
  }
}
.category-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-sidebar);
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}
.category-sidebar-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--purple);
  flex-shrink: 0;
  transition: background 0.15s;
}
.category-sidebar-toggle:hover {
  background: var(--purple-light);
}
.category-sidebar-toggle .toggle-icon-collapse { display: none; }
.category-sidebar.is-expanded .category-sidebar-toggle .toggle-icon-expand { display: none; }
.category-sidebar.is-expanded .category-sidebar-toggle .toggle-icon-collapse { display: block; }
.sidebar-collapsed-label {
  display: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--purple);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.sidebar-header-label {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  max-width: 0;
  transition: opacity 0.25s, max-width 0.3s;
}
.category-sidebar.is-expanded .sidebar-header-label {
  opacity: 1;
  max-width: 180px;
}
.category-sidebar.is-collapsed .category-sidebar-header {
  justify-content: center;
  padding: 10px 8px;
}

.category-sidebar-body {
  max-height: var(--hero-compact-height);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 79, 232, 0.2) transparent;
}
.category-sidebar.is-expanded .category-sidebar-body {
  max-height: min(420px, calc(100vh - 180px));
}
.category-sidebar-body::-webkit-scrollbar { width: 4px; }
.category-sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(91, 79, 232, 0.2);
  border-radius: 999px;
}

.hero-category-list li a,
.hero-category-list li button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  font-size: 0.84rem;
  color: var(--text);
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background 0.15s, color 0.15s, padding 0.25s;
  cursor: pointer;
}
.category-sidebar.is-collapsed .hero-category-list li button {
  justify-content: center;
  padding: 9px 6px;
  gap: 0;
}
.category-sidebar.is-collapsed .hero-category-list .cat-label,
.category-sidebar.is-collapsed .hero-category-list .cat-chevron {
  display: none;
}
@media (min-width: 901px) {
  .category-sidebar.is-expanded .hero-category-list .cat-label {
    display: inline;
  }
  .category-sidebar.is-expanded .hero-category-list .cat-chevron {
    display: block;
  }
  .category-sidebar.is-expanded .hero-category-list li button {
    justify-content: flex-start;
    padding: 9px 12px;
    gap: 12px;
  }
}
.hero-category-list li:last-child a,
.hero-category-list li:last-child button { border-bottom: none; }
.hero-category-list li a:hover,
.hero-category-list li button:hover,
.hero-category-list li button.active {
  background: var(--purple-light);
  color: var(--purple);
}
.cat-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.cat-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-category-list li a:hover .cat-icon,
.hero-category-list li button:hover .cat-icon,
.hero-category-list li button.active .cat-icon { color: var(--purple); }
.cat-chevron {
  margin-left: auto;
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Desktop: collapsible category rail — slim strip by default, full panel on toggle */
@media (min-width: 901px) {
  .category-sidebar.is-collapsed .category-sidebar-body {
    display: none;
  }
  .category-sidebar.is-collapsed .sidebar-header-label {
    display: none;
  }
  .category-sidebar.is-collapsed .sidebar-collapsed-label {
    display: block;
  }
  .category-sidebar.is-collapsed .category-sidebar-header {
    flex-direction: column;
    gap: 6px;
    padding: 12px 8px;
    cursor: pointer;
  }
  .category-sidebar.is-expanded .sidebar-collapsed-label {
    display: none;
  }
  .category-sidebar.is-expanded .category-sidebar-header {
    flex-direction: row;
    cursor: default;
  }
}

.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #fafafe 0%, #f0effe 50%, #e8e6fd 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
  min-height: var(--hero-compact-height);
  height: auto;
  overflow: visible;
}

/* Hero carousel inside hero-row */
.hero-banner.hero-carousel-wrap {
  padding: 0;
  display: block;
  background: var(--bg-card);
  grid-template-columns: unset;
}
.hero-row .hero-carousel-viewport {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: unset;
  max-height: none;
  container-type: inline-size;
}
.hero-row .hero-carousel-track {
  display: flex;
  min-height: 0;
  height: auto;
  align-items: flex-start;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-row .hero-carousel-slide {
  flex: 0 0 100cqi;
  width: 100cqi;
  min-width: 100cqi;
  max-width: 100cqi;
  min-height: 0;
  height: auto;
  position: relative;
  overflow: hidden;
}
.hero-row .hero-carousel-slide.hero-slide-product,
.hero-row .hero-carousel-slide.hero-slide-text {
  min-height: var(--hero-compact-height);
}
.hero-row .hero-slide-bg-light {
  background: linear-gradient(135deg, #fafafe 0%, #f0effe 50%, #e8e6fd 100%);
}
.hero-row .hero-slide-bg-light::after { display: none; }
.hero-row .hero-slide-content-compact {
  color: var(--ink);
  padding: 24px 52px 44px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 62%;
  min-width: 0;
  box-sizing: border-box;
}
.hero-row .hero-slide-content-compact h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-row .hero-slide-content-compact h1 em {
  font-style: normal;
  color: var(--purple);
}
.hero-row .hero-slide-content-compact .sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 420px;
  margin-bottom: 14px;
  line-height: 1.45;
}
.hero-row .hero-slide-compact .hero-slide-content {
  padding: 20px 48px 44px;
  color: var(--ink);
  box-sizing: border-box;
}
.hero-row .hero-slide-compact .hero-slide-bg::after { opacity: 0.35; }
.hero-row .hero-slide-product .hero-slide-bg::after { opacity: 1; }
.hero-row .hero-slide-compact .hero-eyebrow {
  color: var(--purple);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-row .hero-slide-compact .hero-sub { color: var(--text-muted); font-size: 0.85rem; }
.hero-row .hero-slide-product .hero-sub { color: #475569; }
.hero-row .hero-slide-compact .hero-product-copy h1 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--ink);
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-row .hero-slide-compact .hero-slide-split {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  padding: 0 0 40px;
  height: 100%;
  align-items: center;
  box-sizing: border-box;
}
.hero-row .hero-slide-compact .hero-product-visual {
  min-height: 0;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-row .hero-slide-compact .hero-product-visual img {
  max-height: calc(var(--hero-compact-height) - 72px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.hero-slide-cms {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(135deg, #fafafe 0%, #f0effe 50%, #e8e6fd 100%);
}
.hero-slide-cms .hero-slide-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero-slide-cms .hero-slide-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(250, 250, 254, 0.98) 0%,
    rgba(250, 250, 254, 0.92) 38%,
    rgba(250, 250, 254, 0.55) 52%,
    rgba(250, 250, 254, 0.12) 62%,
    transparent 72%
  );
  pointer-events: none;
}
.hero-slide-safe-zone {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 55%;
  padding: 20px 48px 44px;
  box-sizing: border-box;
}
.hero-slide-cms .hero-copy { min-width: 0; }
.hero-slide-cms .hero-copy h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-slide-cms .hero-copy .sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
  line-height: 1.45;
}
.hero-row .hero-slide-banner .hero-banner-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: var(--hero-compact-height);
  height: auto;
  max-height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #fafafe 0%, #f0effe 50%, #e8e6fd 100%);
}
.hero-row .hero-slide-banner .hero-banner-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background-size: cover;
  background-position: center;
}
.hero-row .hero-slide-cms {
  min-height: var(--hero-compact-height);
}
.hero-row .slider-arrow {
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  background: rgba(255,255,255,0.95);
  color: var(--purple);
  border: 1px solid var(--line);
}
.hero-row .slider-prev { left: 10px; }
.hero-row .slider-next { right: 10px; }
.hero-row .slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 6;
  padding: 0;
  pointer-events: auto;
}
.hero-row .slider-dot {
  background: rgba(99, 102, 241, 0.25);
}
.hero-row .slider-dot.active {
  background: var(--purple);
  width: 22px;
}
.hero-copy {
  min-width: 0;
}
.hero-tag {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.hero-banner h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-banner .sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 380px;
  margin-bottom: 14px;
  line-height: 1.45;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-ctas .btn-primary,
.hero-ctas .btn-outline {
  padding: 9px 18px;
  font-size: 0.85rem;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn-outline {
  background: var(--bg-card);
  color: var(--purple);
  border: 1.5px solid var(--purple);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--purple-light); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}
.hero-pedestal {
  width: 90px;
  height: 56px;
  background: linear-gradient(180deg, #fff 0%, #f3f4f6 100%);
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.hero-product-img {
  position: relative;
  z-index: 1;
  width: min(140px, 42%);
  max-height: 130px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
  object-fit: contain;
}
.trust-card {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  width: 175px;
  z-index: 2;
}
.trust-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.trust-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 2px;
}
.trust-score strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
}
.trust-score span { font-size: 0.78rem; color: var(--text-muted); }
.trust-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
}
.trust-metrics li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text);
  margin-bottom: 4px;
}
.trust-metrics li svg { color: var(--green); flex-shrink: 0; width: 12px; height: 12px; }

/* Hero carousel trust score overlay — absolute, outside text safe zones */
.hero-carousel-slide .hero-trust-card {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  top: 14px;
  right: 14px;
  bottom: auto;
  left: auto;
  transform: none;
}
.hero-slide-text .hero-trust-card,
.hero-slide-cms .hero-trust-card {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}
.hero-slide-banner .hero-trust-card {
  top: auto;
  bottom: 38px;
  right: 18px;
  transform: none;
}
.hero-slide-product .hero-trust-card {
  top: 14px;
  right: 14px;
  bottom: auto;
  transform: none;
}

.trust-bar {
  margin: 12px 0 16px;
  background: var(--trust-bg, var(--bg-card));
  border: var(--trust-border, 1px solid var(--line));
  border-radius: var(--radius);
  padding: var(--trust-pad, 14px 18px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--trust-gap, 12px);
  box-shadow: var(--trust-shadow, var(--shadow));
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.trust-item-icon {
  width: var(--trust-icon-size, 34px);
  height: var(--trust-icon-size, 34px);
  border-radius: var(--trust-icon-radius, 8px);
  background: var(--trust-icon-bg, var(--purple-light));
  color: var(--trust-icon-color, var(--purple));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.trust-item-icon svg { width: 16px; height: 16px; }
.trust-item h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1px;
}
.trust-item p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.trust-label-short { display: none; }

.products-toolbar.section-head,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head h2,
.toolbar-left h2 {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-body);
}
.product-count,
.result-count {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.category-list button:hover,
.category-list button.active {
  background: var(--purple-light);
  color: var(--purple);
}
.category-list button.active {
  box-shadow: inset 3px 0 0 var(--purple);
}

@media (max-width: 1100px) {
  .products-grid,
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-bar { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 8px 6px;
    padding: 10px 10px;
    align-items: center;
  }
  .mobile-menu-btn {
    display: flex;
    grid-column: 1;
    grid-row: 1;
  }
  .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
  }
  .logo-wordmark {
    max-width: min(118px, 100%);
    height: 36px;
  }
  .header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
  }
  .search-form {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    margin: 0;
  }
  .hero-row {
    grid-template-columns: 1fr;
    --hero-compact-height: auto;
    padding-top: 4px;
  }
  .hero-row.sidebar-expanded { grid-template-columns: 1fr; }
  .sidebar-toggle { display: flex; }
  .category-sidebar {
    display: none;
    width: 100%;
    position: static;
  }
  .category-sidebar.is-open { display: block; }
  .category-sidebar.is-collapsed,
  .category-sidebar.is-expanded { width: 100%; }
  .category-sidebar.is-collapsed .hero-category-list .cat-label { display: inline; }
  .category-sidebar.is-collapsed .hero-category-list .cat-chevron { display: block; }
  .category-sidebar.is-collapsed .hero-category-list li button {
    justify-content: flex-start;
    padding: 11px 16px;
    gap: 12px;
  }
  .category-sidebar-body { max-height: none; }
  .category-sidebar-header { justify-content: flex-start; padding: 14px 16px; }
  .sidebar-header-label { opacity: 1; max-width: none; }
  .category-sidebar-toggle { display: none; }
  .hero-banner {
    padding: 0;
    text-align: left;
    height: auto;
    min-height: 0;
  }
  .hero-row .hero-carousel-viewport {
    min-height: 0;
    aspect-ratio: auto;
  }
  .hero-row .hero-carousel-track,
  .hero-row .hero-carousel-slide {
    min-height: 0;
  }
  .hero-row .hero-carousel-slide.hero-slide-product,
  .hero-row .hero-carousel-slide.hero-slide-text {
    overflow: visible;
  }
  .hero-row .hero-carousel-slide.hero-slide-cms,
  .hero-row .hero-carousel-slide.hero-slide-banner {
    overflow: hidden;
  }
  .hero-row .hero-carousel-slide.hero-slide-cms {
    display: block;
    height: auto;
    min-height: clamp(200px, 52vw, 320px);
  }
  .hero-row .hero-carousel-slide.hero-slide-banner {
    min-height: 0;
  }
  /* Text slides (left-aligned) */
  .hero-row .hero-slide-content-compact {
    max-width: 100%;
    padding: 16px 40px 44px 16px;
    height: auto;
    align-items: flex-start;
  }
  /* CMS text-overlay slides: centered copy + centered background art */
  .hero-slide-cms .hero-slide-safe-zone {
    max-width: 100%;
    padding: 16px 24px 44px;
    height: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .hero-slide-cms .hero-ctas {
    justify-content: center;
  }
  .hero-slide-cms .hero-slide-bg-image {
    background-position: center center;
    background-size: cover;
  }
  /* CMS image-only banners: centered art inside frame */
  .hero-row .hero-slide-banner .hero-banner-frame {
    aspect-ratio: 3 / 1;
    min-height: clamp(110px, 34vw, 200px);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
  }
  .hero-row .hero-slide-banner .hero-banner-art {
    min-height: 100%;
    background-position: center center;
    background-size: contain;
  }
  .hero-row .hero-carousel-slide.hero-slide-cms,
  .hero-row .hero-carousel-slide.hero-slide-banner {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-row .hero-slide-compact:not(.hero-slide-product) .hero-slide-content {
    padding: 16px 40px 40px 16px;
    height: auto;
    justify-content: flex-start;
  }
  .hero-row .hero-slide-content-compact h1,
  .hero-slide-cms .hero-copy h1 {
    -webkit-line-clamp: 4;
    font-size: clamp(1rem, 4.2vw, 1.3rem);
  }
  .hero-slide-cms .hero-slide-bg-image::after {
    background: linear-gradient(
      180deg,
      rgba(250, 250, 254, 0.5) 0%,
      rgba(250, 250, 254, 0.92) 30%,
      rgba(250, 250, 254, 0.92) 70%,
      rgba(250, 250, 254, 0.5) 100%
    );
  }
  .hero-slide-cms .hero-copy .sub {
    max-width: none;
  }
  /* Product slides: vertical stack, image on top */
  .hero-row .hero-slide-product {
    display: block;
    height: auto;
  }
  .hero-row .hero-slide-product .hero-slide-content {
    padding: 16px 40px 40px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
  }
  .hero-row .hero-slide-product .hero-slide-split {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    height: auto;
    align-items: stretch;
    box-sizing: border-box;
  }
  .hero-row .hero-slide-product .hero-product-visual {
    order: -1;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 12px 16px;
    box-sizing: border-box;
    overflow: visible;
    background: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-sm);
  }
  .hero-row .hero-slide-product .hero-product-visual img {
    max-width: 100%;
    max-height: min(150px, 42vw);
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }
  .hero-row .hero-slide-product .hero-product-copy {
    min-width: 0;
  }
  .hero-row .hero-slide-product .hero-product-copy .hero-eyebrow {
    font-size: 0.65rem;
    margin: 0 0 6px;
  }
  .hero-row .hero-slide-product .hero-product-copy h1 {
    font-size: clamp(1rem, 4.2vw, 1.3rem);
    line-height: 1.3;
    margin: 0 0 8px;
    -webkit-line-clamp: 4;
  }
  .hero-row .hero-slide-product .hero-product-copy .hero-sub {
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0 0 12px;
  }
  .hero-row .hero-slide-product .hero-product-copy .btn {
    padding: 9px 14px;
    font-size: 0.75rem;
    margin: 0;
  }
  .hero-row .hero-slide-product .hero-slide-bg::after {
    opacity: 1;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.35) 0%, transparent 60%),
      radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.25) 0%, transparent 55%);
  }
  /* Trust card: compact on mobile, corner placement, hide on crowded product slides */
  .hero-carousel-slide .hero-trust-card {
    width: 132px;
    padding: 9px 10px;
    top: auto;
    bottom: 36px;
    right: 8px;
    transform: none;
  }
  .hero-carousel-slide .hero-trust-card h3 {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }
  .hero-carousel-slide .hero-trust-card .trust-score strong {
    font-size: 1.05rem;
  }
  .hero-carousel-slide .hero-trust-card .trust-score span {
    font-size: 0.68rem;
  }
  .hero-carousel-slide .hero-trust-card .trust-label {
    font-size: 0.62rem;
    margin-bottom: 6px;
  }
  .hero-carousel-slide .hero-trust-card .trust-metrics li {
    font-size: 0.58rem;
    gap: 4px;
    margin-bottom: 3px;
  }
  .hero-carousel-slide .hero-trust-card .trust-metrics li svg {
    width: 10px;
    height: 10px;
  }
  .hero-slide-product .hero-trust-card {
    display: none;
  }
  /* Carousel controls: safe margins, no overlap */
  .hero-row .slider-prev { left: 4px; }
  .hero-row .slider-next { right: 4px; }
  .hero-row .slider-dots { bottom: 8px; }
  .hero-row .slider-arrow {
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
  }
  .hero-banner .sub { margin-left: 0; margin-right: 0; }
  .hero-ctas { justify-content: flex-start; }
  .hero-product-img { width: min(180px, 60%); max-height: 160px; }
  .trust-card {
    right: 50%;
    transform: translateX(50%);
    top: auto;
    bottom: -16px;
    width: 200px;
  }
  .shop-section { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-category-btn { display: inline-flex; }
}

@media (max-width: 600px) {
  .search-form select { display: none; }
  .search-form button { padding: 0 16px; font-size: 0.82rem; }
  .storefront-container { padding-left: 12px; padding-right: 12px; }
  .sidebar-toggle { margin: 8px 0 6px; padding: 11px 14px; font-size: 0.85rem; }
  .products-grid,
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-banner h1 { font-size: 1.35rem; }
}

/* Mobile trust bar — Option C: slim icon strip */
@media (max-width: 768px) {
  .trust-bar {
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin: 10px 0 12px;
    padding: 8px 4px 6px;
  }
  .trust-item {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
  }
  .trust-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .trust-item-icon svg {
    width: 12px;
    height: 12px;
  }
  .trust-item h4,
  .trust-item p {
    display: none;
  }
  .trust-label-short {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #111827;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ─── Account page (login, register, dashboard) ─── */
.account-body {
  min-height: 100vh;
  background: var(--bg);
}
.account-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(145deg, #fafafe 0%, #eeecfd 38%, #e4e1fc 62%, #f0f4ff 100%);
}
.account-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(91, 79, 232, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse at 85% 78%, rgba(16, 185, 129, 0.08) 0%, transparent 48%);
  pointer-events: none;
}
.account-body > #siteHeader,
.account-body > .account-page,
.account-body > #siteFooter {
  position: relative;
  z-index: 1;
}
.account-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.account-hero {
  text-align: center;
  margin-bottom: 28px;
}
.account-wordmark {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 72vw);
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(91, 79, 232, 0.12));
}
.account-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
}
.account-muted {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
  line-height: 1.55;
}
.account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
/* display:flex above overrides UA [hidden]; keep guest tabs/panels off when logged in */
.account-tabs[hidden],
.account-card[hidden],
#accountDashboard[hidden],
#authGuestShell[hidden] {
  display: none !important;
}
.account-tab {
  padding: 11px 20px;
  min-height: 44px;
  border: 1px solid rgba(91, 79, 232, 0.18);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.account-tab:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
}
.account-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(91, 79, 232, 0.28);
}
.account-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: 28px 26px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(91, 79, 232, 0.1), 0 2px 8px rgba(17, 24, 39, 0.04);
  position: relative;
  z-index: 2;
}
.account-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}
.account-card label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}
.reg-email-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.reg-email-row input {
  flex: 1;
  min-width: 0;
}
.reg-email-row .btn {
  flex-shrink: 0;
  align-self: stretch;
  white-space: nowrap;
}
.account-card input,
.account-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.account-card input:focus,
.account-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 79, 232, 0.14);
}
.account-error { color: #c0392b; margin-top: 10px; font-size: 0.9rem; }
.account-success { color: #2d7a3a; margin-top: 10px; font-size: 0.9rem; }
.otp-input {
  letter-spacing: 0.35em;
  font-size: 1.25rem;
  text-align: center;
  font-weight: 600;
}
.otp-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 8px 0 16px;
  line-height: 1.5;
}
.account-page .login-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.account-page .login-method-tab {
  flex: 1;
  padding: 11px 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.account-page .login-method-tab:hover { border-color: var(--accent); }
.account-page .login-method-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(91, 79, 232, 0.22);
}
.account-dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.account-page:has(#accountDashboard:not([hidden])) {
  max-width: 960px;
}
.account-page:has(#accountDashboard:not([hidden])) .account-hero {
  text-align: left;
}
.account-page:has(#accountDashboard:not([hidden])) .account-wordmark {
  margin-left: 0;
}
.account-side-nav { display: flex; flex-direction: column; gap: 6px; }
.account-side-btn {
  text-align: left;
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}
.account-side-btn:hover {
  background: #fff;
  border-color: var(--accent);
}
.account-side-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(91, 79, 232, 0.22);
}
.account-side-btn.danger { color: #b3261e; }
.account-side-btn.danger.active {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}
.profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
}
.profile-header-info {
  flex: 1;
  min-width: 0;
}
.profile-header-info h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.25;
  word-break: break-word;
}
.profile-header-info .account-muted {
  margin: 0 0 8px;
  font-size: 0.92rem;
  word-break: break-all;
}
.profile-header-info .role-badge {
  margin-top: 2px;
}
#profileForm {
  position: relative;
  z-index: 1;
}
#profileForm > label:first-of-type {
  margin-top: 0;
}
.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}
.avatar-img,
.avatar-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}
.avatar-img {
  object-fit: cover;
  border: 3px solid var(--accent-light);
  background: #f8f4f0;
}
.avatar-img[hidden],
.avatar-placeholder[hidden] {
  display: none !important;
}
.avatar-placeholder {
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-dark);
  user-select: none;
}
.avatar-upload-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.fav-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.fav-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fav-card-body { padding: 12px; }
.fav-card-body strong { display: block; font-size: 0.88rem; margin-bottom: 4px; line-height: 1.3; }
.fav-card-body small { color: var(--text-muted); }
.danger-card {
  border-color: #f5c6c6;
  background: rgba(255, 248, 248, 0.92);
}
.danger-card h2 { color: #c0392b; }
.order-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.order-row-head {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom-width: 2px;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.order-detail-box {
  background: rgba(238, 236, 253, 0.5);
  border-radius: 12px;
  padding: 14px 16px;
}
.order-detail-box h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.order-items-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.order-items-table th,
.order-items-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.order-items-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}
.modal-box--wide { max-width: 720px; }
.account-body .modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.account-body .modal-box h3 { margin: 0 0 12px; color: #c0392b; }
.account-body .modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Account — order detail modal (My orders) */
body:has(#orderModal:not([hidden])) {
  overflow: hidden;
  overscroll-behavior: none;
}

#orderModal.modal-overlay {
  z-index: 300;
}

#orderModal .order-modal {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  width: 100%;
  min-height: 0;
  max-height: min(90vh, 900px);
  overflow: hidden;
  padding: 0;
}

.order-modal-head {
  flex-shrink: 0;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.order-modal-head h3 {
  margin: 0;
  color: #c0392b;
}

.order-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 16px 24px;
}

.order-modal-foot {
  flex-shrink: 0;
  padding: 12px 24px max(16px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  margin-top: 0;
  background: #fff;
}

.order-modal-foot .btn {
  flex: 1 1 auto;
}
.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}
@media (max-width: 768px) {
  .account-dash { grid-template-columns: 1fr; }
  .account-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .account-side-btn { flex: 1 1 calc(50% - 4px); text-align: center; }

  /* Full-screen sheet: avoids bottom-aligned dvh clipping content above viewport */
  #orderModal.modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  #orderModal .order-modal {
    flex: 1;
    max-width: none;
    max-height: none;
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  @supports (height: 100svh) {
    #orderModal .order-modal {
      height: 100svh;
      max-height: 100svh;
    }
  }

  .order-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
  }

  .order-modal-body {
    padding: 16px 18px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .order-modal-foot {
    flex-direction: column-reverse;
  }

  .order-modal-foot .btn {
    width: 100%;
    min-width: 0;
  }

  /* Order items table — card layout on phones */
  .order-items-table--responsive {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .order-items-table--responsive thead {
    display: none;
  }

  .order-items-table--responsive tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .order-items-table--responsive tbody tr:last-child {
    margin-bottom: 0;
  }

  .order-items-table--responsive tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: none;
    text-align: right;
    font-size: 0.88rem;
  }

  .order-items-table--responsive tbody td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-align: left;
  }
}
@media (max-width: 600px) {
  .account-page { padding: 24px 16px 64px; }
  .account-card { padding: 22px 18px; border-radius: 16px; }
  .account-tab { flex: 1 1 auto; text-align: center; padding: 11px 14px; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .profile-header { gap: 16px; margin-bottom: 22px; padding-bottom: 20px; }
  .avatar-wrap,
  .avatar-img,
  .avatar-placeholder { width: 80px; height: 80px; }
}

.account-verify-banner {
  margin-bottom: 16px;
  border-color: #e8c547;
  background: #fffbeb;
}
.emails-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.email-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 12px;
  background: #fff;
}

.order-confirmation-page { max-width: 920px; }
.order-confirmation-hero { text-align: center; }
.order-confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(91, 79, 232, 0.35);
}
.order-confirmation-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
}
.order-confirmation-loading {
  text-align: center;
  padding: 32px 24px;
}
.order-confirmation-spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  border: 3px solid var(--purple-light);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: order-spin 0.8s linear infinite;
}
@keyframes order-spin { to { transform: rotate(360deg); } }
.order-confirmation-grid { display: flex; flex-direction: column; gap: 16px; }
.order-confirmation-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--purple-light) 0%, #fff 60%);
  border: 1px solid rgba(91, 79, 232, 0.15);
}
.order-confirmation-banner-main { flex: 1 1 200px; }
.order-confirmation-order-id {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin: 4px 0 8px;
  letter-spacing: 0.02em;
}
.order-confirmation-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.order-confirmation-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.order-confirmation-badge { background: var(--green-bg); color: #047857; }
.order-confirmation-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .order-confirmation-two-col { grid-template-columns: 1fr; }
}
.order-confirmation-summary h2 { margin-top: 0; }
.order-confirmation-total { font-size: 1.1rem; color: var(--purple-dark); }
.order-confirmation-address p { margin: 0 0 6px; }
.order-confirmation-delivery-note {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fff7ed;
  border-left: 3px solid var(--star);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #92400e;
}
.order-confirmation-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-confirmation-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.order-confirmation-item:last-child { border-bottom: none; padding-bottom: 0; }
.order-confirmation-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #fff;
}
.order-confirmation-item-img--placeholder {
  background: var(--purple-light);
}
.order-confirmation-item-body { flex: 1; min-width: 0; }
.order-confirmation-item-name {
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.3;
}
.order-confirmation-item-vendor { font-size: 0.85rem; margin: 0 0 4px; }
.order-confirmation-item-meta { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.order-confirmation-item-total { white-space: nowrap; font-size: 0.95rem; }
.order-confirmation-totals {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-confirmation-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.order-confirmation-grand {
  font-size: 1.05rem;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
  color: var(--purple-dark);
}
.order-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  padding-bottom: 24px;
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

@media print {
  body.order-confirmation-body .account-bg,
  body.order-confirmation-body #siteHeader,
  body.order-confirmation-body #siteFooter,
  body.order-confirmation-body .order-confirmation-actions,
  body.order-confirmation-body .order-confirmation-icon,
  body.order-confirmation-body .no-print {
    display: none !important;
  }
  body.order-confirmation-body {
    background: #fff;
  }
  body.order-confirmation-body .account-card {
    box-shadow: none;
    break-inside: avoid;
  }
  body.order-confirmation-body .order-confirmation-hero {
    padding-bottom: 8px;
  }
}

/* Ecommerce features */
.search-form { position: relative; }
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #e8ddd4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-height: 320px;
  overflow-y: auto;
}
.search-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.search-suggest-item span {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #6b5344;
  margin-right: 8px;
}
.search-suggest-item:hover { background: #faf6f2; }
.recently-viewed-section { margin: 32px 0; }
.recently-viewed-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.recently-viewed-card {
  flex: 0 0 140px;
  border: 1px solid #e8ddd4;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.recently-viewed-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.recently-viewed-card span {
  display: block;
  font-size: 0.8rem;
  margin-top: 6px;
  line-height: 1.3;
  overflow: hidden;
  max-height: 2.6em;
}
.product-stock-hint {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
}
.product-stock-hint--sold-out {
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.product-stock-hint--low {
  background: #e67e22;
  color: #fff;
  font-weight: 600;
}
.vendor-link { color: #1a472a; text-decoration: underline; }
.modal-delivery-est { color: #6b5344; font-size: 0.9rem; margin: 8px 0; }

/* --- Preview UI: product modal enhancements (cache v49) --- */
@keyframes preview-ui-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.preview-ui-delivery-est {
  background: #f5f1eb;
  border: 1px solid #e8ddd4;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  color: #4a3728;
}

.preview-ui-returns-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green, #1a472a);
  background: rgba(26, 71, 42, 0.08);
  border: 1px solid rgba(26, 71, 42, 0.2);
  vertical-align: middle;
}

.preview-ui-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: #4a3728;
  border: 1px solid #e8ddd4;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.preview-ui-zoomable {
  cursor: zoom-in;
}

.preview-ui-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 26, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.preview-ui-lightbox[hidden] {
  display: none;
}

.preview-ui-lightbox img {
  max-width: min(96vw, 920px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.preview-ui-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-ui-seller-mount {
  border-top: 1px solid var(--border);
  padding: 24px 32px 0;
}

.preview-ui-seller-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.preview-ui-seller-sub {
  color: #6b5344;
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.preview-ui-seller-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.preview-ui-seller-card {
  flex: 0 0 120px;
  min-width: 120px;
  border: 1px solid #e8ddd4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
  padding: 0;
  scroll-snap-align: start;
}

.preview-ui-seller-card img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.preview-ui-seller-name {
  display: block;
  padding: 8px 8px 0;
  font-size: 0.78rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-ui-seller-price {
  display: block;
  padding: 4px 8px 8px;
  font-size: 0.82rem;
  color: var(--green, #1a472a);
}

.preview-ui-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.preview-ui-review-tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green, #1a472a);
  background: rgba(26, 71, 42, 0.08);
  border: 1px solid rgba(26, 71, 42, 0.18);
}

.preview-ui-skeleton {
  background: linear-gradient(90deg, #ece6df 25%, #f8f5f1 50%, #ece6df 75%);
  background-size: 200% 100%;
  animation: preview-ui-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.preview-ui-skeleton--title { height: 18px; width: 45%; margin-bottom: 10px; }
.preview-ui-skeleton--subtitle { height: 12px; width: 30%; margin-bottom: 14px; }
.preview-ui-skeleton--line { height: 10px; width: 100%; margin-bottom: 8px; }
.preview-ui-skeleton--short { width: 55%; }
.preview-ui-skeleton--thumb { height: 88px; width: 100%; border-radius: 6px 6px 0 0; }
.preview-ui-skeleton--tag { height: 28px; width: 88px; border-radius: 999px; }
.preview-ui-skeleton--block { height: 48px; width: 100%; margin-top: 8px; }
.preview-ui-skeleton-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.preview-ui-skeleton-review { margin-bottom: 16px; }
.preview-ui-skeleton-card { pointer-events: none; }

.preview-ui-reviews-skeleton {
  border-top: 1px solid var(--border);
  padding: 28px 32px 8px;
}

.preview-ui-sticky-buy {
  display: none;
}

@media (max-width: 768px) {
  .preview-ui-sticky-buy:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 205;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom, 0px));
    background: var(--bg-card, #fff);
    border-top: 2px solid var(--green, #1a472a);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }

  #previewUiStickyCart {
    flex-shrink: 0;
    min-height: 44px;
    min-width: 108px;
  }

  body.product-modal-open .modal-close {
    z-index: 20;
  }

  .preview-ui-sticky-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e8ddd4;
    flex-shrink: 0;
  }

  .preview-ui-sticky-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .preview-ui-sticky-info strong {
    font-size: 0.95rem;
    color: var(--green, #1a472a);
  }

  .preview-ui-sticky-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .preview-ui-seller-mount,
  .preview-ui-reviews-skeleton {
    padding-left: 16px;
    padding-right: 16px;
  }

  .preview-ui-returns-chip {
    display: flex;
    margin: 8px 0 0;
    width: fit-content;
  }
}

.also-bought-row {
  border-top: 1px solid var(--border);
  padding: 28px 32px 0;
}
.also-bought-row h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.also-bought-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.also-bought-card {
  border: 1px solid #e8ddd4;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.also-bought-card img { width: 100%; height: 80px; object-fit: cover; border-radius: 6px; }

/* Buy together bundle (Amazon-style) */
.bundle-section {
  border-top: 1px solid var(--border);
  padding: 28px 32px 8px;
}
.bundle-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.bundle-sub {
  color: #6b5344;
  font-size: 0.88rem;
  margin: 0 0 16px;
}
.bundle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 4px;
  margin-bottom: 16px;
}
.bundle-plus {
  font-size: 1.4rem;
  color: #6b5344;
  font-weight: 300;
  padding: 0 4px;
  flex-shrink: 0;
}
.bundle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 110px;
  padding: 10px 8px;
  border: 1px solid #e8ddd4;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  position: relative;
}
.bundle-item:has(.bundle-check:not(:checked)) {
  opacity: 0.55;
}
.bundle-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  accent-color: var(--green, #1a472a);
}
.bundle-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 8px;
}
.bundle-item-name {
  font-size: 0.75rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bundle-item-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green, #1a472a);
}
.bundle-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.bundle-strike {
  text-decoration: line-through;
  color: #999;
  font-size: 0.95rem;
}
.bundle-total {
  font-size: 1.25rem;
  color: #c0392b;
}
.bundle-save {
  font-size: 0.85rem;
  color: #2d7a3a;
  width: 100%;
}
.bundle-add-btn {
  width: 100%;
  max-width: 360px;
}
.cart-bundle-tag {
  display: inline-block;
  font-size: 0.68rem;
  background: #e8f5e9;
  color: #2d7a3a;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .bundle-section { padding: 20px 16px 4px; }
  .bundle-row { justify-content: center; }
  .bundle-item { width: 96px; }
  .bundle-item img { width: 60px; height: 60px; }
  .bundle-add-btn { max-width: none; }
}

/* Post-add drawer */
.added-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 350;
  opacity: 0; transition: opacity 0.25s ease;
}
.added-drawer-backdrop.is-visible { opacity: 1; }
.added-drawer-backdrop[hidden] { display: none; }
.added-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 360;
  background: var(--bg-card, #fff); border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  max-height: min(85vh, 560px); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.added-drawer.is-open { transform: translateY(0); }
.added-drawer[hidden] { display: none; }
.added-drawer-handle {
  width: 40px; height: 4px; background: #ddd; border-radius: 2px;
  margin: 10px auto 0;
}
.added-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px 8px;
}
.added-drawer-success { display: flex; align-items: center; gap: 10px; color: #2d7a3a; }
.added-drawer-check {
  width: 28px; height: 28px; border-radius: 50%; background: #2d7a3a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.added-drawer-product {
  display: flex; gap: 12px; padding: 0 20px 12px; border-bottom: 1px solid var(--border, #e8ddd4);
}
.added-drawer-product img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f5f3ef;
}
.added-drawer-product-info { flex: 1; min-width: 0; }
.added-drawer-product-info strong {
  display: block; font-size: 0.9rem; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.added-drawer-product-info span { color: var(--green, #1a472a); font-weight: 600; font-size: 0.95rem; }
.added-drawer-suggest { padding: 12px 0 8px; overflow: hidden; }
.added-drawer-suggest h4 {
  font-size: 0.85rem; font-weight: 600; color: #6b5344; margin: 0 20px 10px;
  font-family: var(--font-display);
}
.added-drawer-actions {
  display: flex; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--border, #e8ddd4);
}
.added-drawer-actions .btn { flex: 1; }

/* Cart & checkout suggestions */
.cart-suggestions {
  padding: 0 24px 16px; border-top: 1px solid var(--border, #e8ddd4);
}
@media (max-width: 768px) {
  .cart-suggestions { padding: 0 20px 16px; }
}
.suggest-section { margin-top: 16px; }
.suggest-section h4 {
  font-size: 0.85rem; font-weight: 600; color: #6b5344; margin: 0 0 10px;
  font-family: var(--font-display);
}
.suggest-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.suggest-scroll::-webkit-scrollbar { height: 4px; }
.suggest-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.suggest-card {
  flex: 0 0 130px; scroll-snap-align: start;
  border: 1px solid var(--border, #e8ddd4); border-radius: 10px;
  padding: 8px; background: #fff; text-align: left;
}
.suggest-card img {
  width: 100%; height: 72px; object-fit: cover; border-radius: 6px; background: #f5f3ef;
}
.suggest-card-name {
  display: block; font-size: 0.75rem; margin: 6px 0 4px; line-height: 1.25;
  overflow: hidden; max-height: 2.5em;
}
.suggest-card-price { display: block; color: var(--green, #1a472a); font-weight: 600; font-size: 0.8rem; }
.suggest-card-add {
  width: 100%; margin-top: 6px; padding: 4px 8px; font-size: 0.72rem;
  border: 1px solid var(--green, #1a472a); border-radius: 6px;
  background: #fff; color: var(--green, #1a472a); cursor: pointer; font-weight: 600;
}
.suggest-card-add:hover { background: #f0f7f2; }
.suggest-card-add.added { background: #2d7a3a; color: #fff; border-color: #2d7a3a; }

/* Checkout modal — opaque panels, above page content */
#checkoutModal.modal-overlay {
  z-index: 350;
  background: rgba(15, 26, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.checkout-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: min(90dvh, 900px);
  overflow: hidden;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.18);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}
.checkout-modal .modal-body {
  padding: 28px 28px max(32px, env(safe-area-inset-bottom, 0px));
  background: #ffffff;
}
.checkout-modal .modal-close {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.checkout-modal-intro {
  color: #6b5344;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.checkout-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.checkout-section--summary {
  background: #faf6f2;
  border-color: #e8ddd4;
}
.checkout-section--coupon {
  background: #f8f9fa;
}
#checkoutModal .review-input,
#checkoutModal select.review-input,
#checkoutModal textarea.review-input {
  background: #ffffff;
  color: var(--text);
}
#checkoutModal .review-label {
  color: var(--ink);
  font-weight: 600;
}
.checkout-payment {
  margin: 0;
  border: none;
  padding: 0;
}
.checkout-payment legend.review-label {
  margin-bottom: 8px;
}
.checkout-payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-payment-option:last-child { margin-bottom: 0; }
.checkout-payment-option:has(input:checked) {
  border-color: var(--accent);
  background: #fafafe;
  box-shadow: 0 0 0 2px rgba(91, 79, 232, 0.12);
}
.checkout-payment-option input { flex-shrink: 0; }
.checkout-summary {
  margin: 0;
  padding: 14px 16px;
  background: #faf6f2;
  border: 1px solid #e8ddd4;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.checkout-coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.checkout-coupon-row .review-input {
  flex: 1;
  margin-bottom: 0;
  text-transform: uppercase;
}
.co-save-address-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 12px 0 4px;
  padding: 12px 14px;
  background: #f0f7ff;
  border: 1px solid #c5d9f0;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.co-save-address-wrap input { margin-top: 3px; flex-shrink: 0; }
#savedAddresses { margin-bottom: 14px; }
#savedAddresses .review-label { margin-top: 4px; }
.checkout-signin-note {
  font-size: 0.85rem;
  margin-top: 12px;
  color: #6b5344;
}

@media (max-width: 768px) {
  #checkoutModal.modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .checkout-modal {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .checkout-modal .modal-body {
    padding: 24px 20px max(24px, env(safe-area-inset-bottom, 0px));
  }
}

/* Account saved addresses */
.address-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.address-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
}
.address-card--default { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(91, 79, 232, 0.15); }
.address-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.address-card-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.address-card-head strong { font-size: 1rem; color: var(--ink); }
.address-card-body { font-size: 0.92rem; color: var(--text-muted); line-height: 1.5; }
.address-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.address-default-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
}

.checkout-addons {
  margin: 16px 0; padding: 14px; background: #faf6f2; border-radius: 10px;
  border: 1px solid #e8ddd4;
}
.checkout-addons-title {
  font-size: 0.95rem; font-family: var(--font-display); margin: 0 0 12px; color: #3d2e24;
}
.checkout-addons-row { display: flex; gap: 10px; overflow-x: auto; }
.checkout-addon-card {
  flex: 0 0 min(140px, 33%); min-width: 120px;
  border: 1px solid #e8ddd4; border-radius: 8px; padding: 8px; background: #fff;
}
.checkout-addon-card img {
  width: 100%; height: 60px; object-fit: cover; border-radius: 6px;
}
.checkout-addon-card span {
  display: block; font-size: 0.72rem; margin: 4px 0; line-height: 1.25;
  overflow: hidden; max-height: 2.5em;
}
.checkout-addon-card strong { font-size: 0.78rem; color: var(--green, #1a472a); }
.checkout-addon-add {
  width: 100%; margin-top: 6px; padding: 5px; font-size: 0.72rem;
  border: none; border-radius: 6px; background: var(--green, #1a472a);
  color: #fff; cursor: pointer; font-weight: 600;
}
.checkout-addon-add:hover { opacity: 0.9; }
.checkout-addon-add.added { background: #6b5344; }

.order-timeline { margin: 16px 0; }
.order-timeline-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.order-timeline-steps li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0ebe6;
  font-size: 0.8rem;
}
.order-timeline-steps li.done { background: #1a472a; color: #fff; }
.order-timeline-events { list-style: none; padding: 0; margin: 0; }
.order-timeline-events li { padding: 8px 0; border-bottom: 1px solid #eee; }
.vendor-store-hero { padding: 0 0 20px; }
.vendor-store-banner {
  aspect-ratio: var(--vendor-aspect, 21 / 6);
  max-height: 220px;
  border-radius: var(--radius, 12px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--purple, #5b4fe8) 18%, var(--bg, #f8f9fa)), var(--bg-card, #fff)),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--green, #1a472a) 16%, transparent), transparent 55%);
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  border: 1px solid var(--border, var(--line, #e8e4df));
}
.vendor-store-banner--cover { border: none; }
.vendor-store-head {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 240px);
  gap: 20px 28px;
  align-items: start;
  margin-bottom: 8px;
}
.vendor-store-identity {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}
.vendor-store-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--purple, #5b4fe8) 14%, var(--bg-card, #fff));
  border: 1px solid var(--border, var(--line, #e8e4df));
  display: grid;
  place-items: center;
}
.vendor-store-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vendor-store-avatar-initials {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--purple, #5b4fe8);
}
.vendor-store-eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.vendor-store-head h1 {
  margin: 0 0 8px;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
}
.vendor-store-meta {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.vendor-store-bio {
  margin: 0 0 14px;
  max-width: 54ch;
  color: var(--text, #222);
  line-height: 1.55;
  font-size: 0.95rem;
}
.vendor-store-back { margin: 0; }
.vendor-store-trust {
  position: relative;
  padding: 14px 16px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, var(--line, #e8e4df));
  border-radius: var(--radius, 12px);
  box-shadow: var(--trust-shadow, none);
}
.vendor-best-sellers { margin: 8px 0 28px; }
.vendor-best-grid { margin-top: 8px; }
.vendor-bestseller-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green, #1a472a);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vendor-store-product .product-img-wrap { position: relative; }
.vendor-store-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.vendor-sold-count { color: var(--text-muted); }
.buy-again-hint {
  display: block;
  margin: 4px 0;
  color: var(--green, #1a472a);
  font-weight: 600;
}
.buy-again-variant { display: block; margin-bottom: 2px; }
.account-order-help-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .vendor-store-head { grid-template-columns: 1fr; }
  .vendor-store-trust { max-width: none; }
  .vendor-store-banner { max-height: 140px; }
  .vendor-store-avatar { width: 60px; height: 60px; border-radius: 14px; }
}
.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-top: 12px;
}
.analytics-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.analytics-bar-fill {
  width: 100%;
  background: #1a472a;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}
.cms-stat-highlight { border-color: #1a472a; }
.cms-simple-list { margin: 0; padding-left: 18px; }
  .avatar-placeholder { font-size: 1.65rem; }
  .avatar-upload-btn { width: 28px; height: 28px; font-size: 12px; }
  .profile-header-info h2 { font-size: 1.12rem; }
}

/* ─── Gift cards featured section ─── */
@keyframes gift-badge-soft-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(91, 79, 232, 0); }
  50% { opacity: 0.88; box-shadow: 0 0 12px 2px rgba(91, 79, 232, 0.35); }
}
@keyframes gift-mobile-light-blink {
  0%, 12.4% {
    border-color: #5b4fe8;
    box-shadow: 0 4px 24px rgba(91, 79, 232, 0.08);
  }
  12.5%, 24.9% {
    border-color: #fbbf24;
    box-shadow:
      0 0 24px 6px rgba(251, 191, 36, 0.95),
      0 0 8px 2px rgba(255, 255, 255, 0.75),
      inset 0 0 14px rgba(251, 191, 36, 0.12);
  }
  25%, 37.4% {
    border-color: #5b4fe8;
    box-shadow: 0 4px 24px rgba(91, 79, 232, 0.08);
  }
  37.5%, 49.9% {
    border-color: #f472b6;
    box-shadow:
      0 0 24px 6px rgba(244, 114, 182, 0.95),
      0 0 8px 2px rgba(255, 255, 255, 0.75),
      inset 0 0 14px rgba(244, 114, 182, 0.14);
  }
  50%, 62.4% {
    border-color: #5b4fe8;
    box-shadow: 0 4px 24px rgba(91, 79, 232, 0.08);
  }
  62.5%, 74.9% {
    border-color: #34d399;
    box-shadow:
      0 0 24px 6px rgba(52, 211, 153, 0.95),
      0 0 8px 2px rgba(255, 255, 255, 0.75),
      inset 0 0 14px rgba(52, 211, 153, 0.14);
  }
  75%, 87.4% {
    border-color: #5b4fe8;
    box-shadow: 0 4px 24px rgba(91, 79, 232, 0.08);
  }
  87.5%, 100% {
    border-color: #38bdf8;
    box-shadow:
      0 0 24px 6px rgba(56, 189, 248, 0.95),
      0 0 8px 2px rgba(255, 255, 255, 0.75),
      inset 0 0 14px rgba(56, 189, 248, 0.14);
  }
}
@keyframes gift-mobile-accent-blink {
  0%, 12.4% {
    opacity: 1;
    filter: brightness(1);
    box-shadow: none;
    background: linear-gradient(90deg, #4a3fd4, #5b4fe8, #8b7ff5);
  }
  12.5%, 24.9% {
    opacity: 1;
    filter: brightness(1.35);
    box-shadow: 0 0 16px 4px rgba(251, 191, 36, 0.85);
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #fde68a);
  }
  25%, 37.4% {
    opacity: 1;
    filter: brightness(1);
    box-shadow: none;
    background: linear-gradient(90deg, #4a3fd4, #5b4fe8, #8b7ff5);
  }
  37.5%, 49.9% {
    opacity: 1;
    filter: brightness(1.35);
    box-shadow: 0 0 16px 4px rgba(244, 114, 182, 0.85);
    background: linear-gradient(90deg, #db2777, #f472b6, #fbcfe8);
  }
  50%, 62.4% {
    opacity: 1;
    filter: brightness(1);
    box-shadow: none;
    background: linear-gradient(90deg, #4a3fd4, #5b4fe8, #8b7ff5);
  }
  62.5%, 74.9% {
    opacity: 1;
    filter: brightness(1.35);
    box-shadow: 0 0 16px 4px rgba(52, 211, 153, 0.85);
    background: linear-gradient(90deg, #059669, #34d399, #a7f3d0);
  }
  75%, 87.4% {
    opacity: 1;
    filter: brightness(1);
    box-shadow: none;
    background: linear-gradient(90deg, #4a3fd4, #5b4fe8, #8b7ff5);
  }
  87.5%, 100% {
    opacity: 1;
    filter: brightness(1.35);
    box-shadow: 0 0 16px 4px rgba(56, 189, 248, 0.85);
    background: linear-gradient(90deg, #0284c7, #38bdf8, #bae6fd);
  }
}

.gift-featured {
  margin: 8px 0 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #5b4fe8;
  background: #fff;
}
.gift-featured-accent {
  height: 5px;
  background: linear-gradient(90deg, #4a3fd4, #5b4fe8, #8b7ff5);
}
@media (min-width: 769px) {
  .pill--featured {
    animation: gift-badge-soft-blink 2.4s ease-in-out infinite;
  }
}
.gift-featured.gift-attention-active {
  animation: gift-mobile-light-blink 2.2s step-end infinite;
}
.gift-featured.gift-attention-active .gift-featured-accent {
  animation: gift-mobile-accent-blink 2.2s step-end infinite;
}
.gift-featured-inner { padding: 28px 28px 32px; }
.gift-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f8f9fa;
  color: #6b7280;
}
.pill--featured {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-light);
}
.pill--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.gift-section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: var(--heading-weight, 800);
  color: var(--purple);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}
.gift-section-desc {
  color: #6b7280;
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.55;
}
.gift-section-desc--mobile { display: none; }
.gift-scroll-hint { display: none; }
.cta-text-mobile { display: none; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.gift-category-card {
  border: var(--gift-border, 2px solid var(--line));
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-align: left;
}
.gift-category-card:hover {
  border-color: var(--purple-muted);
  box-shadow: var(--product-shadow-hover, 0 8px 24px rgba(91, 79, 232, 0.1));
  transform: var(--product-hover-transform, translateY(-2px));
}
.gift-category-card.is-selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #eeecfd, 0 12px 28px rgba(91, 79, 232, 0.18);
  transform: translateY(-3px);
}
.category-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eeecfd;
}
.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gift-category-card:hover .category-thumb img,
.gift-category-card.is-selected .category-thumb img {
  transform: scale(1.04);
}
.category-emoji {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.category-body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.category-name { font-size: 0.92rem; font-weight: 700; color: #111827; margin-bottom: 4px; }
.category-tagline { font-size: 0.78rem; color: #6b7280; line-height: 1.4; margin-bottom: 12px; flex: 1; }
.category-from { font-size: 0.72rem; font-weight: 600; color: #5b4fe8; margin-bottom: 10px; }
.category-denoms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mini-denom {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f8f9fa;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
}
.mini-denom.is-selected {
  border-color: #5b4fe8;
  background: #eeecfd;
  color: #5b4fe8;
}
.category-cta {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
}
.gift-category-card.is-selected .category-cta,
.category-cta:hover {
  background: #5b4fe8;
  border-color: #5b4fe8;
  color: #fff;
}
.selection-hint {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #eeecfd;
  border: 1px solid #ddd6fe;
  font-size: 0.82rem;
  color: #374151;
}
.selection-hint strong { color: #4a3fd4; }

.gift-card-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: min(90dvh, 900px);
  overflow: hidden;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.18);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}
#giftCardModal.modal-overlay {
  z-index: 350;
  background: rgba(15, 26, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gift-card-modal .modal-close {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.gift-card-modal-body {
  padding: 28px 28px max(32px, env(safe-area-inset-bottom, 0px));
  background: #ffffff;
}
#giftCardModal .review-input,
#giftCardModal select.review-input,
#giftCardModal textarea.review-input {
  background: #ffffff;
  color: var(--text);
}
#giftCardModal .review-label {
  color: var(--ink);
  font-weight: 600;
}
.header-gift-balance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eeecfd;
  border: 1px solid #ddd6fe;
  color: #5b4fe8;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.header-gift-balance:hover { background: #e4e0fc; color: #4a3fd4; }
.header-gift-balance[hidden] { display: none !important; }
.header-pages .header-gift-balance { font-size: 0.75rem; padding: 5px 10px; }
.gift-modal-title { margin: 0 0 4px; color: #5b4fe8; font-size: 1.35rem; }
.gift-modal-sub { margin: 0 0 16px; color: #6b7280; font-size: 0.9rem; }
.gift-amount-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gift-amount-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f8f9fa;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.gift-amount-pill.is-selected {
  border-color: #5b4fe8;
  background: #eeecfd;
  color: #5b4fe8;
}
.gift-message-input { resize: vertical; min-height: 72px; }
.gift-done-lead { font-size: 1.1rem; font-weight: 700; color: #5b4fe8; margin: 0 0 12px; }
.gift-done-code-label { margin: 0 0 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; text-align: center; }
.gift-done-code {
  margin: 12px 0;
  padding: 16px;
  background: #eeecfd;
  border: 2px dashed #5b4fe8;
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #5b4fe8;
}
/* ─── Account — gift cards received (wallet cards) ─── */
.gift-card-wallet-list {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}
.gift-card-wallet {
  --gc-grad-start: #5b4fe8;
  --gc-grad-end: #f97316;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gift-card-wallet--thank-you { --gc-grad-start: #ec4899; --gc-grad-end: #fb7185; }
.gift-card-wallet--appreciation { --gc-grad-start: #3b82f6; --gc-grad-end: #14b8a6; }
.gift-card-wallet--wedding { --gc-grad-start: #d97706; --gc-grad-end: #f43f5e; }
.gift-card-wallet--dashain { --gc-grad-start: #f97316; --gc-grad-end: #dc2626; }
.gift-card-wallet--depleted {
  --gc-grad-start: #9ca3af;
  --gc-grad-end: #6b7280;
}
.gift-card-wallet-face {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, var(--gc-grad-start) 0%, var(--gc-grad-end) 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}
.gift-card-wallet--depleted .gift-card-wallet-face {
  filter: grayscale(0.35);
  opacity: 0.88;
}
.gift-card-wallet-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.12) 0%, transparent 38%);
  pointer-events: none;
}
.gift-card-wallet-top,
.gift-card-wallet-brand,
.gift-card-wallet-code-row,
.gift-card-wallet-details,
.gift-card-wallet-from,
.gift-card-wallet-msg {
  position: relative;
  z-index: 1;
}
.gift-card-wallet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.gift-card-wallet-category {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gift-card-wallet-emoji { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.gift-card-wallet-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.gift-card-wallet-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.gift-card-wallet-status--active {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(167, 243, 208, 0.55);
}
.gift-card-wallet-status--pending {
  background: rgba(245, 158, 11, 0.28);
  border-color: rgba(253, 230, 138, 0.55);
}
.gift-card-wallet-status--cancelled,
.gift-card-wallet-status--voided,
.gift-card-wallet-status--expired {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(254, 202, 202, 0.55);
}
.gift-card-wallet-brand {
  margin: 2px 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
}
.gift-card-wallet-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.gift-card-wallet-code {
  margin: 0;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  word-break: break-all;
}
.gift-card-wallet-code-unavailable {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.gift-card-wallet-copy {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.gift-card-wallet-copy:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}
.gift-card-wallet-copy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.gift-card-wallet-copy.is-copied {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.gift-card-wallet-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.gift-card-wallet-balance strong { font-weight: 800; }
.gift-card-wallet-exp { opacity: 0.9; }
.gift-card-wallet-from {
  margin: 0 0 8px;
  font-size: 0.86rem;
  opacity: 0.92;
}
.gift-card-wallet-msg {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.84rem;
  font-style: italic;
  line-height: 1.45;
  opacity: 0.88;
  quotes: none;
}
.gift-card-wallet-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 0 4px;
}
.gift-card-wallet-foot-balance { min-width: 0; }
.gift-card-wallet-foot-label {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 2px;
}
.gift-card-wallet-foot-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #5b4fe8;
  letter-spacing: -0.01em;
}
.gift-card-wallet--depleted .gift-card-wallet-foot-amount { color: #6b7280; }
.gift-card-wallet-foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8rem;
  color: #6b7280;
}
.gift-card-wallet-foot-original { opacity: 0.9; }
.gift-card-wallet-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gift-card-wallet-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 520px) {
  .gift-card-wallet-face { padding: 18px 16px 16px; }
  .gift-card-wallet-code-row { flex-direction: column; align-items: stretch; }
  .gift-card-wallet-copy { width: 100%; text-align: center; }
  .gift-card-wallet-foot { flex-direction: column; align-items: flex-start; }
}
.order-row--gift { background: linear-gradient(90deg, rgba(250,245,255,0.5), transparent); }

/* Account — My orders (card layout) */
.account-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.account-order-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.account-order-card:hover {
  border-color: rgba(91, 79, 232, 0.35);
  box-shadow: 0 6px 20px rgba(91, 79, 232, 0.08);
}
.account-order-card--gift {
  background: linear-gradient(135deg, #faf5ff 0%, #fff 55%);
  border-color: #e9e5ff;
  border-left: 4px solid #f97316;
}
.account-order-card--product {
  border-left: 4px solid var(--purple);
}
.account-order-card-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 16px;
  align-items: center;
  padding: 16px 18px;
}
.account-order-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.account-order-card-icon--product {
  background: var(--purple-light);
}
.account-order-card-icon--gift {
  background: linear-gradient(135deg, #fff7ed, #faf5ff);
}
.account-order-card-body {
  min-width: 0;
}
.account-order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}
.account-order-card-head-text {
  min-width: 0;
  flex: 1 1 160px;
}
.account-order-card-type {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.account-order-card-title {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  word-break: break-word;
}
.account-order-card-meta {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.account-order-card-sep {
  margin: 0 6px;
  opacity: 0.55;
}
.account-order-card-recipient {
  word-break: break-word;
}
.account-order-card-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.account-order-card-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple-dark);
  white-space: nowrap;
}
.account-orders-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
}
.account-orders-badge--success {
  background: var(--green-bg);
  color: #047857;
}
.account-orders-badge--pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
}
.account-orders-badge--void {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.account-order-detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.account-order-detail-title {
  display: block;
  font-size: 1.05rem;
  margin-top: 2px;
}
.account-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}
.account-order-detail-grid dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.account-order-detail-grid dd {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.account-order-detail-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--purple-light);
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .account-order-card-main {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon body"
      "aside aside";
  }
  .account-order-card-icon { grid-area: icon; }
  .account-order-card-body { grid-area: body; }
  .account-order-card-aside {
    grid-area: aside;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .account-order-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-order-detail-grid {
    grid-template-columns: 1fr;
  }
}
.checkout-section--gift-card { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .gift-featured,
  .gift-featured-accent,
  .pill--featured,
  .gift-featured.gift-attention-active,
  .gift-featured.gift-attention-active .gift-featured-accent {
    animation: none !important;
  }
  .gift-category-card,
  .gift-category-card:hover,
  .gift-category-card.is-selected,
  .category-thumb img {
    transition: none;
    transform: none;
  }
}
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gift-section-desc--desktop { display: none; }
  .gift-section-desc--mobile {
    display: block;
    font-size: 0.76rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .gift-scroll-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.64rem;
    color: #6b7280;
    text-align: center;
  }
  .selection-hint { display: none !important; }
  .cta-text-desktop { display: none; }
  .cta-text-mobile { display: inline; }

  .gift-featured-inner { padding: 14px 14px 16px; }
  .gift-pills { gap: 6px; margin-bottom: 8px; }
  .pill { font-size: 0.62rem; padding: 3px 8px; }
  .gift-section-head h2 {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .category-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-grid::-webkit-scrollbar { display: none; }

  .gift-category-card {
    flex: 0 0 168px;
    scroll-snap-align: start;
    border-width: 1.5px;
    border-radius: 10px;
  }
  .gift-category-card:hover,
  .gift-category-card.is-selected {
    transform: none;
  }
  .gift-category-card.is-selected {
    border-color: #5b4fe8;
    box-shadow: 0 0 0 2px #eeecfd;
  }
  .category-thumb {
    aspect-ratio: unset;
    height: 72px;
  }
  .category-emoji {
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
    box-shadow: none;
  }
  .category-body { padding: 8px 9px 10px; }
  .category-name { font-size: 0.78rem; margin-bottom: 2px; }
  .category-tagline {
    font-size: 0.66rem;
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: 2.7em;
  }
  .category-from { display: none; }
  .category-denoms { gap: 4px; margin-bottom: 8px; }
  .mini-denom { font-size: 0.62rem; padding: 3px 7px; }
  .category-cta {
    padding: 7px;
    border-radius: 7px;
    font-size: 0.68rem;
  }
}
.variant-selector {
  margin: 12px 0 4px;
}
.variant-selector-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted, #6b7280);
}
.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-pill {
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.variant-pill.active {
  border-color: var(--brand, #c45c26);
  background: rgba(196, 92, 38, 0.08);
  color: var(--brand, #c45c26);
}
.variant-pill--oos {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
}
.cart-variant-label {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 2px;
}
.purchase-reviews-subhead {
  margin: 0 0 12px;
  font-size: 1rem;
}
.purchase-reviews-list {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.purchase-review-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}
.purchase-review-card--done {
  grid-template-columns: 1fr;
}
.purchase-review-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}
.purchase-review-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.purchase-review-variant {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
}
.purchase-review-form textarea {
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
}
.purchase-star-picker .star-pick {
  border: none;
  background: none;
  font-size: 1.35rem;
  color: #d1d5db;
  cursor: pointer;
  padding: 0 2px;
}
.purchase-star-picker .star-pick.active {
  color: #f59e0b;
}
@media (max-width: 640px) {
  .purchase-review-card {
    grid-template-columns: 56px 1fr;
  }
  .purchase-review-thumb {
    width: 56px;
    height: 56px;
  }
  .header-gift-balance-label { display: none; }
  #giftCardModal.modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .gift-card-modal {
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* Homepage block layout */
.homepage-flow { display: block; }
.homepage-block.is-collapsed {
  display: none !important;
}

/* Order notifications bell */
.order-notif-wrap { position: relative; }
.order-notif-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.order-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: 360px;
  overflow: auto;
  background: var(--bg-card, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 1200;
}
.order-notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.order-notif-mark-read {
  border: 0;
  background: none;
  color: var(--primary, #5b4fe8);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.order-notif-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.order-notif-item.is-unread { background: rgba(91, 79, 232, 0.06); }
.order-notif-link {
  display: block;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
}
.order-notif-item-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
}
.order-notif-item-msg {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
}
.order-notif-item-time {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 4px;
}
.order-notif-empty,
.order-notif-guest {
  padding: 16px 14px;
  font-size: 0.84rem;
  color: #6b7280;
  margin: 0;
}

/* Account reorder */
.account-order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.account-reorder-btn { white-space: nowrap; }
.account-order-reorder-row { margin-top: 14px; }

@media (max-width: 640px) {
  .account-order-card-aside {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .account-order-card-actions {
    width: 100%;
    justify-content: stretch;
  }
  .account-order-card-actions .btn { flex: 1 1 auto; }
}

/* ─── Shared soft toast ─── */
.pm-toast {
  position: fixed;
  z-index: 10050;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(14px);
  max-width: min(92vw, 360px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(26, 71, 42, 0.94);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(15, 26, 20, 0.22);
  opacity: 0;
  pointer-events: none;
  text-align: center;
}
.pm-toast[hidden] { display: none; }
.pm-toast.pm-toast--in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.pm-toast.pm-toast--out {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (min-width: 769px) {
  .pm-toast {
    left: auto;
    right: 24px;
    transform: translateY(14px);
  }
  .pm-toast.pm-toast--in { transform: translateY(0); }
  .pm-toast.pm-toast--out { transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .pm-toast,
  .pm-toast.pm-toast--in,
  .pm-toast.pm-toast--out {
    transition: opacity 0.01ms linear;
    transform: translateX(-50%) translateY(0);
  }
  @media (min-width: 769px) {
    .pm-toast,
    .pm-toast.pm-toast--in,
    .pm-toast.pm-toast--out {
      transform: none;
    }
  }
}
/* Back-compat: account gift-card toast class maps to same look */
.gift-card-wallet-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(26, 71, 42, 0.94);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gift-card-wallet-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Product card quick view ─── */
.product-quick-view-btn {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  transform: translateX(-50%) translateY(6px);
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green, #1a472a);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.product-card:hover .product-quick-view-btn,
.product-card:focus-within .product-quick-view-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
  .product-quick-view-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    font-size: 0.68rem;
    padding: 6px 10px;
    bottom: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-quick-view-btn { transition: none; }
}

/* ─── Quick view modal ─── */
.quick-view-overlay {
  z-index: 220;
}
.quick-view-modal {
  background: var(--bg-card, #fff);
  border-radius: var(--radius-lg, 16px);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.quick-view-body { padding: 0; }
.quick-view-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.quick-view-media {
  background: var(--bg, #f5f3ef);
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 280px;
}
.quick-view-media img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.quick-view-info {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-view-info h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0;
  padding-right: 28px;
}
.quick-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.quick-view-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.quick-view-price strong {
  font-size: 1.45rem;
  color: var(--green, #1a472a);
}
.quick-view-price s {
  color: var(--text-light, #9a9088);
  font-size: 0.95rem;
}
.quick-view-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.quick-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.quick-view-actions .btn { flex: 1 1 auto; min-height: 44px; }
.quick-view-details {
  align-self: flex-start;
  border: none;
  background: none;
  color: var(--green, #1a472a);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quick-view-details:hover { opacity: 0.85; }
@media (max-width: 640px) {
  .quick-view-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .quick-view-modal {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .quick-view-layout { grid-template-columns: 1fr; }
  .quick-view-media {
    min-height: 200px;
    max-height: 42vh;
    padding: 16px;
  }
  .quick-view-info { padding: 16px 16px 20px; }
}

/* Sticky buy bar — wishlist */
.preview-ui-sticky-fav {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border, #e8ddd4);
  background: var(--bg-card, #fff);
  color: #9a9088;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.preview-ui-sticky-fav.active { color: #c0392b; }

.gift-done-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gift-done-code-row code {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #5b4fe8;
}

/* ===== UI Enhancements (skeleton, cart groups, checkout steps, timeline, extras) ===== */
@keyframes pm-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skel {
  background: linear-gradient(90deg, #eceef2 0%, #f5f6f8 40%, #eceef2 80%);
  background-size: 800px 100%;
  animation: pm-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.skel-banner,
.hero-skel-banner {
  min-height: 160px;
  height: 100%;
  width: 100%;
  border-radius: var(--radius);
}
.skel-chip {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 12px;
}
.skel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  pointer-events: none;
}
.skel-card-img { height: 140px; border-radius: 0; }
.skel-card-body { padding: 12px; }
.skel-line { height: 10px; margin-bottom: 8px; }
.skel-line.short { width: 55%; }
.skel-line.price { width: 40%; height: 14px; }
.skel-btn { height: 36px; border-radius: 8px; margin-top: 6px; }
.products-grid.is-loading { align-items: stretch; }
.category-slider-track.is-loading {
  display: flex;
  gap: 12px;
  overflow: hidden;
  padding: 4px 0;
}

/* Vendor-grouped cart */
.cart-vendor-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.cart-vendor-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(90deg, var(--purple-light), #fff);
  border-bottom: 1px solid var(--border);
}
.cart-vendor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cart-vendor-head h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.cart-vendor-head p {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.cart-vendor-body { padding: 0 12px; }
.cart-vendor-body .cart-item:last-child { border-bottom: none; }
.cart-vendor-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fafafa;
  border-top: 1px dashed var(--border);
  color: var(--ink);
}
.cart-gift-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 0.78rem;
  color: #9a3412;
  line-height: 1.4;
}

/* Empty states */
.pm-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.pm-empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--purple-light);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}
.pm-empty-state h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--ink);
}
.pm-empty-state p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.pm-empty-state .btn { min-width: 140px; }
.cart-empty.pm-empty-state { padding: 36px 16px; }
.products-grid .pm-empty-state { grid-column: 1 / -1; }

/* Delivery ETA on cards */
.delivery-tag.eta-badge,
.eta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Checkout stepper */
.checkout-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin: 0 0 18px;
  position: relative;
  padding: 0 4px;
}
.checkout-stepper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: var(--border);
  z-index: 0;
}
.checkout-stepper-progress {
  position: absolute;
  top: 16px;
  left: 12%;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), #f97316);
  z-index: 1;
  transition: width 0.3s ease;
}
.checkout-step-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  cursor: default;
}
.checkout-step-btn.is-clickable { cursor: pointer; }
.checkout-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.checkout-step-btn .checkout-step-label {
  font-size: 0.7rem;
  font-weight: 700;
}
.checkout-step-btn.is-done .checkout-step-dot,
.checkout-step-btn.is-active .checkout-step-dot {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}
.checkout-step-btn.is-active .checkout-step-label { color: var(--purple-dark); }
.checkout-step-btn.is-done:not(.is-active) .checkout-step-dot {
  background: var(--purple-light);
  color: var(--purple-dark);
  border-color: var(--purple);
}
.checkout-step-panel[hidden] { display: none !important; }
.checkout-step-nav {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.checkout-step-nav .btn { flex: 1; min-width: 120px; }

/* Order vertical timeline */
.order-timeline { margin: 16px 0; }
.order-timeline > h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ink);
}
.order-timeline-vertical {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  position: relative;
}
.order-timeline-vertical::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--border);
}
.order-timeline-item {
  position: relative;
  padding: 0 0 18px 36px;
}
.order-timeline-item:last-child { padding-bottom: 0; }
.order-timeline-dot {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--border);
  z-index: 1;
}
.order-timeline-item.is-done .order-timeline-dot {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-light);
}
.order-timeline-item.is-done .order-timeline-dot::after {
  content: '?';
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  height: 100%;
}
.order-timeline-item.is-current .order-timeline-dot {
  border-color: #f97316;
  background: #f97316;
  box-shadow: 0 0 0 3px #ffedd5;
}
.order-timeline-item.is-current .order-timeline-dot::after {
  content: '';
}
.order-timeline-item h4,
.order-timeline-item .order-timeline-title {
  margin: 0 0 2px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}
.order-timeline-item.is-done .order-timeline-title,
.order-timeline-item.is-current .order-timeline-title {
  color: var(--ink);
}
.order-timeline-item p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.order-timeline-steps { display: none; }
.order-timeline-events {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.order-timeline-events li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.82rem;
}
.order-timeline-events li:last-child { border-bottom: none; }

/* Mobile filter bottom sheet */
.mobile-filters-btn { display: none; }
@media (max-width: 900px) {
  .mobile-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple);
  }
}
@media (max-width: 768px) {
  .category-filter-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 78dvh;
    border-left: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(110%);
  }
  .category-filter-drawer.open { transform: translateY(0); }
  .category-filter-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
  }
  .category-filter-header::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 0 auto 12px;
  }
  .category-filter-header h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
.filters-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 255;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.filters-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.filters-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 256;
  background: var(--bg-card);
  border-radius: 18px 18px 0 0;
  padding: 12px 16px max(24px, env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform 0.3s ease;
  max-height: 78dvh;
  overflow-y: auto;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
}
.filters-bottom-sheet.is-open { transform: translateY(0); }
.filters-sheet-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 999px;
  margin: 0 auto 14px;
}
.filters-bottom-sheet h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.filters-sheet-block {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.filters-sheet-block h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.filters-sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.filters-sheet-actions .btn { flex: 1; }
body.filters-sheet-open { overflow: hidden; }

.account-wishlist-empty.pm-empty-state {
  margin-top: 16px;
  max-width: 420px;
}

/* ─── Amazon-style colour promo cards ─── */
.pm-promo-section {
  margin: 0 0 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.pm-promo-section:not([hidden]):not(.is-collapsed) {
  display: block;
}
.pm-promo-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 22px 40px 16px;
  box-sizing: border-box;
  border-radius: 0 0 12px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 55%, rgba(248,249,250,0.65) 100%),
    linear-gradient(125deg, #4a3fd4 0%, #5b4fe8 28%, #8b5cf6 55%, #c4b5fd 100%);
  overflow: hidden;
}
.pm-promo-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255,255,255,0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(251,191,36,0.22), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.pm-promo-stage > * { position: relative; z-index: 1; }
.pm-promo-viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}
.pm-promo-track {
  display: flex;
  gap: var(--pm-promo-gap, 12px);
  transition: transform 0.45s ease;
  width: max-content;
  will-change: transform;
}
.pm-promo-card {
  flex: 0 0 var(--pm-promo-card-w, 220px);
  width: var(--pm-promo-card-w, 220px);
  max-width: var(--pm-promo-card-w, 220px);
  min-width: 0;
  /* taller cards (~50% then +25%) */
  min-height: 525px;
  max-height: 638px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 17, 17, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #f5e6d3;
  color: #111;
}
.pm-promo-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 12px 10px 10px;
  box-sizing: border-box;
}
.pm-promo-tag {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 2px;
}
.pm-promo-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.pm-promo-hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 125px;
  margin-bottom: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.pm-promo-hero img {
  max-height: 120px;
  max-width: 46%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.12));
}
.pm-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}
.pm-promo-grid--tight { gap: 5px; }
.pm-promo-tile {
  background: #fff;
  border: none;
  border-radius: 2px;
  padding: 8px 5px 6px;
  min-height: 98px;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
}
.pm-promo-tile.is-compact {
  min-height: 80px;
  padding: 5px 3px 4px;
}
.pm-promo-tile:hover { outline: 2px solid rgba(0,0,0,0.18); }
.pm-promo-tile img {
  max-height: 65px;
  max-width: 100%;
  object-fit: contain;
}
.pm-promo-tile.is-compact img { max-height: 50px; }
.pm-promo-tile .cap {
  font-size: 0.58rem;
  color: #565959;
  margin-top: 3px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-promo-tile .price {
  font-size: 0.62rem;
  font-weight: 700;
  color: #0f1111;
}
.pm-promo-cta {
  margin-top: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #2162a1;
  flex-shrink: 0;
}

/* Layout: spotlight — big product + 3 small */
.pm-promo-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.55);
  border: none;
  border-radius: 6px;
  padding: 10px 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  margin-bottom: 8px;
  flex: 1;
  min-height: 200px;
}
.pm-promo-spotlight img {
  max-height: 150px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}
.pm-promo-spotlight-meta { width: 100%; }
.pm-promo-spotlight .cap {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-promo-spotlight .price {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 2px;
}
.pm-promo-row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin-top: auto;
}
.pm-promo-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: auto;
}

/* Layout: collage */
.pm-promo-collage {
  position: relative;
  height: 162px;
  margin: 0 -2px 8px;
  flex-shrink: 0;
}
.pm-promo-collage-item {
  position: absolute;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.pm-promo-collage-item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pm-promo-collage-item.i0 { left: 4%; top: 8%; width: 46%; height: 70%; transform: rotate(-4deg); z-index: 2; }
.pm-promo-collage-item.i1 { right: 6%; top: 0; width: 42%; height: 58%; transform: rotate(5deg); z-index: 1; }
.pm-promo-collage-item.i2 { left: 18%; bottom: 0; width: 38%; height: 48%; transform: rotate(3deg); z-index: 3; }
.pm-promo-collage-item.i3 { right: 10%; bottom: 4%; width: 36%; height: 44%; transform: rotate(-6deg); z-index: 2; }

/* Layout: duo */
.pm-promo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
  min-height: 225px;
  margin-bottom: 8px;
}
.pm-promo-duo-item {
  background: rgba(255,255,255,0.75);
  border: none;
  border-radius: 6px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  min-height: 0;
}
.pm-promo-duo-item img {
  max-height: 138px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 6px;
}
.pm-promo-duo-item .cap {
  font-size: 0.62rem;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-promo-duo-item .price { font-size: 0.7rem; font-weight: 800; }

/* Layout: stack */
.pm-promo-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  margin-top: 4px;
  min-height: 0;
}
.pm-promo-stack-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  flex: 1;
  min-height: 0;
}
.pm-promo-stack-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.pm-promo-stack-meta .cap {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-promo-stack-meta .price {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Lifestyle collage — Amazon-style, no prices */
.pm-promo-card.pm-promo-lifestyle {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.35), transparent 55%),
    #f0e0c8;
}
.pm-promo-card.pm-promo-lifestyle.theme-mint {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.4), transparent 55%),
    #b8e8d0;
}
.pm-promo-card.pm-promo-lifestyle.theme-sky {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.4), transparent 55%),
    #9fd6f0;
}
.pm-promo-card.pm-promo-lifestyle.theme-cyan {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.4), transparent 55%),
    #7dd3e8;
}
.pm-promo-card.pm-promo-lifestyle.theme-lavender {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.4), transparent 55%),
    #ddd6fe;
}
.pm-promo-card.pm-promo-lifestyle .pm-promo-cta { display: none; }
.pm-promo-life-scene {
  position: relative;
  flex: 1;
  min-height: 300px;
  margin: 4px -4px -2px;
}
.pm-promo-life-item {
  position: absolute;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.16));
  transition: transform 0.2s ease;
}
.pm-promo-life-item:hover {
  transform: scale(1.05);
  z-index: 10 !important;
}
.pm-promo-life-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.pm-promo-life-item.p0 { left: 16%; top: 2%; width: 54%; height: 34%; z-index: 3; transform: rotate(-6deg); }
.pm-promo-life-item.p1 { left: 0%; top: 28%; width: 50%; height: 38%; z-index: 2; transform: rotate(4deg); }
.pm-promo-life-item.p2 { right: 0%; top: 16%; width: 48%; height: 54%; z-index: 4; transform: rotate(-2deg); }
.pm-promo-life-item.p3 { left: 10%; bottom: 2%; width: 58%; height: 36%; z-index: 5; transform: rotate(3deg); }

@media (max-width: 900px) {
  .pm-promo-life-scene { min-height: 260px; }
}
@media (max-width: 520px) {
  .pm-promo-life-scene { min-height: 240px; }
}

.pm-promo-card.theme-peach { background: #f5e6d3; }
.pm-promo-card.theme-cyan { background: #7dd3e8; }
.pm-promo-card.theme-orange { background: #ff8c3a; color: #fff; }
.pm-promo-card.theme-orange .pm-promo-cta { color: #fff; }
.pm-promo-card.theme-lavender { background: #ddd6fe; }
.pm-promo-card.theme-mint { background: #a7f3d0; }
.pm-promo-card.theme-pink { background: #fbcfe8; }
.pm-promo-card.theme-yellow { background: #fde68a; }
.pm-promo-card.theme-sky { background: #bae6fd; }
.pm-promo-card.theme-green { background: #6ee7b7; color: #064e3b; }

.pm-promo-card.theme-rating {
  background: linear-gradient(160deg, #fffbeb, #fef3c7);
  border: 2px solid #fbbf24;
}
.pm-promo-rating-score {
  font-size: 1.8rem;
  font-weight: 800;
  color: #92400e;
  line-height: 1;
  margin-top: 4px;
}
.pm-promo-stars {
  color: #f59e0b;
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin: 4px 0 8px;
}
.pm-promo-special-copy {
  font-size: 0.78rem;
  color: #78350f;
  line-height: 1.35;
}
.pm-promo-pill {
  display: inline-block;
  align-self: flex-start;
  margin-top: 10px;
  background: #f59e0b;
  color: #111;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}

.pm-promo-card.theme-pay {
  background: linear-gradient(165deg, #ecfdf5, #dbeafe);
  border: 2px solid #34d399;
}
.pm-promo-pay-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 auto;
}
.pm-promo-pay {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.86rem;
}
.pm-promo-pay .ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.pm-promo-pay .ico.esewa { background: linear-gradient(135deg, #60a917, #4b8a12); }
.pm-promo-pay .ico.cod { background: linear-gradient(135deg, #5b4fe8, #4a3fd4); }
.pm-promo-pay small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: #6b7280;
  margin-top: 1px;
}

.pm-promo-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 56px;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.16);
  font-size: 1.4rem;
  cursor: pointer;
  color: #111;
}
.pm-promo-prev { left: 2px; }
.pm-promo-next { right: 2px; }
.pm-promo-nav:hover { background: #fff; }

.pm-promo-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 10px;
}
.pm-promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #6b7280;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.pm-promo-dot.is-active {
  background: var(--purple, #5b4fe8);
  border-color: var(--purple, #5b4fe8);
}

@media (max-width: 900px) {
  .pm-promo-section { margin: 0 0 14px; }
  .pm-promo-stage { padding: 16px 34px 12px; }
  .pm-promo-card {
    min-height: 488px;
    max-height: 600px;
  }
  .pm-promo-title { font-size: 0.98rem; }
  .pm-promo-hero { height: 110px; }
  .pm-promo-hero img { max-height: 105px; }
  .pm-promo-tile { min-height: 88px; }
  .pm-promo-spotlight { min-height: 175px; }
  .pm-promo-spotlight img { max-height: 125px; }
  .pm-promo-collage { height: 150px; }
  .pm-promo-duo { min-height: 200px; }
}

@media (max-width: 520px) {
  .pm-promo-stage { padding: 14px 28px 12px; }
  .pm-promo-card {
    min-height: 469px;
    max-height: 575px;
  }
  .pm-promo-title { font-size: 0.95rem; }
  .pm-promo-nav {
    width: 30px;
    height: 48px;
    font-size: 1.2rem;
  }
  .pm-promo-prev { left: 0; }
  .pm-promo-next { right: 0; }
  .pm-promo-hero { height: 100px; }
  .pm-promo-tile .cap { font-size: 0.55rem; }
  .pm-promo-collage { height: 138px; }
}

/* ─── Header hamburger + category drawer (replaces hero featured banner) ─── */
.homepage-flow .header-inner--with-menu {
  grid-template-columns: auto auto 1fr auto;
}
.homepage-flow .mobile-menu-btn.is-always-visible {
  display: flex;
}
.homepage-flow .mobile-menu-btn.is-always-visible {
  grid-column: auto;
  grid-row: auto;
}
@media (max-width: 900px) {
  .homepage-flow .header-inner--with-menu {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }
  .homepage-flow .mobile-menu-btn.is-always-visible {
    grid-column: 1;
    grid-row: 1;
  }
}

.category-sidebar.category-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 300px);
  max-width: 300px;
  z-index: 220;
  margin: 0;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 28px rgba(15, 17, 17, 0.18);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  display: flex !important;
  flex-direction: column;
  background: var(--bg-card);
  overflow: hidden;
}
.category-sidebar.category-drawer[hidden] {
  display: flex !important;
  transform: translateX(-105%);
  pointer-events: none;
}
.category-sidebar.category-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.category-sidebar.category-drawer .category-sidebar-header {
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--purple-light);
  flex-shrink: 0;
}
.category-sidebar.category-drawer .sidebar-header-label {
  opacity: 1;
  max-width: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
}
.category-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.category-drawer-close:hover { background: rgba(0,0,0,0.06); }
.category-sidebar.category-drawer .category-sidebar-body {
  max-height: none;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.category-sidebar.category-drawer .hero-category-list .cat-label,
.category-sidebar.category-drawer .hero-category-list .cat-chevron {
  display: inline;
}
.category-sidebar.category-drawer .hero-category-list li button {
  justify-content: flex-start;
  padding: 12px 16px;
  gap: 12px;
  width: 100%;
}
.category-drawer-pages {
  border-top: 1px solid var(--line);
  padding: 12px 8px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.category-drawer-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.category-drawer-link:hover {
  background: var(--purple-light);
  color: var(--purple);
}

.category-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  z-index: 210;
  border: none;
  padding: 0;
  cursor: pointer;
}
.category-sidebar-overlay.is-visible {
  display: block !important;
}
body.category-drawer-open { overflow: hidden; }

/* Hide legacy browse-categories button if present */
.sidebar-toggle { display: none !important; }

@media (max-width: 900px) {
  .category-sidebar.category-drawer {
    display: flex !important;
    position: fixed;
    width: min(86vw, 300px);
  }
  .category-sidebar-overlay { display: none; }
  .category-sidebar-overlay.is-visible { display: block !important; }
}
