/* Julia's Fabric Boutique
   Follows the JFB Brand Guide: coral #ff6d4d and teal #1b4a56 lead, orange/rust accents, grey neutrals;
   Playfair Display headings, Montserrat body, no script fonts outside the logo.
   Fabric details carry the personality: pinking-shear edges, running-stitch dividers, a tape-measure picker. */
:root {
  --paper: #fafafa;      /* warm calico */
  --card: #ffffff;
  --ink: #1b4a56;        /* deep teal from "Boutique" */
  --muted: #606060;
  --line: #dcdcdc;
  --coral: #ff6d4d;      /* logo coral */
  --coral-soft: #ffe3d9;
  --peach: #b8b8b8;
  --rust: #9f2b00;
  --teal: #1b4a56;
  --on-coral: #000000;
  --sale: #9f2b00;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", "Buda", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --radius: 14px;
  --zig: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1f24; --card: #12303a; --ink: #fafafa; --muted: #b8b8b8; --line: #2b4f59;
    --coral-soft: #3d2620; --peach: #3d3d3d; --teal: #b8b8b8; --rust: #ff6d4d; --sale: #ff6d4d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1f24; --card: #12303a; --ink: #fafafa; --muted: #b8b8b8; --line: #2b4f59;
    --coral-soft: #3d2620; --peach: #3d3d3d; --teal: #b8b8b8; --rust: #ff6d4d; --sale: #ff6d4d; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--coral);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; text-wrap: balance; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.015em; }
h3, .h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--rust); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.muted { color: var(--muted); }
.prose { max-width: 62ch; display: grid; gap: 1.1rem; font-size: 1.05rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .98rem/1 var(--font-body); padding: 1rem 1.6rem; border-radius: 99px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
.btn.coral { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
.btn.coral:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px dashed var(--coral); padding-bottom: 1px; }
.link:hover { border-bottom-style: solid; }

/* Fabric details */
.stitch { height: 0; border: 0; border-top: 2px dashed var(--peach); margin: 0; }
.pinked-bottom { mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) 50% / calc(2 * var(--zig)) 100%; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) 50% / calc(2 * var(--zig)) 100%; }
.pinked-top { mask: conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) 50% / calc(2 * var(--zig)) 100%; -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) 50% / calc(2 * var(--zig)) 100%; }
.dots { display: inline-flex; gap: .35rem; vertical-align: middle; }
.dots i { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; }
.dots i:nth-child(1) { background: #fff; box-shadow: inset 0 0 0 1.5px #b8b8b8; }
.dots i:nth-child(2) { background: #ff6d4d; }
.dots i:nth-child(3) { background: #9f2b00; }
.dots i:nth-child(4) { background: #1b4a56; }

/* Announcement bar */
.announce { background: var(--ink); color: var(--paper); font-size: .85rem; text-align: center; }
.announce .wrap { padding-block: .55rem; display: flex; justify-content: center; gap: .6rem 1.4rem; flex-wrap: wrap; }
.announce b { color: inherit; font-weight: 700; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #fff; /* solid white so the logo (white background) blends in, Jake 22 Nov 2026 */ border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; padding-block: .7rem; position: relative; }
.logo { text-decoration: none; display: flex; align-items: center; gap: .7rem; line-height: 1; flex: none; }
.logo img { width: 170px; height: auto; }
.logo span { display: grid; gap: .2rem; }
.logo b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.logo small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: .3rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .96rem; font-weight: 500; padding: .5rem .85rem; border-radius: 99px; }
.nav a:hover { background: var(--coral-soft); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav a.hot::after { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--coral); margin-left: .35rem; vertical-align: .15em; }
.cart-btn { background: var(--coral); border: 0; border-radius: 99px; padding: .6rem 1rem; font: 600 .92rem var(--font-body); color: var(--on-coral); cursor: pointer; display: inline-flex; gap: .45rem; align-items: center; flex: none; }
.cart-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.cart-btn .count { font-size: .78rem; background: #1b4a56; color: #fafafa; border-radius: 99px; min-width: 1.4rem; padding: .1rem .35rem; text-align: center; }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); border-radius: 99px; font: 600 .9rem var(--font-body); color: var(--ink); cursor: pointer; padding: .45rem .9rem; }
@media (max-width: 920px) {
  .menu-btn { display: inline-block; margin-left: auto; }
  .logo small { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .25rem; border-radius: 0; border-bottom: 1px dashed var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { background: none; color: var(--rust); }
}
@media (max-width: 480px) { .logo img { width: 150px; } .header-row { gap: .5rem; } .menu-btn { padding: .45rem .75rem; } .cart-btn { padding: .6rem .8rem; } }
@media (max-width: 400px) { .cart-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Hero: a coral panel, like the logo, with a round window of fabric bolts */
.hero { background: var(--coral); color: var(--on-coral); position: relative; overflow: hidden; }
.hero .wrap { padding-block: clamp(2.5rem, 6vw, 5.5rem) calc(clamp(2.5rem, 6vw, 5rem) + var(--zig)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-logo { width: min(100%, 420px); height: auto; margin-left: -.4rem; }
.hero h1 { color: #1b4a56; }
.hero h1 em { color: #1b4a56; }
.hero-copy p { font-size: 1.15rem; max-width: 44ch; color: #000; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .btn { background: #1b4a56; border-color: #1b4a56; color: #fafafa; }
.hero .btn:hover { background: #fff; border-color: #fff; color: #1b4a56; }
.hero .btn.ghost { background: transparent; border-color: #1b4a56; color: #1b4a56; }
.hero .btn.ghost:hover { background: #1b4a56; color: #fff; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.bolts {
  position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px;
  background: #fff; box-shadow: 0 30px 60px -30px rgba(27,74,86,.6), 0 0 0 10px #fff;
}
.bolts div { box-shadow: inset -8px 0 12px rgba(0,0,0,.18), inset 4px 0 6px rgba(255,255,255,.15); }
.hero-art .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.hero-art .ring text { font: 600 12.5px var(--font-body); letter-spacing: .3em; text-transform: uppercase; fill: #000; }
.hero-art .badge { position: absolute; right: -2%; bottom: 2%; width: 32%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 12px 30px -10px rgba(27,74,86,.55); transform: rotate(8deg); transition: transform .3s ease; }
.hero-art .badge:hover { transform: rotate(0) scale(1.04); }
.hero-art .badge img { width: 100%; height: 100%; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo-note { font-size: .74rem; color: var(--muted); margin-top: .5rem; font-style: italic; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 380px; } }

/* Trust strip */
.trust ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.8rem; }
.trust li { font-size: .95rem; font-weight: 500; display: flex; gap: .75rem; align-items: center; min-width: 0; }
.trust .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--coral-soft); display: grid; place-items: center; }
.trust svg { width: 22px; height: 22px; stroke: var(--rust); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .trust ul { grid-template-columns: 1fr; gap: .8rem; } }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head > div { display: grid; gap: .5rem; }
.tinted { background: var(--card); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 1.4rem; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .9rem; } }
.card { text-decoration: none; display: grid; gap: .45rem; align-content: start; }
.swatch { aspect-ratio: 4 / 5; border-radius: var(--radius); position: relative; overflow: hidden; background-size: cover; background-position: center; max-width: 100%; }
.card .swatch { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover .swatch { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 18px 30px -18px rgba(27,74,86,.45); }
.card .swatch::after { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(255,255,255,.6); border-radius: calc(var(--radius) - 6px); pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.card:hover .swatch::after { opacity: 1; }
.tag { position: absolute; top: .7rem; left: .7rem; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: #ff6d4d; color: #000; padding: .3rem .6rem; border-radius: 99px; z-index: 1; }
.tag.low { left: auto; right: .7rem; background: #ffffff; color: #9f2b00; }
.card .fibre { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); margin-top: .4rem; }
.card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.25; }
.price { font-variant-numeric: tabular-nums; font-size: 1rem; font-weight: 600; }
.price small { color: var(--muted); font-size: .8rem; font-weight: 400; }

/* Fibre tiles: round, like buttons from the button jar */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.tile { text-decoration: none; display: grid; gap: .9rem; justify-items: center; text-align: center; }
.tile .swatch { aspect-ratio: 1; width: 100%; border-radius: 50%; box-shadow: 0 0 0 6px var(--card), 0 0 0 7.5px var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.tile:hover .swatch { transform: rotate(-10deg) scale(1.03); box-shadow: 0 0 0 6px var(--card), 0 0 0 8px var(--coral); }
.tile span { font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1rem; } .tile span { font-size: 1rem; } }

/* Sew Time */
.sewtime { background: #1b4a56; color: #fafafa; }
.sewtime .wrap { padding-block: calc(clamp(3rem, 7vw, 5.5rem) + var(--zig)); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.sewtime .intro { display: grid; gap: 1.1rem; justify-items: start; }
.sewtime .intro img { width: min(200px, 50%); height: auto; aspect-ratio: 225 / 224; border-radius: 50%; transform: rotate(-6deg); box-shadow: 0 0 0 8px rgba(255,255,255,.08); }
.sewtime h2 { color: #fafafa; }
.sewtime h2 em { color: #ff6d4d; }
.sewtime .eyebrow { color: #fff; }
.sewtime p { color: #fff; }
.sewtime .btn.ghost { border-color: #fafafa; color: #fafafa; }
.sewtime .btn.ghost:hover { background: #fafafa; color: #1b4a56; }
@media (max-width: 820px) { .sewtime .wrap { grid-template-columns: 1fr; } }
.sessions { display: grid; gap: .8rem; }
.session {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.1rem; align-items: center;
  background: #fafafa; color: #1b4a56; border-radius: var(--radius); padding: .9rem 1rem .9rem .9rem; position: relative;
}
.session::before { content: ""; position: absolute; inset: 5px; border: 1.5px dashed #b8b8b8; border-radius: calc(var(--radius) - 4px); pointer-events: none; }
.session .date { width: 66px; height: 66px; border-radius: 50%; background: #ff6d4d; color: #000; display: grid; place-content: center; text-align: center; line-height: 1; gap: .15rem; }
.session .date b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.session .date small { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.session h3 { font-size: 1.15rem; }
.session .meta { font-size: .88rem; color: #606060; }
.session .meta .left { color: #9f2b00; font-weight: 600; }
.session .btn { padding: .75rem 1.15rem; font-size: .9rem; position: relative; background: #1b4a56; border-color: #1b4a56; color: #fafafa; }
.session .btn:hover { background: #ff6d4d; border-color: #ff6d4d; color: #000; }
.session.full .date { background: #dcdcdc; }
@media (max-width: 480px) { .session { grid-template-columns: auto minmax(0, 1fr); } .session .btn { grid-column: 1 / -1; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; padding: 0; margin: 0; }
.steps li { list-style: none; display: grid; gap: .6rem; align-content: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #ff6d4d; color: #1b4a56; font: 600 1.4rem var(--font-display); margin-bottom: .3rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Feature band (story, visit) */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.band > div { min-width: 0; display: grid; gap: 1.1rem; align-content: center; justify-items: start; }
.band .swatch { aspect-ratio: 4 / 3; width: 100%; border-radius: 999px 999px var(--radius) var(--radius); }
.band.flip > :first-child { order: 2; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } .band.flip > :first-child { order: 0; } }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.5rem; font-variant-numeric: tabular-nums; margin: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 500; }

/* Instagram */
.insta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.insta .swatch { aspect-ratio: 1; border-radius: 10px; }
@media (max-width: 680px) { .insta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Newsletter */
.newsletter { background: #ff6d4d; color: #000; }
.newsletter .wrap { padding-block: calc(clamp(2.5rem, 6vw, 4rem) + var(--zig)) clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.newsletter .wrap > div { display: grid; gap: .6rem; }
.newsletter h2 em { color: #1b4a56; }
.newsletter .eyebrow { color: #000; }
.newsletter .form-note a { color: inherit; }
.newsletter label { color: #000; }
.newsletter form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input { flex: 1 1 14rem; min-width: 0; padding: 1rem 1.2rem; border: 2px solid #1b4a56; border-radius: 99px; background: #ffffff; color: #1b4a56; font: inherit; }
.newsletter .btn { background: #1b4a56; border-color: #1b4a56; color: #fafafa; }
.newsletter .btn:hover { background: #fff; border-color: #fff; color: #1b4a56; }
.form-msg { flex-basis: 100%; font-size: .92rem; font-weight: 500; }
@media (max-width: 760px) { .newsletter .wrap { grid-template-columns: 1fr; } }

/* Shop page */
.shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; }
.filters { display: grid; gap: 1.6rem; align-content: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); }
.filters h4 { margin: 0 0 .5rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.filters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.filters a { text-decoration: none; display: block; padding: .35rem .75rem; border-radius: 99px; }
.filters a:hover { background: var(--coral-soft); }
.filters a.on { background: var(--ink); color: var(--paper); }
.shop-top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
select { font: inherit; padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); }
/* DRAFT: unified shop: category chips (same pills as .filters on small screens) and search */
.shop-tools { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; margin: -.6rem 0 2.4rem; }
.filters.chips { position: static; display: block; min-width: 0; max-width: 100%; }
.shop-tools > * { min-width: 0; }
.filters.chips ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters.chips a { border: 1.5px solid var(--line); padding: .4rem .95rem; font-size: .9rem; white-space: nowrap; }
.filters.chips a.on { border-color: var(--ink); }
.shop-search { position: relative; flex: 0 1 20rem; min-width: 0; }
.shop-search svg { position: absolute; left: .95rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.shop-search input { width: 100%; font: inherit; padding: .6rem 1rem .6rem 2.6rem; border: 1.5px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); }
.shop-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--coral-soft); }
.shop-group + .shop-group { margin-top: 3.5rem; }
.shop-group .section-head { margin-bottom: 1.4rem; }
.shop-empty { text-align: center; padding: 3rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 680px) {
  .shop-tools { flex-direction: column; align-items: stretch; gap: .9rem; }
  .shop-search { flex: none; order: -1; }
  .filters.chips ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .filters.chips ul::-webkit-scrollbar { display: none; }
}
/* DRAFT: Shop dropdown in the main nav */
.nav-drop { position: relative; display: flex; }
.nav-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 12rem; padding: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 30px -18px rgba(27,74,86,.45); z-index: 30; flex-direction: column; }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { display: flex; }
.nav-sub a { border-radius: 10px; }
@media (max-width: 920px) {
  .nav-drop { flex-direction: column; }
  .nav-sub { display: flex; position: static; min-width: 0; padding: 0 0 0 1rem; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .nav-sub a { font-size: .98rem; color: var(--muted); padding: .7rem .25rem; }
}
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .filters { position: static; grid-template-columns: 1fr; gap: 1rem; }
  .filters ul { display: flex; flex-wrap: wrap; gap: .35rem; }
  .filters a { border: 1.5px solid var(--line); padding: .35rem .85rem; font-size: .9rem; }
}

/* Product page */
.crumbs { font-size: .88rem; color: var(--muted); padding-block: 1.4rem; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding-bottom: 4rem; }
.product > div { min-width: 0; }
.gallery { display: grid; gap: .8rem; }
.gallery .main { aspect-ratio: 1; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.gallery .thumbs .swatch { aspect-ratio: 1; }
.gallery .main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #1b4a56; }
.gallery .thumbs .video::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3rem; height: 3rem; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(27,74,86,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fafafa'/%3E%3C/svg%3E") center / 60% no-repeat; }
.buy { display: grid; gap: 1.25rem; align-content: start; }
.buy h1 { font-size: clamp(2rem, 4vw, 3rem); }
.buy .price-big { font-family: var(--font-display); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 0; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }

/* Tape-measure length picker */
.measure { display: grid; gap: .7rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--coral-soft); }
.measure label { font-weight: 600; }
.measure-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.stepper { display: inline-flex; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--card); }
.stepper button { width: 2.9rem; border: 0; background: var(--card); color: var(--ink); font-size: 1.25rem; cursor: pointer; }
.stepper button:hover { background: #ff6d4d; color: #000; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; background: var(--card); color: var(--ink); }
.stepper output { min-width: 5.5rem; text-align: center; padding: .7rem .5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.measure .price { font-family: var(--font-display); font-size: 1.4rem; }
.tape {
  height: 34px; border-radius: 4px; position: relative; overflow: hidden; max-width: 100%;
  background-color: #ffe3d9;
  background-image:
    repeating-linear-gradient(90deg, #1b4a56 0 1.5px, transparent 1.5px 10%),
    repeating-linear-gradient(90deg, #1b4a56 0 1px, transparent 1px 2%);
  background-size: 100% 100%, 100% 32%; background-repeat: no-repeat;
}
.tape::after { content: ""; position: absolute; inset: 0 0 0 var(--cut, 0%); background: var(--card); opacity: .8; border-left: 2px dashed var(--rust); transition: left .2s ease; }
.tape-scale { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 600; color: var(--muted); }
.stock-note { font-size: .92rem; }
.stock-note.low { color: var(--sale); font-weight: 600; }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(23, 48, 58, .5); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); z-index: 50; background: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto auto; box-shadow: -10px 0 40px rgba(0,0,0,.25);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.drawer header, .drawer footer { padding: 1.25rem; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.drawer header h3 { font-size: 1.5rem; }
.drawer footer { border-bottom: 0; border-top: 1px dashed var(--line); display: grid; gap: .85rem; justify-content: stretch; align-items: stretch; background: var(--card); }
.drawer .close { background: var(--coral-soft); border: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.4rem; cursor: pointer; color: var(--ink); line-height: 1; }
.lines { overflow: auto; padding: 0 1.25rem; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .9rem; padding-block: 1rem; border-bottom: 1px dashed var(--line); align-items: start; }
.line .swatch { aspect-ratio: 1; border-radius: 10px; }
.line h4 { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.line .meta { font-size: .82rem; color: var(--muted); }
.line .qty { display: inline-flex; gap: .4rem; align-items: center; margin-top: .4rem; font-weight: 600; font-size: .88rem; }
.line .qty button { width: 1.8rem; height: 1.8rem; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 50%; cursor: pointer; }
.line .remove { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; margin-left: .4rem; }
.line .price { font-size: .95rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .3rem; font-variant-numeric: tabular-nums; font-size: .95rem; }
.totals .grand { font-weight: 700; font-size: 1.1rem; }
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; font-size: .9rem; }
.delivery label { display: flex; gap: .4rem; align-items: center; cursor: pointer; border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem .7rem; }
.delivery label:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }
.delivery input { accent-color: #ff6d4d; }
.ship-hint { font-size: .85rem; color: var(--rust); font-weight: 500; }
/* Free-shipping progress bar in the cart */
.ship-progress { padding: .75rem 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .4rem; }
.ship-progress p { margin: 0; }
#ship-progress-text { font-size: .9rem; font-weight: 600; color: var(--rust); }
.ship-progress.done #ship-progress-text { color: #1b4a56; }
.ship-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ship-bar span { display: block; height: 100%; width: 0; background: var(--coral); border-radius: inherit; transition: width .25s ease; }
.ship-progress.done .ship-bar span { background: #1b4a56; }
.ship-note { font-size: .78rem; color: var(--muted); }
.checkout-note { font-size: .85rem; color: var(--muted); background: var(--paper); border: 1.5px dashed var(--peach); padding: .8rem; border-radius: 12px; }
.empty { padding-block: 3rem; text-align: center; color: var(--muted); display: grid; gap: 1rem; justify-items: center; }

/* Inner pages */
.page-head { background: var(--coral-soft); }
.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem) calc(clamp(2rem, 4vw, 3rem) + var(--zig)); display: grid; gap: .9rem; justify-items: start; }
.page-head p { max-width: 60ch; font-size: 1.1rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1.4rem; }
.info-grid > div { display: grid; gap: .7rem; align-content: start; background: var(--card); padding: 1.6rem; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.info-grid.plain > div { background: none; box-shadow: none; padding: 0; }
.ic-round { width: 48px; height: 48px; border-radius: 50%; background: #ff6d4d; display: grid; place-items: center; }
.ic-round svg { width: 22px; height: 22px; stroke: #1b4a56; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.table-scroll { overflow-x: auto; }
table.rates { border-collapse: collapse; width: 100%; max-width: 36rem; font-variant-numeric: tabular-nums; }
table.rates th, table.rates td { text-align: left; padding: .65rem .5rem; border-bottom: 1px dashed var(--line); }
table.rates th { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); }
.todo { background: color-mix(in srgb, #ffe3d9 45%, transparent); padding: 0 .25em; border-radius: 3px; }

/* Footer */
.site-footer { background: #1b4a56; color: #fafafa; }
.site-footer .wrap { padding-block: calc(3.5rem + var(--zig)) 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { display: grid; gap: 1rem; align-content: start; }
.site-footer .brand img { width: 150px; height: 150px; }
.site-footer .brand p { font-size: .92rem; opacity: .8; max-width: 30ch; }
.site-footer h2 { margin: 0 0 .8rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .93rem; }
.site-footer a { text-decoration: none; opacity: .92; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: #ff6d4d; text-underline-offset: 3px; }
.site-footer .small { font-size: .8rem; opacity: .7; grid-column: 1 / -1; border-top: 1px dashed rgba(251,245,238,.25); padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer .small a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

.preview-flag { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 35; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: #fc4c00; color: #000; padding: .4rem .75rem; border-radius: 99px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }

/* Gentle reveal as sections scroll in */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- real photos ---------- */
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.photo.arch { aspect-ratio: 4 / 3; border-radius: 999px 999px var(--radius) var(--radius); }
.photo.tall { aspect-ratio: 4 / 5; }
.hero-call { font-size: .95rem !important; }
.hero-call a { color: inherit; font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.gallery-grid a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid span { position: absolute; left: .8rem; bottom: .8rem; background: #fafafa; color: #1b4a56; font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }
.gallery-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .gallery-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flyer-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .8rem; }
.flyer-times div { background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.flyer-times b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.flyer-times small { color: var(--muted); }
.contact-form { display: grid; gap: .9rem; max-width: 34rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 500; }
.contact-form input, .contact-form textarea { font: inherit; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: inherit; width: 100%; }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.post .pics { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 760px) { .post { grid-template-columns: 1fr; } }
.fb-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.fb-band > div:first-child { display: grid; gap: 1rem; justify-items: start; }
.fb-feed { width: 100%; min-height: 200px; display: grid; justify-items: center; gap: .6rem; }
.fb-feed iframe { max-width: 100%; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.fb-fallback { font-size: .85rem; text-align: center; }
@media (max-width: 760px) { .fb-band { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.gallery-grid a:not([href]) { cursor: default; }
.gallery-grid a:not([href]):hover img { transform: none; }
.newsletter .optin { flex-basis: 100%; display: flex; gap: .6rem; align-items: center; font-weight: 500; cursor: pointer; }
.newsletter .optin input { flex: none; width: 1.25rem; height: 1.25rem; padding: 0; accent-color: #1b4a56; }
.form-note { flex-basis: 100%; font-size: .82rem; margin: 0; opacity: .8; }

/* legal pages and Facebook consent */
.legal h2 { font-size: 1.5rem; margin-top: .8rem; }
.legal ul { display: grid; gap: .5rem; padding-left: 1.2rem; }
.fb-consent { text-align: center; padding: 2rem 1rem; display: grid; gap: .6rem; justify-items: center; }
.form-note { font-size: .9rem; }
.form-note, .contact-form .form-note { opacity: 1; }
.posts-intro { font-size: 1.1rem; text-align: center; max-width: 52ch; margin-inline: auto; }
.post-head { margin-bottom: 1.5rem; }
.gallery-grid > img { border-radius: var(--radius); }
.promo-strip { background: #ffe3d9; color: #1b4a56; text-align: center; font-size: .95rem; }
.promo-strip .wrap { padding-block: .6rem; display: flex; justify-content: center; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; }
.promo-strip a { color: #1b4a56; font-weight: 700; }
.promo-pop { border: 0; padding: 0; border-radius: var(--radius); width: min(92vw, 460px); background: #fbf5ee; box-shadow: 0 24px 60px -20px rgba(23,48,58,.6); overflow: hidden; }
.promo-pop::backdrop { background: rgba(23,48,58,.55); }
.promo-pop img { display: block; width: 100%; height: auto; }
.promo-actions { display: flex; gap: .6rem; justify-content: center; padding: 1rem; flex-wrap: wrap; }
.promo-actions form { margin: 0; }
.promo-pop .btn { background: #17303a; border-color: #17303a; color: #fbf5ee; }
.promo-pop .btn.ghost { background: transparent; color: #17303a; }
.promo-close { position: absolute; top: .5rem; right: .5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: rgba(23,48,58,.85); color: #fbf5ee; font-size: 1.5rem; line-height: 1; cursor: pointer; }
/* Header and top bar stay light-on-teal / teal-on-white in dark mode too, so the logo and Menu button stay readable */
.announce { background: #1b4a56; color: #fafafa; }
.site-header .menu-btn { color: #1b4a56; border-color: #1b4a56; }
.pinned { background: #ffe3d9; color: #1b4a56; }
.pinned .muted, .pinned h2, .pinned .eyebrow { color: #1b4a56; }
.pinned .btn.ghost { color: #1b4a56; border-color: #1b4a56; }
.pin-tag { display: inline-block; background: #1b4a56; color: #fafafa; border-radius: 99px; padding: .1rem .6rem; margin-right: .4rem; letter-spacing: .04em; }
.pinned h2 em { color: #9f2b00; }

/* Sewing patterns */
.swatch.portrait { aspect-ratio: 4 / 5; background-position: center top; }
#pattern .gallery .main { aspect-ratio: 4 / 5; background-position: center top; }
#pattern .gallery .thumbs { grid-template-columns: repeat(4, 1fr); }
#pattern .gallery .thumbs button { aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center top; }
.levels { display: flex; flex-wrap: wrap; gap: .4rem; }
.levels span { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 99px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.levels span.on { background: var(--teal); color: #fafafa; box-shadow: none; }
.sizes { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sizes legend { font-weight: 600; display: flex; gap: 1rem; align-items: baseline; padding: 0; margin-bottom: .6rem; width: 100%; }
.sizes legend a { font-weight: 400; font-size: .88rem; margin-left: auto; }
.sizes > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size span { display: block; min-width: 5.5rem; text-align: center; padding: .7rem 1rem; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; font-size: .92rem; }
.size input:checked + span { background: var(--ink); color: var(--paper); }
.size input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.size.out span { opacity: .4; text-decoration: line-through; box-shadow: inset 0 0 0 1.5px var(--line); }
.size.out input { cursor: not-allowed; }
.accordion { max-width: 880px; margin: 0 auto 4rem; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 1.3rem .2rem; font-weight: 600; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; margin-right: .4rem; flex: none; }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc > div { padding: 0 .2rem 1.5rem; display: grid; gap: .8rem; }
.acc[id] { scroll-margin-top: 6rem; }
.table-scroll { overflow-x: auto; }
.size-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
.size-table th, .size-table td { padding: .65rem .8rem; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table tbody th { text-align: left; font-weight: 500; color: var(--muted); }
.size-table .on { background: var(--coral-soft); color: #000; }
.small-note { font-size: .88rem; }

/* Julia's units layout on fabric pages (1 Nov 2026) */
.units { display: grid; gap: .6rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--coral-soft); }
.units label { font-weight: 600; }
.units .stepper { width: max-content; }
.units .stepper button { min-width: 44px; min-height: 44px; }
.units .stepper input { width: 4.5rem; min-height: 44px; border: 0; text-align: center; font: inherit; font-weight: 600; font-size: 1.05rem; background: var(--card); color: var(--ink); -moz-appearance: textfield; }
.units .stepper input::-webkit-inner-spin-button, .units .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.units-live { margin: 0; line-height: 1.6; font-variant-numeric: tabular-nums; }
.units-info { font-size: .92rem; color: var(--muted); margin: .6rem 0 0; }

/* Free postage wording (Jake, 1 Nov 2026) */
.ship-basis { font-size: .82rem; color: var(--ink, #1b4a56); }
.free-note { font-weight: 600; color: #1b4a56; margin: .6rem 0 .2rem; }
/* Vouchers (2 Nov 2026): amount picker, terms box, recipient fields in the cart */
.custom-amount { margin-top: .4rem; display: grid; gap: .35rem; }
.custom-amount label { font-size: .9rem; font-weight: 600; }
.dollar { display: flex; align-items: center; gap: .4rem; max-width: 12rem; }
.dollar span { font-weight: 700; font-size: 1.1rem; }
.dollar input { width: 100%; padding: .6rem .7rem; border: 1.5px solid var(--ink); border-radius: 10px; font: inherit; }
.voucher-terms { background: #fff1ec; border-left: 4px solid var(--coral, #ff6d4d); padding: .7rem .9rem; border-radius: 8px; color: #1b4a56; margin: .6rem 0; }
.card-terms { display: block; font-size: .8rem; color: #1b4a56; margin-top: .3rem; font-weight: 600; }
.vto { grid-column: 1 / -1; border: 1px solid var(--line, #ddd); border-radius: 10px; padding: .6rem .8rem .7rem; margin: .5rem 0 0; display: grid; gap: .45rem; font-size: .88rem; }
.vto legend { font-weight: 700; padding: 0 .3rem; }
.vto label { display: grid; gap: .2rem; font-weight: 600; }
.vto label.vto-self { display: flex; gap: .45rem; align-items: center; font-weight: 400; }
.vto input:not([type=checkbox]), .vto textarea { font: inherit; padding: .45rem .55rem; border: 1px solid #9aa9ad; border-radius: 8px; width: 100%; box-sizing: border-box; }
.vto-who { display: grid; gap: .45rem; }
.vto-who[hidden] { display: none; }
.vto-count { font-size: .75rem; color: #5b6b70; justify-self: end; }
.vto-err { color: #a3261b; font-weight: 600; margin: 0; min-height: 0; }
.vto-err:empty { display: none; }
/* Shop gift card: "To be spent in store only" (Jake, 2 Nov 2026) */
.instore-only { font-size: 1.05rem; }
.voucher-line .instore-line { color: #9f2b00; }

/* ---------- "Ask us" chat helper (assets/chat.js) ---------- */
.chat-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 36;
  display: inline-flex; align-items: center; gap: .45rem; border: 0; cursor: pointer;
  background: var(--coral); color: var(--on-coral); font: 600 .9rem/1 var(--font-body); padding: .8rem 1.1rem; border-radius: 99px;
  box-shadow: 0 8px 22px -8px rgba(27, 74, 86, .55);
}
.chat-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.chat-fab.is-open span { display: none; }
.chat-panel {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 37;
  width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 110px)); display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(27, 74, 86, .5);
}
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; background: #1b4a56; color: #fff; }
.chat-panel header b { font-family: var(--font-display); font-size: 1.2rem; display: block; }
.chat-panel header small { opacity: .85; font-size: .78rem; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; line-height: 1.5; }
.chat-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow-wrap: anywhere; }
.chat-msg.me { align-self: flex-end; background: var(--coral-soft); border-color: transparent; }
.chat-msg a { color: var(--rust); font-weight: 600; }
.chat-hours { display: block; margin-top: .4rem; font-size: .85rem; }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.chat-chips button { border: 1px solid var(--coral); background: transparent; color: var(--ink); font: 500 .8rem/1 var(--font-body); padding: .5rem .7rem; border-radius: 99px; cursor: pointer; }
.chat-chips button:hover { background: var(--coral-soft); }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); }
.chat-form .btn, .chat-handoff .btn { padding: .55rem 1rem; font-size: .85rem; }
.chat-handoff { display: flex; flex-direction: column; gap: .5rem; }
.chat-handoff label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; }
.chat-handoff input, .chat-handoff textarea { font: inherit; font-size: 16px; font-weight: 400; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.chat-handoff small { font-size: .72rem; color: var(--muted); }
@media print { .chat-fab, .chat-panel { display: none !important; } }

/* Matching thread on fabric pages: one compact row (spool, name, price, Add). */
.thread-buy { margin: 1rem 0 .6rem; }
.thread-card { display: flex; align-items: center; gap: .75rem; padding: .65rem .7rem .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-width: 30rem; }
.thread-spool { flex: none; width: 34px; height: 34px; fill: var(--muted); }
.thread-spool .thread-wind { fill: var(--coral); }
.thread-spool .thread-lines { stroke: var(--card); stroke-width: 1.2; opacity: .55; fill: none; }
.thread-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.thread-info b { font-size: .95rem; color: var(--ink); }
.thread-info span { font-size: .82rem; color: var(--muted); }
.thread-price { flex: none; font-weight: 600; color: var(--ink); font-size: .95rem; }
.thread-add { flex: none; font: 600 .85rem/1 var(--font-body); padding: .6rem 1rem; border-radius: 99px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.thread-add:hover, .thread-add:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- Layout polish (site-wide audit, 26 Nov 2026) ---------- */
/* No lone last words or "- Colour" starting a line; small labels wrap evenly. */
p, li, .card h3, dd, small { text-wrap: pretty; }
.eyebrow { text-wrap: balance; }
.nowrap, [data-shop="phone"], a[href^="tel:"] { white-space: nowrap; }
/* Top bar on phones: the two lines sit centred without the dots floating beside them. */
@media (max-width: 600px) { .announce .dots { display: none; } .announce .wrap { gap: .15rem 1rem; } }
/* Footer: all five columns in one row on wide screens (Policies no longer drops to a row on its own),
   and opening hours as a tidy day / time list that never breaks "10am to / 5pm". */
.site-footer .wrap { grid-template-columns: 1.3fr 1.1fr 1.25fr 1fr 1fr; }
.foot-hours li { display: grid; grid-template-columns: 6.2rem 1fr; gap: .6rem; }
.foot-hours li span:last-child { white-space: nowrap; }
@media (max-width: 1080px) {
  .site-footer .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .wrap > .brand { grid-column: 1 / -1; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 1.5rem; }
  .site-footer .brand p { max-width: 40ch; }
}
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: auto minmax(0, 1fr); column-gap: 1.5rem; }
  .site-footer .wrap > .brand { grid-template-columns: 1fr; }
  .site-footer .wrap > div:nth-child(2), .site-footer .wrap > .foot-hours { grid-column: 1 / -1; }
  .foot-hours ul { max-width: 22rem; }
}
/* Gift voucher art is 3:4 portrait: show the whole card, never crop its border. */
.swatch.voucher-art { aspect-ratio: 3 / 4; background-size: contain; background-repeat: no-repeat; background-color: #fff; }
#pattern.is-voucher .gallery .main { aspect-ratio: 3 / 4; background-size: contain; background-repeat: no-repeat; background-color: #fff; max-height: 80vh; }
/* No empty "matching thread" box adding a gap on fabrics without a thread. */
.thread-buy:empty { display: none; }
/* Pattern sizes: Size 1 to 4 sit on one row on phones instead of leaving one alone underneath. */
@media (max-width: 480px) {
  .sizes > div { gap: .4rem; }
  .size span { min-width: 0; padding: .65rem .95rem; }
  .acc summary { letter-spacing: .08em; font-size: .88rem; }
}
/* Section heading followed straight by its intro line. */
.wrap > h2 + p { margin-top: .8rem; }
/* Chat box: one clean focus ring on the question field. */
.chat-form input:focus-visible, .chat-handoff input:focus-visible, .chat-handoff textarea:focus-visible { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
/* "Ask us" steps aside while a button or form field is underneath it (assets/chat.js). */
.chat-fab { transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.chat-fab.tucked { opacity: 0; visibility: hidden; transform: scale(.85); pointer-events: none; }
