/* ==========================================================================
   STYLE LOUNGE BY DS — CUSTOMER WEBSITE
   --------------------------------------------------------------------------
   White base, Poppins throughout, one switchable accent colour.
   All colours come from tokens.css — nothing is hard-coded here except a
   few translucent blacks used for overlays.
   ========================================================================== */

/* An element with [hidden] must never be shown by a component rule below. */
[hidden] { display: none !important; }

/* ---- Typographic scale --------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
}
.display-xl { font-size: var(--fs-5xl); font-weight: 600; }
.display-lg { font-size: var(--fs-4xl); }
.display-md { font-size: var(--fs-3xl); }

/* A word inside a heading, tinted with the chosen accent. */
.display .hl { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .55;
}
.eyebrow.no-rule::before { display: none; }
.section-head.center .eyebrow { justify-content: center; }

.lede { font-size: var(--fs-lg); color: var(--text-2); line-height: var(--lh-body); font-weight: 300; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.strong { font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.rule { width: 56px; height: 2px; background: var(--accent); margin: var(--s-4) 0; border: 0; border-radius: 2px; }
.rule-center { margin-inline: auto; }

/* Numbers and prices look better with lining figures and tighter tracking. */
.num, .sc-price-value, .variant-price, .st-value, .hero-stat-n {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.announcement {
  background: var(--accent);
  color: var(--text-on-accent);
  text-align: center;
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
}

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--s-6);
}

.brand { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent);
  border-radius: var(--r-md);
  color: var(--text-on-accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 8px var(--accent-ring);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.brand-sub {
  font-size: 0.5625rem; letter-spacing: var(--tracking-wider);
  text-transform: uppercase; color: var(--text-muted); font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: var(--s-6); margin-left: auto; }
.main-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-2);
  padding: var(--s-2) 0;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-md); color: var(--text-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 3px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--accent); color: var(--text-on-accent);
  font-size: 10px; font-weight: 600; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: none; }

/* ---- Colour switcher ----------------------------------------------------- */
.accent-picker { position: relative; }

.accent-swatch-btn { position: relative; }
.accent-swatch-btn .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), 0 0 0 1px var(--border-strong);
}

.accent-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--s-4); width: 224px; z-index: var(--z-drawer);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-out);
}
.accent-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.accent-menu h3 {
  font-size: var(--fs-xs); letter-spacing: var(--tracking-wider);
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--s-3); font-weight: 600;
}
.accent-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.accent-option {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: var(--s-2) 2px; border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 10px; color: var(--text-muted); line-height: 1.2;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.accent-option:hover { background: var(--surface-2); }
.accent-option .sw {
  width: 26px; height: 26px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  transition: transform var(--t-fast) var(--ease-out);
}
.accent-option:hover .sw { transform: scale(1.08); }
.accent-option[aria-checked="true"] {
  border-color: var(--border-strong); background: var(--surface-2);
  color: var(--text); font-weight: 500;
}
.accent-option[aria-checked="true"] .sw {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentColor;
}
.sw-gold     { background: #8E6A2E; }
.sw-rose     { background: #AE3A57; }
.sw-emerald  { background: #0F6D50; }
.sw-charcoal { background: #2C2C34; }
.sw-purple   { background: #63419E; }
.sw-teal     { background: #0D6670; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--s-2) var(--s-5) var(--s-6);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-md); }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--accent); }
  .nav-toggle { display: grid; }
}

/* The colour row inside the mobile menu drawer. Hidden on wide screens,
   where the header button does the same job. */
.accent-row { display: none; }

@media (max-width: 900px) {
  .accent-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3);
    padding-top: var(--s-5); margin-top: var(--s-2);
  }
  .accent-row-label {
    font-size: var(--fs-xs); letter-spacing: var(--tracking-wider);
    text-transform: uppercase; color: var(--text-muted); font-weight: 600;
    width: 100%;
  }
  .accent-row .sw {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
    transition: box-shadow var(--t-fast) var(--ease);
  }
  .accent-row .sw[aria-checked="true"] {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text);
  }
}

/* Below this width the header cannot hold the colour button as well as
   "Book"; the drawer row above takes over. */
@media (max-width: 560px) {
  .accent-picker { display: none; }
  .site-header .container { gap: var(--s-3); }
  .icon-btn { width: 38px; height: 38px; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 0.9375rem; }
  .brand-mark { width: 36px; height: 36px; }
  .site-header .container { gap: var(--s-2); }
  .header-actions { gap: var(--s-1); }
  .icon-btn { width: 36px; height: 36px; }
  .btn-sm { padding: var(--s-2) var(--s-3); }
}

.accent-menu { width: min(224px, calc(100vw - 32px)); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  min-height: 46px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; }
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--accent); color: var(--text-on-accent);
  box-shadow: 0 1px 2px rgba(20,20,26,.10), 0 4px 14px var(--accent-ring);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 2px 4px rgba(20,20,26,.12), 0 8px 22px var(--accent-ring);
}

.btn-accent { background: var(--accent); color: var(--text-on-accent); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); }

