/* SensStyle — Heritage Western Premium
   Design tokens, global resets, shared utilities */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Leather & gold palette pulled from the SensStyle logo */
  --cream: #F5EDE0;
  --bone: #EFE4D2;
  --sand: #E6D6BB;
  --parchment: #FBF6EC;

  --gold-50: #F6E7C0;
  --gold-100: #EBD28C;
  --gold-300: #D4A94A;       /* logo light gold */
  --gold-500: #B8862F;
  --gold-600: #A97B2C;       /* logo deep gold */
  --gold-700: #8A6220;
  --gold-900: #5E4312;

  --saddle-300: #8A5A2E;
  --saddle-500: #6B3F1D;     /* saddle leather */
  --saddle-700: #4A2614;     /* mahogany */
  --saddle-900: #2A160A;     /* cordovan */

  --ink: #1B120A;
  --charcoal: #3A2B1E;
  --muted: #6B5A46;

  --err: #9B3B25;
  --ok: #3E5C3A;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --rule: 1px solid rgba(27, 18, 10, 0.12);
  --rule-gold: 1px solid rgba(169, 123, 44, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Top bar height (announce ~35px + header ~82px) — used for sticky offsets */
  --top-bar-h: 117px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
main { display: block; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga", "kern";
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

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

/* -------- animations -------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.9; }
}

/* -------- labels / eyebrows -------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow.light { color: var(--gold-300); }
.eyebrow.muted { color: var(--muted); }

.rule {
  height: 1px;
  background: rgba(27, 18, 10, 0.15);
  border: 0;
}
.rule-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  border: 0;
}

/* -------- buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all 220ms var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--saddle-700);
  border-color: var(--saddle-700);
}
.btn-gold {
  background: var(--gold-600);
  color: var(--cream);
  border-color: var(--gold-600);
}
.btn-gold:hover {
  background: var(--gold-700);
  border-color: var(--gold-700);
}
.btn-ghost-light {
  border-color: var(--cream);
  color: var(--cream);
}
.btn-ghost-light:hover {
  background: var(--cream);
  color: var(--ink);
}
.btn .arrow {
  width: 16px; height: 1px; background: currentColor; position: relative;
  transition: width 220ms var(--ease);
}
.btn .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 24px; }

/* link style */
.link-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-inline:hover { color: var(--gold-600); }

/* -------- placeholder imagery (monospace-labeled) -------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(107, 63, 29, 0.08) 0px,
      rgba(107, 63, 29, 0.08) 1px,
      transparent 1px,
      transparent 9px
    ),
    linear-gradient(135deg, var(--bone) 0%, var(--sand) 100%);
  border: 1px solid rgba(107, 63, 29, 0.2);
  overflow: hidden;
  color: var(--saddle-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph.dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(245, 237, 224, 0.05) 0px,
      rgba(245, 237, 224, 0.05) 1px,
      transparent 1px,
      transparent 9px
    ),
    linear-gradient(135deg, var(--saddle-700) 0%, var(--saddle-900) 100%);
  border-color: rgba(212, 169, 74, 0.2);
  color: var(--gold-300);
}
.ph.gold {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(27, 18, 10, 0.06) 0px,
      rgba(27, 18, 10, 0.06) 1px,
      transparent 1px,
      transparent 9px
    ),
    linear-gradient(135deg, var(--gold-50) 0%, var(--gold-300) 100%);
  border-color: rgba(169, 123, 44, 0.4);
  color: var(--saddle-700);
}
.ph .ph-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  text-align: center;
  padding: 8px 12px;
  max-width: 80%;
}
.ph .ph-corner {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.5;
}
.ph .ph-corner.br { top: auto; bottom: 10px; left: auto; right: 10px; }

/* subtle grain overlay */
.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 0.8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* -------- section shared -------- */
section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  max-width: 20ch;
}
.section-head .sub {
  max-width: 54ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

/* -------- ornament: gold mark -------- */
.ornament {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-600);
}
.ornament .dot {
  width: 5px; height: 5px;
  background: currentColor;
  transform: rotate(45deg);
}
.ornament .line {
  width: 60px; height: 1px;
  background: currentColor;
}

/* -------- top bar wrapper (announce + header stuck together) -------- */
.site-top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* -------- header / nav -------- */
.site-header {
  position: relative;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(27, 18, 10, 0.08);
  transition: background 220ms var(--ease);
  margin-top: 0;
  padding-top: 0;
}
.site-header.on-dark {
  background: rgba(27, 18, 10, 0.55);
  border-bottom-color: transparent;
  color: var(--cream);
}
.site-header.on-dark .nav-link { color: rgba(245, 237, 224, 0.85); }
.site-header.on-dark .nav-link:hover,
.site-header.on-dark .nav-link.active { color: var(--gold-300); }
.site-header.on-dark .lang-btn { color: rgba(245, 237, 224, 0.75); }
.site-header.on-dark .lang-btn.active { color: var(--gold-300); }.site-header.on-dark .wholesale-btn {
  border-color: var(--gold-300);
  color: var(--gold-300);
}
.site-header.on-dark .wholesale-btn:hover {
  background: var(--gold-300);
  color: var(--ink);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0;
  min-height: 72px;
}
.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-right: 40px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 40px;
}
.header-right-utils {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-left: 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
}
.header-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 180ms var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--gold-600); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%) rotate(45deg);
  background: currentColor;
}

