.h3 { font-size: 1.2rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.nowrap { white-space: nowrap; }

/* ---------- Home ---------- */
.hero { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.hero { position: relative; overflow: hidden; }
.hero-inner { padding: 64px var(--gutter) 72px; max-width: 760px; margin-left: 0; }
.hero-logo { display: none; }
@media (min-width: 900px) {
  .hero-inner { max-width: min(760px, 58vw); }
  .hero-logo {
    display: block; position: absolute; top: 50%; transform: translateY(-50%);
    right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    width: clamp(220px, 26vw, 330px);
  }
  .hero-logo svg { width: 100%; height: auto; }
}
@media (min-width: 1232px) { .hero-inner { margin-left: calc((100vw - var(--container)) / 2); } }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; color: var(--c-muted); font-weight: 500; }
.hero-text { font-size: 1.1rem; color: var(--c-muted); max-width: 540px; margin-bottom: 28px; }
.home-hero {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  min-height: calc(100svh - var(--header-h)); padding: 48px var(--gutter) 120px; text-align: center;
  isolation: isolate; overflow: hidden; background: #f3f4f6;
}
/* Linen photo, lightly blurred, under a light veil that is strongest behind the logo and text. */
.home-hero::before, .home-hero::after { content: ''; position: absolute; z-index: -1; }
.home-hero::before { inset: -24px; /* bleed so the blur has no soft edges */ background: url('../images/hero.jpg') center / cover no-repeat; filter: blur(0.75px); }
.home-hero::after { inset: 0; background: radial-gradient(ellipse at center, rgb(255 255 255 / 0.72) 0%, rgb(255 255 255 / 0.45) 55%, rgb(255 255 255 / 0.2) 100%); }
.home-hero-eyebrow { margin: 0; color: #13807f; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.3em; text-transform: uppercase; }
.home-hero-logo { margin: 0; width: min(300px, 70vw); text-transform: none; letter-spacing: normal; } /* it's an <h1>: keep the logo lettering as drawn */
.home-hero-logo svg { width: 100%; height: auto; }
.home-hero-tagline { margin: 0; font-size: 1rem; font-weight: 500; letter-spacing: 0.2em; }
.home-hero-eyebrow, .home-hero-tagline { text-shadow: 0 0 12px rgb(255 255 255 / 0.9); }
.home-hero-logo circle { fill: rgb(255 255 255 / 0.92); }
.home-hero-logo svg { filter: drop-shadow(0 6px 20px rgb(60 45 20 / 0.18)); }
.btn-soft {
  margin-top: 40px; padding: 0.7em 1.7em; border: 1px solid #e8e8e8; border-radius: 0.5em;
  background: #e8e8e8; color: #090909; font-size: 18px; letter-spacing: 0.15em; text-decoration: none;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12); transition: all 0.3s;
}
.btn-soft:hover { box-shadow: 0 6px 16px rgb(0 0 0 / 0.16); }
.btn-soft:active { color: #666; box-shadow: 0 2px 6px rgb(0 0 0 / 0.12); }
.home-hero-discover {
  position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #5f6b78; font-weight: 600; text-decoration: none; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.home-hero-discover .bounce { font-size: 1.125rem; animation: bounce 1s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
@media (prefers-reduced-motion: reduce) { .home-hero-discover .bounce { animation: none; } }

.explore { padding: 96px 0 0; }
.explore + .section { padding-top: 0; } /* category tiles sit flush under the partner photos */
.explore-head { text-align: center; padding: 0 var(--gutter) 48px; }
.explore-head h2 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: 0.12em; }
.explore-head p { margin: 16px 0 0; color: var(--c-muted); font-size: 0.8rem; letter-spacing: 0.14em; }
/* Edge to edge, tiles touching. */
.explore-grid { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 720px) { .explore-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) and (max-width: 1099px) {
  /* Odd one out on the 2-column layout spans the full row instead of sitting alone. */
  .brand-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
}
.brand-tile { position: relative; margin: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.brand-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.brand-tile::after {
  content: ''; position: absolute; inset: 0; transition: opacity 0.5s; opacity: 0.8;
  background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.1) 45%, rgb(0 0 0 / 0.05));
}
.brand-tile:hover img { transform: scale(1.05); }
.brand-tile:hover::after { opacity: 1; }
.brand-tile figcaption {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; color: #fff;
  font-family: 'Cormorant Garamond', var(--font-head); font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.1;
}
@media (min-width: 1100px) {
  .explore-grid { grid-template-columns: repeat(5, 1fr); }
  .brand-tile { aspect-ratio: 3 / 5; } /* taller on wide screens, where five sit in a row */
  .brand-tile figcaption { left: 16px; right: 16px; bottom: 16px; font-size: 1.6rem; }
}
.section-head { margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { text-decoration: none; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--c-ink); padding-bottom: 2px; }
/* Categories: edge-to-edge photo tiles with the name centred on top. */
.cat-grid { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-tile { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; background: var(--c-surface); }
@media (min-width: 720px) { .cat-tile { aspect-ratio: 3 / 4; } }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 0.28); transition: background 0.5s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile:hover::after { background: rgb(0 0 0 / 0.38); }
.cat-tile span { position: relative; z-index: 1; color: #fff; font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing: 0.16em; text-transform: uppercase; }
.perks { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 32px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); text-align: center; }
.perks strong { font-weight: 500; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 720px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perks p { margin: 4px 0 0; font-size: 0.9rem; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .shop-layout { grid-template-columns: 200px 1fr; gap: 40px; } }
.filters { display: none; padding: 16px; border: 1px solid var(--c-line); align-self: start; }
.filters.open { display: block; }
@media (min-width: 960px) {
  /* The category list is always there; price, size and colour open with the Filters button. */
  .filters { display: block; border: 0; padding: 0; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
  .filters:not(.open) .filters-more { display: none; }
}
.filter-group { margin-bottom: 24px; }
.filter-group h3 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; font-weight: 500; color: var(--c-muted); margin-bottom: 10px; }
.filter-group .check { padding: 4px 0; }
/* Category tree: plain uppercase text with a chevron, no visible radio buttons. */
.cat-list .check { position: relative; padding: 8px 0; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
.cat-list .check input { position: absolute; opacity: 0; width: 0; height: 0; }
.cat-list .check:hover { text-decoration: underline; text-underline-offset: 4px; }
.cat-list .check:has(input:checked) { font-weight: 600; }
.cat-list .check:has(input:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.cat-row { display: flex; align-items: center; gap: 12px; }
.cat-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--c-ink); }
.cat-toggle:hover { opacity: 0.55; }
.cat-toggle svg { width: 18px; height: 18px; transition: transform 0.2s; }
.cat-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.cat-subs { padding: 0 0 6px 16px; }
.cat-list .check-sub { padding: 5px 0; font-size: 0.75rem; color: var(--c-muted); }
.cat-list .check-sub:has(input:checked) { color: var(--c-ink); }
.filter-group .size-btn { min-width: 42px; min-height: 36px; font-size: 0.85rem; }
.filter-group .swatch { width: 28px; height: 28px; }
.price-range { flex-wrap: nowrap; gap: 8px; }
.price-range .input { min-width: 0; }
/* Shop grid: three large photos per row instead of four. */
@media (min-width: 1100px) { #results.product-grid:not(.list) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.toolbar-search { flex: 1 1 220px; }
.toolbar-sort { width: auto; flex: 0 1 200px; }
.filters-toggle svg { width: 18px; height: 18px; }
.view-toggle { display: flex; }
.view-toggle [aria-pressed='false'] { color: var(--c-sand-strong); }

/* ---------- Product ---------- */
.product-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .product-layout { grid-template-columns: minmax(0, 400px) minmax(0, 520px); justify-content: center; gap: 64px; } }
.gallery-main { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--c-surface); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: rgb(249 246 242 / 0.75); color: var(--c-ink); transition: background 0.2s;
}
.gallery-nav:hover { background: var(--c-bg); }
.gallery-nav.prev { left: 0; }
.gallery-nav.next { right: 0; }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav.prev svg { transform: rotate(90deg); }
.gallery-nav.next svg { transform: rotate(-90deg); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; } /* show the whole photo, never crop it */
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: none; flex-shrink: 0; }
.thumb[aria-pressed='true'] { border-color: var(--c-ink); }
.thumb img { width: 50px; height: 75px; object-fit: cover; }
.product-brand { margin: 0 0 6px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-muted); }
.product-info h1 { margin-bottom: 8px; }
.product-price { font-size: 1rem; margin-bottom: 24px; }
.product-price .price { font-weight: 400; }
.picker { margin-bottom: 20px; }
.picker .field-label { margin: 0 0 8px; }
.buy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 32px; }
.add-btn { flex: 1 1 200px; }
.buy-row .wish-btn { border: 1px solid var(--c-line); }
.buy-row .wish-btn[aria-pressed='true'] { color: var(--c-accent); }
.card .wish-btn[aria-pressed='true'] { color: var(--c-accent); }
.product-description { border-top: 1px solid var(--c-line); padding-top: 20px; }
.product-description p { white-space: pre-line; } /* descriptions may list features one per line */
.product-perks { padding-left: 18px; }