.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #000; }

.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }

.btn-ghost { color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(.92); }

.btn-sm { min-height: 38px; padding: var(--s-2) var(--s-4); font-size: var(--fs-xs); border-radius: var(--r-sm); }
.btn-lg { min-height: 54px; padding: var(--s-4) var(--s-8); font-size: var(--fs-md); }
.btn-block { width: 100%; }

.btn-link {
  color: var(--accent); padding: 0; min-height: 0; background: none;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.btn-link:hover { color: var(--accent-hover); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
/* A soft wash of the chosen accent, plus a faint dot grid for texture. */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 82% 8%,  var(--accent-soft), transparent 62%),
    radial-gradient(60% 70% at 4% 96%,  var(--accent-tint), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text-faint);
  opacity: .13;
  -webkit-mask-image: radial-gradient(75% 65% at 72% 22%, #000, transparent 72%);
          mask-image: radial-gradient(75% 65% at 72% 22%, #000, transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  padding-block: clamp(var(--s-12), 9vw, var(--s-24));
  max-width: 760px;
}
.hero h1 { margin-block: var(--s-5) var(--s-5); }
.hero .lede { color: var(--text-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-12);
  margin-top: var(--s-12);
  padding-top: var(--s-8);
  border-top: 1px solid var(--border);
}
.hero-stat-n {
  font-family: var(--font-display); font-size: var(--fs-2xl);
  font-weight: 600; color: var(--accent); line-height: 1;
}
.hero-stat-l {
  font-size: var(--fs-xs); letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--text-muted); margin-top: var(--s-2);
  font-weight: 500;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-tint { background: var(--accent-tint); }

.section-head { margin-bottom: var(--s-10); max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-block: var(--s-3) var(--s-4); }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-8);
}

/* ---- Gender picker ------------------------------------------------------- */
.gender-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.gender-card {
  display: block; text-align: left; position: relative;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease);
}
.gender-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.gender-card:hover {
  border-color: var(--border-strong); transform: translateY(-4px);
  box-shadow: var(--shadow-lg); color: inherit;
}
.gender-card:hover::before { transform: scaleX(1); }
.gender-card h3 { font-size: var(--fs-xl); margin-bottom: var(--s-1); }

/* The round icon tile used on gender, category and feature cards. */
.card-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: var(--s-4);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.gender-card:hover .card-icon,
.category-card:hover .card-icon { background: var(--accent); color: var(--text-on-accent); }

/* ---- Category cards ------------------------------------------------------ */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: var(--s-4);
}
.category-card {
  display: flex; flex-direction: column; position: relative;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease);
}
.category-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.category-card h3 { font-size: var(--fs-lg); }
.category-card .cc-sub { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.category-card .cc-count { color: var(--accent); font-size: var(--fs-sm); font-weight: 500; }

/* ==========================================================================
   PHOTO GALLERY
   --------------------------------------------------------------------------
   Horizontal scroller. Reads whatever images are in assets/img/gallery/
   (listed by /api/gallery). With no photos uploaded it shows a calm panel
   explaining where to put them, never broken image boxes.
   ========================================================================== */

.gallery { position: relative; }

.gallery-scroller {
  display: flex; gap: var(--s-4);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: var(--s-2) var(--s-5);
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Bleed to the screen edges so photos feel immersive. Using the page
     gutter means the row ends exactly at the edge on every screen size. */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.gallery-scroller::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 auto; scroll-snap-align: start;
  width: clamp(232px, 30vw, 336px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-slow) var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-8) var(--s-4) var(--s-4);
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff; font-size: var(--fs-sm); font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}
.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption { opacity: 1; transform: none; }

