/* Al Tajar storefront.
   Direction: soft earthy pet boutique. Sage green, warm sand and deep navy.
   Layout idea: generous whitespace, hairline rules, a centred wordmark, one dark section for rhythm. */
:root {
  /* One matching system taken from the products:
     white + photo grey backgrounds, navy (the cave bed), caramel (the leather Al Tajar label). */
  --ink: #13203d;          /* dark blue: text, hero, dark sections */
  --ink-2: #1d2d52;
  --brass: #ec7a2d;        /* orange accent and buttons */
  --brass-dark: #d1621a;
  --brass-soft: #f7a35f;   /* light orange on dark blue */
  --sage: #b0682f;
  --sage-light: #f6f6f6;
  --sage-deep: #1f2a44;
  --clay: #b0682f;
  --ivory: #ffffff;
  --linen: #f6f6f6;        /* same grey as the product photos */
  --photo: #ffffff;
  --sand: #e6e6e6;
  --text: #1f2430;
  --muted: #6b6f78;
  --line: #e7e7ea;
  --ok: #3f7a52;
  --warn: #b0682f;
  --bad: #b3322a;
  --font-display: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 16.5px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
strong { font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: normal; color: var(--brass); }
p { margin: 0 0 1.1em; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.eyebrow { font: 500 0.74rem/1.4 var(--font-body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin: 0 0 1.1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 3px; }
.fill-me { background: #f3e6cf; padding: 0 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  background: var(--brass); color: #fff; border: 1px solid var(--brass);
  padding: 1.05em 2.2em; border-radius: 0; cursor: pointer; text-decoration: none;
  font: 500 0.78rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-honey, .btn-brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-honey:hover, .btn-brass:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.btn-light { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--ivory); }
.btn-small { padding: .85em 1.5em; font-size: .72rem; }
.btn-block { width: 100%; }
.link-arrow { font: 500 .78rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow::after { content: " →"; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Announcement + header */
.announce { background: var(--brass); color: #fff; text-align: center; font: 400 .72rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; padding: 11px 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 82px; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { text-decoration: none; font: 400 .78rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.main-nav a:hover { border-bottom-color: var(--brass); }
.logo { justify-self: center; display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo-text { font: 600 1.6rem/1 var(--font-display); letter-spacing: .3em; color: var(--ink); margin-right: -.3em; }
.logo-sub { font: 400 .6rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--brass); margin-top: 7px; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 2px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; color: var(--ink); text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--brass); }
.badge { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--brass); color: #fff; font: 500 .62rem/17px var(--font-body); text-align: center; }
.badge[data-count="0"] { display: none; }
.badge.dot { min-width: 8px; width: 8px; height: 8px; padding: 0; top: 9px; right: 9px; background: var(--sage); }
.menu-btn { display: none; }
.search-bar { display: none; border-top: 1px solid var(--line); padding: 16px 0; }
.search-bar.open { display: block; }
.search-bar input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font: 300 1.3rem var(--font-body); padding: 8px 0; color: var(--text); }
.search-bar input:focus { outline: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; min-height: 640px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(24px, 6vw, 96px); background: var(--ink); background-image: radial-gradient(circle at 15% 20%, rgba(236,122,45,.16), transparent 45%); }
.hero-copy h1 { color: #fff; }
.hero-copy .eyebrow { color: var(--brass-soft); }
.hero-copy .lead { font-size: 1.12rem; color: #c6cddc; max-width: 30em; margin-bottom: 2.2em; }
.hero-copy .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-copy .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; background: var(--photo); overflow: hidden; display: grid; place-items: center; }
.hero-media > svg { position: absolute; inset: 0; }
.hero-media > img { width: min(86%, 620px); height: auto; }
.hero-note { position: absolute; left: 32px; bottom: 32px; background: #fff; padding: 18px 22px; min-width: 230px; box-shadow: 0 18px 40px rgba(19, 32, 61, .12); border-left: 3px solid var(--brass); }
.hero-note .eyebrow { margin-bottom: .5em; }
.hero-note strong { display: block; font: 500 1.1rem/1.3 var(--font-display); color: var(--ink); }
.hero-note span { font-size: .92rem; color: var(--muted); }

/* Trust row */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 26px 22px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 26px; height: 26px; flex: none; color: var(--brass); }
.trust-item strong { display: block; font-weight: 500; font-size: .92rem; color: var(--ink); letter-spacing: .02em; }
.trust-item span { font-size: .85rem; color: var(--muted); }
.trust { border-bottom: 1px solid var(--line); background: #fff; }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: var(--linen); }
.section-sage { background: var(--sage-light); }
.section-dark { background: var(--ink); color: #d5d9e2; background-image: radial-gradient(circle at 85% 0%, rgba(236,122,45,.14), transparent 40%); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark .eyebrow, .section-dark h2 em { color: var(--brass-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); margin: 0; }

/* Collection */
.toolbar { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: -24px 0 48px; align-items: center; }
.chip { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; cursor: pointer; font: 400 .78rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.toolbar select { border: 0; border-bottom: 1px solid var(--line); background: transparent; font: 400 .78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 4px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 28px; }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); }
.card-media > * { transition: transform 1.2s var(--ease); }
.card:hover .card-media > * { transform: scale(1.035); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 2px 0; display: grid; gap: 4px; }
.card-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 500; }
.card-body h3 a { text-decoration: none; color: var(--ink); }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-meta { font-size: .86rem; color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; }
.price { font: 500 1.02rem var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; }
.tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--brass); color: #fff; font: 500 .64rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; padding: 8px 11px; }
.wish { position: absolute; top: 8px; right: 8px; z-index: 3; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.wish svg { width: 20px; height: 20px; }
.wish[aria-pressed="true"] svg path { fill: var(--ink); }
.stars { color: var(--brass); letter-spacing: 2px; font-size: .9rem; }
.stock { font-size: .78rem; letter-spacing: .06em; }
.stock.ok { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--bad); }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px solid var(--line); }

/* Sleep styles (dark band) */
.styles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.style-card { text-decoration: none; color: inherit; display: grid; gap: 18px; }
.style-art { aspect-ratio: 1; overflow: hidden; background: var(--photo); }
.style-art img, .story-media img, .finder-result .art img { width: 100%; height: 100%; object-fit: cover; }
.style-art > * { transition: transform 1.2s var(--ease); }
.style-card:hover .style-art > * { transform: scale(1.04); }
.style-card h3 { margin: 0; font-size: 1.4rem; }
.style-card p { margin: 0; color: #c3c8d4; font-size: .97rem; }
.style-card .link-arrow { color: var(--brass-soft); justify-self: start; }

/* Bed finder */
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.finder-form { display: grid; gap: 28px; margin-top: 34px; }
.finder-form label, .finder-label { font: 500 .74rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 12px; }
.range-row { display: flex; align-items: center; gap: 20px; }
.range-row input { flex: 1; accent-color: var(--ink); }
.range-row output { font: 500 1.6rem var(--font-display); color: var(--ink); min-width: 80px; text-align: right; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg .chip { border: 1px solid var(--line); padding: 10px 16px; color: var(--text); background: var(--ivory); }
.seg .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.finder-result { background: var(--ivory); display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; }
.finder-result .art { overflow: hidden; background: var(--photo); }
.finder-result .info { padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.finder-result h3 { font-size: 1.45rem; margin-bottom: .3em; }
.finder-result p { color: var(--muted); font-size: .97rem; }

/* Tables */
.size-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { text-align: left; font: 500 .7rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0 14px 14px 0; border-bottom: 1px solid var(--ink); }
table.data td { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); }
.quote { font: 400 clamp(1.5rem, 2.3vw, 2rem)/1.4 var(--font-display); color: var(--ink); margin: 0 0 1em; }
.values { list-style: none; margin: 2em 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.values li { border-top: 1px solid var(--line); padding-top: 14px; font-size: .95rem; color: var(--muted); }
.values strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }

/* Reviews */
.review-list { display: grid; gap: 18px; }
.review { background: var(--ivory); border-top: 1px solid var(--line); padding: 20px 0; }
.review-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.verified { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; font: 500 1.08rem/1.4 var(--font-display); color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center/100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1px 100% no-repeat; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 8px; max-width: 60ch; }

/* Newsletter */
.newsletter { text-align: center; max-width: 620px; margin: 0 auto; }
.newsletter p { color: var(--muted); }
.inline-form { display: flex; gap: 0; border-bottom: 1px solid var(--ink); margin-top: 28px; }
.inline-form input[type="email"] { flex: 1; border: 0; background: transparent; font: 300 1.05rem var(--font-body); padding: 12px 2px; color: var(--text); }
.inline-form input:focus { outline: none; }
.inline-form .btn { background: none; border: 0; color: var(--ink); padding: 12px 4px; }
.inline-form .btn:hover { color: var(--brass); background: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; justify-content: center; font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: left; }
.consent input { margin-top: 5px; accent-color: var(--ink); }

/* Forms */
.form { display: grid; gap: 6px; }
.form label { font: 500 .72rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-top: 14px; }
input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], textarea, select.input {
  width: 100%; padding: .85em 1em; border: 1px solid var(--line); border-radius: 0; font: 300 1rem var(--font-body); background: #fff; color: var(--text);
}
input:focus, textarea:focus, select.input:focus { border-color: var(--ink); outline: none; }
.form .btn { margin-top: 18px; justify-self: start; }
.status { min-height: 1.4em; font-size: .9rem; margin: 10px 0 0; }
.status.ok { color: var(--ok); } .status.err { color: var(--bad); }
.trap { position: absolute; left: -9999px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; }
.panel { background: #fff; border: 1px solid var(--line); padding: 34px; }

/* Product page */
.breadcrumb { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 28px 0 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; padding-bottom: 90px; align-items: start; }
.gallery { position: sticky; top: 110px; }
.gallery-main { aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 78px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; overflow: hidden; cursor: pointer; background: var(--photo); }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { padding-top: 8px; }
.pdp-info h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .2em; }
.pdp-price { font: 400 1.35rem var(--font-body); color: var(--ink); margin: 8px 0 2px; font-variant-numeric: tabular-nums lining-nums; }
.pdp-short { font-size: 1.05rem; color: var(--muted); margin: 18px 0 26px; }
.opt-label { font: 500 .72rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; display: flex; justify-content: space-between; }
.opt-label a { color: var(--muted); font-weight: 400; letter-spacing: .1em; }
.size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.size-opt { border: 1px solid var(--line); background: transparent; padding: .8em 1.4em; font: 400 .95rem var(--font-body); cursor: pointer; color: var(--text); min-width: 84px; }
.size-opt:hover { border-color: var(--ink); }
.size-opt[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.size-opt.soldout { color: var(--muted); text-decoration: line-through; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 28px 0 12px; }
.buy-row .btn-ghost { grid-column: 1 / -1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.qty button { width: 42px; height: 50px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty input { width: 40px; padding: 0; text-align: center; border: 0; font: 400 1rem var(--font-body); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-perks { list-style: none; padding: 22px 0; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: .93rem; color: var(--muted); }
.pdp-perks li { display: flex; gap: 12px; }
.pdp-perks li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--brass); margin-top: .85em; }
.feature-list { padding-left: 1.1em; color: var(--muted); }
.feature-list li { margin-bottom: 4px; }
.notify-box { background: var(--linen); padding: 20px; margin: 18px 0; }
.wish-link { background: none; border: 0; cursor: pointer; font: 400 .78rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; padding: 6px 0; }
.wish-link svg { width: 16px; height: 16px; }
.wish-link[aria-pressed="true"] { color: var(--ink); }
.wish-link[aria-pressed="true"] svg path { fill: var(--ink); }
.related { padding: 90px 0 110px; border-top: 1px solid var(--line); }
.review-form { background: #fff; border: 1px solid var(--line); padding: 30px; }
.star-input { display: flex; gap: 2px; }
.star-input button { background: none; border: 0; font-size: 1.6rem; color: var(--sand); cursor: pointer; padding: 0 2px; line-height: 1; }
.star-input button.on { color: var(--brass); }
.reviews-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }

/* Basket drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(27, 34, 56, .35); opacity: 0; transition: opacity .35s var(--ease); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--ivory); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 22px 28px 26px; display: grid; gap: 12px; }
.ship-bar { font-size: .88rem; color: var(--muted); }
.ship-track { height: 2px; background: var(--sand); margin-top: 10px; }
.ship-fill { height: 100%; background: var(--brass); transition: width .5s var(--ease); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-art { width: 76px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); display: block; }
.line-art img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font: 500 1rem/1.3 var(--font-display); color: var(--ink); }
.line-meta { font-size: .84rem; color: var(--muted); }
.line .qty { margin-top: 8px; }
.line .qty button { width: 30px; height: 32px; }
.line .qty input { width: 28px; font-size: .9rem; }
.sum-rows { display: grid; gap: 4px; font-size: .92rem; color: var(--muted); }
.sum-rows div { display: flex; justify-content: space-between; }
.totals { display: flex; justify-content: space-between; font: 500 1.05rem var(--font-body); color: var(--ink); }
.secure { font-size: .75rem; letter-spacing: .08em; color: var(--muted); text-align: center; margin: 0; }

/* Assistant */
.assistant-btn { position: fixed; right: 22px; bottom: 22px; z-index: 70; background: var(--ink); color: var(--ivory); border: 0; padding: 14px 20px; font: 500 .72rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 10px; box-shadow: 0 14px 34px rgba(27, 34, 56, .18); }
.assistant-btn svg { width: 17px; height: 17px; color: var(--brass-soft); }
.assistant { position: fixed; right: 22px; bottom: 82px; z-index: 75; width: min(380px, calc(100% - 44px)); height: min(540px, 72vh); background: var(--ivory); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(27, 34, 56, .2); display: none; flex-direction: column; }
.assistant.open { display: flex; }
.assistant-head { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.assistant-head strong { font: 500 1.1rem var(--font-display); color: var(--ink); }
.assistant-head span { font-size: .8rem; color: var(--muted); }
.assistant-head button { background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.assistant-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 11px 14px; font-size: .93rem; white-space: pre-wrap; line-height: 1.55; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--ink); color: var(--ivory); align-self: flex-end; }
.msg a { color: inherit; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.quick button { border: 1px solid var(--line); background: #fff; padding: 7px 12px; font: 400 .8rem var(--font-body); cursor: pointer; color: var(--text); text-transform: none; letter-spacing: 0; }
.quick button:hover { border-color: var(--ink); }
.assistant form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.assistant form input { flex: 1; }

/* WhatsApp, cookie, toast */
.wa-btn { position: fixed; left: 22px; bottom: 22px; z-index: 69; width: 50px; height: 50px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(0,0,0,.15); }
.wa-btn svg { width: 26px; height: 26px; }
.cookie { position: fixed; left: 22px; bottom: 22px; z-index: 72; max-width: 400px; background: var(--ivory); border: 1px solid var(--line); padding: 22px 24px; box-shadow: 0 20px 50px rgba(27, 34, 56, .12); font-size: .88rem; color: var(--muted); }
.cookie .btns { display: flex; gap: 10px; margin-top: 14px; }
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120px); z-index: 90; background: var(--ink); color: var(--ivory); padding: 13px 22px; font-size: .88rem; letter-spacing: .03em; transition: transform .35s var(--ease); }
.toast.show { visibility: visible; transform: translateX(-50%) translateY(0); }

/* Status pages, account, legal */
.page-narrow { width: min(780px, 100% - 48px); margin: 0 auto; padding: 72px 0 110px; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.pill { display: inline-block; padding: .35em .9em; font: 500 .66rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; background: var(--linen); color: var(--ink); }
.pill.paid, .pill.processing { background: #f4ead8; color: #7a5212; }
.pill.shipped, .pill.delivered { background: #e3ede4; color: #2f5a3a; }
.pill.cancelled, .pill.refunded { background: #f3e1dd; color: #7d2a1f; }
.legal h2 { font-size: 1.7rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.35rem; margin-top: 1.4em; }
.legal li { margin-bottom: 6px; }
.account-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.order-card { border-top: 1px solid var(--line); padding: 20px 0; display: grid; gap: 6px; }
.order-card .top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.code-input { font: 500 1.6rem var(--font-display) !important; letter-spacing: .45em; text-align: center; }

/* Footer */
.site-footer { border-top: 4px solid var(--brass); background: var(--ink); color: #b9bfc9; padding: 84px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer a, .footer-btn { display: block; color: #b9b4aa; text-decoration: none; margin-bottom: 10px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.site-footer a:hover, .footer-btn:hover { color: var(--ivory); }
.footer-logo { font: 600 1.4rem/1 var(--font-display); letter-spacing: .28em; color: var(--ivory); margin: 0 0 10px; }
.footer-tag { font: 400 1.05rem var(--font-display); color: var(--brass-soft); margin: 0 0 14px; }
.footer-head { font: 500 .7rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); margin-bottom: 18px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 60px; padding-top: 24px; font-size: .78rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pay-icons { display: flex; gap: 14px; letter-spacing: .14em; text-transform: uppercase; font-size: .66rem; color: #8e8a82; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .main-nav a { font-size: .72rem; }
}
@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .menu-btn { display: inline-grid; order: -1; }
  .logo { justify-self: center; }
  .logo-text { font-size: 1.5rem; }
  .logo-sub { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { aspect-ratio: 5 / 4; order: -1; }
  .hero-copy { padding: 48px 24px 56px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .styles-grid, .finder, .size-wrap, .story, .faq-wrap, .contact-grid, .pdp, .reviews-wrap, .account-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .header-tools a[aria-label="Wishlist"], #searchBtn { display: none; }
  .trust-item { padding: 18px 10px; gap: 10px; }
  .trust-item svg { width: 22px; height: 22px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .card-body h3 { font-size: 1.2rem; }
  .card-foot { flex-direction: column; gap: 0; }
  .finder-result { grid-template-columns: 1fr; }
  .finder-result .art { aspect-ratio: 4 / 3; }
  .values { grid-template-columns: 1fr; }
  .hero-note { display: none; }
  .announce { font-size: .62rem; letter-spacing: .14em; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; }
  .assistant-btn span { display: none; }
  .assistant-btn { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Soft blue band for the story section */
.section-blue { background: #c4d3ec; background-image: radial-gradient(circle at 100% 0%, rgba(19, 32, 61, .07), transparent 45%); }
.section-blue .story-media { background: var(--photo); box-shadow: 0 24px 50px rgba(19, 32, 61, .14); border-bottom: 4px solid var(--ink); }
.section-blue .quote { color: var(--ink); border-left: 3px solid var(--brass); padding-left: 22px; }
.section-blue .muted { color: #3c4a66; }
.section-blue .values li { border-top: 2px solid var(--ink); color: #3c4a66; }
.section-blue .values strong { color: var(--ink); }
.section-blue .story-media { aspect-ratio: 1 / 1; }

/* ---- Blue and orange through every section ---- */
/* Bed finder: warm orange tint */
.section-warm { background: #fdf0e6; background-image: radial-gradient(circle at 0% 100%, rgba(236,122,45,.12), transparent 45%); }
.section-warm .finder-result { box-shadow: 0 24px 50px rgba(19,32,61,.12); border-top: 4px solid var(--brass); }
.section-warm .seg .chip { background: #fff; }
.section-warm .range-row input { accent-color: var(--brass); }

/* Size guide: dark blue table header, orange sizes */
.section-size table.data th { background: var(--ink); color: #fff; padding: 14px 16px; border-bottom: 0; }
.section-size table.data td { padding: 16px; }
.section-size table.data tr:nth-child(even) td { background: #f3f6fb; }
.section-size table.data td.num:nth-child(2) { color: var(--brass); font-weight: 500; }

/* Questions: soft blue with orange markers */
.section-blue2 { background: #c4d3ec; }
.section-blue2 .faq-list { border-top: 2px solid var(--ink); }
.section-blue2 details { border-bottom: 1px solid #a9bbdc; }
.section-blue2 summary::after { background: linear-gradient(var(--brass), var(--brass)) center/100% 2px no-repeat, linear-gradient(var(--brass), var(--brass)) center/2px 100% no-repeat; }
.section-blue2 details[open] summary { color: var(--brass-dark); }
.section-blue2 details p { color: #33415e; }

/* Newsletter: dark blue with orange button */
.section-news .newsletter p, .section-news .consent { color: #c6cddc; }
.section-news .newsletter h2 { color: #fff; }
.section-news .inline-form { border-bottom: 0; gap: 10px; }
.section-news .inline-form input[type="email"] { background: #fff; padding: 14px 16px; color: var(--text); }
.section-news .inline-form .btn { background: var(--brass); color: #fff; padding: 14px 26px; }
.section-news .inline-form .btn:hover { background: var(--brass-dark); color: #fff; }
.section-news .status.ok { color: var(--brass-soft); }
.section-news .status.err { color: #ffb3a8; }

/* Contact: orange-topped form card on a light blue-grey band */
.section-contact { background: linear-gradient(180deg, #fff 0%, #f3f6fb 100%); }
.section-contact .panel { border: 0; border-top: 4px solid var(--brass); box-shadow: 0 24px 50px rgba(19,32,61,.10); }
.section-contact .panel label { color: var(--ink); }

/* Product cards: orange on hover */
.card-body h3 a { transition: color .25s; }
.card:hover .card-body h3 a { color: var(--brass-dark); }
.section-warm .seg .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Story section: dark blue boundary around the whole block */
.section-blue .story { border: 3px solid var(--ink); background: #dbe5f5; padding: clamp(24px, 4vw, 56px); position: relative; }
.section-blue .story::before { content: ""; position: absolute; top: -3px; left: -3px; width: 90px; height: 6px; background: var(--brass); }
@media (max-width: 560px) { .section-blue .story { padding: 20px; } }
/* Photo frame in the story: dark blue border on all sides with an offset orange outline */
.section-blue .story-media { border: 3px solid var(--ink); outline: 2px solid var(--brass); outline-offset: 8px; }
.section-blue2 .muted { color: #33415e; }

/* Plain story and questions sections (light blue removed) */
.story .story-media { aspect-ratio: 1 / 1; }
.section-faq summary::after { background: linear-gradient(var(--brass), var(--brass)) center/100% 2px no-repeat, linear-gradient(var(--brass), var(--brass)) center/2px 100% no-repeat; }
/* Story photo: thick dark blue border with a thin orange line outside it */
.story .story-media { border: 8px solid var(--ink); outline: 2px solid var(--brass); outline-offset: 6px; background: var(--photo); }

/* ---- Selling area: hero buy box and quick add on product cards ---- */
.hero-copy h1 .accent { color: var(--brass); }
.hero-copy h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); margin-bottom: .35em; }
.hero-copy .lead { margin-bottom: 1.4em; }
.hero-price { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.hero-price #heroPriceBig { font: 600 2.2rem/1 var(--font-body); color: #fff; font-variant-numeric: tabular-nums lining-nums; }
.hero-stock { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #8fd3a5; }
.hero-stock.low { color: var(--brass-soft); } .hero-stock.out { color: #ff9b8f; }
.hero-label { font: 500 .72rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #c6cddc; margin: 0 0 10px; }
.hero-sizes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-size { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: .7em 1.2em; font: 500 .95rem var(--font-body); cursor: pointer; display: grid; gap: 2px; text-align: left; min-width: 96px; }
.hero-size small { font-size: .78rem; color: #c6cddc; font-weight: 400; }
.hero-size:hover { border-color: #fff; }
.hero-size[aria-checked="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.hero-size[aria-checked="true"] small { color: var(--brass-dark); }
.hero-size:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: #c6cddc; }
.hero-points li::before { content: "✓"; color: var(--brass-soft); margin-right: 8px; font-weight: 600; }
.hero-copy { padding-top: 56px; padding-bottom: 56px; }

.card-buy { position: relative; z-index: 2; display: grid; gap: 8px; margin-top: 12px; }
.card-size { width: 100%; padding: .7em .8em; border: 1px solid var(--line); background: #fff; font: 400 .92rem var(--font-body); color: var(--text); cursor: pointer; }
.card-size:focus { border-color: var(--ink); outline: none; }
.card-buy .btn { padding: .95em 1em; }
.card .price { font-size: 1.15rem; font-weight: 600; }
.card-ship { font-size: .8rem; color: var(--ok); }
@media (max-width: 560px) {
  .hero-price #heroPriceBig { font-size: 1.8rem; }
  .hero-size { min-width: 0; flex: 1; padding: .6em .7em; }
  .card-buy .btn { font-size: .66rem; letter-spacing: .12em; padding: .9em .4em; }
}
.card-media, .gallery-main, .thumbs button { border: 1px solid var(--line); }

/* Amazon rating badge */
.amazon-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 4px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; color: var(--ink); text-decoration: none; background: #fff; }
.amazon-rating:hover { border-color: var(--brass); }
.amazon-rating .amz-link { color: var(--brass-dark); font-weight: 500; }
