/* ================================================================
   AE Motiwala. Editorial trade catalog styles.
   Warm paper palette, serif display, industrial rust accent,
   hairline rules, restrained motion. No gradients-on-gradients.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #edefe6;
  --bg-rgb: 237, 239, 230;
  --bg-alt: #e1e4d5;
  --bg-card: #f5f6ee;
  --bg-card-rgb: 245, 246, 238;
  --bg-card-elevated: #ffffff;
  --ink: #171a17;
  --ink-2: #2b312a;
  --ink-muted: #5e6759;
  --rule: #c9ccbc;
  --rule-strong: #9aa189;
  --rust: #2f5541;
  --rust-hover: #1f3d2d;
  --rust-soft: #c6d3c1;
  --rust-glow: rgba(47, 85, 65, 0.22);
  --dark: #171d19;
  --dark-2: #0d1210;
  --dark-3: #1e2620;
  --dark-ink: #d3d6c8;
  --dark-muted: #858c7a;
  --dark-rule: #2a3128;
  --forest: #2f5541;
  --brass: #a17a2c;
  --success-bg: #d8e2d0;
  --success: #2c5236;
  --danger-bg: #eed3c6;
  --danger: #7a3013;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(23, 26, 23, 0.05), 0 1px 2px rgba(23, 26, 23, 0.08);
  --shadow-md: 0 8px 24px -4px rgba(23, 26, 23, 0.1), 0 3px 8px -2px rgba(23, 26, 23, 0.06);
  --shadow-lg: 0 20px 40px -8px rgba(23, 26, 23, 0.14), 0 6px 16px -4px rgba(23, 26, 23, 0.08);
  --shadow-glow: 0 12px 30px -4px rgba(47, 85, 65, 0.22);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--rust); color: #fff; }

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-hover); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

/* Utility: inline SVG icons */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 26px; height: 26px; }

/* Utility: micro caps label */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Top announcement bar ---------- */
.top-bar {
  background: var(--dark);
  color: var(--dark-ink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 8px 0;
  border-bottom: 1px solid var(--dark-rule);
}
.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 24px;
  text-align: center;
}
.top-bar-sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--rust);
  display: inline-block;
  opacity: 0.85;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(var(--bg-rgb), 0.82);
  color: var(--ink);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease;
}
.brand:hover {
  transform: translateY(-1px);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--rust);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 800;
  color: var(--rust);
  font-size: 16px;
  letter-spacing: -0.02em;
  background: var(--rust-soft);
  box-shadow: 0 2px 8px var(--rust-glow);
}
/* Real logo present: drop the circular monogram chrome and let the logo
   show at its natural aspect. Height stays visually consistent with the
   header (48px), width scales from the image, no clipping. */
.brand-mark.brand-mark--has-logo {
  width: auto;
  height: 48px;
  min-width: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
}
.brand-mark.brand-mark--has-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}
@media (max-width: 780px) {
  .site-header {
    padding: 14px 20px;
  }
  .brand-mark.brand-mark--has-logo {
    height: 42px;
    min-width: 42px;
  }
}
.brand h1 {
  font-family: var(--sans);
  font-size: 21px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.brand .tagline {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}
.brand-lines { display: flex; flex-direction: column; }

.site-header nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.site-header nav a {
  color: var(--ink-2);
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 20px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--rust);
  background: var(--rust-soft);
  text-decoration: none;
  transform: translateY(-1px);
}
.site-header nav a.admin-cta {
  background: var(--rust);
  color: #ffffff;
  border: 1px solid var(--rust);
  padding: 8px 18px;
  margin-left: 6px;
  border-radius: 20px;
  box-shadow: 0 2px 10px var(--rust-glow);
}
.site-header nav a.admin-cta:hover {
  background: var(--rust-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--rust-glow);
  transform: translateY(-1px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--rust);
  color: #fff;
  border: 1px solid var(--rust);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 4px 14px var(--rust-glow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--rust-hover);
  border-color: var(--rust-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--rust-glow);
}
.btn:active { transform: translateY(0); }
.btn:disabled { background: #b8b0a0; border-color: #b8b0a0; cursor: not-allowed; box-shadow: none; }
.btn.secondary { background: var(--ink); border-color: var(--ink); color: #ffffff; box-shadow: none; }
.btn.secondary:hover { background: var(--dark-3); border-color: var(--dark-3); color: #ffffff; box-shadow: var(--shadow-md); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #991b1b; border-color: #991b1b; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--bg-card);
  border-color: var(--rust);
  color: var(--rust);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.btn.ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn.ghost-light:hover {
  background: #ffffff;
  color: var(--dark) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}
.btn.sm { padding: 8px 16px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg {
  padding: 15px 30px;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  font-weight: 700;
  border-radius: 12px;
  min-height: 48px;
}

/* ---------- Layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 32px 40px; }

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

/* ---------- Homepage hero ---------- */
.hero-home {
  background: var(--bg);
  color: var(--ink);
  padding: 84px 40px 96px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(24, 102, 65, 0.08) 1.2px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.7;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}
.hero-home::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--rust-soft) 0%, transparent 70%);
  opacity: 0.45;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (min-width: 980px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
  }
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background: var(--rust-soft);
  border: 1px solid rgba(24, 102, 65, 0.2);
  border-radius: 30px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px var(--rust-glow);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--rust);
  opacity: 0.4;
  animation: pulseBeacon 2s infinite ease-out;
}
@keyframes pulseBeacon {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-muted);
  padding: 0;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 28px;
  border: none;
  background: transparent;
}
.hero-eyebrow::before {
  content: "";
  width: 32px; height: 1.5px;
  background: var(--rust);
  display: inline-block;
}
.hero-home h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 900px;
}
.hero-home h2 .accent {
  color: var(--rust);
  font-style: italic;
  font-weight: 600;
}
.hero-home p {
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0;
  line-height: 1.65;
}
.hero-home .actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-wa-btn {
  background: #25D366 !important;
  color: #ffffff !important;
  border-color: #25D366 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28) !important;
}
.hero-wa-btn:hover {
  background: #1eb857 !important;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45) !important;
  transform: translateY(-2px);
}
.hero-trust {
  display: flex;
  gap: 0;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  max-width: 780px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--rule);
}
.trust-chip:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.trust-chip .icon {
  color: var(--rust);
  width: 17px;
  height: 17px;
}

/* Hero showcase visual on desktop */
.hero-showcase {
  display: none;
}
@media (min-width: 980px) {
  .hero-showcase {
    display: block;
    position: relative;
  }
}
.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg), 0 0 35px var(--rust-glow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 45px var(--rust-glow);
}
.showcase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rust), #34d399, var(--brass));
}
.showcase-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.showcase-card-title {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.showcase-card-badge {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--rust);
  background: var(--rust-soft);
  padding: 4px 10px;
  border-radius: 20px;
}
.showcase-brand-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.showcase-brand-item {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--ink);
}
.showcase-brand-item:hover {
  background: var(--bg-card);
  border-color: var(--rust);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.showcase-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #111;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
html[data-theme="dark"] .showcase-brand-icon {
  background: #ffffff;
  color: #111;
}
.showcase-brand-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.2;
}
.showcase-brand-tag {
  font-size: 11px;
  color: var(--ink-muted);
}
.showcase-card-footer {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.showcase-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--rust);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.showcase-cta-link:hover {
  gap: 12px;
  text-decoration: none;
}

/* Generic hero (unused fallback) */
.hero {
  background: var(--dark);
  color: #ffffff;
  padding: 70px 40px 60px;
  text-align: center;
}
.hero h2 { font-family: var(--serif); font-size: 38px; margin: 0 0 12px; font-weight: 500; letter-spacing: -0.02em; }
.hero p { font-size: 16px; color: var(--dark-ink); max-width: 720px; margin: 0 auto; }

/* Catalog / admin page header */
.page-header {
  background: var(--dark);
  color: #ffffff;
  padding: 70px 0 62px;
  border-bottom: 1px solid var(--dark-rule);
  position: relative;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
}
.page-header .container { padding-top: 0; padding-bottom: 0; position: relative; }
.page-header .eyebrow { color: var(--dark-muted); margin-bottom: 14px; display: block; }
.page-header .eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--dark-muted);
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 2px;
}
.page-header h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.08;
  margin: 0 0 12px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.page-header p {
  margin: 0;
  color: var(--dark-ink);
  max-width: 640px;
  font-size: 15.5px;
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 44px 0;
}
.stats-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  padding: 28px 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rust);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust), transparent);
}
.stat-num {
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  color: var(--rust);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* ---------- Sections ---------- */
/* Vertical padding only. Using longhand so this rule doesn't clobber
   horizontal padding from .container when both classes co-exist on the
   same element (e.g. <section class="container section">). */
.section { padding-top: 84px; padding-bottom: 50px; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 0;
}
.section-alt .section { padding-top: 80px; padding-bottom: 80px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  gap: 20px;
}
.section-header > div { max-width: 620px; }
.section-header h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  display: block;
}
.section-eyebrow.light { color: var(--rust-soft); }
.section-sub {
  color: var(--ink-muted);
  font-size: 15.5px;
  margin: 12px 0 0;
  max-width: 560px;
  line-height: 1.6;
}
.section-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.section-link:hover {
  color: var(--rust);
  border-color: var(--rust);
  text-decoration: none;
  transform: translateX(2px);
}
.section-header.center {
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 48px;
}
.section-header.center > div { max-width: 620px; margin: 0 auto; }
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }
.section-header.center::after {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--rust);
  margin: 22px auto 0;
  border-radius: 2px;
}

/* ---------- Value props ---------- */
.value-props {
  background: var(--bg);
  padding: 70px 0;
}
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-prop {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.value-prop:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rust);
}
.value-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rust-soft);
  color: var(--rust);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}
.value-prop h4 {
  font-family: var(--sans);
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.value-prop p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Products ---------- */
.product-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.product-count {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.product-image {
  width: 100%;
  height: 220px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  mix-blend-mode: multiply;
}
.product-image.empty {
  color: var(--rule-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
}
.product-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-brand {
  font-family: var(--sans);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  letter-spacing: 0.22em;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.product-meta {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.product-name { overflow-wrap: anywhere; }
.product-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.product-price-hidden {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.product-modal-price .product-price-hidden {
  font-size: 20px;
}
.stock-badge {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
}
.stock-badge.in { background: var(--success-bg); color: var(--success); border-color: rgba(48,90,55,0.15); }
.stock-badge.out { background: var(--danger-bg); color: var(--danger); border-color: rgba(122,36,19,0.15); }

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card-link:hover { text-decoration: none; }

/* ---------- Filters ---------- */
.filters {
  background: var(--bg-card);
  padding: 26px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  position: sticky;
  top: 96px;
}
.filters h3 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin: 0 0 20px;
  font-weight: 600;
}
.filter-group { margin-bottom: 18px; }
.filter-group label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
  transition: border-color 0.15s;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--ink);
}
.filter-group .price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.filter-group.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-group.checkbox label {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: normal;
  text-transform: none;
}
.filter-group.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--rust);
}
.filters .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

/* ---------- States ---------- */
.empty-state, .loading {
  text-align: center;
  padding: 100px 20px;
  color: var(--ink-muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
}
.empty-state h3 {
  font-family: var(--serif);
  font-style: normal;
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
}
.empty-state p { margin: 4px 0; font-style: normal; font-family: var(--sans); font-size: 14px; }
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--rule);
  border-top-color: var(--rust);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--dark-2);
  color: #ffffff;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  animation: toast-in 0.2s ease-out;
  max-width: 360px;
  border-left: 3px solid var(--rust);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Admin ---------- */
