@import url('https://fonts.googleapis.com/css2?family=Allura&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --background: #ffffff;
  --foreground: #24181d;
  --muted: #7c6f75;
  --primary: #59a85d;
  --secondary: #fdf0f4;
  --border: #f1dde5;
  --footer: #24181d;
  --blue: #1d4ed8;
  --blue-hover: #1e40af;
  --destructive: #ef4444;
  --section-alt: #f9f3f6;
  --trust-bg: #fbf4f7;
  --trust-fg: #3f2b33;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  /* Horizontal inset for all `.container` layouts (mobile-first, respects notches). */
  --page-gutter: 22px;
}

@media (min-width: 768px) {
  :root {
    --page-gutter: 24px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { width: 100%; overflow-x: hidden; }
html, body { margin: 0; padding: 0; min-height: 100%; overflow-x: hidden; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: start;
  font-size: 14px;
  line-height: 1.5;
}
body:not(.admin-body) { max-width: 100vw; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

button { font: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right));
}
main { display: block; width: 100%; }

.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reusable button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(.95); }
.btn-outline,
.btn.secondary {
  background: rgba(255, 255, 255, .9);
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-outline:hover,
.btn.secondary:hover { background: #fff; border-color: rgba(36, 24, 29, .2); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-hover); }

/* ---------- Marquee + topbar + header (parity with React) ---------- */
.marquee-shell {
  background: var(--secondary);
  color: #3f2933;
  border-bottom: 1px solid rgba(241, 221, 229, .55);
  overflow: hidden;
  width: 100%;
  /* Align marquee band with page gutters (row still scrolls full width inside). */
  padding-left: max(var(--page-gutter), env(safe-area-inset-left));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right));
}
.marquee-row {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-bar 36s linear infinite;
}
.marquee-span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 30px;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 600;
}
.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
@keyframes marquee-bar { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.topbar-shell {
  background: var(--gray-900);
  color: var(--gray-300);
  font-size: 12px;
  border-bottom: 1px solid var(--gray-800);
  width: 100%;
}
.topbar-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}
.icon-topbar { color: #fbbf24; flex-shrink: 0; }
.topbar-mail-wide { display: none; align-items: center; gap: 8px; color: var(--gray-300); }
.topbar-mail-wide:hover { color: #fbbf24; }
.topbar-mail-narrow { display: flex; align-items: center; gap: 8px; }
.topbar-tail { display: none; align-items: center; gap: 20px; }
.topbar-tail-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-rule { color: var(--gray-700); font-weight: 300; }
@media (min-width: 640px) {
  .topbar-mail-wide { display: inline-flex; }
  .topbar-mail-narrow { display: none; }
}
@media (min-width: 900px) {
  .topbar-tail { display: flex; }
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  min-width: 0;
}
.brand-link {
  display: flex;
  align-items: center;
  line-height: 0;
  color: var(--foreground);
  flex-shrink: 1;
  min-width: 0;
}
.brand-svg {
  height: 44px;
  width: auto;
  max-width: min(210px, 46vw);
  display: block;
}
.header-nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: auto;
}
.header-lang-shell {
  display: none;
  align-items: center;
  gap: 8px;
}
.lang-globe { font-size: 15px; opacity: .72; }
.native-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  background: #fff;
  font: inherit;
  width: auto;
  min-width: 78px;
}
.nav-chip {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(36, 24, 29, .82);
  transition: color .15s ease;
}
.nav-chip:hover { color: var(--primary); }
.nav-chip-active { color: var(--primary); }
.nav-chip-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}
.header-mobile-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.menu-toggle {
  border: 0;
  background: transparent;
  padding: 8px;
  color: var(--foreground);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-menu { vertical-align: middle; }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0 max(var(--page-gutter), env(safe-area-inset-right)) 14px max(var(--page-gutter), env(safe-area-inset-left));
  background: #fff;
}
.mobile-nav-open { display: block; }
.mobile-nav-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(241, 221, 229, .7);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.mobile-nav-link:last-child { border-bottom: 0; }
.mobile-nav-active { color: var(--primary); }

@media (min-width: 900px) {
  .header-layout { height: 88px; }
  .brand-svg { height: 56px; }
  .header-nav { display: flex; }
  .header-lang-shell { display: flex; }
  .header-mobile-tools { display: none; }
}

