:root {
  --cream: #f9f1e5;
  --paper: #fffaf2;
  --terracotta: #bf6746;
  --terracotta-dark: #934a32;
  --sand: #e5bc79;
  --coast: #3d8990;
  --coast-dark: #27646a;
  --brown: #533e33;
  --muted: #75645b;
  --line: #d8c9b9;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(83, 62, 51, .11);
  --container: min(1180px, calc(100% - 36px));
  --font-body: "DM Sans", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--brown); background: var(--cream); font-family: var(--font-body); font-size: 16px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: repeating-linear-gradient(115deg, transparent 0 70px, rgba(191, 103, 70, .06) 71px 72px); z-index: -1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; }
:focus-visible { outline: 3px solid var(--coast); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .7em; }
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -.03em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.container { width: var(--container); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 36px)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--coast { background: var(--coast); color: var(--white); }
.section--terracotta { background: var(--terracotta); color: var(--white); }
.eyebrow { display: block; margin-bottom: 12px; color: var(--terracotta-dark); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section--coast .eyebrow, .section--terracotta .eyebrow { color: var(--cream); }
.lede { max-width: 720px; color: var(--muted); font-size: 1.15rem; }
.section--coast .lede, .section--terracotta .lede { color: var(--cream); }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 10px 16px; background: var(--brown); color: white; transform: translateY(-150%); z-index: 1000; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(249, 241, 229, .94); border-bottom: 1px solid rgba(83, 62, 51, .14); backdrop-filter: blur(14px); }
.header-inner { width: var(--container); min-height: 84px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { margin-right: auto; }
.brand img { width: 190px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a, .cart-link { text-decoration: none; font-weight: 600; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--terracotta-dark); }
.cart-link { display: flex; align-items: center; gap: 8px; }
.cart-count { min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: var(--terracotta); color: white; font-size: .8rem; }
.menu-toggle { display: none; width: 46px; padding: 10px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--brown); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 2px solid var(--brown); border-radius: 999px; background: var(--brown); color: white; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s; }
.button:hover { transform: translateY(-2px); background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.button--outline { background: transparent; color: var(--brown); }
.button--light { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.button--small { min-height: 40px; padding: 8px 15px; font-size: .9rem; }
.link-button { padding: 4px 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero { min-height: calc(100svh - 84px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: var(--sand); }
.hero__copy { padding: clamp(50px, 8vw, 120px) max(24px, calc((100vw - 1180px) / 2)); padding-right: clamp(30px, 6vw, 90px); align-self: center; }
.hero__copy p { max-width: 580px; font-size: 1.15rem; }
.hero__image { position: relative; min-height: 600px; overflow: hidden; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 70px 0 80px rgba(83,62,51,.14); pointer-events: none; }
.weave-mark { width: 120px; height: 20px; margin-bottom: 25px; border-block: 2px solid var(--brown); background: repeating-linear-gradient(135deg, transparent 0 10px, var(--terracotta) 11px 13px); }

.category-bands { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 16px; }
.category-band { min-height: 360px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--radius); color: white; text-decoration: none; overflow: hidden; position: relative; background: var(--coast); }
.category-band:nth-child(2) { background: var(--terracotta); transform: translateY(34px); }
.category-band:nth-child(3) { background: var(--brown); }
.category-band::before { content: ""; position: absolute; inset: -20%; opacity: .3; background: repeating-linear-gradient(125deg, transparent 0 34px, rgba(255,255,255,.32) 35px 37px); transform: rotate(-5deg); }
.category-band > * { position: relative; }
.category-band h3 { font-size: 2rem; margin-bottom: 10px; }
.category-band span { text-decoration: underline; text-underline-offset: 5px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-heading > div { max-width: 760px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.product-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-card__image img { transform: scale(1.025); }
.product-card__body { padding: 22px; }
.product-card h3 a { text-decoration: none; }
.product-card p { min-height: 5.1em; color: var(--muted); font-size: .94rem; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card__footer strong { font-size: 1.1rem; }

.texture-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.texture-item { padding-top: 90px; position: relative; }
.texture-item::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 64px; border-radius: 50%; background: repeating-linear-gradient(90deg, var(--sand) 0 4px, var(--cream) 5px 9px); box-shadow: inset 0 0 0 1px var(--line); }
.texture-item:nth-child(2)::before { background: repeating-linear-gradient(45deg, var(--coast) 0 4px, var(--cream) 5px 10px); }
.texture-item:nth-child(3)::before { background: repeating-radial-gradient(circle at 10px, var(--terracotta) 0 3px, var(--cream) 4px 10px); }
.texture-item:nth-child(4)::before { background: repeating-linear-gradient(135deg, var(--brown) 0 2px, var(--sand) 3px 8px); }

.measure-layout, .split-layout, .detail-layout, .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 90px); align-items: center; }
.measure-diagram { min-height: 380px; padding: 40px; display: grid; place-items: center; position: relative; border-radius: 52% 48% 48% 52%; background: var(--sand); }
.measure-diagram__hammock { width: 80%; height: 130px; border-bottom: 18px solid var(--terracotta); border-radius: 0 0 50% 50%; }
.measure-diagram::before, .measure-diagram::after { content: ""; position: absolute; top: 25%; bottom: 18%; width: 14px; background: var(--brown); }
.measure-diagram::before { left: 15%; }.measure-diagram::after { right: 15%; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 46px 1fr; gap: 16px; margin: 22px 0; }
.steps li::before { content: counter(step); width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 700; }
.choice-table { width: 100%; border-collapse: collapse; margin-top: 25px; }
.choice-table th, .choice-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.reading-chair { min-height: 440px; padding: 45px; display: flex; align-items: end; border-radius: 120px 120px 24px 24px; background: var(--sand); position: relative; overflow: hidden; }
.reading-chair::before { content: ""; width: 230px; height: 270px; position: absolute; top: 65px; left: 50%; transform: translateX(-50%); border: 20px solid var(--terracotta); border-top: 0; border-radius: 0 0 120px 120px; }
.reading-chair p { position: relative; max-width: 400px; padding: 18px; background: var(--paper); border-radius: 12px; }
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { padding: 30px; border: 1px solid rgba(255,255,255,.45); border-radius: var(--radius); }
.care-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); }
.care-strip div { padding: 28px; border-right: 1px solid var(--line); }
.care-strip div:last-child { border: 0; }
.pillow-composition { display: grid; grid-template-columns: 1.3fr .7fr .9fr; gap: 18px; align-items: end; }
.pillow { min-height: 230px; padding: 30px; display: flex; align-items: end; border-radius: 44% 44% 18px 18px; background: var(--terracotta); color: white; }
.pillow:nth-child(2) { min-height: 160px; background: var(--sand); color: var(--brown); }
.pillow:nth-child(3) { min-height: 200px; background: var(--coast); }
.faq-list details { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.38); }
.faq-list summary { cursor: pointer; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.faq-list details p { margin-top: 14px; max-width: 800px; }
.cta-panel { padding: clamp(42px, 8vw, 90px); border-radius: 32px; background: var(--brown); color: white; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-panel h2 { max-width: 680px; margin: 0; }

.page-hero { padding: 82px 0 64px; border-bottom: 1px solid var(--line); background: var(--paper); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.7rem, 6vw, 5rem); }
.breadcrumbs { margin-bottom: 22px; font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.catalog-tools { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field label, .field-label { display: block; margin-bottom: 7px; font-weight: 700; }
.field input, .field select, .field textarea, .catalog-tools input, .catalog-tools select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #aa9788; border-radius: 9px; background: white; color: var(--brown); }
.results-bar { display: flex; justify-content: space-between; margin-bottom: 24px; }
.empty-panel { padding: 42px; border: 1px dashed var(--terracotta); border-radius: var(--radius); text-align: center; }
.category-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; }
.practical-note { padding: 28px; border-radius: var(--radius); background: var(--sand); }

.detail-layout { align-items: start; }
.detail-image { overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.detail-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.price { display: block; margin: 18px 0; font-family: var(--font-display); font-size: 2rem; }
.spec-list { margin: 28px 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 700; }.spec-list dd { margin: 0; }
.quantity-row { display: flex; align-items: end; gap: 12px; }
.quantity-row input { width: 85px; min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.safety-note { margin-top: 25px; padding: 20px; border-left: 5px solid var(--coast); background: #e8f2f1; }

.cart-layout { display: grid; grid-template-columns: 1.7fr .8fr; gap: 40px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item__image { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; }
.cart-item h2 { font-size: 1.3rem; margin-bottom: 5px; }
.cart-item__actions { display: flex; gap: 18px; align-items: center; }
.cart-item__actions label { font-weight: 700; }.cart-item__actions input { display: block; width: 74px; padding: 5px; }
.cart-summary { position: sticky; top: 110px; padding: 28px; border-radius: var(--radius); background: var(--sand); }
.summary-total { display: flex; justify-content: space-between; margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--brown); font-size: 1.25rem; }
.cart-summary .button { width: 100%; }
.cart-summary small { display: block; margin-top: 14px; }

.contact-layout { align-items: start; }
.contact-form { padding: 32px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.contact-form .field { margin-bottom: 18px; }
.field-error { display: block; color: #8c2f1d; font-weight: 700; font-size: .88rem; }
[aria-invalid="true"] { border-color: #8c2f1d !important; }
.contact-cart { margin: 24px 0; padding: 24px; border-radius: var(--radius); background: var(--sand); }
.contact-cart ul { list-style: none; padding: 0; }
.contact-cart li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(83,62,51,.25); }
.legal-content h2 { margin-top: 2em; font-size: 2rem; }.legal-content ul { padding-left: 22px; }

.site-footer { padding-top: 70px; background: var(--terracotta); color: white; position: relative; overflow: hidden; }
.footer-weave { position: absolute; inset: 0; opacity: .13; background: repeating-linear-gradient(132deg, transparent 0 54px, white 55px 57px); }
.footer-grid, .footer-bottom { width: var(--container); margin: auto; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 55px; }
.footer-grid img { filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-grid h2 { font-family: var(--font-body); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a, .footer-grid .link-button { display: block; margin: 9px 0; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.35); display: flex; justify-content: space-between; }
.cookie-banner { position: fixed; left: 50%; bottom: 20px; z-index: 100; width: min(760px, calc(100% - 28px)); padding: 20px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 18px 70px rgba(32,20,15,.25); }
.cookie-banner p { margin: 0; }.cookie-banner > div { display: flex; gap: 8px; flex-shrink: 0; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 110; max-width: 360px; padding: 15px 20px; border-radius: 10px; background: var(--brown); color: white; box-shadow: var(--shadow); }

@media (max-width: 980px) {
  .menu-toggle { display: block; order: 2; }.cart-link { order: 1; }.brand { margin-right: auto; }
  .main-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; padding: 22px; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }.main-nav a { padding: 10px; }
  .hero { grid-template-columns: 1fr; }.hero__image { min-height: 440px; order: -1; }.hero__copy { padding: 55px 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .category-bands { grid-template-columns: 1fr 1fr; }.category-band:first-child { grid-column: span 2; }.category-band:nth-child(2) { transform: none; }
}

@media (max-width: 700px) {
  .section { padding: 58px 0; }.header-inner { min-height: 72px; gap: 10px; }.brand img { width: 145px; }.main-nav { top: 72px; }.cart-link { font-size: 0; }.cart-count { font-size: .8rem; }
  .hero__image { min-height: 320px; }.hero { min-height: auto; }
  .category-bands, .product-grid, .texture-list, .measure-layout, .split-layout, .detail-layout, .contact-layout, .category-intro, .cart-layout, .footer-grid, .catalog-tools { grid-template-columns: 1fr; }
  .category-band:first-child { grid-column: auto; }.category-band { min-height: 260px; }
  .section-heading { align-items: start; flex-direction: column; }
  .product-card p { min-height: auto; }.texture-list { grid-template-columns: 1fr 1fr; }
  .compare-cards { grid-template-columns: 1fr; }.care-strip { grid-template-columns: 1fr 1fr; }.care-strip div:nth-child(2) { border-right: 0; }
  .pillow-composition { grid-template-columns: 1fr; }.pillow { min-height: 160px; }
  .cta-panel { align-items: start; flex-direction: column; }.cta-panel h2 { font-size: 2rem; }
  .cart-item { grid-template-columns: 100px 1fr; }.cart-item__image { width: 100px; height: 100px; }.cart-item__total { grid-column: 2; }.cart-summary { position: static; }
  .footer-bottom { flex-direction: column; gap: 8px; }.cookie-banner { align-items: stretch; flex-direction: column; }.cookie-banner > div .button { flex: 1; }
}

@media (max-width: 390px) {
  :root { --container: calc(100% - 28px); }.texture-list, .care-strip { grid-template-columns: 1fr; }.care-strip div { border-right: 0; }.product-card__footer { align-items: stretch; flex-direction: column; }.button--small { width: 100%; }
}

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