.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
}
.lang-btn {
  padding: 4px 2px;
  color: var(--muted);
  transition: color 180ms var(--ease);
}
.lang-btn.active { color: var(--ink); }
.lang-sep {
  width: 1px; height: 10px; background: currentColor; opacity: 0.3;
}

.wholesale-btn {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 180ms var(--ease);
}
.wholesale-btn:hover {
  background: var(--ink);
  color: var(--cream);
}

/* -------- nav dropdown -------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 6px 0;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--parchment);
  border: 1px solid rgba(27,18,10,0.12);
  box-shadow: 0 16px 48px rgba(27,18,10,0.14);
  z-index: 50;
  animation: dropIn 180ms var(--ease);
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px;
  background: var(--parchment);
  border-top: 1px solid rgba(27,18,10,0.12);
  border-left: 1px solid rgba(27,18,10,0.12);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(27,18,10,0.07);
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.nav-dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-item:hover, .nav-dropdown-item.active {
  color: var(--gold-600);
  background: rgba(169,123,44,0.05);
}
.dropdown-icon {
  font-size: 12px;
  color: var(--gold-600);
  opacity: 0.8;
  flex-shrink: 0;
}

/* marquee announcement bar */
.announce {
  background: var(--ink);
  color: var(--gold-300);
  overflow: hidden;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  position: relative;
  top: 0;
  z-index: 41;
  margin: 0;
  border: none;
  line-height: 1.4;
}
.announce + .site-header,
.announce + header {
  margin-top: 0 !important;
  border-top: none !important;
}
.announce-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.announce-track span {
  display: inline-flex; align-items: center; gap: 14px;
}
.announce-track .mark {
  color: var(--gold-500);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------- footer -------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 237, 224, 0.12);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(245, 237, 224, 0.7);
  transition: color 180ms var(--ease);
  font-family: var(--font-body);
  font-size: 17px;
}
.footer-col a:hover { color: var(--gold-300); }
.footer-brand .lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.25;
  max-width: 22ch;
  color: var(--cream);
  margin: 20px 0 24px;
}
.footer-brand img { height: 64px; width: auto; filter: brightness(1.05); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.45);
}
.footer-meta a { color: inherit; }
.footer-meta a:hover { color: var(--gold-300); }