/* Arrows: hidden on touch, where swiping is natural. */
.gallery-nav { display: flex; gap: var(--s-2); }
.gallery-nav[hidden] { display: none; }
.gallery-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; color: var(--text-2);
  transition: all var(--t-fast) var(--ease);
}
.gallery-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.gallery-nav button:disabled { opacity: .35; cursor: not-allowed; }
@media (hover: none) { .gallery-nav { display: none; } }

/* Empty state — deliberately elegant, not an error. */
.gallery-empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--accent-tint), var(--accent-tint)) padding-box,
    var(--surface);
  padding: clamp(var(--s-10), 6vw, var(--s-20)) var(--s-6);
  text-align: center;
}
.gallery-empty .card-icon { margin-inline: auto; }
.gallery-empty h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.gallery-empty p { color: var(--text-muted); max-width: 46ch; margin-inline: auto; font-size: var(--fs-sm); }
.gallery-empty code {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--surface); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 5px; white-space: nowrap;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(12,12,16,.92);
  display: grid; place-items: center; padding: var(--s-5);
  animation: fadeIn var(--t-fast) var(--ease);
}
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 86vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-md); box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute; top: var(--s-5); right: var(--s-5);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: var(--s-5); }
.lightbox-next { right: var(--s-5); }
.lightbox-caption {
  position: absolute; bottom: var(--s-6); left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.82); font-size: var(--fs-sm);
}
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: var(--s-2); }
  .lightbox-next { right: var(--s-2); }
}

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */

.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: var(--s-4);
}

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease-out);
}
.service-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card.in-cart { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

.sc-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }

.sc-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }

.sc-title {
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug); margin-bottom: var(--s-2);
}
.sc-title a:hover { color: var(--accent); }
/* The whole card opens the service. A 24px line of text is a poor target on
   a phone; the card is a good one. The Add button sits above this layer so
   it still works on its own. */
.sc-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.sc-actions { position: relative; z-index: 2; }
.sc-meta { position: relative; z-index: 2; pointer-events: none; }