.admin-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px;
}
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.admin-bar h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

table.products-table {
  width: 100%;
  background: var(--bg-card);
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.products-table th, .products-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  vertical-align: middle;
  font-family: var(--sans);
}
.products-table th {
  background: var(--bg-alt);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-weight: 600;
}
.products-table td strong { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.products-table tr:last-child td { border-bottom: none; }
.products-table .thumb {
  width: 54px;
  height: 54px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  object-fit: contain;
  border: 1px solid var(--rule);
  mix-blend-mode: multiply;
}
.row-actions { display: flex; gap: 6px; }

/* ---------- Login ---------- */
.login-card {
  max-width: 440px;
  margin: 90px auto;
  background: var(--bg-card);
  padding: 44px 44px 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
}
.login-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--rust);
}
.login-card h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.login-card p { color: var(--ink-muted); margin: 0 0 28px; font-size: 14px; }
.login-card label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.login-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14.5px;
  margin-bottom: 18px;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
}
.login-card input:focus { outline: none; border-color: var(--ink); }
.login-card .btn { width: 100%; margin-top: 6px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
  animation: fade-in 0.15s ease-out;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 36px;
  border: 1px solid var(--rule);
}
.modal h3 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.form-grid input[type="text"],
.form-grid input[type="number"],
.form-grid input[type="file"],
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus { outline: none; border-color: var(--ink); }
.form-grid textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* ---------- Progress overlay ---------- */
.progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}
.progress-card {
  background: var(--bg-card);
  padding: 34px 40px;
  border-radius: var(--radius);
  text-align: center;
  min-width: 340px;
  border: 1px solid var(--rule);
}
.progress-card strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}
.progress-card .bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 18px;
}
.progress-card .bar > div {
  height: 100%;
  background: var(--rust);
  width: 0;
  transition: width 0.2s;
}

