/* =====================================================
   TWELVETREE FURNISHINGS — HERITAGE COLLECTION
   Est. 1975 · Sheffield's Premier Furnishings
   Design: Forest + Gold · Cormorant + Inter
   ===================================================== */

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

/* ─────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────── */
:root {
  --forest:        #1B3328;
  --forest-mid:    #26503D;
  --forest-light:  #EAF2EC;

  --accent:        #2E7D52;
  --accent-dark:   #1F5C3A;
  --accent-light:  #EAF5EE;
  --accent-mid:    #4A9B6A;

  /* Aliases for backward compat */
  --clay:          #2E7D52;
  --clay-dark:     #1F5C3A;
  --clay-light:    #EAF5EE;
  --clay-mid:      #4A9B6A;
  --gold:          #2E7D52;
  --gold-dark:     #1F5C3A;
  --gold-light:    #EAF5EE;

  --cream:         #FAF8F4;
  --cream-mid:     #F0EAE1;
  --surface:       #FFFFFF;

  --ink:           #1A1917;
  --ink-mid:       #4A4543;
  --ink-muted:     #6B6560;
  --ink-light:     #A09894;

  --border:        #E2D9CF;
  --border-mid:    #CFC5BA;

  --danger:        #DC2626;
  --success:       #16A34A;

  /* ── Semantic aliases ── */
  --primary:       #1B3328;   /* legacy alias — now maps to forest */
  --primary-dark:  #12231B;
  --primary-light: #EAF2EC;
  --bg:            #FAF8F4;
  --text:          #1A1917;
  --text-muted:    #6B6560;
  --text-light:    #A09894;
  --badge-new:     #C9A96E;
  --announcement:  #1B3328;
  --navy:          #1B3328;

  --shadow-xs: 0 1px 3px rgba(26,25,23,.05), 0 1px 2px rgba(26,25,23,.03);
  --shadow-sm: 0 2px 8px rgba(26,25,23,.08), 0 1px 3px rgba(26,25,23,.04);
  --shadow-md: 0 6px 20px rgba(26,25,23,.10), 0 2px 8px rgba(26,25,23,.06), 0 1px 3px rgba(26,25,23,.03);
  --shadow-lg: 0 16px 48px rgba(26,25,23,.13), 0 6px 20px rgba(26,25,23,.08), 0 2px 6px rgba(26,25,23,.04);
  --shadow-clay: 0 8px 28px rgba(46,125,82,.22), 0 3px 10px rgba(46,125,82,.11), 0 1px 4px rgba(46,125,82,.06);
  --shadow-gold: 0 8px 28px rgba(46,125,82,.22), 0 3px 10px rgba(46,125,82,.11), 0 1px 4px rgba(46,125,82,.06);
  --shadow-forest: 0 8px 28px rgba(27,51,40,.30), 0 3px 10px rgba(27,51,40,.14), 0 1px 4px rgba(27,51,40,.06);
  --shadow-card: 0 20px 60px rgba(0,0,0,.22), 0 8px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);

  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spring:        cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:    160ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-md: 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-lg: 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─────────────────────────────────────────────────────
   BASE RESET
───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garant', Georgia, serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }
a { transition: color var(--transition); }

/* ─────────────────────────────────────────────────────
   ACCESSIBILITY
───────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────────────────────────────────────────────────────
   SCROLL REVEAL
   js-reveal class added by body JS — ensures elements
   stay visible in headless / no-JS contexts
───────────────────────────────────────────────────── */
.js-reveal .fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-lg), transform var(--transition-lg);
}
.js-reveal .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal .fade-up:nth-child(2) { transition-delay: 80ms; }
.js-reveal .fade-up:nth-child(3) { transition-delay: 160ms; }
.js-reveal .fade-up:nth-child(4) { transition-delay: 240ms; }

/* ─────────────────────────────────────────────────────
   ANNOUNCEMENT BAR
───────────────────────────────────────────────────── */
.announcement-bar {
  background: var(--forest);
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-weight: 500;
  padding: 8px 0;
  text-align: center;
  letter-spacing: .2px;
}
.announcement-bar span { margin: 0 1.5rem; }
.announcement-bar i { color: var(--accent-mid); margin-right: .35rem; }
.announcement-bar a { color: inherit; text-decoration: none; margin: 0 1.5rem; }
.announcement-bar a:hover { color: #fff; }
.announcement-bar span > a { margin: 0; }

/* ─────────────────────────────────────────────────────
   UTILITY NAV (row 2 — secondary links + contact)
───────────────────────────────────────────────────── */
.utility-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
}
.utility-nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
}
.utility-links { display: flex; align-items: center; gap: 0; }
.utility-links a {
  font-size: .72rem; font-weight: 500;
  color: var(--ink-muted); text-decoration: none;
  padding: .25rem .9rem; letter-spacing: .3px;
  transition: color var(--transition);
  border-right: 1px solid var(--border);
}
.utility-links a:first-child { padding-left: 0; }
.utility-links a:hover { color: var(--ink); }
.utility-contact {
  font-size: .72rem; color: var(--ink-muted);
  display: flex; align-items: center; gap: 1.25rem;
}
.utility-contact span { display: flex; align-items: center; gap: .3rem; }
.utility-contact a { display: flex; align-items: center; gap: .3rem; color: inherit; text-decoration: none; }
.utility-contact a:hover { color: var(--ink); }
.utility-contact i { font-size: .75rem; color: var(--accent); }