/* Responsive show/hide utilities (used in view.php) */
.dn-md { display: none; }
.dn-md-flex { display: none; }
.dn-md-block { display: none; }
@media (min-width: 900px) {
  .dn-md { display: revert; }
  .dn-md-flex { display: flex; }
  .dn-md-block { display: block; }
  /* Desktop hides mobile-only controls regardless of any inherited utilities */
  .header-mobile-tools,
  .mobile-nav,
  .mobile-nav.mobile-nav-open { display: none !important; }
}
@media (max-width: 899px) {
  /* Mobile shows the mobile tools and ALL their interactive children, even if
     the markup also tagged them with .dn-md (the markup ships from view.php). */
  .header-mobile-tools { display: flex !important; }
  .header-mobile-tools .lang-globe,
  .header-mobile-tools .lang-globe.dn-md { display: inline-block !important; font-size: 18px; opacity: .82; }
  .header-mobile-tools .lang-select,
  .header-mobile-tools .lang-select.dn-md { display: inline-block !important; width: auto; min-width: 56px; padding: 6px 8px; font-size: 12px; }
  .header-mobile-tools .menu-toggle,
  .header-mobile-tools .menu-toggle.dn-md { display: inline-flex !important; }
  /* Mobile drawer: hidden by default, opened by JS toggle */
  .mobile-nav,
  .mobile-nav.dn-md-block { display: none; }
  .mobile-nav.mobile-nav-open,
  .mobile-nav.dn-md-block.mobile-nav-open { display: block; }
}