/* ---------- Categories / Brands ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.category-tile {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: inherit;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  box-shadow: var(--shadow-sm);
}
.category-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--rust);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.category-tile:hover {
  border-color: var(--rust);
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 20px var(--rust-glow);
}
.category-tile:hover::before { opacity: 1; }
.category-tile-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.category-tile-count {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--rust);
  background: var(--rust-soft);
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 14px;
  letter-spacing: 0.03em;
  font-weight: 700;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-grid h3 { font-family: var(--serif); font-size: 36px; margin-top: 0; margin-bottom: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.about-grid p { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.checklist li {
  padding: 12px 0 12px 40px;
  position: relative;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 1px solid var(--rule);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 24px;
  height: 1px;
  background: var(--rust);
}
.about-card {
  background: var(--dark);
  color: #ffffff;
  padding: 40px 34px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0; left: 34px; right: 34px;
  height: 3px;
  background: var(--rust);
}
.about-card h4 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.about-card p { color: #d3d6c8; margin: 0 0 26px; font-size: 14.5px; line-height: 1.65; }

/* ---------- How to Order (steps) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.step {
  padding: 40px 32px 12px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 46px;
  font-weight: 400;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 20px;
  display: inline-block;
  letter-spacing: -0.02em;
}
.step h4 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- Testimonials (pull-quotes) ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  padding: 4px 0 0;
  position: relative;
  border-top: 2px solid var(--ink);
}
.testimonial-mark {
  font-family: var(--serif);
  font-size: 60px;
  color: var(--rust);
  line-height: 0.8;
  font-weight: 500;
  margin: 20px 0 6px;
  display: block;
  font-style: italic;
}
.testimonial p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 26px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.005em;
}
.testimonial-author {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.testimonial-author strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.verified-tag {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--rust);
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
}

/* ---------- Final CTA band ---------- */
.cta-band-final {
  background: var(--dark);
  color: #ffffff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--dark-rule);
}
.cta-band-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 75%);
  pointer-events: none;
}
.cta-final-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-final-text .section-eyebrow.light { margin-bottom: 16px; }
.cta-final-text h3 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-weight: 500;
  max-width: 460px;
}
.cta-final-text p {
  color: #d3d6c8;
  font-size: 15.5px;
  margin: 0;
  max-width: 460px;
  line-height: 1.65;
}
.cta-final-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.cta-action {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 0;
}
.cta-action > div { min-width: 0; flex: 1; }
.cta-action-value {
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #ffffff !important;
}
.cta-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  color: #ffffff !important;
  transform: translateY(-2px);
}
.cta-action.whatsapp:hover { border-color: rgba(37, 211, 102, 0.7); }
.cta-action-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rust-soft);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.cta-action.whatsapp .cta-action-icon { color: #7fd995; }
.cta-action-label {
  font-family: var(--sans);
  font-size: 10.5px;
  color: #9ba393;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
}
.cta-action-value {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-2);
  color: var(--dark-ink);
  padding: 60px 0 26px;
  font-family: var(--sans);
  font-size: 13.5px;
  margin-top: 0;
}
.site-footer:not(.footer-rich) .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--dark-muted);
}
.footer-rich { padding: 70px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-rule);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.footer-tagline {
  color: var(--dark-muted);
  font-size: 11px;
  margin: 8px 0 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer-about {
  color: var(--dark-muted);
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 340px;
}
.footer-rich h5 {
  color: #ffffff;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin: 0 0 22px;
  font-weight: 600;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: #c4c9ba;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-links a:hover { color: #ffffff; text-decoration: none; }
.footer-contact {
  color: #c4c9ba;
  font-size: 13.5px;
  line-height: 1.9;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.footer-contact a { color: #c4c9ba; }
.footer-contact a:hover { color: #ffffff; text-decoration: none; }
.footer-contact strong { color: #ffffff; font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.footer-contact > div + div { margin-top: 14px; }
.footer-contact > div { line-height: 1.5; }
.footer-contact a { display: inline-block; }
.footer-bottom {
  color: var(--dark-muted);
  font-size: 12px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.05em;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 60;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: waPulse 3.5s infinite ease-in-out;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0.15); }
}
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 36px 0 8px;
  padding: 16px;
  border-top: 1px solid var(--rule);
}
.pagination-info {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ---------- Admin toolbar ---------- */
.admin-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-card);
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.admin-toolbar input[type="text"],
.admin-toolbar select {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
}
.admin-toolbar input:focus, .admin-toolbar select:focus { outline: none; border-color: var(--ink); }
.admin-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: right;
  padding: 0 6px;
  letter-spacing: 0.05em;
}

.field-hint {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 6px;
  font-style: italic;
}

/* ---------- Hamburger nav toggle ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 6px auto;
  transition: all 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Filter sidebar mobile head ---------- */
.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.filters-head h3 { margin: 0; }
.filters-close {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 22px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}
.filters-close:hover { background: var(--bg-alt); color: var(--ink); }

.filters-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  cursor: pointer;
}
.filters-toggle .toggle-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.filters-active-badge {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  padding: 0 7px;
  line-height: 22px;
  text-align: center;
  letter-spacing: 0;
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 960px) {
  .value-props-grid { grid-template-columns: repeat(2, 1fr); }
  .value-prop { padding: 22px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .value-prop:nth-child(even) { border-right: none; }
  .value-prop:nth-child(n+3) { border-bottom: none; }
  .value-prop + .value-prop { padding-left: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: none; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-final-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 780px) {
  .site-header {
    padding: 14px 22px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .brand { gap: 10px; min-width: 0; flex: 1; }
  .brand-lines { min-width: 0; overflow: hidden; }
  .brand h1 {
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand .tagline { display: none; }
  .brand-mark { width: 36px; height: 36px; font-size: 13px; flex-shrink: 0; }
  .nav-toggle { display: block; color: var(--ink); z-index: 70; }
  .nav-toggle.open { color: #ffffff !important; }
  .site-header nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(300px, 84vw);
    background: var(--dark);
    padding: 88px 24px 24px;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 60;
    overflow-y: auto;
  }
  .site-header nav.open { transform: translateX(0); }
  .site-header nav a {
    display: block;
    margin: 0;
    padding: 16px 14px;
    font-size: 15px;
    color: var(--dark-ink);
    border-bottom: 1px solid var(--dark-rule);
    border-radius: 0;
    letter-spacing: 0.04em;
  }
  .site-header nav a:hover { background: var(--dark-3); color: #ffffff; }
  .site-header nav a.admin-cta {
    background: var(--rust);
    color: #ffffff !important;
    border: 1px solid var(--rust);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 16px 14px 8px;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-header nav a.admin-cta:hover { background: var(--rust-hover); color: #ffffff !important; }
  body.nav-open { overflow: hidden; }

  .container { padding: 0 16px; }
  .admin-shell { padding: 24px 16px; }
  .stats-grid { padding: 0 16px; }

  .top-bar { padding: 8px 0; font-size: 11px; }
  .top-bar-inner { gap: 14px; }
  .top-bar-sep { width: 3px; height: 3px; }

  .hero { padding: 46px 16px 44px; }
  .hero h2 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .page-header { padding: 36px 0 32px; }

  .hero-home { padding: 32px 16px 28px; }
  .hero-home h2 { font-size: clamp(24px, 6.6vw, 32px); letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 12px; }
  .hero-home p { font-size: 14px; line-height: 1.5; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 14px; letter-spacing: 0.22em; }
  .hero-eyebrow::before { width: 18px; }
  .hero-home .actions { flex-direction: column; align-items: stretch; margin-top: 18px; gap: 10px; }
  .hero-home .actions .btn { width: 100%; min-height: 48px; }
  .btn-lg { padding: 13px 20px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
  .hero-trust {
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    flex-direction: column;
  }
  .trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: none !important;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
  }
  .trust-chip .icon {
    width: 17px;
    height: 17px;
    color: var(--rust);
    flex-shrink: 0;
  }

  /* Sections on mobile with proper breathing room */
  .section { padding-top: 40px; padding-bottom: 24px; }
  .section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .section-alt .section { padding-top: 40px; padding-bottom: 40px; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  .section-header.center { margin-bottom: 24px; padding-bottom: 0; align-items: center; }
  .section-header h3 { font-size: 22px; line-height: 1.15; }
  .section-eyebrow { font-size: 10px; letter-spacing: 0.24em; margin-bottom: 4px; }
  .section-sub { font-size: 13.5px; line-height: 1.5; }
  .page-header h2 { font-size: 26px; line-height: 1.15; }
  .page-header p { font-size: 14px; line-height: 1.5; }
  .page-header .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.22em; }

  /* Mobile stats: clean 2x2 proper card boxes */
  .stats {
    padding: 24px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 16px !important;
  }
  .stat {
    background: var(--bg-card) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    padding: 20px 14px !important;
    box-shadow: var(--shadow-sm) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .stat::before { display: none !important; }
  .stat-num { font-size: clamp(26px, 7vw, 32px) !important; font-weight: 800 !important; color: var(--rust) !important; line-height: 1.1 !important; }
  .stat-label { font-size: 11px !important; margin-top: 6px !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; font-weight: 700 !important; color: var(--ink-muted) !important; }

  /* Mobile value props: clean, well-proportioned card boxes */
  .value-props {
    padding: 40px 0;
    background: var(--bg);
  }
  .value-props-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .value-prop, .value-prop + .value-prop {
    background: var(--bg-card) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 20px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .value-num {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
    background: var(--rust-soft) !important;
    color: var(--rust) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .value-prop h4 { font-size: 16px !important; font-weight: 700 !important; color: var(--ink) !important; margin: 0 0 6px !important; line-height: 1.25 !important; }
  .value-prop p { font-size: 13.5px !important; line-height: 1.55 !important; color: var(--ink-muted) !important; margin: 0 !important; }

  /* Mobile categories: clean 2-column card boxes */
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .category-tile {
    background: var(--bg-card) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    padding: 16px 14px !important;
    box-shadow: var(--shadow-sm) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 94px !important;
    color: inherit !important;
    text-decoration: none !important;
  }
  .category-tile::before { display: none !important; }
  .category-tile-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--ink) !important;
  }
  .category-tile-count {
    margin-top: 8px !important;
    padding: 3px 8px !important;
    background: var(--rust-soft) !important;
    color: var(--rust) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    display: inline-block !important;
    align-self: flex-start !important;
  }

  /* Mobile brands: clean, unified 2-column card boxes */
  .brand-grid,
  .brand-tile-grid,
  .brand-tile-grid-inhouse,
  .brand-tile-grid-listing {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }
  .brand-tile {
    padding: 0 !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    background: var(--bg-card) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
  }
  .brand-tile-logo {
    aspect-ratio: 16 / 10 !important;
    padding: 16px 14px 6px !important;
    background: transparent !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .brand-tile-foot {
    padding: 4px 10px 14px !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .brand-tile-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    text-align: center !important;
  }

  /* Client logos on mobile: clean 2-column card boxes */
  .client-logo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .client-logo-tile {
    background: var(--bg-card) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    height: 84px !important;
    padding: 14px 18px !important;
    box-shadow: var(--shadow-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .client-logo-tile img {
    max-height: 48px !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .product-image { height: 140px; }
  .product-body { padding: 12px 14px; }
  .product-name { font-size: 14px; }
  .product-meta { font-size: 11.5px; }
  .product-price { font-size: 16px; }

  /* About section on mobile: proper featured card box */
  .about-grid { gap: 24px; }
  .about-grid h3 { font-size: 24px; margin-bottom: 14px; }
  .about-grid p { font-size: 14.5px; }
  .about-card {
    padding: 24px 20px !important;
    border-radius: 14px !important;
    background: var(--bg-card) !important;
    color: var(--ink) !important;
    border: 1px solid var(--rule) !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .about-card::before { display: none !important; }
  .about-card h4 { font-size: 19px !important; color: var(--ink) !important; margin: 0 0 10px !important; font-weight: 600 !important; }
  .about-card p { font-size: 14px !important; color: var(--ink-2) !important; margin: 0 0 18px !important; line-height: 1.6 !important; }
  .about-card .btn {
    width: 100% !important;
    background: var(--rust) !important;
    color: #ffffff !important;
    border-color: var(--rust) !important;
    box-shadow: 0 4px 14px var(--rust-glow) !important;
  }
  .checklist li { padding: 10px 0 10px 30px; font-size: 14px; }

  .step { padding: 22px 18px 16px; }
  .step-num { font-size: 32px; margin-bottom: 8px; }
  .step h4 { font-size: 17px; }
  .step p { font-size: 13.5px; }

  .testimonial p { font-size: 16px; }

  /* Final CTA on mobile: proper contact action cards */
  .cta-band-final { padding: 40px 0 44px; }
  .cta-final-inner { gap: 22px; }
  .cta-final-text h3 { font-size: 22px; line-height: 1.15; }
  .cta-final-text p { font-size: 14px; }
  .cta-final-actions { gap: 10px; }
  .cta-action {
    padding: 14px 16px;
    gap: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-sm);
  }
  .cta-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
  }
  .cta-action-label { font-size: 10px; }
  .cta-action-value { font-size: 14.5px; font-family: var(--sans); font-weight: 600; }

  .footer-rich { padding: 32px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 22px; }
  .footer-brand { font-size: 20px; }
  .footer-tagline { font-size: 10px; margin: 4px 0 10px; }
  .footer-about { font-size: 12.5px; }
  .footer-rich h5 { font-size: 10px; margin: 0 0 12px; }
  .footer-links a { font-size: 13px; }
  .footer-links li { margin-bottom: 6px; }
  .footer-contact { font-size: 12.5px; }
  .footer-contact strong { font-size: 10px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; font-size: 11px; }

  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .modal { padding: 26px 22px; max-height: 92vh; max-height: 92dvh; }
  .modal-actions { flex-direction: column-reverse; gap: 10px; }
  .modal-actions .btn { width: 100%; }
  .login-card { margin: 40px 20px; padding: 32px 26px; }

  .progress-card { min-width: 0; width: calc(100% - 40px); max-width: 380px; padding: 26px; }

  .toast-container { top: 16px; right: 20px; left: 20px; }
  .toast { max-width: none; }

  /* Catalog page: filters as overlay */
  .filters-toggle { display: flex; }
  .layout { grid-template-columns: 1fr; gap: 0; }
  .filters {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: var(--bg);
    padding: 24px 24px 28px;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    max-width: 100%;
    border: none;
  }
  .filters.open { transform: translateX(0); }
  .filters-close { display: inline-flex; }
  body.filters-open { overflow: hidden; }

  .admin-toolbar { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .admin-count { text-align: left; }
  .admin-bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .admin-bar > div { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-bar .btn { width: 100%; }

  /* Admin table → cards on mobile */
  .products-table thead { display: none; }
  .products-table,
  .products-table tbody,
  .products-table tr,
  .products-table td { display: block; width: 100%; }
  .products-table {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }
  .products-table tr {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 6px 14px;
    border-bottom: 1px solid var(--rule);
  }
  .products-table td {
    padding: 4px 0;
    border-bottom: none;
    font-size: 13px;
  }
  .products-table td[data-label="Image"] {
    grid-row: 1 / 4;
    grid-column: 1;
    align-self: start;
    padding: 0;
  }
  .products-table td[data-label="Image"] .thumb { width: 64px; height: 64px; }
  .products-table td[data-label="Name"] { grid-column: 2; }
  .products-table td[data-label="Brand"],
  .products-table td[data-label="Category"],
  .products-table td[data-label="Price"] {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--ink-muted);
  }
  .products-table td[data-label="Brand"]::before,
  .products-table td[data-label="Category"]::before,
  .products-table td[data-label="Price"]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-muted);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  .products-table td[data-label="Stock"] {
    grid-column: 1 / -1;
    padding-top: 8px;
  }
  .products-table td[data-label="Actions"] {
    grid-column: 1 / -1;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid var(--rule);
  }
  .row-actions { justify-content: flex-end; }
  .row-actions .btn { flex: 1; }

  .pagination { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .pagination-info { flex: 1 100%; text-align: center; order: -1; font-size: 12px; }

  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .whatsapp-float svg { width: 22px; height: 22px; }
}

/* ---------- Responsive: small mobile ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px !important; }
  .admin-shell { padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-home { padding: 30px 16px 26px !important; }
  .hero-home h2 { font-size: clamp(23px, 6.8vw, 28px); letter-spacing: -0.01em; line-height: 1.15; }
  .hero-home p { font-size: 13.5px; }
  .hero-eyebrow { font-size: 9.5px; margin-bottom: 12px; }
  .page-header { padding: 28px 0 24px; }
  .page-header h2 { font-size: 23px; }
  .page-header p { font-size: 13px; }
  .section { padding-top: 36px !important; padding-bottom: 20px !important; }
  .section-alt {
    background: var(--bg-alt) !important;
    border-top: 1px solid var(--rule) !important;
    border-bottom: 1px solid var(--rule) !important;
  }
  .section-alt .section { padding-top: 36px !important; padding-bottom: 36px !important; }
  .section-header h3 { font-size: 20px; }
  .section-header { margin-bottom: 16px; }

  /* Proper stat card boxes on small mobile */
  .stats {
    padding: 22px 0 !important;
    background: var(--bg-alt) !important;
    border-top: 1px solid var(--rule) !important;
    border-bottom: 1px solid var(--rule) !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 16px !important;
  }
  .stat {
    background: var(--bg-card) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    padding: 16px 10px !important;
    box-shadow: var(--shadow-sm) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .stat::before { display: none !important; }
  .stat-num { font-size: 24px !important; font-weight: 800 !important; color: var(--rust) !important; }
  .stat-label { font-size: 10px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.08em !important; color: var(--ink-muted) !important; margin-top: 4px !important; }

  /* Proper value prop card boxes */
  .value-props {
    padding: 36px 0 !important;
  }
  .value-props-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .value-prop, .value-prop + .value-prop {
    background: var(--bg-card) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 18px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .value-num {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }
  .value-prop h4 { font-size: 15px !important; }
  .value-prop p { font-size: 13px !important; }

  /* Proper brand card boxes */
  .brand-grid,
  .brand-tile-grid,
  .brand-tile-grid-inhouse,
  .brand-tile-grid-listing {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .brand-tile {
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    background: var(--bg-card) !important;
    overflow: hidden !important;
  }
  .brand-tile-logo {
    aspect-ratio: 16 / 10 !important;
    padding: 14px 10px 4px !important;
    background: transparent !important;
    border-bottom: none !important;
  }
  .brand-tile-foot {
    padding: 2px 8px 12px !important;
    background: transparent !important;
  }
  .brand-tile-name { font-size: 12.5px !important; font-weight: 700 !important; }

  /* Proper category card boxes */
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .category-tile {
    background: var(--bg-card) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    padding: 14px 12px !important;
    box-shadow: var(--shadow-sm) !important;
    min-height: 88px !important;
  }
  .category-tile-name { font-size: 13.5px !important; font-weight: 700 !important; }
  .category-tile-count { font-size: 10.5px !important; }

  /* Proper client logo card boxes */
  .client-logo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .client-logo-tile {
    background: var(--bg-card) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    height: 76px !important;
    padding: 12px !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .client-logo-tile img { max-height: 42px !important; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-image { height: 120px; }
  .product-body { padding: 10px 12px; }
  .product-name { font-size: 13px; line-height: 1.25; }
  .product-brand { font-size: 9.5px; }
  .product-meta { font-size: 11px; margin-bottom: 8px; }
  .product-price { font-size: 14px; }
  .product-footer { flex-wrap: wrap; gap: 6px; padding-top: 10px; }
  .stock-badge { font-size: 9.5px; padding: 3px 7px; }
  .btn.sm { font-size: 11px; padding: 6px 10px; }
  .btn-lg { padding: 12px 18px; font-size: 13px; letter-spacing: 0.04em; }
  .admin-bar > div { grid-template-columns: 1fr !important; }
  .top-bar { font-size: 10px; padding: 6px 0; }
  .top-bar-inner { gap: 6px; padding: 0 14px; }
  .top-bar-sep { display: none; }
  .about-card {
    padding: 20px 16px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--ink) !important;
  }
  .about-card h4 { font-size: 17px !important; color: var(--ink) !important; }
  .about-card p { font-size: 13.5px !important; color: var(--ink-2) !important; }
  .about-card .btn {
    width: 100% !important;
    background: var(--rust) !important;
    color: #ffffff !important;
    border-color: var(--rust) !important;
  }
  .cta-band-final { padding: 36px 0 40px !important; }
  .cta-final-text h3 { font-size: 20px; }
  .cta-final-text p { font-size: 13px; }
  .cta-action { padding: 12px 14px; gap: 12px; border-radius: 12px; }
  .cta-action-icon { width: 36px; height: 36px; border-radius: 10px; }
  .cta-action-label { font-size: 9.5px; }
  .cta-action-value { font-size: 13.5px; }
  .login-card { margin: 24px 16px; padding: 24px 20px; }
  .login-card h2 { font-size: 22px; }
  .modal { padding: 20px 18px; }
  .about-grid h3 { font-size: 21px; }
  .checklist li { padding: 8px 0 8px 24px; font-size: 13px; }
}

/* ---------- Very small mobile (320px iPhone SE etc.) ---------- */
@media (max-width: 360px) {
  .container { padding: 20px 16px; }
  .admin-shell { padding: 20px 16px; }
  .site-header { padding: 12px 16px; }
  .brand-mark { width: 32px; height: 32px; font-size: 12px; }
  .brand h1 { font-size: 15.5px; }
  .hero-home { padding: 36px 16px 42px; }
  .hero-home h2 { font-size: 21px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 180px; }
  .stats-grid { padding: 0 16px; }
  .login-card { margin: 24px 16px; padding: 24px 20px; }
}

/* ---------- Touch + a11y ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn.sm, .nav-toggle, .cta-action, .filters-toggle, .filters-close,
  .site-header nav a, .footer-links a {
    -webkit-tap-highlight-color: rgba(166, 61, 30, 0.18);
  }
  .filter-group input,
  .filter-group select,
  .admin-toolbar input,
  .admin-toolbar select,
  .login-card input,
  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    font-size: 16px;
  }
}

/* ================================================================
   New components added during revamp:
   filter chips, wishlist, product modal, admin tabs,
   brand-logo / client-logo grids, footer social row, services page.
   ================================================================ */

/* ---------- Nav wishlist button ---------- */
.nav-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  margin-left: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-wishlist:hover { background: var(--rust); color: #ffffff; border-color: var(--rust); }
.wishlist-count {
  background: var(--rust);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  line-height: 20px;
  text-align: center;
}
.nav-wishlist:hover .wishlist-count { background: var(--bg); color: var(--ink); }

/* ---------- Filter chip list (products page sidebar) ---------- */
.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 12.5px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s;
  font-weight: 500;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.active {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}
.filter-empty {
  color: var(--ink-muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
}

/* ---------- Wishlist button on product cards ---------- */
.product-card { position: relative; }
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: blur(2px);
}
.wishlist-btn:hover {
  color: var(--rust);
  border-color: var(--rust);
  background: #fff;
}
.wishlist-btn.active {
  color: var(--rust);
  border-color: var(--rust);
  background: #fff;
}

/* ---------- Product modal ---------- */
.product-modal-backdrop {
  align-items: flex-start;
  padding: 20px;
  padding-top: 5vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.product-modal {
  max-width: 900px;
  padding: 0;
  overflow: hidden;
  position: relative;
  max-height: none;
  margin: 0 auto 5vh;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--bg-alt); }
.product-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 400px;
}
.product-modal-image {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-right: 1px solid var(--rule);
}
.product-modal-image img { max-height: 460px; object-fit: contain; mix-blend-mode: multiply; }
.product-modal-image.empty {
  color: var(--rule-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}
.product-modal-body {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
}
.product-modal-name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  margin: 6px 0 12px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.product-modal-meta {
  display: flex;
  gap: 12px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 13px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.product-modal-meta span {
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.product-modal-price {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.product-modal-price > span:first-child {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 500;
}
.product-modal-desc {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 26px;
  flex: 1;
}
.product-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-modal-actions .btn { flex: 1; min-width: 140px; }

/* ---------- Side-by-side product modal variant ---------- */
/* Used on products.html: image on the left, name + description +
   brand/category/SKU/stock/price attribute list + actions on the right.
   The overall modal is a horizontal rectangle. */
.product-modal-side {
  max-width: 960px;
  padding: 0;
  overflow: hidden;
}
.product-modal-side .product-modal-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  min-height: 480px;
}
.product-modal-side .product-modal-image {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-right: 1px solid var(--rule);
  min-height: 100%;
}
.product-modal-side .product-modal-image img {
  max-height: 420px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-modal-side .product-modal-body {
  padding: 32px 34px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 90vh;
}
.product-modal-side .product-modal-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.product-modal-side .product-modal-desc {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 22px;
  flex: none;
}
.product-modal-attrs {
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.product-modal-attr {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  gap: 16px;
}
.product-modal-attr dt {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}
.product-modal-attr dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-modal-price-value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

body.modal-open, body.drawer-open { overflow: hidden; }

/* ---------- Wishlist drawer ---------- */
.wishlist-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 84;
  transition: opacity 0.22s ease;
}
.wishlist-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(440px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--rule);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  z-index: 85;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 30px rgba(0,0,0,0.12);
}
.wishlist-drawer.open { transform: translateX(0); }
.wishlist-close-btn {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
  flex-shrink: 0;
}
.wishlist-close-btn:hover {
  background: var(--rust);
  color: #ffffff;
  border-color: var(--rust);
  transform: rotate(90deg);
}
.wishlist-close-btn:active { transform: rotate(90deg) scale(0.94); }
.wishlist-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.wishlist-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--rule);
}
.wishlist-drawer-head h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
#wishlist-body { flex: 1; overflow-y: auto; padding: 6px 24px 20px; }
.wishlist-empty {
  padding: 60px 20px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-muted);
}
.wishlist-item {
  display: grid;
  grid-template-columns: 64px 1fr 34px;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 4px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}
.wishlist-item:hover { background: var(--bg-alt); }
.wishlist-item-image {
  width: 64px;
  height: 64px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wishlist-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.wishlist-item-body { min-width: 0; }
.wishlist-item-name {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  margin: 2px 0 2px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.wishlist-item-price {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}
.wishlist-item-remove {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.wishlist-item-remove:hover { color: var(--danger); background: var(--danger-bg); }
.wishlist-drawer-actions {
  border-top: 1px solid var(--rule);
  padding: 18px 24px 22px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Home: brand logo grid ---------- */
.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.brand-logo-tile {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
  color: inherit;
  flex-direction: column;
  gap: 8px;
}
.brand-logo-tile:hover { background: var(--bg-alt); text-decoration: none; }
.brand-logo-tile img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(0.15);
  mix-blend-mode: multiply;
}
.brand-logo-tile-text .brand-logo-fallback {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-logo-fallback {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-logo-count {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Home: client logo grid ---------- */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.client-logo-tile {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.client-logo-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rust);
}
.client-logo-tile img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s, opacity 0.2s;
}
.client-logo-tile:hover img { filter: grayscale(0); opacity: 1; }
.client-logo-fallback {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.005em;
}

/* ---------- Footer social row ---------- */
.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--dark-rule);
  color: var(--dark-ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.footer-social:hover {
  border-color: var(--rust-soft);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  text-decoration: none;
}
.footer-social svg { flex-shrink: 0; }

/* ---------- Admin tabs ---------- */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 26px;
  overflow-x: auto;
}
.admin-tab {
  background: transparent;
  border: none;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active {
  color: var(--rust);
  border-bottom-color: var(--rust);
}
.admin-panel-hint {
  color: var(--ink-muted);
  font-size: 13.5px;
  margin: -10px 0 22px;
  max-width: 640px;
}
.admin-bar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-count-inline {
  color: var(--ink-muted);
  font-size: 13.5px;
  align-self: center;
}

/* ---------- Admin logo cards (brands + clients) ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.logo-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.logo-card-image {
  height: 140px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-bottom: 1px solid var(--rule);
}
.logo-card-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-card-image.empty {
  color: var(--rule-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
}
.logo-card-body { padding: 16px 18px; }
.logo-card-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.logo-card-order {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}

/* ---------- Catalog generator panel ---------- */
.catalog-generator {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 34px;
  max-width: 640px;
}
.catalog-generator p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.catalog-generator-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Catalog landing (public catalog.html) ---------- */
.catalog-landing {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 20px 0 40px;
}
.catalog-landing-copy h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.catalog-landing-hint {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 14px;
  font-style: italic;
  font-family: var(--serif);
}
.catalog-landing-cta {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 96px;
}
.catalog-summary {
  padding: 0 0 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.catalog-summary-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.catalog-summary-detail {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.catalog-summary-hint {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--rust);
  margin-top: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Services page ---------- */
.services-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  position: relative;
  margin-bottom: 48px;
  overflow: hidden;
}
.services-overview-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rust), #34d399, var(--brass));
}
.services-overview-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background: var(--rust-soft);
  border: 1px solid rgba(24, 102, 65, 0.2);
  border-radius: 30px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.services-copy-text,
.services-body p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 920px;
}
.services-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.services-section-header {
  margin-bottom: 24px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px var(--rust-glow);
  border-color: var(--rust);
}
.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--rust-soft);
  color: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.25s ease;
}
.service-card:hover .service-icon-box {
  transform: scale(1.08) rotate(-4deg);
}
.service-icon-box svg {
  width: 24px;
  height: 24px;
}
.service-card h4 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.service-card p {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.services-cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1a221d 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}
.services-cta-banner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25), transparent 70%);
  pointer-events: none;
}
.services-cta-content h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  color: #ffffff;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.services-cta-content p {
  font-family: var(--sans);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}
.services-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ---------- Responsive additions ---------- */
@media (max-width: 960px) {
  .product-modal-grid { grid-template-columns: 1fr; }
  .product-modal-image { border-right: none; border-bottom: 1px solid var(--rule); min-height: 260px; padding: 20px; }
  .product-modal-image img { max-height: 260px; }
  .product-modal-body { padding: 26px 26px 28px; }
  .product-modal-name { font-size: 24px; }
  .catalog-landing { grid-template-columns: 1fr; gap: 30px; }
  .catalog-landing-cta { position: static; }
}
@media (max-width: 780px) {
  .nav-wishlist {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    padding: 14px 14px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--dark-rule);
    color: var(--dark-ink);
    background: transparent;
  }
  .nav-wishlist:hover { background: var(--dark-3); color: var(--rust-soft); }
  .site-header nav.open .nav-wishlist .wishlist-count { background: var(--rust); color: #fff; }
  .admin-tabs { margin-bottom: 20px; }
  .admin-tab { padding: 12px 16px; font-size: 12px; }
  .catalog-generator { padding: 24px 22px; }
  .services-body p { font-size: 18px; }
  .brand-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-logo-tile { height: 110px; padding: 18px; }
  .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo-tile { height: 110px; padding: 20px; }
  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .filter-list { max-height: 200px; }
  .wishlist-btn { top: 8px; right: 8px; width: 32px; height: 32px; }
}
@media (max-width: 780px) {
  /* Collapse the two-column side modal to stacked on small screens */
  .product-modal-side .product-modal-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .product-modal-side .product-modal-image {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    min-height: 260px;
    padding: 22px;
  }
  .product-modal-side .product-modal-image img { max-height: 220px; }
  .product-modal-side .product-modal-body {
    padding: 22px 22px 24px;
    max-height: none;
    overflow-y: visible;
  }
  .product-modal-side .product-modal-name { font-size: 20px; }
  .product-modal-attr { grid-template-columns: 96px 1fr; padding: 10px 0; gap: 12px; }
}
@media (max-width: 480px) {
  .brand-logo-grid { grid-template-columns: 1fr 1fr; }
  .client-logo-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: 1fr; }
  .product-modal-body { padding: 20px 18px 22px; }
  .product-modal-name { font-size: 20px; margin: 4px 0 10px; }
  .product-modal-price > span:first-child { font-size: 22px; }
  .product-modal-meta { font-size: 12px; gap: 8px; margin-bottom: 14px; }
  .product-modal-meta span { padding: 3px 10px; }
  .product-modal-desc { font-size: 13.5px; margin-bottom: 18px; }
  .product-modal-image { min-height: 200px; padding: 16px; }
  .product-modal-image img { max-height: 200px; }
  .modal-close { width: 34px; height: 34px; top: 10px; right: 10px; }
  .services-body p { font-size: 17px; }
  /* Side modal at very small screens */
  .product-modal-side .product-modal-image { min-height: 220px; padding: 18px; }
  .product-modal-side .product-modal-image img { max-height: 180px; }
  .product-modal-side .product-modal-body { padding: 20px 18px 22px; }
  .product-modal-side .product-modal-name { font-size: 18px; }
  .product-modal-side .product-modal-desc { font-size: 13.5px; margin-bottom: 18px; }
  .product-modal-attr { grid-template-columns: 84px 1fr; gap: 10px; padding: 9px 0; }
  .product-modal-attr dt { font-size: 9.5px; letter-spacing: 0.16em; }
  .product-modal-attr dd { font-size: 13px; }
  .product-modal-price-value { font-size: 18px; }
}

/* ================================================================
   Dark theme + animations
   ================================================================ */

/* Theme transition on all color-carrying properties */
html {
  transition: background-color 0.35s ease, color 0.35s ease;
}
body,
.site-header,
.top-bar,
.hero-home,
.page-header,
.stats,
.section-alt,
.value-props,
.product-card,
.filters,
.filter-chip,
.brand-tile,
.brand-logo-tile,
.brand-logo-grid,
.client-logo-tile,
.client-logo-grid,
.category-tile,
.testimonial,
.about-card,
.cta-band-final,
.site-footer,
.footer-rich,
.footer-social,
.modal,
.modal-close,
.wishlist-drawer,
.wishlist-item,
.wishlist-drawer-actions,
.login-card,
.progress-card,
.admin-tab,
.admin-toolbar,
.products-table,
.products-table th,
.products-table tr,
.logo-card,
.logo-card-image,
.catalog-generator,
.catalog-landing-cta,
.toast,
.stock-badge,
.trust-chip,
.pagination,
.hero-eyebrow,
.section-eyebrow,
.section-link,
.footer-links a,
.footer-contact a,
.theme-toggle,
.nav-toggle,
.nav-wishlist,
.wishlist-count,
input,
select,
textarea,
button {
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease;
}

/* -------- Dark palette ---------- */
html[data-theme="dark"] {
  --bg: #12140f;
  --bg-rgb: 18, 20, 15;
  --bg-alt: #191b16;
  --bg-card: #1e211b;
  --bg-card-rgb: 30, 33, 27;
  --bg-card-elevated: #262a22;
  --ink: #e7ead9;
  --ink-2: #cfd3bf;
  --ink-muted: #8f9482;
  --rule: #2a2e26;
  --rule-strong: #414638;
  --rust: #7fb598;
  --rust-hover: #a8d1bd;
  --rust-soft: #233429;
  --rust-glow: rgba(127, 181, 152, 0.25);
  --dark: #0a0c08;
  --dark-2: #05070a;
  --dark-3: #14170f;
  --dark-ink: #a9ae9d;
  --dark-muted: #5e6455;
  --dark-rule: #23271d;
  --forest: #6da48d;
  --brass: #c69a45;
  --success-bg: #26382a;
  --success: #9dc4a3;
  --danger-bg: #3a2118;
  --danger: #dda28e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 12px 30px -4px rgba(127, 181, 152, 0.2);
}

/* High-contrast button & action visibility in dark mode */
html[data-theme="dark"] .btn:not(.ghost):not(.ghost-light):not(.hero-wa-btn) {
  background: #3b8259;
  border-color: #3b8259;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 89, 0.35);
}
html[data-theme="dark"] .btn:not(.ghost):not(.ghost-light):not(.hero-wa-btn):hover {
  background: #4a9e6e;
  border-color: #4a9e6e;
  color: #ffffff;
}
html[data-theme="dark"] .btn.ghost {
  color: var(--ink);
  border-color: var(--rule-strong);
}
html[data-theme="dark"] .btn.ghost:hover {
  background: var(--bg-card);
  border-color: var(--rust);
  color: var(--rust);
}
html[data-theme="dark"] .btn.ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35);
}
html[data-theme="dark"] .btn.ghost-light:hover {
  background: #ffffff;
  color: #12140f !important;
  border-color: #ffffff;
}
html[data-theme="dark"] .btn.secondary {
  background: var(--bg-card);
  border-color: var(--rule-strong);
  color: var(--ink);
}
html[data-theme="dark"] .btn.secondary:hover {
  background: var(--bg-alt);
  border-color: var(--rust);
  color: var(--rust);
}
html[data-theme="dark"] .filter-pill,
html[data-theme="dark"] .quick-cat-pill {
  background: var(--bg-card);
  border-color: var(--rule-strong);
  color: var(--ink);
}
html[data-theme="dark"] .filter-pill.active,
html[data-theme="dark"] .quick-cat-pill.active {
  background: #3b8259;
  border-color: #3b8259;
  color: #ffffff;
}
html[data-theme="dark"] .sidebar-apply-cta {
  background: #3b8259;
  color: #ffffff;
}
html[data-theme="dark"] .sidebar-chip.active {
  background: #3b8259;
  border-color: #3b8259;
  color: #ffffff;
}
html[data-theme="dark"] .site-header nav a.admin-cta {
  background: #3b8259 !important;
  border-color: #3b8259 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .filters-active-badge {
  background: #3b8259 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .about-card .btn {
  background: #3b8259 !important;
  border-color: #3b8259 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .theme-toggle {
  color: var(--ink) !important;
  border-color: var(--rule-strong) !important;
  background: var(--bg-card) !important;
}
html[data-theme="dark"] .nav-toggle {
  color: var(--ink) !important;
}
html[data-theme="dark"] .services-overview-card {
  background: var(--bg-card);
  border-color: var(--rule-strong);
}
html[data-theme="dark"] .service-card {
  background: var(--bg-card);
  border-color: var(--rule);
}
html[data-theme="dark"] .showcase-card {
  background: var(--bg-card);
  border-color: var(--rule-strong);
}

/* Dark-mode product image dimming: multiply blend looks bad on dark bg */
html[data-theme="dark"] .product-image img,
html[data-theme="dark"] .product-modal-image img,
html[data-theme="dark"] .products-table .thumb,
html[data-theme="dark"] .wishlist-item-image img,
html[data-theme="dark"] .brand-logo-tile img,
html[data-theme="dark"] .client-logo-tile img,
html[data-theme="dark"] .logo-card-image img {
  mix-blend-mode: normal;
  background: rgba(255,255,255,0.92);
  border-radius: 4px;
}
html[data-theme="dark"] .product-image img,
html[data-theme="dark"] .product-modal-image img {
  padding: 12px;
}
html[data-theme="dark"] .client-logo-tile img { filter: grayscale(1) brightness(1.4); }
html[data-theme="dark"] .client-logo-tile:hover img { filter: grayscale(0) brightness(1); }

/* Wishlist button on dark cards */
html[data-theme="dark"] .wishlist-btn {
  background: rgba(30,33,27,0.9);
  border-color: var(--rule);
  color: var(--ink-muted);
}

/* Slightly restyle brand-mark border for dark */
html[data-theme="dark"] .brand-mark { background: var(--bg-card); }

/* Hero dot-pattern needs a brighter dot color on dark bg */
html[data-theme="dark"] .hero-home::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
}

/* Toast on dark */
html[data-theme="dark"] .toast { background: var(--bg-card); color: var(--ink); border-left-color: var(--rust); }
html[data-theme="dark"] .toast.error { background: var(--bg-card); color: var(--danger); }
html[data-theme="dark"] .toast.success { border-left-color: var(--rust); }

/* -------- Theme toggle button ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  cursor: pointer;
  position: relative;
  margin-left: 8px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.2s, background 0.2s, color 0.2s;
}
.theme-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: rotate(15deg);
}
.theme-toggle:active { transform: rotate(15deg) scale(0.94); }
.theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
html:not([data-theme="dark"]) .theme-toggle .theme-moon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}
html:not([data-theme="dark"]) .theme-toggle .theme-sun {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}
html[data-theme="dark"] .theme-toggle .theme-sun {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}
html[data-theme="dark"] .theme-toggle .theme-moon {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}

/* -------- Global animation keyframes ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-soft {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slide-in-right {
  from { transform: translateX(24px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes shimmer-underline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* -------- Hero + page-header initial fade-up on load ---------- */
.hero-content > * {
  opacity: 0;
  animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.16s; }
.hero-content > *:nth-child(3) { animation-delay: 0.27s; }
.hero-content > *:nth-child(4) { animation-delay: 0.38s; }

.hero-showcase {
  opacity: 0;
  animation: scale-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.showcase-brand-item {
  opacity: 0;
  animation: fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.showcase-brand-item:nth-child(1) { animation-delay: 0.30s; }
.showcase-brand-item:nth-child(2) { animation-delay: 0.37s; }
.showcase-brand-item:nth-child(3) { animation-delay: 0.44s; }
.showcase-brand-item:nth-child(4) { animation-delay: 0.51s; }

/* Hero eyebrow: draw the underline stripe from left to right */
@keyframes hero-eyebrow-underline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero-eyebrow::before {
  transform-origin: left center;
  animation: hero-eyebrow-underline 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) 0.15s both;
}

/* Hero italic "Genuine" accent word: flash + settle */
@keyframes hero-accent-flash {
  0%   { opacity: 0; transform: translateY(6px) rotate(-0.5deg); color: var(--rust); }
  40%  { opacity: 1; transform: translateY(0) rotate(-0.5deg); color: var(--rust-hover); }
  70%  { color: var(--rust-hover); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); color: var(--rust); }
}
.hero-home h2 .accent {
  display: inline-block;
  animation: hero-accent-flash 0.85s cubic-bezier(0.2, 0.6, 0.2, 1) 0.32s both;
}

/* Hero rotating accent word ("Genuine" -> "Trusted" -> "Leading" -> ...) */
.hero-home h2 .accent.hero-word-rotator {
  display: inline-grid;
  vertical-align: baseline;
  position: relative;
  padding: 0.06em 0.1em 0.14em;
  margin: -0.06em -0.1em -0.14em;
  overflow: hidden;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-word-item {
  grid-area: 1 / 1;
  display: inline-block;
  white-space: nowrap;
  will-change: transform, opacity;
}
.hero-word-item.is-entering {
  opacity: 0;
  transform: translateY(72%);
}
.hero-word-item.is-active {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.36s ease;
}
.hero-word-item.is-leaving {
  position: absolute;
  left: 0.1em;
  top: 0.06em;
  opacity: 0;
  transform: translateY(-72%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.30s ease;
  pointer-events: none;
}

/* Hero trust chips: cascade in smoothly after CTAs */
.hero-trust .trust-chip {
  opacity: 0;
  animation: fade-up 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-trust .trust-chip:nth-child(1) { animation-delay: 0.48s; }
.hero-trust .trust-chip:nth-child(2) { animation-delay: 0.56s; }
.hero-trust .trust-chip:nth-child(3) { animation-delay: 0.64s; }
.hero-trust .trust-chip:nth-child(4) { animation-delay: 0.72s; }

/* Hero CTAs: subtle arrow-slide on hover for the primary button */
.hero-home .actions .btn svg { transition: transform 0.28s cubic-bezier(0.2, 0.6, 0.2, 1); }
.hero-home .actions .btn:hover svg { transform: translateX(4px); }

/* Hero heading: gentle rise + settle emphasis */
.hero-home h2 {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

/* Very subtle floating movement on the hero dot-grid to keep the page alive */
@keyframes hero-drift {
  0%   { background-position: 0 0; }
  50%  { background-position: 4px 3px; }
  100% { background-position: 0 0; }
}
.hero-home::before {
  animation: hero-drift 16s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .hero-showcase,
  .showcase-brand-item,
  .hero-eyebrow::before,
  .hero-home h2 .accent,
  .hero-home h2,
  .hero-trust .trust-chip,
  .hero-home::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.page-header .container > * {
  opacity: 0;
  animation: fade-up 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.page-header .container > *:nth-child(1) { animation-delay: 0.05s; }
.page-header .container > *:nth-child(2) { animation-delay: 0.14s; }
.page-header .container > *:nth-child(3) { animation-delay: 0.22s; }
.page-header .container > *:nth-child(4) { animation-delay: 0.30s; }

/* -------- Scroll-reveal utility (JS toggles .in) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Section center divider accent reveal */
.section-header.center::after {
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.section-header.center.in::after {
  transform: scaleX(1);
}

/* Viewport-batched card reveal: only masks elements while :not(.in) so hover transforms work freely */
.reveal-card:not(.in) {
  opacity: 0 !important;
  transform: translateY(18px) scale(0.985) !important;
  pointer-events: none;
}
.reveal-card:not(.reveal-done) {
  transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
              transform 0.52s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
              box-shadow 0.25s ease,
              border-color 0.25s ease !important;
}

/* stagger children when the reveal is on a section/list parent */
.reveal.stagger.in > * {
  opacity: 0;
  animation: fade-up 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal.stagger.in > *:nth-child(1) { animation-delay: 0.03s; }
.reveal.stagger.in > *:nth-child(2) { animation-delay: 0.09s; }
.reveal.stagger.in > *:nth-child(3) { animation-delay: 0.15s; }
.reveal.stagger.in > *:nth-child(4) { animation-delay: 0.21s; }
.reveal.stagger.in > *:nth-child(5) { animation-delay: 0.27s; }
.reveal.stagger.in > *:nth-child(6) { animation-delay: 0.33s; }
.reveal.stagger.in > *:nth-child(7) { animation-delay: 0.39s; }
.reveal.stagger.in > *:nth-child(8) { animation-delay: 0.45s; }
.reveal.stagger.in > *:nth-child(n+9) { animation-delay: 0.50s; }

@media (max-width: 780px) {
  .reveal {
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-card:not(.in) {
    transform: translateY(14px) scale(0.985) !important;
  }
  .reveal-card:not(.reveal-done) {
    transition: opacity 0.44s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
                transform 0.44s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
                box-shadow 0.25s ease,
                border-color 0.25s ease !important;
  }
}

/* -------- Interactive micro-animations ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%) skewX(-14deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(100%) skewX(-14deg); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.section-link {
  position: relative;
}
.section-link svg {
  transition: transform 0.28s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.section-link:hover svg { transform: translateX(4px); }

/* Category tile arrow accent motion */
.category-tile::after {
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.3s;
}
.category-tile:hover::after {
  transform: translate(35%, -35%) rotate(45deg) scale(1.15);
}

/* Product card lift refinement */
.product-card {
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover .product-image img {
  transform: scale(1.03);
}
.product-image img {
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Filter chip tap */
.filter-chip { transition: all 0.2s cubic-bezier(0.2, 0.6, 0.2, 1); }
.filter-chip.active { transform: translateY(-1px); }

/* Wishlist heart pop */
@keyframes heart-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.25); }
  60%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.wishlist-btn.active svg { animation: heart-pop 0.4s ease-out; }

/* Modal enter animation */
.modal-backdrop { animation: fade-in-soft 0.2s ease-out; }
.modal { animation: scale-in 0.3s cubic-bezier(0.2, 0.6, 0.2, 1); }

/* Drawer enter animation is already via transform */

/* Nav link underline reveal */
.site-header nav a:not(.admin-cta):not(.theme-toggle):not(.nav-wishlist) {
  position: relative;
}
.site-header nav a:not(.admin-cta):not(.theme-toggle):not(.nav-wishlist)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.site-header nav a:not(.admin-cta):not(.theme-toggle):not(.nav-wishlist):hover::after {
  transform: scaleX(1);
}

/* Trust chips fade cascade already inside hero animation */
.trust-chip {
  transition: transform 0.2s ease, color 0.2s;
}
.trust-chip:hover { transform: translateY(-2px); color: var(--ink); }

/* Stat numbers animate via scroll-triggered counter + .stat card reveal */

/* Testimonial-mark, if ever used again */
.testimonial-mark { display: inline-block; transition: transform 0.3s ease; }
.testimonial:hover .testimonial-mark { transform: translateY(-3px); }

/* Brand logo tile subtle zoom */
.brand-logo-tile img,
.client-logo-tile img {
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.3s ease, opacity 0.3s ease;
}
.brand-logo-tile:hover img { transform: scale(1.05); }

/* Toast enter is already keyframed above */

/* -------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-card { opacity: 1 !important; transform: none !important; }
}

/* -------- Find us (home page map section) ---------- */
.find-us-section {
  background: var(--bg);
  padding: 80px 0 90px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.find-us-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: stretch;
}
.find-us-copy h3 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  line-height: 1.1;
}
.find-us-copy p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 460px;
}
.find-us-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.find-us-item {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.find-us-label {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.find-us-map {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  position: relative;
}
.find-us-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  filter: grayscale(0.15);
}
html[data-theme="dark"] .find-us-map iframe { filter: grayscale(0.2) brightness(0.88); }
.find-us-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}

@media (max-width: 960px) {
  .find-us-grid { grid-template-columns: 1fr; gap: 30px; }
  .find-us-map { min-height: 300px; }
  .find-us-map iframe { min-height: 300px; }
}
@media (max-width: 780px) {
  .find-us-section { padding: 44px 0 48px; }
  .find-us-copy h3 { font-size: 22px; margin: 8px 0 12px; }
  .find-us-copy p { font-size: 14px; margin-bottom: 20px; }
  .find-us-map { min-height: 260px; }
  .find-us-map iframe { min-height: 260px; }
  .find-us-details { padding-top: 18px; gap: 12px; }
  .find-us-item { font-size: 13.5px; }
  .find-us-label { font-size: 10px; }
}
@media (max-width: 480px) {
  .find-us-section { padding: 36px 0 40px; }
  .find-us-copy h3 { font-size: 20px; }
  .find-us-map { min-height: 220px; }
  .find-us-map iframe { min-height: 220px; }
}

/* -------- Catalog preview list (catalog.html) ---------- */
.catalog-preview {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}
.catalog-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-preview-head h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.catalog-preview-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.catalog-preview-brand-group {
  margin-bottom: 30px;
}
.catalog-preview-brand-group:last-child { margin-bottom: 0; }
.catalog-preview-brand-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--dark);
  color: #ffffff;
  border-radius: var(--radius);
  border-left: 4px solid var(--rust);
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-preview-brand-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.catalog-preview-brand-count {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-ink);
  font-weight: 600;
}
.catalog-preview-list {
  display: grid;
  gap: 6px;
}
.catalog-preview-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}
.catalog-preview-item:hover {
  border-color: var(--rule-strong);
  background: var(--bg);
}
.catalog-preview-thumb {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 4px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.catalog-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .catalog-preview-thumb img {
  mix-blend-mode: normal;
  background: rgba(255,255,255,0.9);
  border-radius: 3px;
}
.catalog-preview-item-body { min-width: 0; }
.catalog-preview-item-name {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}
.catalog-preview-item-meta {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.catalog-preview-truncated {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  font-style: italic;
}
@media (max-width: 780px) {
  .catalog-preview { margin-top: 32px; padding-top: 24px; }
  .catalog-preview-head h4 { font-size: 19px; }
  .catalog-preview-item { padding: 8px 12px; gap: 10px; grid-template-columns: 40px 1fr auto; }
  .catalog-preview-thumb { width: 40px; height: 40px; }
  .catalog-preview-item-name { font-size: 13.5px; }
  .catalog-preview-brand-name { font-size: 15px; }
}
@media (max-width: 480px) {
  .catalog-preview-item .stock-badge { font-size: 9px; padding: 2px 6px; }
}

/* -------- Density picker (catalog prompt modal) ---------- */
.density-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.density-option {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.density-option:hover { border-color: var(--rule-strong); background: var(--bg-alt); }
.density-option.active {
  border-color: var(--rust);
  background: var(--bg-card);
  box-shadow: inset 3px 0 0 var(--rust);
}
.density-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.density-visual {
  width: 60px;
  height: 44px;
  display: grid;
  gap: 3px;
  padding: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.density-visual-2 { grid-template-rows: 1fr 1fr; }
.density-visual-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.density-visual-8 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); }
.density-visual-12 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, 1fr); }
.density-visual-12 .density-cell,
.density-visual-8 .density-cell { border-radius: 1px; }
.density-cell {
  background: var(--rule-strong);
  border-radius: 2px;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}
.density-option.active .density-cell {
  background: var(--rust);
  opacity: 0.95;
}
.density-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.density-label strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.density-label span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* -------- Theme toggle: mobile drawer variant ---------- */
@media (max-width: 780px) {
  .site-header nav .theme-toggle {
    width: 100%;
    height: auto;
    min-height: 52px;
    border-radius: 0;
    justify-content: flex-start;
    padding: 14px 14px;
    border: none;
    border-bottom: 1px solid var(--dark-rule);
    color: var(--dark-ink);
    margin-left: 0;
    gap: 12px;
    overflow: visible;
    position: relative;
  }
  .site-header nav .theme-toggle .theme-sun,
  .site-header nav .theme-toggle .theme-moon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    top: auto;
    left: auto;
  }
  /* Only show the currently-active icon; hide the other completely (no scale trick) */
  html:not([data-theme="dark"]) .site-header nav .theme-toggle .theme-sun,
  html[data-theme="dark"] .site-header nav .theme-toggle .theme-moon {
    display: none;
  }
  html:not([data-theme="dark"]) .site-header nav .theme-toggle .theme-moon,
  html[data-theme="dark"] .site-header nav .theme-toggle .theme-sun {
    display: block;
    transform: none;
    opacity: 1;
  }
  .site-header nav .theme-toggle::after {
    content: "Theme";
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--dark-ink);
  }
  .site-header nav .theme-toggle:hover {
    background: var(--dark-3);
    color: var(--rust-soft);
    transform: none;
  }
  html[data-theme="dark"] .site-header nav .theme-toggle::after { content: "Light theme"; }
  html:not([data-theme="dark"]) .site-header nav .theme-toggle::after { content: "Dark theme"; }
}

/* -------- Mobile nav backdrop + header z-index fix ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  /* Never intercept taps. A document-level listener in nav.js handles
     outside-tap dismiss so the tap can also fall through to the element
     beneath (e.g., a link on the page). */
  pointer-events: none;
  z-index: 55;
  transition: opacity 0.22s ease;
}
.nav-backdrop.open {
  opacity: 1;
}
/* Keep the header + burger tappable on top of the backdrop */
@media (max-width: 780px) {
  .site-header { z-index: 70; }
}

/* ================================================================
   Admin login: subtle background pattern behind the centered card
   plus entrance + focus animations on the form fields.
   Full viewport, works in both themes via CSS variables.
   ================================================================ */

/* ---------- Form entrance animation ---------- */
@keyframes login-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes login-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--rust) 0%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklab, var(--rust) 12%, transparent); }
}

/* Card slides in from below with a soft settle. Whole card first, then
   header + each field cascades in below it. */
.login-view .login-card {
  animation: login-enter 0.5s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.login-view .login-card > * {
  opacity: 0;
  animation: login-enter 0.45s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.login-view .login-card > *:nth-child(1) { animation-delay: 0.08s; }
.login-view .login-card > *:nth-child(2) { animation-delay: 0.16s; }
.login-view .login-card > *:nth-child(3) { animation-delay: 0.24s; }
.login-view .login-card #login-form label:nth-of-type(1),
.login-view .login-card #login-form input:nth-of-type(1) { animation-delay: 0.28s; }
.login-view .login-card #login-form label:nth-of-type(2),
.login-view .login-card #login-form input:nth-of-type(2) { animation-delay: 0.36s; }
.login-view .login-card #login-form button { animation-delay: 0.46s; }
.login-view .login-card #login-form > * {
  opacity: 0;
  animation: login-enter 0.45s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

/* Input focus: crisp ring + tiny lift */
.login-view .login-card input[type="email"],
.login-view .login-card input[type="password"] {
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s cubic-bezier(0.2, 0.6, 0.2, 1),
    background 0.22s ease;
}
.login-view .login-card input[type="email"]:focus,
.login-view .login-card input[type="password"]:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--rust) 16%, transparent);
  transform: translateY(-1px);
}
.login-view .login-card input[type="email"]:hover:not(:focus),
.login-view .login-card input[type="password"]:hover:not(:focus) {
  border-color: var(--rule-strong);
}

/* Submit button: sheen sweep on hover (extends base .btn), plus a gentle
   pulse when the form's focused field is the password (encourages click). */
.login-view .login-card #login-form button {
  position: relative;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.28s ease;
}
.login-view .login-card #login-form:focus-within input[type="password"]:focus ~ button,
.login-view .login-card #login-form input[type="password"]:focus + button {
  animation: login-glow 1.8s ease-in-out infinite;
}
.login-view .login-card #login-form button:hover {
  transform: translateY(-1px);
}

/* Respect reduced motion — kill all login animations */
@media (prefers-reduced-motion: reduce) {
  .login-view .login-card,
  .login-view .login-card > *,
  .login-view .login-card #login-form > *,
  .login-view .login-card #login-form button {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.login-view {
  position: relative;
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}
/* Layer 1: dot-grid, masked to a vignette so it fades toward edges */
.login-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(23,26,23,0.14) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 78%);
  pointer-events: none;
}
/* Layer 2: two soft accent glows in the corners (warm forest + warm rust) */
.login-view::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in oklab, var(--rust) 22%, transparent) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, color-mix(in oklab, var(--rust) 14%, transparent) 0%, transparent 40%);
  pointer-events: none;
}
/* Reset previous auto-margin so card centers via the flex parent */
.login-view .login-card {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Dark theme: brighten the dot pattern a touch so it stays visible */
html[data-theme="dark"] .login-view::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(231,234,217,0.12) 1px, transparent 0);
}