/* ---------- Cart ---------- */
.cart-layout, .checkout-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1fr 340px; }
  .checkout-layout { grid-template-columns: 1fr 380px; }
  .cart-layout aside, .checkout-aside { position: sticky; top: calc(var(--header-h) + 16px); }
}
.checkout-aside { display: flex; flex-direction: column; gap: 16px; }
.cart-line { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.cart-line:first-child { padding-top: 0; }
.cart-line-img img { width: 90px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); background: var(--c-surface); }
.cart-line-info p { margin: 2px 0; }
.cart-line-name { font-weight: 500; text-decoration: none; }
.cart-line-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.cart-line-total { margin-left: auto; }
@media (min-width: 600px) {
  .cart-line { grid-template-columns: 90px 1fr auto; }
  .cart-line-actions { grid-column: auto; flex-direction: column; align-items: flex-end; }
  .cart-line-total { margin-left: 0; }
}
.summary dl, .totals { margin: 0 0 12px; }
.summary dl > div, .totals > div { display: flex; justify-content: space-between; padding: 6px 0; }
.summary dd, .totals dd { margin: 0; }
.summary .total, .totals .total { border-top: 1px solid var(--c-line); margin-top: 6px; padding-top: 12px; font-weight: 600; font-size: 1.1rem; }
.checkout-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.checkout-items li:has(> div:first-child) { grid-template-columns: 1fr auto; }
.checkout-items img { width: 56px; height: 75px; object-fit: cover; border-radius: 4px; background: var(--c-surface); }
.checkout-items p { margin: 2px 0 0; }
.checkout-items a { text-decoration: none; }