/* ---------- Footer ---------- */
.footer-shell {
  background: var(--footer);
  color: #d8cbd1;
  width: 100%;
}
/* Only vertical padding — do not use padding shorthand with 0 sides on .container.footer-inner */
.footer-inner { padding-top: 48px; }
.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
.footer-brand-svg {
  width: 210px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.footer-tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #d8cbd1;
  max-width: 360px;
}
.footer-col-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-list a {
  font-size: 14px;
  color: #d8cbd1;
  transition: color .15s ease;
}
.footer-list a:hover { color: #fff; }
.footer-contact-block { display: grid; gap: 14px; }
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact-row a:hover { color: #fff; }
.icon-footer { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer-bottom-rule {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding: 22px 0 28px;
  text-align: center;
}
.footer-copy { margin: 0; font-size: 12px; color: #d8cbd1; }

/* ---------- Generic page heading (for contact, track-order, 404 etc.) ---------- */
.page {
  width: 100%;
  padding: 40px 0 72px;
  background:
    radial-gradient(circle at 10% -10%, rgba(89, 168, 93, .07), transparent 50%),
    radial-gradient(circle at 110% 0%, rgba(217, 70, 122, .06), transparent 55%),
    var(--gray-50);
  min-height: calc(100vh - 320px);
}
@media (min-width: 768px) { .page { padding: 64px 0 96px; } }
.page-header {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 720px;
}
@media (min-width: 768px) { .page-header { margin-bottom: 40px; } }
.page-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px;
}
.page-title {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--foreground);
  line-height: 1.15;
}
.page-lede {
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 540px;
}
.page-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 12px 40px rgba(36, 24, 29, .07);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.page-card-wide { max-width: 720px; }
.page-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.page-card code {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}
.field {
  display: block;
  margin-bottom: 16px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.field-input,
.field-textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #e5d5dc;
  background: #fff;
  font: inherit;
  color: var(--foreground);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-textarea { min-height: 130px; resize: vertical; }
.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(89, 168, 93, .18);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.alert-success {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: rgba(89, 168, 93, .1);
  border: 1px solid rgba(89, 168, 93, .35);
  border-radius: 12px;
  color: #244e26;
  font-size: 14px;
  font-weight: 600;
}
.alert-info {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-700);
  font-size: 14px;
}

/* ---------- Hero / homepage ---------- */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
  min-height: 480px;
}
.hero {
  min-height: 480px;
  margin: 0;
  padding: 70px 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .58) 44%, rgba(255, 255, 255, .08) 100%),
    url('/assets/home/cheryfashion-hero.jpg') center/cover no-repeat;
}
@media (min-width: 900px) {
  .hero-wrap, .hero { min-height: 560px; }
  .hero { padding: 96px 0; }
}
.hero-content { max-width: 560px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  color: rgba(36, 24, 29, .78);
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.hero h1 {
  margin: 24px 0 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero p {
  max-width: 460px;
  margin: 22px 0 0;
  color: rgba(36, 24, 29, .68);
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.stats-strip { border-bottom: 1px solid var(--border); background: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-value {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}
.stat-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .2em;
}

.home-section {
  padding-top: 56px;
  padding-bottom: 56px;
}
@media (min-width: 768px) {
  .home-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}
.home-section-soft { background: var(--section-alt); }
/* Product grid directly under hero: slightly tighter top rhythm */
.home-newin {
  padding-top: 40px;
}
@media (min-width: 768px) {
  .home-newin { padding-top: 48px; }
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.kicker {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 800;
}
.home-section h2 {
  margin: 8px 0 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.feature-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  transition: .2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 24, 29, .08);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 900;
}
.feature-card h3 { margin: 16px 0 6px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.browse-wrap { margin-top: 40px; text-align: center; }

.trust-box {
  border-radius: 28px;
  background: var(--foreground);
  color: #fff;
  padding: 36px;
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .trust-box {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px;
  }
}
.trust-box h2 { color: #fff; }
.trust-box p { color: rgba(255, 255, 255, .72); line-height: 1.65; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trust-list li { color: rgba(255, 255, 255, .86); }
.trust-list li::before { content: "✓"; color: var(--primary); margin-right: 10px; font-weight: 900; }

/* ---------- Shop page ---------- */
.pd-shop {
  padding-top: 24px;
  padding-bottom: 40px;
}
@media (min-width: 900px) {
  .pd-shop {
    padding-top: 40px;
    padding-bottom: 64px;
  }
}
.shop-title {
  margin: 0 0 24px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--foreground);
}
@media (min-width: 768px) { .shop-title { margin-bottom: 32px; } }

/* Shop + home product grids: same rhythm, max 4 columns on large screens */
.shop-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) {
  .shop-grid,
  .products-grid { gap: 18px 20px; }
}
@media (min-width: 768px) {
  .shop-grid,
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}
@media (min-width: 1024px) {
  .shop-grid,
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 26px;
  }
}

.shop-card,
.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.shop-card:hover,
.product-card:hover { box-shadow: 0 12px 32px rgba(36, 24, 29, .11); }
.shop-card-hit, .product-card > a { color: inherit; display: block; }

.shop-media,
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--secondary);
  overflow: hidden;
}
.shop-img-primary, .shop-img-alt,
.product-media img.primary, .product-media img.secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .26s ease, transform .38s ease;
}
.shop-img-alt,
.product-media img.secondary { opacity: 0; transform: scale(1.06); }
.shop-card:hover .shop-img-primary,
.product-card:hover .product-media img.primary { opacity: 0; transform: scale(1.06); }
.shop-card:hover .shop-img-alt,
.product-card:hover .product-media img.secondary { opacity: 1; transform: scale(1.06); }

.shop-sale-tag,
.badge-sale {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--destructive);
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.shop-body, .card-body {
  padding: 10px 10px 6px;
  display: grid;
  gap: 4px;
}
@media (min-width: 768px) { .shop-body, .card-body { padding: 10px 12px 6px; } }

.shop-name, .card-body > div:first-child {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}
@media (min-width: 768px) { .shop-name, .card-body > div:first-child { font-size: 13px; } }

.shop-prices, .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--foreground);
  margin-top: 2px;
}
.shop-old, .old {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}

.shop-cta-wrap, .card-cta-wrap {
  width: 100%;
  margin-top: auto;
  padding: 0 10px 10px;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .shop-cta-wrap, .card-cta-wrap { padding: 0 12px 12px; }
}