@media (max-width: 780px) {
  .login-view {
    padding: 24px 18px;
    min-height: calc(100vh - 66px);
    min-height: calc(100dvh - 66px);
  }
  .login-view::before {
    background-size: 18px 18px;
  }
}
@media (max-width: 480px) {
  .login-view { padding: 20px 16px; }
}

/* =============================================================
   Brand-catalog pivot: home brand tiles, brand landing page,
   admin brand cards.
   ============================================================= */

/* Brand tile grid on the homepage. Each tile shows a logo above a
   name/category strip. Tiles get a subtle per-brand accent when
   the brand has an accent_color. */
.brand-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.brand-tile-grid-inhouse {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.brand-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  color: var(--ink);
  box-shadow: none;
}
.brand-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 20px var(--rust-glow);
  border-color: var(--brand-accent, var(--rust));
  text-decoration: none;
}

/* 4-corner recessed Phillips (+) screws fitted onto each brand box */
.tile-screw {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f4f5ef 0%, #c8ccb7 62%, #9da38e 100%);
  border: 1px solid rgba(23, 26, 23, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 1.5px rgba(23, 26, 23, 0.12);
  pointer-events: none;
  z-index: 2;
  --screw-rest: 0deg;
  transform: rotate(var(--screw-rest));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, border-color 0.25s ease;
}
.tile-screw::before,
.tile-screw::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2b312a;
  border-radius: 1px;
}
.tile-screw::before {
  width: 6.5px;
  height: 1.5px;
}
.tile-screw::after {
  width: 1.5px;
  height: 6.5px;
}
.tile-screw.tl { top: 8px; left: 8px; --screw-rest: -22deg; }
.tile-screw.tr { top: 8px; right: 8px; --screw-rest: 18deg; }
.tile-screw.bl { bottom: 8px; left: 8px; --screw-rest: 34deg; }
.tile-screw.br { bottom: 8px; right: 8px; --screw-rest: -12deg; }