/* ─────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────── */
.navbar {
  background: #fff !important;
  border-bottom: 1px solid var(--border);
  padding: .5rem 0;
  box-shadow: none;
}
/* 3-column layout: logo | center links | right actions */
.navbar > .container { align-items: center; gap: 1.5rem; }
.navbar-brand { display: flex; align-items: center; padding: 0; flex-shrink: 0; }
.navbar-brand img { display: block; }
.navbar-center {
  flex: 1; display: flex; justify-content: center; align-items: center;
}
.navbar-actions {
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
}

.navbar-nav .nav-link {
  color: var(--ink) !important;
  font-size: .8rem;
  font-weight: 600;
  padding: .5rem .8rem !important;
  transition: color var(--transition);
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--forest) !important;
}
/* Active underline indicator */
.navbar-nav .nav-link.active {
  border-bottom: 2px solid var(--forest);
  padding-bottom: calc(.5rem - 2px) !important;
}

/* Dropdowns */
.dropdown-menu {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: .5rem 0;
  min-width: 220px;
  background: #fff;
}
.dropdown-item {
  font-size: .875rem;
  padding: .45rem 1.25rem;
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--cream);
  color: var(--forest) !important;
}
.dropdown-divider { margin: .3rem 0; border-color: var(--border); }
.nav-link.dropdown-toggle::after { margin-left: .3rem; }

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    animation: dropIn .18s var(--ease);
  }
  .navbar .dropdown > .dropdown-toggle:active { pointer-events: none; }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Search */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .38rem .85rem;
  gap: .5rem;
  width: 340px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,125,82,.12);
  background: #fff;
}
.nav-search input {
  border: none; background: transparent; outline: none;
  font-size: .875rem; color: var(--ink); width: 100%;
}
.nav-search input::placeholder { color: var(--ink-light); }
.nav-search i { color: var(--ink-muted); font-size: .9rem; }

/* Mobile menu toggler — high-contrast forest icon */
.navbar-toggler { border: none; padding: .35rem .5rem; }
.navbar-toggler:focus { box-shadow: none; outline: 2px solid var(--accent); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231B3328' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Nav icon */
.nav-icon-btn {
  position: relative;
  background: none; border: none;
  color: var(--ink); font-size: 1.2rem;
  padding: .3rem .55rem; cursor: pointer;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav-icon-btn:hover { color: var(--clay); }
.nav-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--forest); color: #fff;
  font-size: .58rem; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─────────────────────────────────────────────────────
   COMPACT PAGE HERO (flooring, landlords, etc.)
───────────────────────────────────────────────────── */
.page-hero { background: var(--forest); color: #fff; padding: 3.25rem 0 3.5rem; border-bottom: 4px solid var(--accent); }
.page-hero-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-mid); margin-bottom: .6rem; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .75rem; }
.page-hero-desc { color: rgba(255,255,255,.72); max-width: 640px; font-size: .95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.page-hero .btn-outline-light { border-radius: 7px; font-weight: 600; font-size: .9rem; padding: .8rem 2rem; min-height: 48px; display: inline-flex; align-items: center; }

/* ─────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────── */
.hero {
  background: var(--cream);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Subtle warm grain on light hero */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative; z-index: 1;
}

/* Left */
.hero-content {
  padding: 7rem 3rem 5rem 2rem;
  display: flex; flex-direction: column; align-items: flex-start;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--clay);
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3.5px;
  margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1.5px;
  background: var(--clay); flex-shrink: 0;
}

.hero-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.02; letter-spacing: -2px;
  margin-bottom: 1.75rem;
}
.hero-title em {
  font-style: italic; color: var(--forest); font-weight: 600;
}

.hero-desc {
  font-size: 1.05rem; color: var(--ink-muted);
  max-width: 440px; line-height: 1.75;
  margin-bottom: 2.5rem; font-weight: 300;
}

.hero-ctas { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.btn-hero-primary {
  background: var(--forest); color: #fff;
  border: none; padding: .9rem 2.4rem;
  border-radius: 6px; font-size: .88rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
  letter-spacing: .4px; min-height: 48px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-hero-primary:hover {
  background: var(--forest-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-forest);
  color: #fff;
}
.btn-hero-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}
.btn-hero-primary:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.btn-hero-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: .875rem 2rem; border-radius: 6px;
  font-size: .88rem; font-weight: 500; cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.btn-hero-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-hero-ghost:active {
  background: var(--ink-mid);
  transform: scale(0.98);
}
.btn-hero-ghost:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Right — image */
.hero-media {
  position: relative; height: 100%; min-height: 100svh;
  background: var(--cream);
}
.hero-media-inner {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--cream);
}
.hero-media-inner img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  opacity: 1;
}
/* Tint overlay — hidden when image uses object-fit: contain */
.hero-img-tint {
  position: absolute; inset: 0;
  background: #C4724A;
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none; z-index: 1;
}
/* Left-edge gradient — removed (image now uses object-fit: contain on cream bg) */
.hero-media-inner::after { display: none; }