/* -------- speed-dial FAB -------- */
@keyframes fabMenuIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fabItemIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* -------- tweaks panel -------- */
.tweaks {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 280px;
  background: var(--parchment);
  border: 1px solid var(--ink);
  padding: 20px;
  font-family: var(--font-mono);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-height: 85vh;
  overflow: auto;
}
.tweaks h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.tweak-group { margin-bottom: 18px; }
.tweak-group .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tweak-options {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tweak-opt {
  padding: 6px 10px;
  border: 1px solid rgba(27, 18, 10, 0.3);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  transition: all 160ms var(--ease);
}
.tweak-opt.active {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.tweak-opt:hover:not(.active) {
  background: rgba(27,18,10,0.06);
}

/* -------- forms -------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(27, 18, 10, 0.25);
  padding: 10px 0 12px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms var(--ease);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--gold-600);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236B5A46' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}

/* ── Captcha field (invisible — no visual styles needed) ──────────────────── */

/* -------- responsive -------- */

/* hamburger — hidden on desktop */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 42;
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: all 220ms var(--ease);
  transform-origin: center;
}
.site-header.on-dark .hamburger-icon span { background: var(--cream); }
.hamburger-icon.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 5, 0.6);
  z-index: 90;
  animation: fadeIn 200ms var(--ease);
}

/* mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: var(--parchment);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 320ms var(--ease);
  overflow-y: auto;
  box-shadow: 10px 0 40px rgba(0,0,0,0.2);
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter);
  border-bottom: 1px solid rgba(27,18,10,0.1);
}
.mobile-close-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}

.mobile-drawer-links {
  flex: 1;
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(27,18,10,0.08);
  transition: color 180ms var(--ease);
}
.mobile-link:hover, .mobile-link.active { color: var(--gold-600); }
.mobile-link.sub { padding-left: 20px; font-size: 11px; }

.mobile-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-600);
  padding: 20px 0 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(27,18,10,0.12);
}

.mobile-drawer-footer {
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid rgba(27,18,10,0.1);
}

/* -------- gallery (modelos) -------- */
div:hover > .gallery-caption { opacity: 1 !important; }

/* -------- cats grid (collections) -------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: min(62vh, 520px);
  gap: 3px;
}
.cats-grid .item-0 { grid-column: span 3; }
.cats-grid .item-1 { grid-column: span 3; }
.cats-grid .item-2 { grid-column: span 2; }
.cats-grid .item-3 { grid-column: span 2; }
.cats-grid .item-4 { grid-column: span 2; }
.cats-grid .item-5 { grid-column: span 3; }
.cats-grid .item-6 { grid-column: span 3; }

.cat-card {
  cursor: pointer;
}
.cat-card:hover .cat-img {
  transform: scale(1.04);
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms var(--ease);
}
.cat-card:hover::after {
  transform: scaleX(1);
}

/* -------- home page section grids -------- */
.stats-grid {
  padding: 50px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.wholesale-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* -------- catalog filter bar -------- */
.filter-bar-container {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar-container::-webkit-scrollbar { display: none; }

.style-filter-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  color: var(--muted);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
  flex-shrink: 0;
}
.style-filter-btn:hover { color: var(--ink); }
.style-filter-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* sort dropdown inside filter bar */
.filter-bar-container .eyebrow { flex-shrink: 0; }

/* -------- catalog page grids -------- */
.style-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
}
.style-nav-grid button {
  border: none !important;
  outline: none;
}
.style-nav-grid .ph {
  border: none !important;
}
.style-hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}

/* ---- tablet (≤960px) ---- */
@media (max-width: 960px) {
  :root { --top-bar-h: 103px; }

  .hamburger-btn { display: flex; }
  .nav-desktop { display: none !important; }
  .wholesale-btn.nav-desktop { display: none !important; }

  .header-top { padding: 12px 0; min-height: 60px; grid-template-columns: auto auto 1fr; position: relative; }
  .header-left { padding-right: 0; }
  .header-right { padding-left: 0; gap: 12px; }
  .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 44px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; }

  /* section grids */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .wholesale-grid { grid-template-columns: 1fr; gap: 48px; }
  .journal-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* catalog grids */
  .style-nav-grid { grid-template-columns: repeat(3, 1fr); }
  .style-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }

  /* cats grid: 2 columnas en tablet */
  .cats-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min(55vw, 420px);
  }
  .cats-grid .item-0, .cats-grid .item-1,
  .cats-grid .item-2, .cats-grid .item-3,
  .cats-grid .item-4, .cats-grid .item-5, .cats-grid .item-6 {
    grid-column: span 1;
  }
}