.sc-desc {
  font-size: var(--fs-sm); color: var(--text-muted);
  margin-bottom: var(--s-4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden;
}

.sc-facts {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  font-size: var(--fs-xs); color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.sc-fact { display: inline-flex; align-items: center; gap: var(--s-1); }
.sc-fact svg { color: var(--text-faint); }

.sc-foot {
  margin-top: auto; padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3);
}

.sc-price { line-height: 1.25; }
.sc-price-from { font-size: var(--fs-xs); color: var(--text-faint); display: block; }
.sc-price-value { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; color: var(--text); }
.sc-price-note { font-size: var(--fs-xs); color: var(--text-faint); }

.sc-actions { display: flex; gap: var(--s-2); flex-shrink: 0; }

/* ---- Chips / badges ------------------------------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 3px var(--s-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.6;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-accent { background: var(--accent-soft); color: var(--accent-deep); }
.chip-outline { background: transparent; border-color: var(--border); }
.chip-women { background: #FBE9EF; color: #8E2F4C; }
.chip-men   { background: #E7EFF7; color: #23557A; }
.chip-kids  { background: #EAF3E4; color: #3F6A2B; }
.chip-unisex{ background: var(--surface-3); color: var(--text-2); }

.badge-status {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 3px var(--s-3); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 500; white-space: nowrap;
}
.badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending      { background: var(--status-pending-bg);     color: var(--status-pending); }
.badge-confirmed    { background: var(--status-confirmed-bg);   color: var(--status-confirmed); }
.badge-checked_in   { background: var(--status-checked_in-bg);  color: var(--status-checked_in); }
.badge-in_progress  { background: var(--status-in_progress-bg); color: var(--status-in_progress); }
.badge-completed    { background: var(--status-completed-bg);   color: var(--status-completed); }
.badge-cancelled    { background: var(--status-cancelled-bg);   color: var(--status-cancelled); }
.badge-no_show      { background: var(--status-no_show-bg);     color: var(--status-no_show); }

/* ==========================================================================
   MENU PAGE
   ========================================================================== */

.menu-layout { display: grid; grid-template-columns: 268px 1fr; gap: var(--s-8); align-items: start; }

.filter-panel {
  position: sticky; top: calc(var(--header-h) + var(--s-4));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  max-height: calc(100vh - var(--header-h) - var(--s-8));
  overflow-y: auto;
}
.filter-group + .filter-group { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.filter-title {
  font-size: var(--fs-xs); letter-spacing: var(--tracking-wider);
  text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-3);
  font-weight: 600;
}
.filter-options { display: flex; flex-direction: column; gap: var(--s-1); }

.filter-option {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-3); margin-inline: calc(var(--s-3) * -1);
  border-radius: var(--r-sm); cursor: pointer;
  font-size: var(--fs-sm); color: var(--text-2);
  transition: background var(--t-fast) var(--ease);
  min-height: 38px;
}
.filter-option:hover { background: var(--surface-2); }
.filter-option input { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.filter-option .fo-count { margin-left: auto; font-size: var(--fs-xs); color: var(--text-faint); }

.filter-chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filter-chip {
  padding: var(--s-2) var(--s-4); border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-2);
  transition: all var(--t-fast) var(--ease); min-height: 38px;
}
.filter-chip:hover { border-color: var(--border-strong); }
.filter-chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--text-on-accent);
  box-shadow: 0 2px 8px var(--accent-ring);
}

.price-inputs { display: flex; align-items: center; gap: var(--s-2); }
.price-inputs .field { flex: 1; }

/* ---- Search bar ---------------------------------------------------------- */
.search-bar { position: relative; margin-bottom: var(--s-5); }
.search-bar input {
  width: 100%; padding: var(--s-4) var(--s-12) var(--s-4) var(--s-12);
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); font-size: var(--fs-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  min-height: 54px;
}
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.search-bar .search-icon {
  position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%);
  color: var(--text-faint); pointer-events: none;
}
.search-bar .search-clear {
  position: absolute; right: var(--s-3); top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-muted);
}
.search-bar .search-clear:hover { background: var(--surface-2); color: var(--text); }

.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5);
}
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.active-filter {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-1) var(--s-2) var(--s-1) var(--s-3);
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 500;
}
.active-filter button { color: inherit; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.active-filter button:hover { background: rgba(0,0,0,.09); }

.select {
  padding: var(--s-2) var(--s-8) var(--s-2) var(--s-4);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B77' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right var(--s-3) center;
  appearance: none; font-size: var(--fs-sm); min-height: 42px; cursor: pointer;
}
.select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

/* ---- Category rail (mobile) ---------------------------------------------- */
.category-rail {
  display: none; gap: var(--s-2); overflow-x: auto;
  padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.category-rail::-webkit-scrollbar { display: none; }
.category-rail .filter-chip { flex-shrink: 0; }

.filter-toggle { display: none; }

@media (max-width: 1024px) {
  .menu-layout { grid-template-columns: 1fr; }
  .filter-panel {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw);
    z-index: var(--z-drawer); max-height: none; border-radius: 0;
    border: 0; border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform var(--t-base) var(--ease-out);
    box-shadow: var(--shadow-xl); padding-bottom: var(--s-20);
    overflow-y: auto;
  }
  .filter-panel.open { transform: none; }
  .filter-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--border);
  }
  .filter-panel-head h2 { font-size: var(--fs-lg); }
  .category-rail { display: flex; }
  .filter-toggle { display: inline-flex; }
}
@media (min-width: 1025px) { .filter-panel-head { display: none; } }