/* Tighten screws smoothly as the brand box reveals into view & on hover */
.brand-tile.reveal-card:not(.in) .tile-screw {
  transform: rotate(calc(var(--screw-rest) - 90deg));
}
.brand-tile:hover .tile-screw {
  transform: rotate(calc(var(--screw-rest) + 45deg));
  transition-delay: 0s;
}
html[data-theme="dark"] .tile-screw {
  background: radial-gradient(circle at 32% 30%, #6f7565 0%, #444a3c 65%, #2c3127 100%);
  border-color: rgba(231, 234, 217, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .tile-screw::before,
html[data-theme="dark"] .tile-screw::after {
  background: #12140f;
}
@media (max-width: 640px) {
  .tile-screw {
    width: 9px;
    height: 9px;
  }
  .tile-screw::before { width: 5px; height: 1.3px; }
  .tile-screw::after { width: 1.3px; height: 5px; }
  .tile-screw.tl { top: 6px; left: 6px; }
  .tile-screw.tr { top: 6px; right: 6px; }
  .tile-screw.bl { bottom: 6px; left: 6px; }
  .tile-screw.br { bottom: 6px; right: 6px; }
}
.brand-tile-logo {
  aspect-ratio: 16 / 10;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px 8px;
  overflow: hidden;
  position: relative;
  border-bottom: none;
}
html[data-theme="dark"] .brand-tile-logo {
  background: transparent;
}
html[data-theme="dark"] .brand-tile-logo img {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  padding: 6px 10px;
}
.brand-tile-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand-tile:hover .brand-tile-logo img {
  transform: scale(1.06);
}
.brand-tile-fallback {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}
.brand-tile-foot {
  padding: 4px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}
.brand-tile:hover .brand-tile-foot {
  background: transparent;
}
.brand-tile-name {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: center;
}
.brand-tile-foot::after {
  content: "→";
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--rust);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
}
.brand-tile:hover .brand-tile-foot::after {
  opacity: 1;
  transform: translateX(0);
}
.brand-tile-category {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 20px;
}

.brand-category-block { margin-top: 40px; }
.brand-category-block:first-child { margin-top: 20px; }
.brand-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.brand-category-head h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.brand-category-count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============ Brand landing page ============ */
.brand-page {
  --brand-accent: var(--rust);
  --brand-accent-ink: #ffffff;
  min-height: calc(100vh - 200px);
}
.brand-loading {
  padding: 80px 20px;
  text-align: center;
}

.brand-hero {
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
  padding: 48px 0 64px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.brand-hero-body h2,
.brand-hero-about,
.brand-hero-back,
.brand-hero-category,
.brand-hero-pill {
  transition: color 0.35s ease, border-color 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .brand-hero,
  .brand-hero-body h2,
  .brand-hero-about,
  .brand-hero-back,
  .brand-hero-category,
  .brand-hero-pill { transition: none; }
}
.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.12), transparent 45%);
  pointer-events: none;
}
.brand-hero-inner {
  position: relative;
  z-index: 1;
}
.brand-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-accent-ink);
  opacity: 0.75;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 0;
  margin-bottom: 24px;
  transition: opacity 0.15s;
  text-decoration: none;
}
.brand-hero-back:hover {
  opacity: 1;
  color: var(--brand-accent-ink);
  text-decoration: none;
}
.brand-hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
}
.brand-hero-logo {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
}
.brand-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-hero-logo-fallback span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  color: var(--brand-accent);
  text-align: center;
  line-height: 1.1;
}
.brand-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.brand-hero-category, .brand-hero-pill {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--brand-accent-ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.brand-hero-pill {
  background: rgba(0, 0, 0, 0.22);
}
.brand-hero-body h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  color: var(--brand-accent-ink);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.brand-hero-about {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--brand-accent-ink);
  opacity: 0.9;
  max-width: 640px;
  margin: 0 0 24px;
}
.brand-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-btn {
  background: var(--brand-accent-ink);
  color: var(--brand-accent);
  border: 1px solid var(--brand-accent-ink);
}
.brand-btn:hover {
  background: transparent;
  color: var(--brand-accent-ink);
}
.brand-btn-ghost {
  background: transparent;
  color: var(--brand-accent-ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.brand-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand-accent-ink);
  border-color: rgba(255, 255, 255, 0.6);
}