/* ---- mobile (≤640px) ---- */
@media (max-width: 640px) {
  :root { --top-bar-h: 90px; }

  .header-top {
    grid-template-columns: 40px 1fr auto;
    gap: 8px;
    padding: 10px 0;
    min-height: 52px;
    position: relative;
  }
  .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 36px;
  }
  .header-logo img { height: 36px !important; }

  /* Quitar línea de separación entre announce bar y header */
  .site-header.on-dark { border-bottom: none !important; }
  .announce + .site-header { margin-top: -1px !important; }
  .site-top-bar { margin-top: -3px; }
  .lang-picker { font-size: 10px; gap: 3px; letter-spacing: 0.15em; }
  .lang-sep { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* section grids */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px 0; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .journal-grid { grid-template-columns: 1fr; gap: 24px; }

  /* catalog grids */
  .style-nav-grid { grid-template-columns: repeat(2, 1fr); }

  /* cats grid: 1 columna en mobile */
  .cats-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: min(70vw, 340px);
  }
  .cats-grid .item-0, .cats-grid .item-1,
  .cats-grid .item-2, .cats-grid .item-3,
  .cats-grid .item-4, .cats-grid .item-5, .cats-grid .item-6 {
    grid-column: span 1;
  }

  /* section spacing mobile */
  section { padding: clamp(48px, 7vw, 80px) 0; }
  .section-head { margin-bottom: 40px; gap: 12px; }
  .section-head h2 { font-size: clamp(32px, 8vw, 48px); }

  /* wholesale band */
  .wholesale-grid { gap: 32px; }
}

/* -------- chat widget -------- */
.chat-window {
  width: 380px;
  height: 520px;
  max-width: calc(100vw - 32px);
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(27,18,10,0.3), 0 4px 16px rgba(27,18,10,0.15);
  border-radius: 16px;
  overflow: hidden;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* -------- blog -------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 36px;
}
.blog-post-layout {
  max-width: 740px;
  padding-bottom: 80px;
}
.blog-lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--charcoal);
  border-left: 3px solid var(--gold-500);
  padding-left: 24px;
  margin: 40px 0 48px;
  font-style: italic;
}
.blog-body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--charcoal);
  margin: 0 0 24px;
}
.blog-body h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  margin: 48px 0 18px;
  line-height: 1.2;
}
.blog-body h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 36px 0 14px;
}
.blog-body ul {
  margin: 0 0 28px;
  padding-left: 0;
  list-style: none;
}
.blog-body ul li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid rgba(27,18,10,0.08);
  position: relative;
}
.blog-body ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-size: 8px;
  top: 14px;
}
.blog-body blockquote {
  margin: 40px 0;
  padding: 28px 36px;
  background: var(--sand);
  border-left: 4px solid var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink);
  line-height: 1.5;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .blog-post-layout { padding-left: 28px !important; padding-right: 28px !important; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 48px; }
  .blog-post-layout { padding-left: 24px !important; padding-right: 24px !important; }
  .blog-lead { font-size: 17px; }
  .blog-body p { font-size: 16px; }
  .blog-body h2 { font-size: 22px !important; }
  .blog-body h3 { font-size: 19px !important; }
  .blog-body blockquote { padding: 20px 24px !important; font-size: 17px !important; }
  .blog-body ul li { font-size: 15px !important; padding: 8px 0 8px 24px !important; }
}

/* -------- contact page -------- */
.contact-topic-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(27,18,10,0.1);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background 180ms var(--ease), padding-left 180ms var(--ease);
}
.contact-topic-row:hover {
  background: rgba(27,18,10,0.03);
  padding-left: 12px;
}

/* -------- contact page responsive -------- */
@media (max-width: 640px) {
  .contact-info-strip { grid-template-columns: repeat(2, 1fr) !important; }
}

/* -------- lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 10, 5, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: lb-in 180ms var(--ease);
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-stage img.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 300ms var(--ease);
  cursor: zoom-in;
  user-select: none;
}
.lightbox-stage img.lb-img.zoomed {
  cursor: zoom-out;
  transform: scale(2);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,237,224,0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 150ms;
  z-index: 9001;
}
.lightbox-close:hover { color: var(--cream); }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: rgba(245,237,224,0.6);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  transition: color 150ms;
  z-index: 9001;
  line-height: 1;
}
.lightbox-nav:hover { color: var(--cream); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(245,237,224,0.5);
  text-transform: uppercase;
}

/* ================================================================
   RESPONSIVE COMPLETO — todos los componentes inline
   ================================================================ */

