/* ==========================================================
   SSS Seating by Alpin Kom – catalog styles
   ========================================================== */

:root {
  --navy: #123052;
  --navy-700: #0c2340;
  --navy-50: #eef2f7;
  --green: #7a9a3a;
  --green-700: #5f7a2a;
  --classic: #1e4266;
  --premium: #b3262d;
  --tabouret: #5a6b7d;
  --lounge: #8a6a43;
  --whatsapp: #1f9d55;

  --ink: #17212e;
  --muted: #5b6776;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --surface-warm: #f6f3ef;   /* product photos sit on warmth, not cool white */
  --bg-warm: #faf8f5;        /* section tint, a shade lighter than the photo surface */

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 48, 82, .06), 0 8px 24px rgba(18, 48, 82, .06);
  --shadow-lg: 0 2px 6px rgba(18, 48, 82, .08), 0 24px 48px rgba(18, 48, 82, .14);

  /* Motion. Custom ease-out: the built-in one is too weak to feel intentional. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 140ms;   /* press feedback */
  --dur-hover: 200ms;   /* hover, image zoom */
  --dur-enter: 220ms;   /* modal in */
  --dur-exit: 150ms;    /* modal out – always faster than the entrance */

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  font-family: var(--font-sans);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-tap-highlight-color: transparent;
}
body { margin: 0; background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

/* Controls: no tap delay, and long-press must not select a label.
   Plain links keep user-select so the email and phone stay copyable. */
a { touch-action: manipulation; }
button, [role="button"], .btn, .site-nav a, .site-footer nav a {
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
/* One family throughout: headings 600–700, body 400.
   Tracking is size-specific: tight on display sizes, 0 on body. */
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-weight: 600; letter-spacing: -.005em; }
body, p, li, input, select, button, .lead { letter-spacing: 0; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 5.5vw, 72px) 0; }
.section-head { margin-bottom: 36px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 12px;
}
.eyebrow-light { color: #b9d27c; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease,
              border-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
  white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-accent { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--navy-700); }
  .btn-accent:hover { background: var(--green-700); }
  .btn-ghost:hover { border-color: var(--navy); }
  .btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
  .btn-whatsapp:hover { background: #17864a; }
}
.link-btn {
  background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600;
  color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(18,48,82,.05); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink); position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--green);
  transform: scaleX(0); transition: transform var(--dur-hover) var(--ease-out); transform-origin: left;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:not(.btn):hover { color: var(--navy); }
  .site-nav a:not(.btn):hover::after { transform: scaleX(1); }
}

.lang-switch { display: inline-flex; align-items: center; gap: 8px; }
.lang-switch a { display: inline-flex; text-decoration: none; opacity: .5; transition: opacity var(--dur-hover) ease; }
.lang-switch a[aria-current] { opacity: 1; }
.lang-switch .flag { width: 20px; height: 14px; border-radius: 2px; display: block; }
.lang-switch-mobile { display: none; }
.lang-switch a + a { border-left: 1px solid var(--line); padding-left: 8px; }
@media (hover: hover) and (pointer: fine) {
  .lang-switch a:hover { opacity: 1; }
}

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; margin: 0 auto;
  transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur-hover) ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(18,48,82,.1);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .lang-switch { display: none; }          /* lives in the header bar instead */
  .lang-switch-mobile {
    display: inline-flex; margin-left: auto; gap: 4px;  /* sits beside the hamburger */
  }
  .lang-switch-mobile a {
    min-width: 40px; min-height: 40px;                  /* comfortable tap target */
    align-items: center; justify-content: center;
  }
  .lang-switch-mobile a + a { border-left: 0; padding-left: 0; }
  .site-nav .btn { margin-top: 16px; }
  .brand img { height: 28px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 88% 20%, rgba(122,154,58,.10), transparent 60%),
    linear-gradient(180deg, var(--bg-warm), #fff);
  /* Sized so the whole hero – copy, buttons, stats and all three cards –
     fits one 1440x900 screen under the sticky header. */
  padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 60px);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 0.86fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 0;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column-reverse; min-width: 0; }