.shop-cta, .card-cta {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  font-family: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, filter .15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-cta:hover, .card-cta:hover { background: var(--blue-hover); }
.shop-zap { width: 13px; height: 13px; flex-shrink: 0; }

/* Home + shop when `.store-grid`: larger cards + outlined Buy CTA */
.store-grid .shop-card,
.store-grid .product-card {
  border-radius: 14px;
}
.store-grid .shop-body,
.store-grid .card-body {
  padding: 12px 14px 8px;
  gap: 6px;
}
@media (min-width: 768px) {
  .store-grid .shop-body,
  .store-grid .card-body { padding: 14px 16px 10px; }
}
.store-grid .shop-name,
.store-grid .card-body > div:first-child {
  font-size: 13px;
  min-height: 34px;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .store-grid .shop-name,
  .store-grid .card-body > div:first-child {
    font-size: 15px;
    font-weight: 700;
    min-height: 42px;
  }
}
.store-grid .shop-prices,
.store-grid .price {
  font-size: 15px;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .store-grid .shop-prices,
  .store-grid .price { font-size: 17px; }
}
.store-grid .shop-old,
.store-grid .old {
  font-size: 11px;
}
@media (min-width: 768px) {
  .store-grid .shop-old,
  .store-grid .old { font-size: 12px; }
}
.store-grid .shop-cta-wrap,
.store-grid .card-cta-wrap {
  padding: 0 14px 14px;
}
@media (min-width: 768px) {
  .store-grid .shop-cta-wrap,
  .store-grid .card-cta-wrap { padding: 0 16px 16px; }
}
.store-grid .shop-cta,
.store-grid .card-cta {
  background: transparent !important;
  color: #111 !important;
  border: 1.5px solid #111 !important;
  min-height: 38px;
  height: auto;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
}
@media (min-width: 768px) {
  .store-grid .shop-cta,
  .store-grid .card-cta {
    min-height: 42px;
    font-size: 13px;
    padding: 0 16px;
  }
}
.store-grid .shop-cta:hover,
.store-grid .card-cta:hover {
  background: rgba(17, 17, 17, .06) !important;
  color: #000 !important;
  border-color: #000 !important;
  filter: none;
}
.store-grid .shop-zap {
  color: currentColor;
}

/* ---------- Product detail ---------- */
.product-page-body { padding-bottom: 100px; }
.pd-section {
  padding-top: 24px;
  padding-bottom: 20px;
}
@media (min-width: 1024px) {
  .pd-section {
    padding-top: 32px;
    padding-bottom: 24px;
  }
}
.pd-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 1024px) {
  .pd-grid { grid-template-columns: 1fr 1fr; gap: 32px 44px; }
}
.pd-main-aspect {
  aspect-ratio: 1 / 1;
  background: var(--secondary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pd-main-aspect img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-empty { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.pd-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-top: 14px;
}
@media (min-width: 640px) { .pd-thumbs { gap: 11px; } }
.pd-thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid rgba(241, 221, 229, .95);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease;
}
@media (min-width: 640px) {
  .pd-thumb { width: 78px; height: 78px; border-radius: 10px; }
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb-active { border-color: var(--primary); }

.pd-info {
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid #f0e3e8;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(36, 24, 29, .06);
}
@media (min-width: 768px) {
  .pd-info {
    gap: 20px;
    padding: 20px;
  }
}
@media (min-width: 1024px) {
  .pd-info {
    gap: 22px;
    padding: 22px;
  }
}
.pd-badge {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #d9467a;
  animation: pd-pulse-soft 3s ease-in-out infinite;
}
@keyframes pd-pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: .76; } }

.pd-title {
  margin: 0;
  font-size: clamp(23px, 4.2vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.pd-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.pd-price { font-size: clamp(26px, 4vw, 32px); font-weight: 800; }
.pd-price-old {
  font-size: clamp(17px, 3vw, 22px);
  color: var(--muted);
  text-decoration: line-through;
}
.pd-discount-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--destructive);
  color: #fff;
}

.pd-trust-strip {
  background: var(--trust-bg);
  color: var(--trust-fg);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.pd-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.pd-block { display: grid; gap: 12px; }
.pd-step-head { display: flex; align-items: center; gap: 10px; }
.pd-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.pd-step-label { font-size: 16px; font-weight: 650; color: var(--foreground); }

.pd-size-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-size-btn {
  min-width: 52px;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s ease;
}
.pd-size-btn:hover { border-color: rgba(89, 168, 93, .65); }
.pd-size-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.pd-size-hint { margin: -4px 0 0; font-size: 13px; color: var(--muted); }

.pd-ready {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 10px;
  border: 1px solid rgba(89, 168, 93, .23);
  background: rgba(89, 168, 93, .06);
  padding: 16px;
}
.pd-ready-icon { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.pd-ready-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--foreground); }
.pd-ready-desc { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.55; }