.drawer-scrim {
  position: fixed; inset: 0; background: var(--overlay);
  z-index: calc(var(--z-drawer) - 1); opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   FORMS
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.label .req { color: var(--error); margin-left: 2px; }
.label .opt { color: var(--text-faint); font-weight: 400; margin-left: var(--s-2); font-size: var(--fs-xs); }

.input, .textarea {
  width: 100%; padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: var(--fs-md);
  min-height: 48px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179,38,30,.16); }
.input:disabled { background: var(--surface-2); color: var(--text-muted); }
.textarea { min-height: 104px; resize: vertical; line-height: var(--lh-body); }

.field-error { font-size: var(--fs-xs); color: var(--error); }
.field-help { font-size: var(--fs-xs); color: var(--text-muted); }

.form-stack { display: flex; flex-direction: column; gap: var(--s-5); }

/* ==========================================================================
   CARDS / PANELS
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.card-pad { padding: var(--s-6); }
.card-head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.card-head h2, .card-head h3 { font-size: var(--fs-lg); }
.card-body { padding: var(--s-6); }
.card-foot { padding: var(--s-5) var(--s-6); border-top: 1px solid var(--border); background: var(--surface-2); }

.note {
  display: flex; gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  border: 1px solid transparent;
}
.note svg { flex-shrink: 0; margin-top: 2px; }
.note-info { background: var(--info-soft); color: var(--info); }
.note-warn { background: var(--warning-soft); color: var(--warning); }
.note-error { background: var(--error-soft); color: var(--error); }
.note-success { background: var(--success-soft); color: var(--success); }
.note-neutral { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }

/* ==========================================================================
   BOOKING FLOW
   ========================================================================== */

.book-layout { display: grid; grid-template-columns: 1fr 384px; gap: var(--s-8); align-items: start; }
@media (max-width: 1024px) { .book-layout { grid-template-columns: 1fr; } }