/* Floating badge — pinned to right edge of hero panel */
.hero-badge {
  position: absolute; bottom: 3rem; right: 0;
  background: var(--forest);
  border: none;
  border-radius: 16px 0 0 16px; padding: 1.4rem 2rem;
  text-align: center; z-index: 3;
  box-shadow: -6px 8px 28px rgba(27,51,40,.22);
}
.hero-badge-num {
  font-family: 'Cormorant Garant', serif;
  font-size: 3.2rem; font-weight: 700;
  color: #fff; line-height: 1;
}
.hero-badge-txt {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: rgba(255,255,255,.6); margin-top: .3rem;
}

/* Bottom trust bar — light on cream hero */
.hero-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 0; position: relative; z-index: 2;
}
.hero-bar-inner {
  display: flex; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.hero-bar-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem 2rem;
  color: var(--ink-mid);
  font-size: .82rem; font-weight: 500;
}
.hero-bar-item i { color: var(--clay); font-size: 1rem; }
.hero-bar-sep {
  width: 1px; height: 22px;
  background: var(--border); flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 300px; height: 300px; position: relative; }
  .hero-media-inner::after {
    background: linear-gradient(to bottom, transparent 0%, var(--forest) 100%);
  }
  .hero-content { padding: 3.5rem 1.5rem 3rem; order: 1; }
  .hero-media { order: 0; }
  .hero-badge { bottom: 1.5rem; right: 0; border-radius: 16px 0 0 16px; }
  .hero-bar-sep { display: none; }
  .hero-bar-item { padding: .4rem 1rem; }
}
@media (max-width: 480px) {
  .hero-title { letter-spacing: -1px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-hero-primary, .btn-hero-ghost { justify-content: center; }
  .hero-bar-item span { font-size: .75rem; }
}

/* ─────────────────────────────────────────────────────
   SECTION TYPOGRAPHY
───────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); margin-bottom: .6rem;
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 20px; height: 1.5px;
  background: var(--gold); flex-shrink: 0;
}
.eyebrow-light { color: rgba(255,255,255,.6); }
.eyebrow-light::before { background: rgba(255,255,255,.35); }

.section-heading {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.1; letter-spacing: -.5px;
}
.section-heading em {
  font-style: italic; color: var(--gold); font-weight: 600;
}

/* Legacy aliases */
.section-label {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--gold); margin-bottom: .4rem;
}
.section-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--ink);
  letter-spacing: -.5px; line-height: 1.15;
}
.section-divider, .divider-sm {
  width: 40px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.section-divider { margin: .5rem auto 1.5rem; }

/* ─────────────────────────────────────────────────────
   ROOMS SECTION
───────────────────────────────────────────────────── */
.rooms-section { padding: 6rem 0; background: var(--cream); }
.rooms-header { margin-bottom: 3rem; }

.rooms-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  grid-template-rows: 290px 290px;
  gap: 14px;
}
/* Bedroom + Living Room: both tall (span 2 rows) */
.room-card:nth-child(1) { grid-row: span 2; }
.room-card:nth-child(2) { grid-row: span 2; }
/* Dining Room + Study: equal stacked cards in right column — no special span */

/* Dining + Study share the same fade delay so they appear simultaneously */
.js-reveal .rooms-grid .fade-up:nth-child(4) { transition-delay: 160ms; }

.room-card {
  border-radius: 18px; overflow: hidden;
  position: relative;
  display: flex; align-items: flex-end;
  transition: transform 420ms var(--spring), box-shadow var(--transition-md);
}
@media (hover: hover) {
  .room-card:hover { transform: scale(1.022); box-shadow: var(--shadow-card); }
}
.room-card:active { transform: scale(1.008); }

/* Invisible full-card background link */
.room-card-bg-link {
  position: absolute; inset: 0; z-index: 1;
  cursor: pointer;
}
.room-card-bg-link:focus-visible {
  outline: 3px solid rgba(255,255,255,.7);
  outline-offset: -4px;
  border-radius: 15px;
}