.brand-catalog-section {
  padding: 60px 0 80px;
  background: var(--bg-alt);
}
.brand-catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.brand-catalog-header h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin: 8px 0 4px;
  letter-spacing: -0.01em;
}
.brand-catalog-header p {
  color: var(--ink-muted);
  margin: 0;
}
.brand-catalog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.brand-catalog-viewer {
  position: relative;
  background: var(--dark-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: min(80vh, 900px);
  min-height: 500px;
}
.brand-catalog-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--dark-2);
}
.brand-catalog-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--dark-ink);
}
.brand-catalog-empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.brand-catalog-empty h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 10px 0 12px;
}
.brand-catalog-empty p {
  color: var(--ink-muted);
  max-width: 480px;
  margin: 0 auto 22px;
}

/* ============ Admin brand cards ============ */
.brand-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.brand-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
}
.brand-admin-card-logo {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-right: 1px solid var(--rule);
}
.brand-admin-card-logo.empty {
  background: var(--bg-alt);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 12px;
}
.brand-admin-card-logo img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}
.brand-admin-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.brand-admin-card-head h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-accent-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.brand-admin-card-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pill {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  color: var(--ink-muted);
  background: var(--bg-alt);
}
.pill-ok { color: var(--success); background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.pill-warn { color: var(--danger); background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.pill-inhouse { color: var(--brass); background: color-mix(in srgb, var(--brass) 15%, var(--bg-alt)); border-color: color-mix(in srgb, var(--brass) 30%, transparent); }

.brand-admin-card-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
}
.brand-admin-card-meta dt {
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
.brand-admin-card-meta dd {
  margin: 0;
  color: var(--ink);
}
.brand-admin-card-meta code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rust);
}