.pd-payment-card {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.pd-payment-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.pd-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pd-pay-pill {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.pd-pay-visa span {
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.06em;
  color: #1a1f71;
}
.pd-pay-mc { gap: 0; padding: 0 9px; }
.pd-mc-l, .pd-mc-r {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
}
.pd-mc-l { background: #eb001b; margin-right: -8px; }
.pd-mc-r { background: #f79e1b; mix-blend-mode: multiply; }
.pd-pay-amex { border: 0 !important; background: #2e77bb !important; padding: 0 12px !important; }
.pd-pay-amex span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
}
.pd-pay-apple {
  gap: 6px;
  background: #000 !important;
  border-color: #000 !important;
  padding: 0 13px !important;
}
.pd-apple-icon { width: 15px; height: 15px; color: #fff; flex-shrink: 0; display: block; }
.pd-apple-pay { color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.pd-secure-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .015em;
}

.pd-ship-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 10px;
}
.pd-ship-icon { flex-shrink: 0; margin-top: 3px; }
.pd-ship-strong { color: var(--foreground); font-weight: 700; }

.pd-buy-wrap { padding-top: 2px; }
.pd-buy-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(29, 78, 216, .22);
}
.pd-buy-btn:hover { background: var(--blue-hover) !important; border-color: var(--blue-hover) !important; }
.pd-buy-btn:visited { color: #fff; }

/* Main PDP buy button — blue */
.pd-info a.pd-buy-btn,
a#buyNowLink.pd-buy-btn {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
}
.pd-info a.pd-buy-btn:hover,
a#buyNowLink.pd-buy-btn:hover {
  background: var(--blue-hover) !important;
  border-color: var(--blue-hover) !important;
}

.pd-support-section {
  padding-top: 0;
  padding-bottom: 56px;
}
@media (min-width: 768px) {
  .pd-support-section { padding-bottom: 72px; }
}

.pd-features {
  padding-top: 14px;
  border-top: 1px solid rgba(241, 221, 229, .72);
  margin-top: 8px;
}
.pd-features-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
}
.pd-features-ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pd-features-ul li {
  margin: 0;
  font-size: 14px;
  line-height: 1.52;
  color: var(--foreground);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.pd-feature-ic { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

.pd-desc-section {
  background: var(--section-alt);
  padding-top: 36px;
  padding-bottom: 44px;
}
@media (min-width: 768px) {
  .pd-desc-section {
    padding-top: 46px;
    padding-bottom: 52px;
  }
}
.pd-desc-inner {
  max-width: 720px;
  margin: 0 auto;
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.pd-why-section {
  padding-top: 40px;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .pd-why-section {
    padding-top: 48px;
    padding-bottom: 64px;
  }
}
.pd-section-title {
  margin: 0 auto 26px;
  text-align: center;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--foreground);
  max-width: 720px;
}
.pd-why-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .pd-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 24px;
    max-width: 1100px;
  }
}
.pd-why-card {
  text-align: center;
  padding: 24px 20px;
  border-radius: 10px;
  background: var(--secondary);
}
.pd-why-icon { font-size: 30px; line-height: 1; margin-bottom: 10px; display: block; }
.pd-why-h { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--foreground); }
.pd-why-p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

.pd-faq-section {
  padding-top: 0;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .pd-faq-section { padding-bottom: 64px; }
}
.pd-accordion {
  max-width: 672px;
  margin: 26px auto 0;
  border-top: 1px solid var(--border);
}
.pd-acc-item { border-bottom: 1px solid var(--border); }
.pd-acc-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
}
.pd-acc-item summary::-webkit-details-marker { display: none; }
.pd-acc-chev {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(36, 24, 29, .62);
  transition: transform .22s ease;
}
.pd-acc-item[open] .pd-acc-chev { transform: rotate(180deg); }
.pd-acc-body { padding-bottom: 16px; font-size: 14px; line-height: 1.62; color: var(--muted); }

.pd-icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.pd-icon-md { width: 22px; height: 22px; flex-shrink: 0; }