/* Subcategory hover panel */
.room-hover-panel {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(20,38,28,.94);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 2rem 1.75rem;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
/* Hover-capable devices only: on touch screens the panel would appear under
   the finger mid-tap and swallow it — sending users to a random subcategory
   instead of the room page. Touch users tap straight through to the room;
   subcategories remain available in the navbar dropdowns. */
@media (hover: hover) and (pointer: fine) {
  .room-card:hover .room-hover-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
.room-hover-heading {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.35rem; font-weight: 700;
  color: #fff; display: block;
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
/* Larger heading for the two tall cards */
.room-card:nth-child(1) .room-hover-heading,
.room-card:nth-child(2) .room-hover-heading { font-size: 1.9rem; }
.room-hover-panel a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .8rem; font-weight: 500;
  padding: .48rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center;
  justify-content: space-between;
  letter-spacing: .2px;
  transition: color var(--transition), padding-left var(--transition);
}
.room-hover-panel a:last-child { border-bottom: none; }
.room-hover-panel a:hover { color: #fff; padding-left: .35rem; }
.room-hover-panel a i { font-size: .65rem; opacity: .6; }
.room-hover-all {
  margin-top: .5rem !important;
  color: var(--accent-mid) !important;
  font-weight: 600 !important;
  font-size: .75rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: none !important;
  padding-top: .65rem !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
}
.room-hover-all:hover { color: #fff !important; }

/* Keep card-body visible below panel. pointer-events:none lets clicks/taps
   fall through to the full-card .room-card-bg-link underneath (the body has
   no interactive children — the CTA is a span) so the whole card navigates. */
.room-card-body {
  position: relative; z-index: 2;
  padding: 1.75rem; width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  pointer-events: none;
}
.room-card-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700;
  color: var(--clay-mid);
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: gap var(--transition);
}
.room-card:hover .room-card-cta { gap: .7rem; }

.room-bedroom { background: linear-gradient(150deg, #1B3328 0%, #26503D 55%, #2D6048 100%); }
.room-living  { background: linear-gradient(145deg, #3B2415 0%, #5C3D22 55%, #7A5432 100%); }
.room-dining  { background: linear-gradient(155deg, #252018 0%, #4A3D28 55%, #5E4E35 100%); }
.room-study   { background: linear-gradient(145deg, #1A2535 0%, #2A3A4E 55%, #3A4E64 100%); }

/* Grain overlay */
.room-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: .25; pointer-events: none; z-index: 0;
}

.room-card:nth-child(1) .room-card-body,
.room-card:nth-child(2) .room-card-body { padding: 2.5rem; }

.room-card-cat {
  display: block;
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3.5px;
  color: var(--clay-mid); margin-bottom: .5rem; opacity: .9;
}
.room-card-name {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.8rem; font-weight: 700;
  color: #fff; margin-bottom: .3rem; line-height: 1.1;
}
.room-card:nth-child(1) .room-card-name,
.room-card:nth-child(2) .room-card-name { font-size: 2.8rem; }

.room-card-items {
  font-size: .78rem; color: rgba(255,255,255,.55);
  margin-bottom: .85rem; font-weight: 400;
}

@media (max-width: 960px) {
  .rooms-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px 240px;
  }
  .room-card:nth-child(1) { grid-row: span 1; grid-column: span 2; }
  .room-card:nth-child(2) { grid-row: span 1; }
  /* Study fills the last row — otherwise it sits beside an empty hole */
  .room-card:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .rooms-section { padding: 3.5rem 0; }
  .rooms-header { margin-bottom: 2rem; }
  .rooms-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 200px);
  }
  .room-card:nth-child(1),
  .room-card:nth-child(2),
  .room-card:nth-child(4) { grid-row: span 1; grid-column: span 1; }
}

/* ─────────────────────────────────────────────────────
   PRODUCT CARDS
───────────────────────────────────────────────────── */
.product-card {
  background: var(--surface); border-radius: 14px; overflow: hidden;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
  position: relative; border: 1px solid var(--border);
}
.product-card:hover {
  box-shadow: 0 12px 36px rgba(26,25,23,.12), 0 4px 12px rgba(26,25,23,.07), 0 1px 4px rgba(26,25,23,.04);
  transform: translateY(-4px);
  border-color: var(--border-mid);
}
.product-card:active { transform: translateY(-1px); }
.product-card-img-wrap {
  position: relative; overflow: hidden;
  background: var(--cream); aspect-ratio: 4/3;
}
.product-card-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }

.badge-new-arrival {
  position: absolute; top: 10px; left: 10px;
  background: var(--forest); color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .8px;
}
.badge-sale-tt {
  position: absolute; top: 10px; left: 10px;
  background: var(--danger); color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .8px;
}
.product-card-body { padding: 1rem 1rem .85rem; }
.product-brand {
  font-size: .67rem; color: var(--ink-light);
  margin-bottom: .2rem;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.product-name {
  font-size: .9rem; font-weight: 600;
  color: var(--ink); margin-bottom: .45rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-price { font-size: .95rem; font-weight: 700; color: var(--forest); }
.product-price-was {
  text-decoration: line-through; color: var(--ink-light);
  font-size: .8rem; margin-left: .4rem; font-weight: 400;
}
.product-stock { font-size: .72rem; color: var(--danger); font-weight: 600; }

.btn-add-to-basket {
  width: 100%; background: var(--forest); color: #fff;
  border: none; padding: .55rem; border-radius: 7px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  margin-top: .65rem; transition: background var(--transition);
  min-height: 40px;
}
.btn-add-to-basket:hover { background: var(--forest-mid); }
.btn-add-to-basket:active { background: #0f2018; transform: scale(0.98); }
.btn-add-to-basket:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* ─────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────── */
.btn-teal,
.btn-accent {
  background: var(--clay); color: #fff;
  border: none; padding: .8rem 2rem; border-radius: 7px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
  min-height: 48px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-teal:hover, .btn-accent:hover {
  background: var(--clay-dark); color: #fff; transform: translateY(-2px);
  box-shadow: var(--shadow-clay);
}
.btn-teal:active, .btn-accent:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-teal:focus-visible, .btn-accent:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.btn-outline-tt {
  background: transparent; color: var(--forest);
  border: 1.5px solid var(--forest);
  padding: .75rem 1.9rem; border-radius: 7px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
  min-height: 48px;
  transition: background var(--transition), color var(--transition);
}
.btn-outline-tt:hover { background: var(--forest); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-forest); }
.btn-outline-tt:active { transform: translateY(0) scale(0.98); box-shadow: none; background: var(--forest-mid); color: #fff; }
.btn-outline-tt:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

.btn-ghost-light {
  background: transparent; color: rgba(255,255,255,.78);
  border: 1.5px solid rgba(255,255,255,.28);
  padding: .75rem 1.75rem; border-radius: 7px;
  font-size: .875rem; font-weight: 500; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
  gap: .4rem; min-height: 48px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.55); color: #fff;
}
.btn-ghost-light:active { transform: scale(0.98); background: rgba(255,255,255,.14); }
.btn-ghost-light:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 3px; }

/* ─────────────────────────────────────────────────────
   BRAND STORY SECTION
───────────────────────────────────────────────────── */
.story-section {
  background:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(46,125,82,.09) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 8% 85%, rgba(46,125,82,.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(38,80,61,.6) 0%, transparent 70%),
    var(--forest);
  padding: 7rem 0; position: relative; overflow: hidden;
}
/* Grain texture overlay */
.story-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}
/* Decorative corner accent */
.story-section::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 280px; height: 280px;
  border-right: 1px solid rgba(46,125,82,.08);
  border-top: 1px solid rgba(46,125,82,.08);
  border-radius: 0 0 0 100%;
  pointer-events: none; z-index: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 5rem; align-items: center;
  position: relative; z-index: 1;
}

.story-left {
  display: flex; flex-direction: column;
  align-items: center; gap: .85rem;
}
.story-year {
  font-family: 'Cormorant Garant', serif;
  font-size: 5rem; font-weight: 700;
  color: rgba(255,255,255,.1); line-height: 1;
  letter-spacing: -2px; display: block;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.story-rule {
  width: 1px; height: 70px;
  background: rgba(46,125,82,.3);
}
.story-year-label {
  font-size: .63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--clay-mid); opacity: .8;
  writing-mode: vertical-rl; transform: rotate(180deg);
}

.story-right { position: relative; }
.story-quote {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-style: italic; font-weight: 500;
  color: #fff; line-height: 1.45;
  margin-bottom: 1.75rem;
  border: none; padding: 0;
}
.story-quote::before {
  content: '\201C';
  position: absolute; top: -1.5rem; left: -2.5rem;
  font-size: 7rem; color: var(--clay); opacity: .2;
  line-height: 1; font-style: normal; font-family: 'Cormorant Garant', serif;
}

.story-body {
  font-size: .95rem; color: rgba(255,255,255,.52);
  line-height: 1.85; margin-bottom: 2.25rem;
  max-width: 580px; font-weight: 300;
}

@media (max-width: 768px) {
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .story-left { flex-direction: row; }
  .story-year { writing-mode: horizontal-tb; transform: none; font-size: 3rem; }
  .story-year-label { writing-mode: horizontal-tb; transform: none; }
  .story-rule { width: 40px; height: 1px; }
  .story-quote::before { display: none; }
}

/* ─────────────────────────────────────────────────────
   SERVICE CARDS
───────────────────────────────────────────────────── */
.service-card {
  background: var(--surface); border-radius: 18px;
  padding: 2.5rem 2rem; text-align: center; height: 100%;
  border: 1px solid var(--border);
  border-top: 3px solid var(--clay);
  transition: box-shadow var(--transition-md), transform var(--transition-md);
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: -10px; right: -10px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--clay-light) 0%, transparent 70%);
  opacity: .5; pointer-events: none;
}
.service-card:hover {
  box-shadow: 0 20px 56px rgba(46,125,82,.12), 0 8px 24px rgba(26,25,23,.08), 0 2px 8px rgba(26,25,23,.04);
  transform: translateY(-5px);
}
.service-card:active { transform: translateY(-1px); }
.service-card i { font-size: 2rem; color: var(--clay); margin-bottom: 1.1rem; display: block; }
.service-card h5 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 700; color: var(--ink);
  font-size: 1.25rem; margin-bottom: .65rem;
}

/* ─────────────────────────────────────────────────────
   SHOP PAGE
───────────────────────────────────────────────────── */
.shop-layout { display: flex; gap: 1.5rem; align-items: flex-start; }

/* Desktop-only layout styling — below lg, Bootstrap's offcanvas takes full control */
@media (min-width: 992px) {
  .filter-sidebar {
    width: 220px; flex-shrink: 0;
    background: var(--surface); border-radius: 12px;
    padding: 1.25rem; border: 1px solid var(--border);
    position: sticky; top: 80px;
  }
}
.filter-sidebar h6 {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ink); margin-bottom: .75rem;
}
.filter-section { border-top: 1px solid var(--border); padding: .85rem 0; }
.filter-section-title {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; font-weight: 700;
  color: var(--ink); cursor: pointer; margin-bottom: .65rem;
}
.filter-option {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--ink); padding: .25rem 0; cursor: pointer;
}
.filter-option input[type=checkbox] { accent-color: var(--forest); width: 14px; height: 14px; }
.filter-option .count { margin-left: auto; color: var(--ink-light); font-size: .75rem; }
.filter-option.active { color: var(--forest); font-weight: 600; }

.size-grid { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.size-btn {
  border: 1.5px solid var(--border); background: transparent;
  border-radius: 6px; padding: .3rem .6rem;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.size-btn:hover, .size-btn.active { border-color: var(--forest); background: var(--forest); color: #fff; }
.size-btn:active { transform: scale(0.95); }

.color-grid { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--transition);
}
.color-swatch:hover, .color-swatch.active { border-color: var(--ink); }

.price-range-wrap { padding: .5rem 0; }
.price-range-inputs { display: flex; gap: .5rem; margin-top: .6rem; }
.price-range-inputs input {
  width: 100%; border: 1px solid var(--border);
  border-radius: 6px; padding: .3rem .5rem;
  font-size: .78rem; text-align: center; outline: none;
  background: var(--cream);
}
.price-range-inputs input:focus { border-color: var(--gold); }

.product-grid-area { flex: 1; min-width: 0; }
.shop-toolbar {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap;
}
.shop-toolbar .result-count { padding-top: .5rem; }
.shop-toolbar .result-count { font-size: .85rem; color: var(--ink-muted); }
.shop-toolbar .result-count strong { color: var(--ink); }
.view-toggle { display: flex; gap: .3rem; }
.view-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-muted); font-size: .85rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.view-btn:active { transform: scale(0.9); }

.sort-select {
  border: 1px solid var(--border); border-radius: 6px;
  padding: .35rem .7rem; font-size: .82rem;
  color: var(--ink); background: var(--surface); outline: none; cursor: pointer;
}
.sort-select:focus { border-color: var(--gold); }

/* ─────────────────────────────────────────────────────
   BASKET
───────────────────────────────────────────────────── */
.basket-item {
  background: var(--surface); border-radius: 12px;
  padding: 1rem; margin-bottom: .75rem;
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--border);
}
.basket-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.qty-input {
  width: 60px; text-align: center;
  border: 1px solid var(--border); border-radius: 6px;
  padding: .3rem; font-size: .88rem; background: var(--cream);
}
.order-summary-box {
  background: var(--surface); border-radius: 12px;
  padding: 1.5rem; position: sticky; top: 80px;
  border: 1px solid var(--border);
}
.order-summary-box hr { border-color: var(--border); margin: .75rem 0; }

/* ─────────────────────────────────────────────────────
   FORMS
───────────────────────────────────────────────────── */
.form-section {
  background: var(--surface); border-radius: 12px;
  padding: 1.75rem; margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}
.form-section h5 {
  font-family: 'Cormorant Garant', serif;
  color: var(--ink); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.form-label {
  font-weight: 600; font-size: .82rem;
  color: var(--ink); margin-bottom: .35rem; display: block;
}
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .9rem; padding: .6rem .85rem;
  background: var(--cream); color: var(--ink);
  min-height: 46px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(46,125,82,.12);
  background: #fff; outline: none;
}

/* ─────────────────────────────────────────────────────
   PAGE HEADER
───────────────────────────────────────────────────── */
.page-header {
  padding: 2rem 0 1.5rem;
  background: var(--cream-mid);
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -.5px;
}
.breadcrumb-item a { color: var(--gold); text-decoration: none; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ink-light); }