/* Modal color picker rows */
.color-picker-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.color-picker-row input[type="color"] {
  width: 48px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
}
.color-picker-row input[type="text"] {
  flex: 1;
  font-family: var(--mono);
}
.modal.modal-wide { max-width: 720px; }

@media (max-width: 780px) {
  .brand-hero { padding: 32px 0 44px; }
  .brand-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .brand-hero-logo {
    max-width: 220px;
    margin: 0 auto;
  }
  .brand-hero-body { text-align: center; }
  .brand-hero-meta { justify-content: center; }
  .brand-hero-about { margin-left: auto; margin-right: auto; }
  .brand-hero-actions { justify-content: center; }
  .brand-catalog-section { padding: 40px 0 60px; }
  .brand-catalog-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .brand-catalog-viewer {
    height: 70vh;
    min-height: 400px;
  }
  .brand-admin-card {
    grid-template-columns: 90px 1fr;
  }
}

@media (max-width: 480px) {
  .brand-tile-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .brand-catalog-viewer { height: 60vh; min-height: 340px; }
  .brand-admin-card { grid-template-columns: 1fr; }
  .brand-admin-card-logo { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* =============================================================
   Brand page sidebar (brand navigator: search + chips + list)
   ============================================================= */

.brand-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.brand-catalog-content { min-width: 0; } /* prevent iframe from overflowing */

.brand-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.brand-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
}
.brand-sidebar-head h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0;
  color: var(--ink);
}
.sidebar-close-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  padding: 6px;
  border-radius: var(--radius);
  cursor: pointer;
}
.sidebar-close-btn:hover { color: var(--ink); background: var(--bg-card); }