/* Reviews */
.reviews-wrap {
  background: var(--section-alt);
  padding-top: 42px;
  padding-bottom: 62px;
}
@media (min-width: 768px) {
  .reviews-wrap {
    padding-top: 56px;
    padding-bottom: 74px;
  }
}
.reviews-head { text-align: center; margin-bottom: 32px; }
.reviews-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(89, 168, 93, .11);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
}
.reviews-star-ic { width: 14px; height: 14px; fill: currentColor; }
.reviews-title {
  margin: 12px 0 8px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--foreground);
}
.reviews-sub { margin: 0 auto; font-size: 14px; color: var(--muted); max-width: 560px; }
.reviews-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
}
@media (min-width: 1100px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 26px;
  }
}
.review-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 21px 20px;
  box-shadow: 0 1px 2px rgba(36, 24, 29, .06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { display: flex; gap: 3px; }
.review-star { width: 16px; height: 16px; color: #facc15; display: block; }
.review-photo-wrap { border-radius: 8px; overflow: hidden; background: var(--secondary); }
.review-photo {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  background: var(--secondary);
}
.review-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--foreground);
  flex: 1;
}
.review-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(241, 221, 229, .82);
  display: flex;
  align-items: center;
  gap: 9px;
}
.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(89, 168, 93, .12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.review-name { margin: 0; font-size: 14px; font-weight: 650; color: var(--foreground); }

.sticky-spacer { height: 76px; }
@media (min-width: 640px) { .sticky-spacer { height: 90px; } }

.sticky-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  border-top: 1px solid rgba(241, 221, 229, .92);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 30px rgba(36, 24, 29, .06);
}
/* Vertical only — same element as .container; shorthand must not zero horizontal gutters */
.sticky-bar-inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
}
.sticky-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
@media (min-width: 640px) { .sticky-thumb { width: 56px; height: 56px; border-radius: 10px; } }
.sticky-text { flex: 1; min-width: 0; }
.sticky-name {
  margin: 0 0 2px;
  font-size: clamp(11px, 2.9vw, 14px);
  font-weight: 650;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-price {
  margin: 0;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 800;
  color: var(--foreground);
}
.sticky-buy-btn {
  min-height: 44px;
  flex-shrink: 0;
  padding: 0 16px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 1.5px solid #111 !important;
  color: #111 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  gap: 7px !important;
  box-shadow: none !important;
}
.sticky-buy-btn .pd-icon-sm {
  color: currentColor;
}
@media (min-width: 640px) { .sticky-buy-btn { padding: 0 22px !important; } }
.sticky-buy-btn:hover {
  background: rgba(17, 17, 17, .07) !important;
  border-color: #000 !important;
  color: #000 !important;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 40px 0 72px;
  width: 100%;
  background:
    radial-gradient(circle at 0% 0%, rgba(89, 168, 93, .05), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(217, 70, 122, .05), transparent 45%),
    var(--gray-50);
  min-height: calc(100vh - 320px);
}
@media (min-width: 768px) { .legal-page { padding: 64px 0 96px; } }
.legal-container { max-width: 880px; margin: 0 auto; }
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}
.legal-nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: #fff;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.legal-nav-link:hover {
  color: var(--primary);
  border-color: rgba(89, 168, 93, .4);
}
.legal-nav-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.legal-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 10px 35px rgba(36, 24, 29, .07);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.legal-title {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--foreground);
}
.legal-meta { margin: 0.35rem 0 1.75rem; font-size: 13px; color: var(--muted); }
.legal-prose { font-size: 14px; line-height: 1.72; color: #5c4f55; }
@media (min-width: 640px) { .legal-prose { font-size: 15px; } }
.legal-prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
}
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose h3 {
  margin: 1.35rem 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--foreground);
}
.legal-prose p { margin: 0 0 1rem; }
.legal-prose ul { margin: 0 0 1rem; padding-left: 1.35rem; list-style: disc; }
.legal-prose li { margin-bottom: 0.45rem; }
.legal-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.legal-footer-note {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.legal-footer-note a { color: var(--primary); text-decoration: underline; }

/* ---------- Admin dashboard ---------- */
body.admin-body {
  background: var(--gray-100);
  min-height: 100vh;
  color: var(--gray-900);
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .admin-shell {
    grid-template-columns: 240px 1fr;
  }
}
.admin-sidebar {
  background: var(--gray-900);
  color: #cbd5e1;
  padding: 22px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1024px) {
  .admin-sidebar { position: sticky; top: 0; height: 100vh; }
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.admin-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #80cb73);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
.admin-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.admin-brand-text strong { color: #fff; font-weight: 800; font-size: 14px; }
.admin-brand-text span { color: var(--gray-400); font-size: 12px; }

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  background: transparent;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.admin-nav-link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.admin-nav-active {
  background: rgba(89, 168, 93, .15);
  color: #fff;
}
.admin-nav-active::before {
  content: "";
  width: 3px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
  margin-left: -12px;
  margin-right: 9px;
}
.admin-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-sidebar-foot {
  margin-top: auto;
  font-size: 11px;
  color: var(--gray-400);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-sidebar-foot a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-main {
  padding: 22px clamp(16px, 3vw, 36px) 64px;
  width: 100%;
  min-width: 0;
}
.admin-topbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 22px;
}
.admin-headline { display: flex; flex-direction: column; min-width: 0; }
.admin-headline h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.02em;
}
.admin-headline-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--gray-500);
}
.admin-topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 40px;
  border-radius: 8px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.admin-btn-primary:hover { filter: brightness(.95); }