.steps { display: flex; gap: var(--s-2); margin-bottom: var(--s-8); flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text-muted);
  font-size: var(--fs-sm); font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--t-base) var(--ease);
}
.step-n {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-muted);
  font-size: var(--fs-xs); font-weight: 600; flex-shrink: 0;
}
.step.active { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent); }
.step.active .step-n { background: var(--accent); color: var(--text-on-accent); }
.step.done { color: var(--success); background: var(--success-soft); }
.step.done .step-n { background: var(--success); color: #fff; }

@media (max-width: 520px) {
  .steps { gap: var(--s-1); }
  .step { padding: var(--s-2) var(--s-3); font-size: var(--fs-xs); flex: 1; justify-content: center; }
}

/* ---- Calendar ------------------------------------------------------------ */
.calendar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border);
}
.cal-month { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }
.cal-nav { display: flex; gap: var(--s-1); }
.cal-nav button {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-2);
}
.cal-nav button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.cal-nav button:disabled { opacity: .3; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: var(--s-3); }
.cal-dow {
  text-align: center; font-size: var(--fs-xs); color: var(--text-faint);
  text-transform: uppercase; letter-spacing: var(--tracking-wide); padding: var(--s-2) 0;
  font-weight: 600;
}
.cal-day {
  /* Square, but capped: on a wide screen an uncapped square cell makes the
     calendar taller than the page. */
  aspect-ratio: 1; min-height: 42px; max-height: 62px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: var(--fs-sm); position: relative;
  transition: all var(--t-fast) var(--ease);
}
.cal-day.empty { pointer-events: none; }
.cal-day.available { color: var(--text); background: var(--surface-2); cursor: pointer; font-weight: 500; }
.cal-day.available:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.cal-day.available::after {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--success); position: absolute; bottom: 6px;
}
.cal-day.full, .cal-day.closed, .cal-day.past, .cal-day.unavailable {
  color: var(--text-faint); cursor: not-allowed; text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.cal-day.today { border-color: var(--accent); font-weight: 600; }
.cal-day.selected {
  background: var(--accent) !important; color: var(--text-on-accent) !important;
  border-color: var(--accent); font-weight: 600;
  box-shadow: 0 2px 10px var(--accent-ring);
}
.cal-day.selected::after { background: currentColor; }

.cal-legend {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--text-muted);
}
.cal-legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---- Time slots ---------------------------------------------------------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: var(--s-2); }
.slot {
  padding: var(--s-3) var(--s-2); min-height: 50px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: var(--fs-sm); font-weight: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: all var(--t-fast) var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.slot:disabled { color: var(--text-faint); background: var(--surface-2); cursor: not-allowed; font-weight: 400; }
.slot.selected {
  background: var(--accent); border-color: var(--accent); color: var(--text-on-accent);
  box-shadow: 0 2px 10px var(--accent-ring);
}
.slot-seats { font-size: 10px; color: var(--text-faint); font-weight: 400; }
.slot.selected .slot-seats { color: inherit; opacity: .85; }

@media (max-width: 400px) {
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}

/* ---- Summary panel ------------------------------------------------------- */
.summary {
  position: sticky; top: calc(var(--header-h) + var(--s-4));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.summary-head { padding: var(--s-5); border-bottom: 1px solid var(--border); }
.summary-head h2 { font-size: var(--fs-lg); }
.summary-body { padding: var(--s-5); max-height: 44vh; overflow-y: auto; }
.summary-foot { padding: var(--s-5); border-top: 1px solid var(--border); background: var(--surface-2); }

.summary-line {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding-block: var(--s-3);
}
.summary-line + .summary-line { border-top: 1px solid var(--border); }
.sl-name { font-size: var(--fs-sm); font-weight: 500; }
.sl-variant { font-size: var(--fs-xs); color: var(--text-muted); }
.sl-price { font-size: var(--fs-sm); white-space: nowrap; }
.sl-remove { color: var(--text-faint); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.sl-remove:hover { background: var(--error-soft); color: var(--error); }

.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: var(--s-4); margin-top: var(--s-3); border-top: 1px solid var(--border-strong);
}
.summary-total .st-value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; color: var(--accent); }

.summary-row { display: flex; justify-content: space-between; font-size: var(--fs-sm); padding-block: var(--s-1); }
.summary-row.charge { color: var(--warning); }

/* ---- Mobile sticky CTA --------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
  background: var(--surface); border-top: 1px solid var(--border);
  padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(20,20,26,.10);
  display: none; align-items: center; gap: var(--s-3);
}
.sticky-cta.show { display: flex; }
.sticky-cta .sc-info { flex: 1; min-width: 0; }
@media (min-width: 1025px) { .sticky-cta { display: none !important; } }
body.has-sticky-cta { padding-bottom: 88px; }

/* ==========================================================================
   SERVICE DETAIL
   ========================================================================== */

.service-hero { display: grid; grid-template-columns: 1fr 368px; gap: var(--s-10); align-items: start; }
@media (max-width: 960px) { .service-hero { grid-template-columns: 1fr; gap: var(--s-6); } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s-5); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-faint); }

.variant-list { display: flex; flex-direction: column; gap: var(--s-2); }
.variant-option {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; text-align: left; width: 100%;
  transition: all var(--t-fast) var(--ease); min-height: 62px;
}
.variant-option:hover { border-color: var(--border-strong); background: var(--surface-2); }
.variant-option[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.variant-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong);
  flex-shrink: 0; display: grid; place-items: center;
  transition: border-color var(--t-fast) var(--ease);
}
.variant-option[aria-checked="true"] .variant-radio { border-color: var(--accent); }
.variant-option[aria-checked="true"] .variant-radio::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.variant-name { flex: 1; font-size: var(--fs-md); font-weight: 500; }
.variant-price { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }

.detail-list { display: flex; flex-direction: column; gap: var(--s-3); }
.detail-row { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-sm); padding-block: var(--s-2); }
.detail-row + .detail-row { border-top: 1px solid var(--border); }
.detail-row dt { color: var(--text-muted); }
.detail-row dd { margin: 0; text-align: right; font-weight: 500; }

/* ==========================================================================
   CONFIRMATION
   ========================================================================== */