.hero-stats div + div { border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 28px); }
.hero-stats dt { font-size: .94rem; color: var(--muted); }
.hero-stats dd {
  margin: 0; font-size: 2.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  color: var(--navy); font-variant-numeric: tabular-nums; /* no width jump while counting */
}
/* Denar suffix on /mk/: 60% of the number, baseline aligned, never wraps. */
.hero-stats dd { white-space: nowrap; }
.stat-unit { font-size: .6em; font-weight: 600; margin-left: .18em; letter-spacing: 0; }

/* Overlapping stack. Card widths/positions are fractions of the visual's width (W);
   the box is 1.32W tall. Front cards only overlap the back card's padding,
   never the chair inside it. */
.hero-visual { position: relative; aspect-ratio: 1 / 1.262; }
@media (min-width: 901px) {
  /* Keep the whole hero within one screen: 73px header + 40 top + 60 bottom padding.
     An explicit width (not max-width + auto margin) – the box has no in-flow
     children, so anything that stops the grid stretching collapses it to zero. */
  .hero-visual { width: min(100%, calc((100vh - 173px) / 1.262)); justify-self: end; }
}
.hero-card {
  position: absolute; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--surface-warm); border-radius: 24px; box-shadow: var(--shadow-lg);
}
/* padding % resolves against the card's width, so 8% is an even gap all round
   and no chair ever touches an edge. */