/* ---------- Auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding-top: 40px; }
.auth-box { width: 100%; max-width: 440px; }

/* ---------- Account & orders ---------- */
.account-head { margin-bottom: 16px; }
.profile-grid, .order-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .profile-grid { grid-template-columns: 2fr 1fr; }
  .order-grid { grid-template-columns: 1.4fr 1fr; }
}
address { font-style: normal; line-height: 1.7; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 28px; color: var(--c-muted); }
.timeline .dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c-line); background: var(--c-bg); }
.timeline .done, .timeline .current { color: var(--c-ink); }
.timeline .done .dot { background: var(--c-success); border-color: var(--c-success); }
.timeline .current .dot { background: var(--c-primary); border-color: var(--c-primary); box-shadow: 0 0 0 4px rgb(46 45 44 / 0.15); }

/* ---------- Admin ---------- */
.admin-toolbar { margin-bottom: 16px; }
.check-lg { width: 20px; height: 20px; accent-color: var(--c-primary); }
.color-row { display: grid; grid-template-columns: 1fr 1fr 48px 44px; gap: 8px; align-items: center; margin-bottom: 8px; }
.color-row input[type='color'] { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; }
.stock-table .input, .stock-input { width: 80px; min-height: 36px; padding: 6px 8px; }
.dot-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgb(0 0 0 / 0.2); vertical-align: middle; }

/* ---------- Size advisor ---------- */
.size-btn.recommended { border-color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); }
.size-btn.recommended[aria-pressed='true'] { border-color: var(--c-ink); box-shadow: 0 0 0 2px var(--c-brand); }
.size-advice { margin: 12px 0 0; }
.size-advice.has-rec { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--c-surface); border: 1px solid var(--c-sand); }
.size-advice p { margin: 0 0 4px; }
.size-advice .link-btn { margin-left: 6px; }
.size-advice .warn, .size-hint { color: #8a5a12; }
.size-hint { margin: 4px 0 0; }
.fit-choice { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fit-choice legend { margin-bottom: 8px; }

/* ---------- About ---------- */
.about-story { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .about-story { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.about-story p { font-size: 1.05rem; }
/* Sized to fit the screen height so the whole photo is visible at once. */
.about-story-img { width: auto; height: auto; max-width: min(100%, 380px); max-height: 65vh; justify-self: center; border-radius: var(--radius); }
.about-visit { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 24px; border: 1px solid var(--c-line); border-radius: var(--radius); }
@media (min-width: 720px) { .about-visit { grid-template-columns: 2fr 1fr; align-items: center; } }
.about-visit address a { text-underline-offset: 3px; }
.about-hero .eyebrow { color: var(--c-brand); }
