/* furniturelake: "Still Lake". Misty blue, birch white, deep lake blue, pine green.
   Token names are historical (shared template): --terracotta = primary, --sage = second accent, --walnut = footer. */
:root {
  --cream: #F4F7F7;           /* page: morning mist */
  --linen: #E4ECEE;           /* sections: pale lake */
  --paper: #FFFFFF;           /* cards: birch white */
  --ink: #1D2A30;
  --muted: #5A6A71;
  --line: #D5E0E3;
  --terracotta: #2E5E6D;      /* primary: deep lake blue */
  --terracotta-hover: #234B57;
  --terracotta-soft: #BCD5DC;
  --sage: #5F8574;            /* pine-moss */
  --sage-deep: #2F5244;       /* pine */
  --walnut: #1C3540;          /* footer: lake at dusk */
  --on-dark: #F2F7F8;
  --error: #A3302A;
  --ok: #2F5244;

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 42, 48, .05), 0 8px 24px rgba(29, 42, 48, .06);
  --shadow-hover: 0 2px 4px rgba(29, 42, 48, .07), 0 16px 40px rgba(29, 42, 48, .10);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, .brand-word, .footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding-top: 48px; padding-bottom: 48px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: .6em;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-dark); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--terracotta);
  background: var(--terracotta); color: #fff; font: 700 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--terracotta-hover); border-color: var(--terracotta-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn-light { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-light:hover { background: #fff; color: var(--terracotta); border-color: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-wide { width: 100%; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--terracotta); text-decoration: underline; cursor: pointer; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--terracotta); }
.link-arrow::after { content: ' →'; }
.link-back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 700; color: var(--muted); }

.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
}
.input:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px rgba(95, 133, 116, .25); }
textarea.input { resize: vertical; min-height: 140px; }

/* ---------- header ---------- */
.announce { background: var(--sage-deep); color: var(--on-dark); text-align: center; font-size: .88rem; font-weight: 600; padding: 8px 16px; }
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; color: var(--terracotta); }
.brand-logo { height: 44px; width: auto; }
.brand-word { font-size: 1.6rem; margin: 0; letter-spacing: -0.02em; }
.brand-word em, .footer-brand em { font-style: italic; color: var(--terracotta); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a { text-decoration: none; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav > a[aria-current="page"] { border-color: var(--terracotta); }
.nav-cats { display: none; }
.icon-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--ink); flex: none; }
.icon-link svg { width: 24px; height: 24px; }
.icon-link[aria-current="page"] { border-color: var(--terracotta); color: var(--terracotta); }
.site-nav + .icon-link { margin-left: 4px; }
.header-inner > .icon-link + .icon-link { margin-left: -14px; }
.signed-dot { position: absolute; right: 2px; bottom: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--sage); border: 2px solid var(--paper); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--terracotta); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; margin-right: -8px; }
  .icon-link { order: 2; width: 40px; height: 40px; }
  .icon-link svg { width: 21px; height: 21px; }
  .header-inner > .icon-link + .icon-link { margin-left: -6px; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 96px 24px 24px; box-shadow: -10px 0 40px rgba(0,0,0,.12);
    transform: translateX(100%); transition: transform .25s ease; z-index: -1; overflow-y: auto;
  }
  .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav > a[aria-current="page"] { color: var(--terracotta); border-color: var(--line); }
  .nav-cats { display: flex; flex-direction: column; padding-top: 16px; }
  .nav-cats a { text-decoration: none; padding: 8px 0; color: var(--muted); }
  .nav-open .site-nav { transform: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-inner { gap: 12px; }
  .brand-word { font-size: 1.35rem; }
  .brand-logo { height: 34px; }
}

@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .brand { gap: 6px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 1.15rem; }
  .brand-logo { height: 26px; }
  .icon-link { width: 36px; height: 36px; }
  .header-inner > .icon-link + .icon-link { margin-left: -2px; }
}