.hero-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 8%;
  object-fit: contain; mix-blend-mode: multiply;
}
.hero-card-back { right: 0; top: 0; width: 56%; z-index: 1; }
.hero-card-left { left: 0; top: 23.9%; width: 50%; z-index: 2; }
.hero-card-right { left: 44%; top: 50.8%; width: 50%; z-index: 3; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-stats dd { font-size: 1.9rem; }
  /* MK carries a denar suffix, so the three stats scale together to stay
     inside their columns on narrow phones. */
  html[lang="mk"] .hero-stats dd { font-size: clamp(1.35rem, 6.2vw, 1.9rem); }
  .hero-stats dt { font-size: .85rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.about-body p { font-size: 1.1rem; color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.pillars li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.pillars strong { text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-right: 4px; }
.pillars span:not(.dot) { color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot-budget { background: var(--green); }
.dot-classic { background: var(--classic); }
.dot-premium { background: var(--premium); }
.about-logo { height: 110px; width: auto; margin-top: 32px; }
@media (max-width: 820px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-logo { height: 80px; margin-top: 24px; }
}

/* ---------- Materials ---------- */
.materials { background: #fff; }
.material-block + .material-block { margin-top: clamp(48px, 6vw, 80px); }
.materials h3 { font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.materials h3 small {
  display: block; margin-top: 4px; font-size: .85rem;
  font-weight: 400; letter-spacing: 0; color: var(--muted);
}
.material-text { margin-top: 14px; font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.material-note { margin-top: 16px; font-size: .85rem; color: var(--muted); }

.swatch-grid {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.swatch img {
  /* source strips are only 295px wide – never scale them up past that */
  width: 100%; max-width: 280px; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; background: var(--surface-warm);
}
.swatch span {
  display: block; margin-top: 10px; font-size: 1rem; font-weight: 500; color: var(--ink);
}

.material-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.material-photo {
  margin: 0; background: var(--surface-warm); border-radius: var(--radius); overflow: hidden;
}
.material-photo img { width: 100%; max-width: 576px; aspect-ratio: 576 / 385; object-fit: cover; }

@media (max-width: 820px) {
  .material-split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- Collections ---------- */
.collections { background: var(--bg-warm); }
.collection-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.collection-card {
  display: flex; flex-direction: column; text-align: left; background: #fff; border: 0;
  border-radius: var(--radius); padding: 18px; cursor: pointer; font: inherit; color: inherit;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) ease, border-color var(--dur-hover) ease;
  position: relative; overflow: hidden;
}
.collection-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c, var(--navy));
}
.collection-card .cc-img {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin: 8px 0 16px;
  background: var(--surface-warm); border-radius: 12px;
}
.collection-card .cc-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 8%; object-fit: contain;
  mix-blend-mode: multiply; transition: transform var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .collection-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .collection-card:hover .cc-img img { transform: scale(1.04); }
}
.collection-card h3 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); }
.collection-card p { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.collection-card .cc-meta { margin-top: auto; padding-top: 14px; font-size: .88rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.collection-card .cc-meta span:last-child { color: var(--muted); }
@media (max-width: 1080px) { .collection-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .collection-card { padding: 14px; } }

/* ---------- Filters ---------- */
.filters {
  display: grid; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.filter-search { position: relative; }
.filter-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filter-search input {
  width: 100%; height: 50px; padding: 0 16px 0 44px; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); transition: border-color var(--dur-hover) ease, background-color var(--dur-hover) ease;
}
.filter-search input:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(18,48,82,.12); }

.chip-group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.chip-group legend {
  float: left; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-right: 6px; padding: 0;
}
.chip-group legend small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 500;
  cursor: pointer; transition: background-color var(--dur-hover) ease, border-color var(--dur-hover) ease,
              color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .chip-count { font-size: .78rem; opacity: .7; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--navy); }
  .chip:disabled:hover { border-color: var(--line); }
}
.chip-swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] .chip-swatch { box-shadow: 0 0 0 2px #fff; }

.filter-row { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.filter-sort { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.filter-sort label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filter-sort select {
  height: 40px; padding: 0 36px 0 14px; font: inherit; font-size: .92rem; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23123052' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
@media (max-width: 680px) {
  .filters { padding: 16px; }
  .chip-group legend { float: none; width: 100%; margin-bottom: 2px; }
  .filter-sort { margin-left: 0; width: 100%; }
  .filter-sort select { flex: 1; }
}

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 18px; min-height: 28px; }
#result-count { color: var(--muted); font-size: .95rem; }
#result-count strong { color: var(--ink); }

/* ---------- Product grid ---------- */
.product-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.product-card {
  height: 100%; display: flex; flex-direction: column; width: 100%; text-align: left;
  background: #fff; border: 0; border-radius: var(--radius); padding: 0; overflow: hidden;
  font: inherit; color: inherit; cursor: pointer;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) ease, border-color var(--dur-hover) ease;
}
.product-card .pc-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--surface-warm); border-radius: var(--radius);
}
.product-card .pc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 8%; object-fit: contain;
  mix-blend-mode: multiply; transition: transform var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { transform: translateY(-3px); }
  .product-card:hover .pc-media { box-shadow: var(--shadow-lg); }
  .product-card:hover .pc-media img { transform: scale(1.04); }
}
.product-card .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.product-card .pc-body { padding: 14px 4px 4px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product-card h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.product-card .pc-meta { font-size: .85rem; color: var(--muted); }
.product-card .pc-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.product-card .pc-price { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.product-card .pc-more { font-size: .85rem; font-weight: 600; color: var(--green-700); }
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .pc-body { padding: 10px 2px 2px; }
  .product-card .pc-more { display: none; }
  .product-card .badge { top: 8px; left: 8px; }
}

.badge {
  display: inline-block; padding: 0; font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: none;
}
[data-c="budget"] { --c: var(--green); }
[data-c="classic"] { --c: var(--classic); }
[data-c="premium"] { --c: var(--premium); }
[data-c="tabouret"] { --c: var(--tabouret); }
[data-c="lounge"] { --c: var(--lounge); }

.empty { text-align: center; padding: 56px 16px; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.empty[hidden] { display: none; }

.options-note {
  margin-top: 40px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border-radius: var(--radius-sm); background: var(--navy-50); color: var(--navy);
}
.options-note svg { flex: none; margin-top: 2px; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact h2 { color: #fff; margin-bottom: 16px; }
.contact .lead { color: rgba(255,255,255,.75); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-card { font-style: normal; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 8px 24px; }
.contact-card dl { margin: 0; }
.contact-card div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-card div:last-child { border-bottom: 0; }
.contact-card dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.contact-card dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 500; }
.contact-card a { color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .contact-card a:hover { text-decoration: underline; }
}
@media (max-width: 820px) { .contact-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-700); color: rgba(255,255,255,.7); padding: 48px 0 40px; }
.footer-inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
/* Box padding scales with the logo (same proportions as the 139px version). */
.footer-logo { background: #fff; border-radius: 16px; padding: 32px 48px; }
.footer-logo img { width: 280px; height: auto; }
@media (max-width: 620px) {
  .footer-logo { padding: 25px 38px; }
  .footer-logo img { width: 220px; }
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.site-footer a { color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { text-decoration: underline; }
}
.footer-meta { font-size: .9rem; }
.footer-small { font-size: .8rem; opacity: .75; }

/* ---------- Product dialog ---------- */
.product-dialog {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 22px; box-shadow: var(--shadow-lg); color: var(--ink); background: #fff;
  overflow: auto; overscroll-behavior: contain;
}
/* Transitions, not keyframes: opening products in quick succession retargets
   instead of restarting, and the exit gets its own (shorter) duration. */
.product-dialog {
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity var(--dur-exit) var(--ease-out), transform var(--dur-exit) var(--ease-out),
              overlay var(--dur-exit) allow-discrete, display var(--dur-exit) allow-discrete;
}
.product-dialog[open] {
  opacity: 1; transform: none;
  transition-duration: var(--dur-enter);
}
@starting-style {
  .product-dialog[open] { opacity: 0; transform: translateY(12px) scale(.98); }
}
.product-dialog::backdrop {
  background: rgba(12, 35, 64, .55); backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur-exit) var(--ease-out),
              overlay var(--dur-exit) allow-discrete, display var(--dur-exit) allow-discrete;
}
.product-dialog[open]::backdrop { opacity: 1; transition-duration: var(--dur-enter); }
@starting-style {
  .product-dialog[open]::backdrop { opacity: 0; }
}
.pd { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.pd-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px;
  z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--bg-soft); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
@media (hover: hover) and (pointer: fine) {
  .pd-close:hover { background: var(--line); }
}
.pd-media { background: var(--surface-warm); display: flex; align-items: center; justify-content: center; padding: 32px; border-right: 1px solid var(--line); min-height: 420px; }
.pd-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: min(60vh, 520px);
  object-fit: contain; mix-blend-mode: multiply;
}
.pd-body { padding: 40px 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.pd-body .badge { align-self: flex-start; }
.pd-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.015em; padding-right: 40px; }
.pd-meta { color: var(--muted); }
.pd-price { font-size: 2rem; font-weight: 700; color: var(--navy); margin: 4px 0 8px; }
.pd-price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-actions .btn { flex: 1 1 180px; }
.pd-note { font-size: .9rem; color: var(--navy); background: var(--navy-50); padding: 14px 16px; border-radius: var(--radius-sm); margin-top: 8px; }
.pd-variants h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 8px 0 10px; }
.pd-variants ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pd-variants button {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px 6px 8px; cursor: pointer;
  font: inherit; font-size: .72rem; color: var(--muted); line-height: 1.25; display: grid; gap: 4px; justify-items: center;
}
@media (hover: hover) and (pointer: fine) {
  .pd-variants button:hover { border-color: var(--navy); color: var(--navy); }
}
.pd-variants img { height: 64px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 720px) {
  .product-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .pd { grid-template-columns: 1fr; }
  .pd-media {
    border-right: 0; border-bottom: 1px solid var(--line); min-height: 0;
    padding: calc(56px + env(safe-area-inset-top, 0px)) 24px 20px;
  }
  .pd-media img { max-height: 42vh; }
  .pd-body {
    padding: 24px calc(20px + env(safe-area-inset-right, 0px))
             calc(32px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
  }
}
body.dialog-open { overflow: hidden; }

/* Press feedback. Last in the file so it wins over the hover transforms above. */
.btn:active,
.chip:not(:disabled):active,
.product-card:active,
.collection-card:active,
.pd-close:active,
.pd-variants button:active { transform: scale(0.97); transition-duration: var(--dur-press); }

/* Reduced motion: remove movement, keep the opacity and colour transitions
   that explain what changed. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-property: opacity, background-color, color, border-color, box-shadow, text-decoration-color;
    animation: none !important;
  }
  .product-dialog, .product-dialog[open] { transform: none; }
  @starting-style { .product-dialog[open] { transform: none; } }
  .product-card:hover, .collection-card:hover,
  .product-card:hover .pc-media img, .collection-card:hover .cc-img img,
  .btn:active, .chip:not(:disabled):active, .product-card:active,
  .collection-card:active, .pd-close:active, .pd-variants button:active { transform: none; }
}