.confirm-mark {
  width: 76px; height: 76px; border-radius: 50%; margin-inline: auto;
  display: grid; place-items: center;
  background: var(--success-soft); color: var(--success);
  margin-bottom: var(--s-6);
}
.reference-box {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  background: var(--accent-soft); border: 1px dashed var(--accent);
  border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: var(--fs-lg); letter-spacing: .06em;
  color: var(--accent-deep); font-weight: 600;
}

/* ==========================================================================
   FOOTER  (light, to keep the whole site white)
   ========================================================================== */

.site-footer {
  background: var(--bg-alt); color: var(--text-2);
  border-top: 1px solid var(--border);
  padding-block: var(--s-16) var(--s-8);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-8);
  padding-bottom: var(--s-10); border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-6); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 {
  font-size: var(--fs-xs); letter-spacing: var(--tracking-wider);
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4);
  font-weight: 600;
}
.site-footer a { color: var(--text-2); font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--accent); }
.site-footer li { padding-block: var(--s-1); }
.site-footer .brand-name { color: var(--text); }

.hours-list { font-size: var(--fs-sm); }
.hours-row { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: 3px; }
.hours-row.closed { color: var(--text-faint); }
.hours-row.today { color: var(--accent); font-weight: 600; }

.footer-bottom {
  padding-top: var(--s-6); display: flex; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-muted);
}

.not-set { color: var(--text-faint); font-style: italic; font-size: var(--fs-sm); }

/* ==========================================================================
   STATES
   ========================================================================== */

.empty-state { text-align: center; padding: var(--s-16) var(--s-5); }
.empty-state svg { color: var(--text-faint); margin-inline: auto; margin-bottom: var(--s-5); }
.empty-state h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.empty-state p { color: var(--text-muted); max-width: 44ch; margin-inline: auto; margin-bottom: var(--s-5); }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skeleton-card { height: 224px; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections fade up as they enter the viewport. Disabled by the
   reduced-motion rule in tokens.css. */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   TOAST / MODAL
   ========================================================================== */

.toast-stack {
  position: fixed; bottom: var(--s-5); right: var(--s-5); z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--s-2); max-width: min(400px, calc(100vw - 40px));
}
.toast {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); animation: toastIn var(--t-base) var(--ease-out);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warn { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }
.toast button { margin-left: auto; color: var(--text-faint); flex-shrink: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 560px) {
  .toast-stack { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); max-width: none; }
  body.has-sticky-cta .toast-stack { bottom: 96px; }
}

.modal-scrim {
  position: fixed; inset: 0; background: var(--overlay); z-index: var(--z-modal);
  display: grid; place-items: center; padding: var(--s-5);
  animation: fadeIn var(--t-fast) var(--ease);
  overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); width: min(560px, 100%);
  max-height: 90vh; display: flex; flex-direction: column;
  animation: modalIn var(--t-base) var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-head { padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.modal-head h2 { font-size: var(--fs-lg); }
.modal-body { padding: var(--s-6); overflow-y: auto; }
.modal-foot { padding: var(--s-5) var(--s-6); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: var(--s-3); flex-wrap: wrap; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination { display: flex; justify-content: center; align-items: center; gap: var(--s-2); margin-top: var(--s-10); flex-wrap: wrap; }
.pagination button {
  min-width: 42px; height: 42px; padding-inline: var(--s-3);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: var(--fs-sm); font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.pagination button:hover:not(:disabled):not([aria-current]) { border-color: var(--accent); color: var(--accent); }
.pagination button[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ==========================================================================
   TOUCH SCREENS
   --------------------------------------------------------------------------
   Fingers are not mouse pointers. On small screens the text links that sit
   in lists — the footer, breadcrumbs — get real height so they can be tapped
   without hitting their neighbour.
   ========================================================================== */

@media (max-width: 900px) {
  .site-footer li { padding-block: 0; }
  .site-footer li > a {
    display: flex; align-items: center; min-height: 40px;
  }
  .breadcrumb { gap: var(--s-1) var(--s-2); }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 34px; }
  .footer-bottom { gap: var(--s-2); }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .site-header, .site-footer, .sticky-cta, .toast-stack, .no-print,
  .gallery, .announcement { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #ccc; box-shadow: none; }
  a { text-decoration: none; color: #000; }
}