.admin-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.admin-btn-outline:hover {
  border-color: var(--gray-300);
  color: var(--gray-900);
}

.admin-flash {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: rgba(89, 168, 93, .12);
  border: 1px solid rgba(89, 168, 93, .4);
  border-radius: 10px;
  color: #244e26;
  font-size: 14px;
  font-weight: 600;
}
.admin-flash-error {
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .35);
  color: #7a1d1d;
}

.admin-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}
@media (min-width: 700px) {
  .admin-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
.admin-stat-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-stat-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.admin-stat-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}
.admin-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(89, 168, 93, .12);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.admin-stat-icon svg { width: 16px; height: 16px; }
.admin-stat-value {
  margin: 2px 0 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.03em;
}
.admin-stat-value-sm { font-size: 14px; font-weight: 700; line-height: 1.4; }
.admin-stat-hint { margin: 4px 0 0; font-size: 12px; color: var(--gray-400); }
.admin-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.admin-dot-on { background: var(--primary); }
.admin-dot-off { background: var(--gray-300); }

.admin-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}
.admin-card-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

.admin-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .admin-form-grid { grid-template-columns: 1fr 1fr; } }
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-field-full { grid-column: 1 / -1; }
.admin-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-700);
}
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--gray-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(89, 168, 93, .18);
}
.admin-field textarea { min-height: 110px; resize: vertical; }
.admin-field-hint { font-size: 12px; color: var(--gray-500); margin: 0; }
.admin-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.admin-login {
  min-height: calc(100vh - 0px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.admin-login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .07);
  text-align: left;
}
.admin-login-card h1 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
}
.admin-login-card p { margin: 0 0 18px; font-size: 13px; color: var(--gray-500); }

/* Sortable / drag */
.admin-order-hint {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0 0 12px;
}
.admin-sortable {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.admin-sort-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  cursor: default;
}
.admin-sort-item:hover {
  border-color: var(--gray-300);
  background: #fff;
}
.sortable-drag {
  opacity: 1;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
}
.sortable-ghost {
  opacity: 0.45;
  background: #eef2ff !important;
}
.admin-drag-handle {
  touch-action: none;
  cursor: grab;
  user-select: none;
  padding: 4px 6px;
  color: var(--gray-400);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -4px;
}
.admin-drag-handle:active { cursor: grabbing; }
.admin-sort-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gray-100);
  object-fit: cover;
  flex-shrink: 0;
}
.admin-sort-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-sort-body strong {
  font-size: 14px;
  color: var(--gray-900);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-sort-meta {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
}
.admin-sort-slug {
  font-size: 11px;
  color: var(--gray-400);
  flex-shrink: 0;
  display: none;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
@media (min-width: 768px) {
  .admin-sort-slug {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.admin-order-ta {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Product editor row */
.admin-product-row {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.admin-product-row[open] { border-color: rgba(89, 168, 93, .35); }
.admin-product-row > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-900);
}
.admin-product-row > summary::-webkit-details-marker { display: none; }
.admin-product-row .admin-prod-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}
.admin-product-row > summary::after {
  content: "▾";
  color: var(--gray-400);
  font-size: 12px;
}
.admin-product-row[open] > summary::after { content: "▴"; }
.admin-product-row .admin-prod-form {
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