/* ---------- hero & banners ---------- */
.hero {
  position: relative; padding: 88px 0 96px; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(255, 255, 255, .9), transparent 55%),
    radial-gradient(ellipse at 70% 100%, rgba(95, 133, 116, .18), transparent 55%),
    var(--linen);
}
/* Hero photo is made in the linen colour with furniture on the right (see PROMPTS.md), text stays dark */
.hero.has-image { background: var(--linen) var(--banner-img) right center / cover no-repeat; }
.hero.has-image .hero-inner > h1, .hero.has-image .hero-inner > .lead { max-width: min(60ch, 46vw); }
@media (max-width: 1000px) {
  .hero.has-image { background-size: 200% auto; background-position: right bottom; padding-bottom: 60vw; }
  .hero.has-image .hero-inner > h1, .hero.has-image .hero-inner > .lead { max-width: none; }
}
.hero-inner { position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.banner {
  position: relative; border-radius: var(--radius); overflow: hidden; color: var(--on-dark);
  min-height: 340px; display: flex; align-items: center; margin: 24px 0;
  background-size: cover; background-position: center;
}
.banner-inner { position: relative; padding: 48px clamp(24px, 5vw, 64px); max-width: 560px; }
.banner .eyebrow { color: var(--on-dark); opacity: .85; }
.banner-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-style: italic; margin-bottom: .35em; }
.banner-text { font-size: 1.08rem; opacity: .92; margin-bottom: 1.4em; }
.banner-terracotta { background-color: #3F6E7C; background-image: radial-gradient(circle at 90% 10%, #6E98A4 0, transparent 55%); }
.banner-sage { background-color: #4D6E5C; background-image: radial-gradient(circle at 90% 10%, #7D9A88 0, transparent 55%); }
.banner-walnut { background-color: #1F3A44; background-image: radial-gradient(circle at 90% 10%, #3D5F6B 0, transparent 55%); }
.banner-linen { background-color: #DCE6E8; background-image: radial-gradient(circle at 90% 10%, #F4F8F9 0, transparent 55%); color: var(--ink); }
.banner-linen .eyebrow { color: var(--terracotta); opacity: 1; }
.banner-linen .btn-light { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
/* Banner photos are made in the banner's own colour (see PROMPTS.md): plain colour on the left
   for the text, furniture on the right. No overlay, the text keeps the tone's colours.
   The photo only fits beside the text when the banner is wide enough; narrower banners
   (phones, the shop grid next to the filters) put the furniture under the text instead. */
.banner-wrap { container-type: inline-size; }
.banner.has-image { background-image: var(--banner-img); background-size: cover; background-position: right center; background-repeat: no-repeat; }
.banner.has-image .banner-inner { max-width: min(560px, 50cqw); }
@container (max-width: 860px) {
  .banner.has-image { align-items: flex-start; min-height: 0; background-size: 200% auto; background-position: right bottom; padding-bottom: 60cqw; }
  .banner.has-image .banner-inner { max-width: none; }
}
.banner-in-grid { grid-column: 1 / -1; }
.banner-in-grid .banner { margin: 8px 0; min-height: 300px; }

/* ---------- sections ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: 48px 0 24px; }
.page-head-tight { padding: 28px 0 8px; }
.page-head h1 { margin-bottom: .3em; }

.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cat-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s;
}
.cat-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink); }
.cat-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: color-mix(in srgb, var(--swatch) 35%, var(--paper)); color: var(--walnut);
}
.cat-icon svg { width: 40px; height: 36px; }
.cat-name { font: 500 1.2rem/1.2 var(--font-display); }
.cat-tag { color: var(--muted); font-size: .92rem; }

.usp { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); margin-top: 24px; }
.usp-item h3 { color: var(--sage-deep); }
.usp-item p { color: var(--muted); margin: 0; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-link { display: block; position: relative; }
.card-media, .product-media { aspect-ratio: 4 / 3; background: var(--linen); overflow: hidden; }
.card-media img, .product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
/* second photo fades in on hover (mouse only; phones keep the first photo) */
.card-media.has-hover { position: relative; }
.card-media-alt { position: absolute; inset: 0; background: inherit; opacity: 0; transition: opacity .35s, transform .4s; }
@media (hover: hover) { .card:hover .card-media-alt { opacity: 1; } }
.is-placeholder {
  display: grid; place-items: center; color: var(--walnut);
  background: linear-gradient(160deg, color-mix(in srgb, var(--swatch) 55%, var(--paper)), color-mix(in srgb, var(--swatch) 25%, var(--linen)));
}
.is-placeholder svg { width: 38%; height: auto; opacity: .55; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--terracotta); font-size: .75rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow);
}
.badge-muted { color: var(--muted); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 4px; }
.card-title { font-size: 1.15rem; margin: 0 0 6px; }
.card-title a { text-decoration: none; }
.card-meta { color: var(--muted); font-size: .9rem; margin: 0 0 14px; line-height: 1.5; }
.card-meta .dot { vertical-align: -2px; margin-right: 6px; }
.card-options { font-size: .82rem; font-weight: 700; color: var(--sage-deep); }
/* Supplier photos have mixed backgrounds and info graphics: show them whole on white */
.card-media:not(.is-placeholder), .product-media:not(.is-placeholder) { background: #fff; }
.card-media img, .product-media img { object-fit: contain; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--swatch); border: 1px solid rgba(29,42,48,.18); flex: none; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font: 600 1.25rem/1 var(--font-display); }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; padding-bottom: 64px; }
.filters { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
/* desktop: the panel fits the screen and scrolls on its own, so every filter is reachable */
@media (min-width: 901px) {
  .filters {
    max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
  .filters::-webkit-scrollbar { width: 6px; }
  .filters::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
}
.filter-group { border: 0; padding: 0; margin: 0 0 22px; }
.filter-label { display: block; font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--terracotta); }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.filter-toggle { display: none; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-bar p { margin: 0; }
.sort { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sort .input { width: auto; min-height: 42px; }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .filter-toggle { display: inline-flex; justify-self: start; }
  .filters { display: none; position: static; }
  .filters.is-open { display: block; }
}

/* ---------- product page ---------- */
.crumbs { padding: 24px 0 8px; font-size: .9rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-bottom: 48px; align-items: start; }
.product-gallery { position: sticky; top: 96px; }
.product-media { border-radius: var(--radius); aspect-ratio: 1 / 1; }
.product-price { font: 600 2rem/1 var(--font-display); color: var(--terracotta); margin-bottom: 16px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 24px 0; }
.specs div { background: var(--paper); padding: 12px 14px; }
.specs dt { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; }
.buy { display: flex; gap: 12px; margin-bottom: 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; border: 0; background: none; text-align: center; font: 700 1rem var(--font-body); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-small button { width: 36px; height: 38px; }
.ship-note { font-size: .92rem; color: var(--sage-deep); }
.stock-out { color: var(--muted); font-weight: 700; }
.prose { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h2 { font-size: 1.4rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--sage-deep); border-bottom: 2px solid var(--sage-deep); transform: rotate(-45deg); }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }
}

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; padding-bottom: 64px; }
.cart-row {
  display: grid; grid-template-columns: 88px 1fr auto auto 32px; gap: 16px; align-items: center;
  padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px;
}
.cart-thumb { width: 88px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; display: block; background: var(--linen); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-swatch { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, color-mix(in srgb, var(--swatch) 60%, var(--paper)), var(--swatch)); }
.cart-name { font: 500 1.1rem/1.2 var(--font-display); text-decoration: none; }
.cart-desc p { margin: 4px 0 0; }
.cart-line { font: 600 1.1rem var(--font-display); min-width: 80px; text-align: right; }
.cart-remove { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; width: 32px; height: 32px; border-radius: 50%; }
.cart-remove:hover { background: var(--linen); color: var(--error); }
.summary { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.summary h2 { font-size: 1.4rem; }
.summary dl { margin: 0 0 16px; }
.summary dl div { display: flex; justify-content: space-between; padding: 8px 0; }
.summary dd { margin: 0; font-weight: 700; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 1.15rem; }
.summary .total dd { font: 600 1.4rem var(--font-display); }
.free-meter { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.free-meter p { margin: 8px 0 0; font-size: .92rem; }
.free-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.free-bar span { display: block; height: 100%; background: var(--sage); border-radius: 4px; transition: width .3s; }
.summary .small { margin: 12px 0 0; }
.empty-state { text-align: center; padding: 48px 16px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 64px 1fr 32px; grid-template-areas: 'thumb desc remove' 'thumb qty line'; gap: 10px 12px; }
  .cart-thumb { grid-area: thumb; width: 64px; height: 64px; }
  .cart-desc { grid-area: desc; }
  .cart-row .qty { grid-area: qty; justify-self: start; }
  .cart-line { grid-area: line; }
  .cart-remove { grid-area: remove; }
}

/* ---------- checkout & success ---------- */
.checkout { padding-bottom: 64px; }
.checkout-status { text-align: center; padding: 48px 16px; color: var(--muted); }
.spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--terracotta); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stripe-mount { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.stripe-mount:empty { display: none; }
.success-mark { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; font-size: 2rem; }
.receipt { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; margin: 24px 0; }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.receipt-row:last-child { border: 0; }
.receipt-row.total { font-weight: 800; }

/* ---------- contact & forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding-bottom: 64px; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.contact-info { display: grid; gap: 14px; }
.info-block { background: var(--linen); border-radius: var(--radius); padding: 18px 22px; }
.info-block h3 { margin-bottom: .3em; color: var(--sage-deep); }
.info-block p { margin: 0; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: .95rem; }
.field-error { color: var(--error); font-size: .9rem; margin: 0; font-weight: 600; }
.input[aria-invalid="true"] { border-color: var(--error); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px; }
.notice h2 { font-size: 1.4rem; }
.notice-ok { background: #E7ECDF; color: var(--ok); }
.notice-error { background: #F6E1DC; color: var(--error); font-weight: 600; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--walnut); color: var(--on-dark); margin-top: 48px; padding-top: 56px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--terracotta-soft); }
.site-footer .muted { color: rgba(255, 248, 238, .72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-grid h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta-soft); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { font-size: 1.8rem; margin-bottom: .4em; }
.footer-brand em { color: var(--terracotta-soft); }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 248, 238, .15); font-size: .85rem; color: rgba(255, 248, 238, .7); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 90;
  background: var(--ink); color: var(--on-dark); padding: 14px 20px; border-radius: 999px; box-shadow: var(--shadow-hover);
  transition: transform .25s ease; max-width: calc(100vw - 32px); font-weight: 600;
}
.toast a { color: var(--terracotta-soft); margin-left: 8px; }
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- admin ---------- */
.admin { background: var(--cream); }
.admin-bar { background: var(--walnut); color: var(--on-dark); }
.admin-bar-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.admin-bar strong { font-family: var(--font-display); font-size: 1.2rem; margin-right: auto; }
.admin-bar em { color: var(--terracotta-soft); }
.admin-bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.admin-bar a { color: var(--on-dark); text-decoration: none; font-weight: 700; }
.admin-bar a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.admin-bar .link-btn { color: var(--terracotta-soft); }
.admin-bar form { margin: 0; }
.admin-login { max-width: 380px; margin: 40px auto; background: var(--paper); padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.admin-list { display: grid; gap: 12px; }
.admin-item { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--terracotta); border-radius: var(--radius-sm); padding: 16px 18px; }
.admin-item.is-read { border-left-color: var(--line); opacity: .85; }
.admin-item header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-bottom: 8px; }
.admin-item header .muted { margin-left: auto; font-size: .85rem; }
.admin-item ul { margin: 0 0 8px; padding-left: 20px; }
.admin-actions { display: flex; gap: 8px; margin: 0; }
.pre { white-space: pre-wrap; }
.log { background: var(--ink); color: var(--on-dark); padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .85rem; line-height: 1.5; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
code { font-size: .88em; background: var(--linen); padding: 2px 6px; border-radius: 6px; }

/* ---------- product gallery & options ---------- */
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 84px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current="true"] { border-color: var(--terracotta); }
.buy-form { display: grid; gap: 14px; margin-bottom: 12px; }
.buy-form .buy { margin: 0; }
.variant-field select { font-weight: 700; cursor: pointer; }
.size-note { margin: -4px 0 0; font-size: .88rem; color: var(--muted); background: var(--linen); padding: 10px 12px; border-radius: var(--radius-sm); }

/* ---------- favourites ---------- */
.fav {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; background: rgba(255, 252, 247, .92); color: var(--ink);
  box-shadow: var(--shadow); transition: transform .15s, color .15s;
}
.fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav:hover { transform: scale(1.08); color: var(--terracotta); }
.fav.is-on { color: var(--terracotta); }
.fav.is-on svg { fill: currentColor; }
.fav-inline { position: static; flex: none; width: 50px; height: 50px; border: 1.5px solid var(--line); box-shadow: none; background: var(--paper); }
.section-tight { padding-top: 8px; padding-bottom: 48px; }

/* ---------- auth & account ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 56px; align-items: start; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--linen); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.auth-tabs a { text-align: center; padding: 10px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); }
.auth-tabs a[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.auth-help { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }
.auth-perks { padding-top: 24px; }
.auth-perks h2 { font-size: 1.6rem; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; gap: 24px; } .auth-perks { padding-top: 0; } }

.account { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding-bottom: 64px; }
.account-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.account-nav a, .account-logout {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700;
  background: none; border: 0; font: inherit; font-weight: 700; text-align: left; width: 100%; cursor: pointer; color: var(--ink);
}
.account-nav a:hover, .account-logout:hover { background: var(--cream); color: var(--terracotta); }
.account-nav a[aria-current="page"] { background: var(--linen); color: var(--terracotta); }
.account-nav form { margin: 6px 0 0; border-top: 1px solid var(--line); padding-top: 6px; }
.account-logout { color: var(--muted); }
.account-main { min-width: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); margin-bottom: 20px; }
.panel h2 { font-size: 1.5rem; margin-bottom: .2em; }
.form-subhead { font-size: 1.1rem; margin: 10px 0 -4px; }
.form-row-3 { grid-template-columns: 2fr 1fr 1.4fr; }
@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; gap: 16px; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .account-nav a, .account-logout { width: auto; padding: 9px 12px; }
  .account-nav form { margin: 0 0 0 auto; border: 0; padding: 0; }
  .form-row-3 { grid-template-columns: 1fr; }
}

.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-head h3 { margin: 0; font-size: 1.3rem; }
.order-head p { margin: 2px 0 0; }
.order-card .receipt { margin: 18px 0 12px; background: var(--cream); border: 0; }
.order-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }
.order-links a { font-weight: 700; color: var(--terracotta); }
.status { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.status-received { background: var(--linen); color: var(--walnut); }
.status-processing { background: #F3E2D6; color: var(--terracotta-hover); }
.status-dispatched { background: #E2E8F0; color: #34495E; }
.status-delivered { background: #E7ECDF; color: var(--sage-deep); }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 20px 0 0; counter-reset: step; }
.progress li { position: relative; text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); padding-top: 30px; }
.progress li::before {
  counter-increment: step; content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line);
}
.progress li::after { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::after { display: none; }
.progress li.is-done::before, .progress li.is-current::before { background: var(--sage); border-color: var(--sage); }
.progress li.is-done::after, .progress li.is-current::after { background: var(--sage); }
.progress li.is-current { color: var(--ink); }
.progress li.is-current::before { box-shadow: 0 0 0 4px rgba(95, 133, 116, .25); }
.center-actions { justify-content: center; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; padding-top: 48px; padding-bottom: 48px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; scroll-margin-top: 96px; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--terracotta); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.legal-toc a { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.legal-callout { background: var(--linen); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 1em; }
.legal-callout p { margin: 0; }
.legal-foot { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--line); color: var(--muted); }

.legal-bar { background: #4A3326; padding: 16px 0 18px; font-size: .82rem; color: rgba(255, 248, 238, .7); }
.legal-bar-inner { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.legal-bar nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.legal-bar nav a { color: var(--on-dark); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 248, 238, .35); text-underline-offset: 4px; }
.legal-bar nav a:hover { color: var(--terracotta-soft); }
.legal-bar p { margin: 0; }

/* ---------- admin extras ---------- */
.admin-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.admin-filter a { text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.admin-filter a[aria-current="page"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.input-inline { width: auto; min-height: 40px; padding: 6px 12px; }
.admin-actions { align-items: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- furniturelake additions ---------- */
h1, h2, h3, .brand-word, .footer-brand { letter-spacing: 0; font-weight: 400; }
.brand-word em, .footer-brand em { font-style: italic; }
.announce { letter-spacing: .02em; }

/* home: compact room chips instead of big category tiles */
.cat-chips { display: flex; gap: 10px; overflow-x: auto; padding-top: 22px; padding-bottom: 6px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 16px 9px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.cat-chip:hover { border-color: var(--terracotta); }
.cat-chip-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--linen); color: var(--terracotta); }
.cat-chip-icon svg { width: 20px; height: 18px; }
.cat-chips:has(.has-photo) { gap: 8px; }
.cat-chip.has-photo { padding: 5px 14px 5px 5px; gap: 8px; }
.cat-chip-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--linen); flex: none; }

/* shop: category tree with sub-list */
.cat-tree .tree-item, .cat-tree .tree-sub { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.cat-tree input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-tree .tree-item span:first-of-type { font-weight: 600; }
.cat-tree .tree-count { margin-left: auto; font-size: .8rem; color: var(--muted); background: var(--linen); border-radius: 999px; padding: 1px 8px; }
.cat-tree input:checked + span { color: var(--terracotta); }
.cat-tree input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 4px; }
.tree-cat.is-open > .tree-item span:first-of-type { color: var(--terracotta); }
.tree-subs { margin: 2px 0 8px 2px; padding-left: 14px; border-left: 2px solid var(--line); }
.tree-sub span:first-of-type { font-weight: 400; font-size: .95rem; }
.tree-sub input:checked + span { font-weight: 700; }

/* product: spec tables */
.spec-groups { margin-top: 24px; border-top: 1px solid var(--line); }
.spec-group { border-bottom: 1px solid var(--line); }
.spec-group summary { cursor: pointer; padding: 14px 0; font: 400 1.2rem var(--font-display); list-style: none; display: flex; justify-content: space-between; }
.spec-group summary::-webkit-details-marker { display: none; }
.spec-group summary::after { content: '+'; font-family: var(--font-body); color: var(--muted); }
.spec-group[open] summary::after { content: '–'; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 10px; vertical-align: top; }
.spec-table th { font-weight: 600; color: var(--muted); width: 48%; }
.spec-table tr:nth-child(odd) { background: var(--cream); }

/* horizontal product rows ("From the same series") */
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.scroll-row > .card { scroll-snap-align: start; }
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.row-nav { display: flex; gap: 8px; }
.row-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.row-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
@media (max-width: 600px) { .row-nav { display: none; } .scroll-row { grid-auto-columns: 72%; } }

/* product photos are studio shots on light grey: let them sit on the card colour */
.card-media:not(.is-placeholder), .product-media:not(.is-placeholder), .thumb { background: #F1F1F1; }
.thumb:last-child:not(:first-child) img { object-fit: contain; }