#brands-sidebar-content,
#brand-sidebar-content {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.sidebar-group { display: flex; flex-direction: column; gap: 8px; }
.sidebar-group label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sidebar-group input[type="search"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
}
.sidebar-group input[type="search"]:focus {
  border-color: var(--brand-accent, var(--rust));
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, var(--rust)) 15%, transparent);
}

.sidebar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar-chip {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.sidebar-chip:hover {
  border-color: var(--brand-accent, var(--rust));
  color: var(--brand-accent, var(--rust));
}
.sidebar-chip.active {
  background: var(--brand-accent, var(--rust));
  border-color: var(--brand-accent, var(--rust));
  color: var(--brand-accent-ink, #fff);
}

.sidebar-group-list { flex: 1; min-height: 0; }
.sidebar-brand-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: 55vh;
  padding-right: 4px;
}
.sidebar-brand-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.sidebar-brand-row:hover {
  background: var(--bg-alt);
  border-color: var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.sidebar-brand-row.active {
  background: color-mix(in srgb, var(--brand-accent, var(--rust)) 10%, var(--bg-alt));
  border-color: var(--brand-accent, var(--rust));
}
.sidebar-brand-row.active .sidebar-brand-name {
  color: var(--brand-accent, var(--rust));
  font-weight: 700;
}
.sidebar-brand-thumb {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  aspect-ratio: 1;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sidebar-brand-thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.sidebar-brand-thumb.empty {
  background: var(--bg-alt);
}
.sidebar-brand-thumb span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-muted);
}
.sidebar-brand-text { min-width: 0; }
.sidebar-brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-brand-cats {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.sidebar-empty {
  padding: 20px 10px;
  text-align: center;
  color: var(--ink-muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
}

/* Toggle button (shown only on mobile) */
.sidebar-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  margin-bottom: 20px;
  cursor: pointer;
}
.sidebar-toggle-btn:hover {
  border-color: var(--brand-accent, var(--rust));
  color: var(--brand-accent, var(--rust));
}

/* Admin: category chip-suggest strip on the brand form */
.brand-cats-suggest {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.brand-cats-suggest-label {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}
.chip {
  font-family: var(--sans);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--bg-alt);
  color: var(--ink-2);
  font-weight: 500;
}
.chip-clickable {
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip-clickable:hover {
  border-color: var(--rust);
  color: var(--rust);
  background: var(--bg-card);
}

/* =============================================================
   Brands listing page
   ============================================================= */

.brands-listing {
  padding-top: 24px;
  padding-bottom: 60px;
}
.brands-listing .brand-layout {
  margin-top: 8px;
}
.brands-listing-content {
  min-width: 0;
}
.brands-listing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.brands-listing-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-tile-grid-listing {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.sidebar-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}
.sidebar-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-accent, var(--rust));
}

.filters-active-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 20px;
  background: var(--rust);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

.field-optional {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: normal;
  text-transform: none;
  margin-left: 6px;
}

/* Desktop default: mobile filter elements are hidden */
.mobile-filter-bar,
.brand-sidebar-backdrop,
.brand-sidebar-foot,
.sidebar-head-count,
.sidebar-head-clear {
  display: none;
}

/* ============ Sidebar responsive: modern Amazon-style mobile filter experience on ≤900px ============ */
@media (max-width: 900px) {
  .brand-layout {
    grid-template-columns: 1fr;
  }

  /* Amazon-style horizontal sticky quick filter bar */
  .mobile-filter-bar {
    display: block;
    position: sticky;
    top: 57px; /* sits right below sticky header */
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    margin: -10px -16px 18px -16px;
    padding: 10px 0 10px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-filter-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-right: 28px;
  }
  .mobile-filter-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-filter-fade {
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to left, var(--bg), transparent);
  }

  /* Amazon-style filter pill buttons */
  .filter-pill,
  .quick-cat-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .filter-pill:active,
  .quick-cat-pill:active {
    transform: scale(0.96);
  }

  /* Master filter trigger pill */
  .filter-pill-trigger {
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  .filter-pill-trigger .icon {
    width: 14px;
    height: 14px;
    color: var(--brand-accent, var(--rust));
  }
  .filter-pill-trigger .filter-pill-arrow {
    width: 11px;
    height: 11px;
    color: var(--ink-muted);
    margin-left: 2px;
  }

  .quick-category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .quick-pill-check {
    font-size: 12px;
    font-weight: 700;
    color: inherit;
  }

  /* Active pill state - Amazon-style high contrast */
  .filter-pill.active,
  .quick-cat-pill.active {
    background: var(--brand-accent, var(--rust));
    border-color: var(--brand-accent, var(--rust));
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-accent, var(--rust)) 35%, transparent);
  }

  .filters-active-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    background: var(--brand-accent, var(--rust));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .filter-pill-trigger.active .filters-active-badge {
    background: #ffffff;
    color: var(--brand-accent, var(--rust));
  }

  /* Slide-over filter sheet */
  .brand-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    width: min(390px, 92vw);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg);
    border-right: 1px solid var(--rule);
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0 16px 16px 0;
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .brand-sidebar.open {
    transform: translateX(0);
  }

  /* Backdrop overlay (separated from .brand-sidebar to fix stacking context) */
  .brand-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .brand-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Drawer Header */
  .brand-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule);
    background: var(--bg-card);
    flex-shrink: 0;
  }

  .sidebar-title-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .sidebar-title-group h3 {
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
  }

  .sidebar-head-count {
    display: inline-block;
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
  }

  .sidebar-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sidebar-head-clear {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-accent, var(--rust));
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
  }

  .sidebar-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--rule);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .sidebar-close-btn:active {
    transform: scale(0.9);
  }

  .sidebar-close-btn .icon {
    width: 18px;
    height: 18px;
  }

  /* Content area */
  #brands-sidebar-content,
  #brand-sidebar-content {
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
  }

  .sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-group > label:not(.sidebar-checkbox) {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }

  /* Search box on mobile - 16px font prevents iOS Safari auto-zoom */
  .sidebar-group input[type="search"] {
    font-size: 16px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--rule);
    background: var(--bg-card);
    color: var(--ink);
    min-height: 48px;
    box-sizing: border-box;
    width: 100%;
  }

  .sidebar-group input[type="search"]:focus {
    border-color: var(--brand-accent, var(--rust));
    background: var(--bg-card);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, var(--rust)) 20%, transparent);
  }

  /* Category chips on mobile: larger, thumb-friendly tap targets */
  .sidebar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-chip {
    font-size: 14px;
    font-weight: 500;
    padding: 9px 16px;
    min-height: 40px;
    border-radius: 20px;
    border: 1.5px solid var(--rule);
    background: var(--bg-card);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .sidebar-chip:active {
    transform: scale(0.96);
  }

  .sidebar-chip.active {
    background: var(--brand-accent, var(--rust));
    border-color: var(--brand-accent, var(--rust));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--brand-accent, var(--rust)) 35%, transparent);
  }

  /* In-house checkbox row on mobile */
  .sidebar-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--rule);
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink);
    min-height: 48px;
    cursor: pointer;
    user-select: none;
  }

  .sidebar-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-accent, var(--rust));
    border-radius: 6px;
    cursor: pointer;
  }

  /* Clear button on mobile inside body */
  #sidebar-clear {
    width: 100%;
    padding: 13px 18px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    justify-content: center;
    min-height: 44px;
  }

  /* Brand row navigator on mobile */
  .sidebar-brand-row {
    padding: 12px 14px;
    border-radius: 12px;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    margin-bottom: 6px;
    min-height: 52px;
  }

  .sidebar-brand-thumb {
    width: 44px;
    height: 40px;
    border-radius: 8px;
  }

  .sidebar-brand-name {
    font-size: 15px;
    font-weight: 600;
  }

  .sidebar-brand-cats {
    font-size: 12.5px;
  }

  /* Sticky Bottom Apply CTA */
  .brand-sidebar-foot {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    background: var(--bg-card);
    border-top: 1px solid var(--rule);
    padding: 14px 18px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    z-index: 10;
    display: block;
    flex-shrink: 0;
  }

  .sidebar-apply-cta {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-accent, var(--rust));
    color: #ffffff;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-accent, var(--rust)) 35%, transparent);
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .sidebar-apply-cta:active {
    transform: scale(0.98);
    opacity: 0.95;
  }
}