/* ---- Tablet (≤960px) ---- */
@media (max-width: 960px) {
  /* Home hero */
  .home-hero-title { font-size: clamp(40px, 8vw, 72px) !important; }
  .home-hero-body { font-size: 17px !important; max-width: 44ch !important; }

  /* About page hero integrado */
  .about-hero-section { min-height: auto !important; }
  .about-hero-content { padding-top: 60px !important; padding-bottom: 60px !important; }

  /* Product detail — tablet */
  .product-detail-grid-inline { grid-template-columns: 1fr !important; gap: 0 !important; }
  .product-actions { flex-wrap: wrap !important; }
  .product-actions .btn { flex: 1 1 140px !important; justify-content: center !important; }

  /* Category filtered hero */
  .category-filtered-hero {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 40px 0 !important;
  }
  .category-filtered-hero h2 {
    font-size: clamp(32px, 6vw, 48px) !important;
  }

  /* Contact page */
  .contact-grid-inline {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .contact-info-strip-inline {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .contact-topics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .contact-info-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .contact-hero-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 0 !important;
  }
  .contact-hero-grid > div:first-child {
    order: 2;
    min-height: 40vh !important;
    max-height: 50vh !important;
    overflow: hidden !important;
  }
  .contact-hero-grid > div:first-child > * {
    min-height: 40vh !important;
    max-height: 50vh !important;
  }
  .contact-hero-grid > div:first-child img { object-position: top center !important; }
  .contact-hero-grid > div:last-child { order: 1; }
  .contact-hero-text { padding: 40px 28px !important; }

  /* Distributors */
  .distributors-list-inline {
    grid-template-columns: 1fr !important;
  }
  .distributors-join-inline {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* About page story split */
  .about-story-inline {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .about-pillars-inline {
    grid-template-columns: 1fr !important;
    gap: 0 40px !important;
  }

  /* Gallery masonry */
  .gallery-masonry-inline {
    columns: 2 !important;
  }

  /* Blog post layout */
  .blog-related-inline {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Wholesale portal */
  .wholesale-welcome-inline {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ---- Mobile (≤640px) ---- */
@media (max-width: 640px) {
  /* Home hero */
  .home-hero-title { font-size: clamp(32px, 10vw, 56px) !important; }
  .home-hero-body { font-size: 16px !important; }
  .home-hero-buttons { flex-direction: column !important; width: 100% !important; }
  .home-hero-buttons .btn { width: 100% !important; justify-content: center !important; }

  /* About page hero */
  .about-hero-content { padding-top: 48px !important; padding-bottom: 48px !important; }
  .about-hero-content h1 { font-size: clamp(32px, 8vw, 48px) !important; }
  .about-hero-content p { font-size: 16px !important; }

  /* ── Product detail mobile redesign ── */
  .product-detail-grid-inline {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    min-height: auto !important;
  }
  /* Breadcrumb */
  .product-breadcrumb {
    padding-top: 14px !important;
    padding-bottom: 6px !important;
    font-size: 9px !important;
    letter-spacing: 0.15em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* Gallery — full-bleed, 4:3 ratio */
  .product-gallery-col {
    position: relative !important;
    margin-left: calc(-1 * var(--gutter)) !important;
    margin-right: calc(-1 * var(--gutter)) !important;
  }
  .product-gallery-col > div:first-child {
    aspect-ratio: 4 / 3 !important;
  }
  /* Thumbnails row */
  .product-thumb-strip {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding: 6px var(--gutter) 0 !important;
    gap: 5px !important;
    scrollbar-width: none !important;
  }
  .product-thumb-strip::-webkit-scrollbar { display: none !important; }
  .product-thumb-strip button { width: 46px !important; height: 46px !important; flex-shrink: 0 !important; }
  /* Info */
  .product-info-col {
    padding: 18px 0 28px !important;
  }
  .product-info-col .eyebrow { font-size: 9px !important; margin-bottom: 8px !important; }
  .product-info-col h1 { font-size: clamp(24px, 7vw, 32px) !important; margin-bottom: 12px !important; line-height: 1.1 !important; }
  .product-info-col > p { font-size: 15px !important; line-height: 1.5 !important; margin-bottom: 18px !important; }
  /* Finishes */
  .product-finishes { margin-bottom: 18px !important; }
  .product-finishes .eyebrow { font-size: 9px !important; margin-bottom: 8px !important; }
  /* Specs */
  .product-specs { margin-bottom: 20px !important; }
  .product-specs .eyebrow { font-size: 9px !important; margin-bottom: 8px !important; }
  .product-specs dl div { padding: 8px 0 !important; gap: 10px !important; }
  .product-specs dt { font-size: 9px !important; }
  .product-specs dd { font-size: 14px !important; }
  /* CTA buttons — full width on mobile */
  .product-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  .product-actions .btn { flex: 1 1 auto !important; justify-content: center !important; text-align: center !important; padding: 11px 14px !important; font-size: 10px !important; }
  .product-actions .eyebrow { width: 100% !important; text-align: center !important; font-size: 9px !important; }
  /* Lifestyle */
  .lifestyle-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    aspect-ratio: unset !important;
    gap: 4px !important;
  }
  .lifestyle-grid > div:first-child {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    aspect-ratio: 3/2 !important;
  }
  .lifestyle-grid > div:not(:first-child) { aspect-ratio: 1/1 !important; }
  .lifestyle-section h2 { font-size: 26px !important; margin-bottom: 16px !important; }

  /* Filter bar — compact tabs on mobile */
  .style-filter-btn { padding: 14px 14px !important; font-size: 9px !important; }
  .filter-bar-container > div:last-child { padding-right: 14px !important; flex-shrink: 0; }

  /* Category cards — compact on mobile */
  .category-cards-inline {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3px !important;
  }
  .catalog-decorative-fill {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
  }
  .category-cards-inline img {
    padding: 6px !important;
    aspect-ratio: 4/3 !important;
  }
  .category-cards-inline .sng-overlay {
    padding: 6px 6px !important;
  }
  .category-cards-inline .sng-overlay div:last-child {
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
  }

  /* Category filtered hero */
  .category-style-section { padding: 20px 0 !important; }
  .category-filtered-hero {
    grid-template-columns: 1fr !important;
    padding: 0 28px !important;
    gap: 10px !important;
  }
  .category-filtered-hero h2 {
    font-size: clamp(26px, 7vw, 36px) !important;
    margin-bottom: 10px !important;
  }
  .cat-hero-ornament { display: none !important; }

  /* Contact page */
  .contact-grid-inline {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .contact-info-strip-inline {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .contact-topic-row-inline {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .contact-topics-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-info-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .contact-hero-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 0 !important;
  }
  .contact-hero-grid > div:first-child {
    order: 2;
    min-height: 35vh !important;
    max-height: 45vh !important;
    overflow: hidden !important;
  }
  .contact-hero-grid > div:first-child img { object-position: top center !important; }
  .contact-hero-grid > div:first-child > * {
    min-height: 35vh !important;
    max-height: 45vh !important;
  }
  .contact-hero-grid > div:last-child { order: 1; }
  .contact-hero-text { padding: 32px 20px !important; }

  /* Distributors */
  .distributors-list-inline {
    grid-template-columns: 1fr !important;
  }
  .distributors-list-inline > div {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 20px 16px !important;
  }
  .distributors-list-inline > div > div:last-child {
    text-align: left !important;
  }
  .distributors-search-inline {
    flex-direction: column !important;
  }
  .distributors-join-inline {
    grid-template-columns: 1fr !important;
  }

  /* About page */
  .about-story-inline {
    grid-template-columns: 1fr !important;
  }
  .about-story-inline > div:last-child {
    max-height: 360px;
    overflow: hidden;
  }
  .about-story-inline > div:last-child .ph-img img {
    object-fit: cover !important;
  }
  .about-pillars-inline {
    grid-template-columns: 1fr !important;
  }
  .about-pillars-inline div { flex-direction: column !important; gap: 12px !important; }

  /* Gallery */
  .gallery-masonry-inline {
    columns: 1 !important;
  }

  /* Blog */
  .blog-related-inline {
    grid-template-columns: 1fr !important;
  }

  /* Wholesale portal */
  .wholesale-welcome-inline {
    grid-template-columns: 1fr !important;
  }

  /* Stats bar */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    padding: 32px 0 !important;
  }
  .stats-grid > div {
    text-align: center !important;
    border-left: none !important;
    padding-left: 0 !important;
  }
  .stats-grid > div > div:first-child {
    font-size: 36px !important;
  }

  /* General spacing — exclude special sections */
  section:not(.hero-video-section):not(.filter-bar-section):not(.cat-cards-section):not(.product-detail-section):not(.lifestyle-section):not(.contact-hero-grid) { padding: clamp(40px, 8vw, 64px) 0 !important; }
  .hero-video-section { padding: 0 !important; margin: 0 !important; }

  .filter-bar-section { padding: 0 !important; margin: 0 !important; }
  .cat-cards-section { padding: 0 0 12px !important; }
  .product-detail-section { padding: 0 !important; }
  .lifestyle-section { padding: 40px 0 60px !important; }

  /* Buttons mobile */
  .btn { padding: 12px 20px !important; font-size: 10px !important; }
  .product-actions-inline {
    flex-direction: column !important;
    width: 100% !important;
  }
  .product-actions-inline .btn { width: 100% !important; justify-content: center !important; }

  /* Announcement marquee mobile */
  .announce { font-size: 10px !important; }

  /* Lightbox mobile */
  .lightbox-nav { font-size: 24px !important; padding: 12px !important; }
  .lightbox-stage img.lb-img { max-width: 95vw !important; max-height: 80vh !important; }

  /* Chat widget mobile */
  .chat-window {
    width: calc(100vw - 32px) !important;
    height: calc(100dvh - 100px) !important;
    max-height: 560px !important;
    min-height: 300px !important;
    border-radius: 12px !important;
  }
  .chat-window > div:first-child { padding: 12px !important; }
  .chat-window > div:nth-child(2) { padding: 10px 8px !important; }
  .chat-window > div:nth-child(3) { padding: 6px 8px !important; }
  .chat-window > div:nth-child(4) { padding: 8px !important; }
}

/* ---- Small mobile (≤400px) ---- */
@media (max-width: 400px) {
  .category-cards-inline {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .stats-bar-inline {
    grid-template-columns: 1fr 1fr !important;
  }
  body { font-size: 16px !important; }
}


/* GPU acceleration for animated elements */
.cat-img, .lightbox-stage img {
  will-change: transform;
  backface-visibility: hidden;
}

/* Contain layout for grid items (prevents layout thrashing) */
.cat-card, .sng-card, .blog-card {
  contain: layout style;
}

/* Hidden on desktop; shown via media query on mobile */
.catalog-decorative-fill { display: none; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Prevent CLS on images by setting default aspect ratios */
.ph-img img, .cat-card img {
  width: 100%;
  height: 100%;
}

/* ---- Extra mobile fixes ---- */
/* Stats bar in about/distributors pages */
@media (max-width: 640px) {
  .stats-bar-inline {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
  }
  .stats-bar-inline > div {
    padding: 20px 16px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(212,169,74,0.1);
  }
}

/* Horizontal scroll wrapper for any table-like content */
.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll-wrapper table {
  min-width: 600px;
}

/* Blog featured grid responsive */
@media (max-width: 640px) {
  .blog-featured-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .blog-featured-grid > div:last-child {
    border-left: none !important;
    padding-left: 0 !important;
  }
}

/* ── Hide video controls on hero background video ── */
#hero-bg-video::-webkit-media-controls,
#hero-bg-video::-webkit-media-controls-enclosure,
#hero-bg-video::-webkit-media-controls-panel { display: none !important; }
#hero-bg-video::-webkit-media-controls-play-button,
#hero-bg-video::-webkit-media-controls-start-playback-button { display: none !important; }
#hero-bg-video { -webkit-appearance: none; appearance: none; }