/* ─────────────────────────────────────────────────────
   PRODUCT DETAIL
───────────────────────────────────────────────────── */
.product-detail-img {
  width: 100%; border-radius: 14px;
  aspect-ratio: 4/3; object-fit: contain; background: var(--cream);
}
.thumbnail-strip { display: flex; gap: .5rem; margin-top: .5rem; }
.thumbnail-strip img {
  width: 70px; height: 90px; object-fit: contain;
  border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; background: var(--cream);
}
.thumbnail-strip img.active { border-color: var(--forest); }
.price-large {
  font-family: 'Cormorant Garant', serif;
  font-size: 2rem; font-weight: 700; color: var(--forest);
}
.badge-spec {
  background: var(--cream); border-radius: 6px;
  padding: .3rem .65rem; font-size: .78rem; color: var(--ink-muted);
  display: inline-block; margin: .2rem; border: 1px solid var(--border);
}
.variation-btn {
  border: 1.5px solid var(--border); background: var(--cream);
  border-radius: 7px; padding: .4rem 1rem; cursor: pointer;
  font-size: .82rem; font-weight: 600; margin: .25rem;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  min-height: 40px;
}
.variation-btn.selected { border-color: var(--forest); background: var(--forest); color: #fff; }
.variation-btn:active { transform: scale(0.96); }
.variation-btn:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* ─────────────────────────────────────────────────────
   CATEGORY TILES (shop)
───────────────────────────────────────────────────── */
.cat-tile {
  background: var(--surface); border-radius: 12px;
  padding: 1.75rem 1rem; text-align: center;
  text-decoration: none; display: block;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
  border: 1px solid var(--border);
}
.cat-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-tile i { font-size: 1.8rem; color: var(--gold); display: block; margin-bottom: .6rem; }
.cat-tile span { font-size: .88rem; font-weight: 700; color: var(--ink); }

/* ─────────────────────────────────────────────────────
   ADMIN
───────────────────────────────────────────────────── */
.admin-sidebar { min-height: 100vh; background: var(--forest); padding: 0; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.62); padding: .6rem 1.5rem; font-size: .88rem; border-left: 3px solid transparent; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.07); border-left-color: var(--accent-mid); }
.admin-sidebar .nav-link i { margin-right: .6rem; width: 16px; }
.admin-brand { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); line-height: 1; }
.admin-brand span { color: var(--accent-mid); }
.stat-card {
  background: var(--surface); border-radius: 12px;
  padding: 1.5rem; display: flex; align-items: center;
  gap: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.stat-card .icon { font-size: 1.75rem; color: var(--gold); }
.stat-card .value { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.stat-card .label { font-size: .78rem; color: var(--ink-muted); }
.admin-table { background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.admin-table th { background: var(--cream); color: var(--ink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.badge-status { font-size: .72rem; padding: .25rem .6rem; border-radius: 4px; font-weight: 700; }
.inline-price { cursor: pointer; border-bottom: 1px dashed currentColor; border-radius: 2px; transition: background .15s; padding: 0 2px; }
.inline-price:hover { background: rgba(46,125,82,.1); }
.inline-price input { width: 76px; padding: 1px 4px; font-size: .85rem; border: 1px solid var(--accent); border-radius: 4px; outline: none; }
.badge-pending    { background: #fff3cd; color: #856404; }
.badge-processing { background: #cff4fc; color: #0c5460; }
.badge-delivered  { background: #d1fae5; color: #065f46; }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }
.badge-new        { background: #cff4fc; color: #0c5460; }
.badge-in_progress{ background: #fff3cd; color: #856404; }
.badge-resolved   { background: #d1fae5; color: #065f46; }
.badge-unpaid     { background: #fee2e2; color: #991b1b; }
.badge-paid       { background: #d1fae5; color: #065f46; }

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
footer {
  background: var(--forest);
  color: rgba(255,255,255,.58);
  padding: 4.5rem 0 2rem;
  margin-top: 0;
}
footer h6 {
  color: #fff; font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: 2.5px;
  margin-bottom: 1.25rem;
}
footer a {
  color: rgba(255,255,255,.48); text-decoration: none;
  display: block; margin-bottom: .48rem;
  font-size: .875rem; transition: color var(--transition); line-height: 1.5;
}
footer a:hover { color: var(--clay-mid); }
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem; margin-top: 2.5rem;
  font-size: .78rem; color: rgba(255,255,255,.27);
}
footer .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07); border-radius: 8px;
  color: rgba(255,255,255,.42); font-size: .95rem;
  margin-right: .4rem; margin-top: .75rem;
  transition: background var(--transition-md), color var(--transition-md), transform var(--transition-md);
  text-decoration: none;
}
footer .social-icon:hover { background: var(--clay); color: #fff; transform: translateY(-2px); }
footer .social-icon:active { transform: translateY(0) scale(0.9); }
footer .social-icon:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ─────────────────────────────────────────────────────
   TOASTS
───────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }
.toast-success {
  background: var(--forest-mid); color: #fff; border-radius: 10px;
  padding: .9rem 1.4rem; box-shadow: var(--shadow-lg);
  margin-top: .5rem; animation: slideIn .25s var(--ease);
  font-size: .9rem; border-left: 3px solid var(--gold);
}
.toast-error {
  background: var(--danger); color: #fff; border-radius: 10px;
  padding: .9rem 1.4rem; box-shadow: var(--shadow-lg);
  margin-top: .5rem; animation: slideIn .25s var(--ease); font-size: .9rem;
}
@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ─────────────────────────────────────────────────────
   CATEGORY NAV (shop page accordion cards)
───────────────────────────────────────────────────── */
.cat-nav__label {
  text-transform: uppercase; font-size: .68rem;
  color: var(--ink-muted); letter-spacing: .12em;
  font-weight: 600; margin-bottom: 1rem;
}
.cat-nav__primary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 1rem;
}
.cat-nav__secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 1.4rem 1.2rem;
  text-decoration: none; display: flex;
  flex-direction: column; gap: .5rem; cursor: pointer;
  transition: border-color var(--transition-md), background var(--transition-md), box-shadow var(--transition-md);
}
.cat-card:hover { border-color: var(--gold); background: var(--gold-light); box-shadow: var(--shadow-sm); }
.cat-card__icon { font-size: 1.75rem; line-height: 1; }
.cat-card__name { font-weight: 700; font-size: .95rem; color: var(--ink); margin: 0; }
.cat-card__sub  { font-size: .78rem; color: var(--ink-muted); margin: 0; }

.cat-row {
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 1rem 1.25rem;
  text-decoration: none; display: flex; align-items: center; gap: .9rem;
  transition: border-color var(--transition-md), background var(--transition-md);
}
.cat-row:hover { border-color: var(--gold); background: var(--gold-light); }
.cat-row__icon { font-size: 1.35rem; flex-shrink: 0; color: var(--ink-muted); }
.cat-row__name { font-weight: 700; font-size: .9rem; color: var(--ink); margin: 0; }
.cat-row__sub  { font-size: .76rem; color: var(--ink-muted); margin: 0; }

.cat-accent-purple { color: #7c3aed; }
.cat-accent-teal   { color: #0d9488; }
.cat-accent-amber  { color: #d97706; }
.cat-accent-pink   { color: #db2777; }

/* Expandable cat cards */
.cat-card-wrap { display: flex; flex-direction: column; }
.cat-card__chevron {
  font-size: .72rem; color: var(--ink-light);
  transition: transform var(--transition-md);
  align-self: flex-end; margin-top: .25rem;
}
.cat-card-wrap.open .cat-card__chevron { transform: rotate(180deg); }
.cat-card-wrap.open .cat-card {
  border-color: var(--gold);
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}
.cat-sub-panel {
  background: #fff; border: 1.5px solid var(--gold);
  border-top: none;
  border-bottom-left-radius: 14px; border-bottom-right-radius: 14px;
  overflow: hidden; max-height: 0; transition: max-height .28s ease;
}
.cat-card-wrap.open .cat-sub-panel { max-height: 320px; }
.cat-sub-panel a {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem 1.2rem; text-decoration: none;
  color: var(--ink); font-size: .84rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.cat-sub-panel a:last-child { border-bottom: none; }
.cat-sub-panel a:hover { background: var(--gold-light); color: var(--gold-dark); }
.cat-sub-panel a i { font-size: .6rem; color: var(--gold); flex-shrink: 0; }

/* ─────────────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--ink-muted); }
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: var(--ink-light); }
.loading-spinner { text-align: center; padding: 3rem; color: var(--ink-muted); }
.text-teal { color: var(--gold) !important; }

/* ─────────────────────────────────────────────────────
   MOBILE RESPONSIVENESS
───────────────────────────────────────────────────── */
img { max-width: 100%; }

/* Admin: sidebar collapses to a compact top bar on small screens
   (screen-scoped so printing on small paper never picks these up) */
@media screen and (max-width: 767.98px) {
  .admin-layout { flex-direction: column; }
  .admin-layout .admin-sidebar { width: 100% !important; min-height: auto; }

  /* Brand row: slim, logo + greeting side by side */
  .admin-brand { padding: .6rem 1rem; display: flex; align-items: center; gap: .75rem; }
  .admin-brand img { height: 32px !important; }
  .admin-brand br { display: none; }
  .admin-brand small { margin-top: 0 !important; }

  /* Nav: single row, horizontally scrollable (no wrap = no tall header) */
  .admin-sidebar nav.nav {
    flex-direction: row !important; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 0 .5rem; margin-top: 0 !important;
    scrollbar-width: none;
  }
  .admin-sidebar nav.nav::-webkit-scrollbar { display: none; }
  .admin-sidebar .nav-link {
    padding: .7rem .8rem; border-left: 0; border-bottom: 3px solid transparent;
    font-size: .84rem; white-space: nowrap; flex-shrink: 0;
  }
  .admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { border-left-color: transparent; border-bottom-color: var(--accent-mid); }
  .admin-sidebar nav hr { display: none; }

  /* Content area: p-4 (1.5rem) is too heavy on phones */
  .admin-layout > .flex-grow-1.p-4 { padding: 1rem !important; }

  /* iOS Safari zooms the page when focusing inputs under 16px — prevent it */
  .admin-layout .form-control, .admin-layout .form-select,
  .admin-layout .form-control-sm, .admin-layout .form-select-sm,
  .admin-layout textarea { font-size: 16px; }

  /* Offcanvas panels (customer history) must never exceed the viewport */
  .offcanvas.offcanvas-end { max-width: 92vw; }
}

/* Admin: phone-size refinements */
@media screen and (max-width: 575.98px) {
  .stat-card { padding: .9rem 1rem; gap: .7rem; }
  .stat-card .icon { font-size: 1.35rem; }
  .stat-card .value { font-size: 1.15rem; }
  .stat-card .label { font-size: .7rem; }
  /* Invoice / delivery-note sheets: fit the sheet to the screen */
  .invoice-sheet, .dn-sheet { padding: 1.25rem 1rem !important; }
}

/* Phones */
@media (max-width: 575.98px) {
  .announcement-bar span { display: none; }
  .announcement-bar span:first-child { display: inline; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-toolbar > .d-flex { align-items: stretch !important; }
  .shop-toolbar .nav-search { width: 100% !important; }
  .basket-item { flex-wrap: wrap; }
  .basket-item > .d-flex { width: 100%; justify-content: flex-end; }
  .page-hero { padding: 2.25rem 0 2.5rem; }
  .page-hero .btn-accent, .page-hero .btn-outline-light { width: 100%; justify-content: center; }
  footer { padding: 3rem 0 1.5rem; }
}
