/* Bianca Boutique: "Sewing Pattern". Every product is a tissue pattern piece: V-notches cut into the edges, a dashed cutting line, a grain arrow and printed markings. "Cut & add" runs the scissors along the line. The hero is the pattern envelope with its four views, the cart is the cutting list, the footer is a tape measure. Blush and cherry, from the logo. */
:root {
  --blush: #f7e3df;
  --blush-2: #efd0cb;
  --paper: #fdf6f2;
  --tissue: #f4e8d2;
  --tissue-2: #ead9bb;
  --cherry: #8e1b2e;
  --cherry-deep: #681222;
  --rose: #c9707f;
  --pencil: #7a5d5f;
  --ink: #2b1d20;
  --muted: #6b5356;
  --line: rgba(142, 27, 46, .18);
  --error: #a3261b;
  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Consolas', monospace;
  --mat: linear-gradient(rgba(142, 27, 46, .06) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(142, 27, 46, .06) 1px, transparent 1px) 0 0 / 32px 32px;
  --notch: polygon(0 0, calc(50% - 9px) 0, 50% 11px, calc(50% + 9px) 0, 100% 0, 100% calc(50% - 9px), calc(100% - 11px) 50%, 100% calc(50% + 9px), 100% 100%, 0 100%, 0 calc(50% - 9px), 11px 50%, 0 calc(50% + 9px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--mat), var(--blush); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--cherry); color: #fff; padding: .7rem 1rem; font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

.mono { font: 500 .78rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.kicker { color: var(--cherry); margin-bottom: .8rem; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h1 em, h2 em { color: var(--cherry); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .7rem 1.5rem; border-radius: 999px; background: var(--cherry); color: #fff; border: 2px solid var(--cherry); text-decoration: none; font: 600 1rem/1.1 var(--text); transition: background-color .2s; }
.btn:hover { background: var(--cherry-deep); border-color: var(--cherry-deep); }
.btn--line { background: transparent; color: var(--cherry); border-style: dashed; }
.btn--line:hover { background: rgba(142, 27, 46, .07); }

/* Header: a selvedge strip over a blush bar. Solid, unfiltered, untransformed. */
.header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1.5px dashed var(--rose); }
.selvedge { overflow: hidden; height: 24px; background: var(--cherry); color: var(--blush-2); white-space: nowrap; font: 500 .68rem/24px var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.selvedge span { display: inline-block; padding-left: 1rem; }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 50px; height: 50px; }
.word { display: flex; flex-direction: column; line-height: 1; }
.word span:first-child { font: 700 1.6rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--cherry); }
.word span:last-child { font: 500 .66rem/1 var(--mono); letter-spacing: .42em; text-transform: uppercase; color: var(--pencil); margin-top: .3rem; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }
.nav-link { font: 500 1rem/1 var(--text); text-decoration: none; padding: .6rem 0; background: linear-gradient(90deg, var(--cherry) 50%, transparent 50%) left 90% / 8px 1.5px repeat-x; background-size: 0 1.5px; transition: background-size .25s; }
.nav-link:hover { background-size: 8px 1.5px; }
.nav-close-li { display: none; }
.cart-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .3rem .4rem .3rem .9rem; border-radius: 999px; background: var(--cherry); color: #fff; border: 0; font: 600 .95rem/1 var(--text); flex: 0 0 auto; }
.cart-count { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 .35rem; border-radius: 999px; background: var(--paper); color: var(--cherry); font: 500 .95rem/1 var(--mono); }
.cart-btn.pop .icon-scissors { animation: snip .5s ease; }
@keyframes snip { 30% { transform: rotate(-25deg); } 60% { transform: rotate(10deg); } }
.nav-toggle, .nav-close { display: none; width: 46px; height: 46px; place-items: center; background: transparent; border: 1.5px dashed var(--cherry); border-radius: 50%; color: var(--cherry); flex: 0 0 auto; }
.back-link { margin-left: auto; }
@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .nav-list { display: none; }
  .nav-list.open { display: flex; position: fixed; inset: 0; z-index: 200; height: 100dvh; overflow-y: auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; padding: 6rem 2rem 3rem; background: var(--mat), var(--blush); }
  .nav-list.open .nav-link { font: 500 2.5rem/1.25 var(--display); }
  .nav-list.open .nav-close-li { display: block; position: absolute; top: 13px; right: 16px; }
  .nav-close { display: grid; }
}
@media (max-width: 480px) {
  .cart-label { display: none; }
  .nav { gap: .5rem; }
  .brand-mark { width: 42px; height: 42px; }
  .word span:first-child { font-size: 1.3rem; }
  .word span:last-child { font-size: .6rem; letter-spacing: .32em; }
}

/* Dressmaker pin */
.pinhead { position: absolute; z-index: 3; left: 50%; top: -10px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e46a7d, var(--cherry) 60%, var(--cherry-deep)); box-shadow: 0 3px 4px rgba(0, 0, 0, .25); }
.pinhead::after { content: ''; position: absolute; left: 8px; top: 14px; width: 2px; height: 34px; background: linear-gradient(#bbb, #888); transform: rotate(18deg); transform-origin: top; z-index: -1; }

/* Hero: the pattern envelope */
.hero { padding: clamp(1.6rem, 4vw, 3.4rem) 0 clamp(2.4rem, 5vw, 4rem); }
.envelope { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 40px -34px rgba(104, 18, 34, .5); }
.env-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem clamp(1rem, 3vw, 2rem); background: var(--cherry); color: var(--blush); font: 500 .78rem/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.env-body { display: grid; gap: 2rem; align-items: center; padding: clamp(1.6rem, 4vw, 3.4rem) clamp(1.2rem, 4vw, 3.4rem); }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); margin-bottom: 1.3rem; }
.hero h1 em { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-photo { position: relative; padding: 12px; background: var(--tissue); clip-path: var(--notch); }
.hero-photo::before { content: ''; position: absolute; inset: 6px; border: 1.5px dashed var(--cherry); pointer-events: none; z-index: 1; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo .pinhead { top: 18px; }
.env-views ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px dashed var(--rose); }
.env-views li + li { border-left: 1.5px dashed var(--rose); }
.env-views li:nth-child(3) { border-left: 0; }
.env-views li:nth-child(n+3) { border-top: 1.5px dashed var(--rose); }
.env-views a { display: grid; gap: .2rem; min-height: 64px; padding: .9rem clamp(1rem, 3vw, 2rem); text-decoration: none; font: 500 1.25rem/1.15 var(--display); }
.env-views a .mono { color: var(--cherry); font-size: .7rem; }
.env-views a:hover { background: var(--blush); }
@media (min-width: 900px) {
  .env-body { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .env-views ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .env-views li:nth-child(3) { border-left: 1.5px dashed var(--rose); }
  .env-views li:nth-child(n+3) { border-top: 0; }
}
@media (max-width: 599px) { .env-hide { display: none; } .env-bar { font-size: .66rem; letter-spacing: .14em; } }

/* Shop: the pattern pieces */
.shop { padding: clamp(3rem, 7vw, 5rem) 0; }
.shop-head { display: grid; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.shop-head > p { color: var(--muted); max-width: 36rem; }
@media (min-width: 900px) { .shop-head { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.view { padding-top: 2.6rem; scroll-margin-top: 110px; }
.view-head { display: flex; align-items: flex-end; gap: 1.2rem; padding-bottom: 1.1rem; margin-bottom: 1.8rem; border-bottom: 1.5px dashed var(--rose); }
.view-letter { font: italic 500 clamp(4rem, 9vw, 6.5rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--cherry); }
.view-head .mono { color: var(--cherry); }
.view-head h3 { font: 500 clamp(1.8rem, 3.4vw, 2.5rem)/1.1 var(--display); margin: .2rem 0 .2rem; }
.view-head p:last-child { color: var(--muted); }
.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.8rem 1.4rem; filter: drop-shadow(0 12px 12px rgba(104, 18, 34, .12)); }
.pattern { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 2.4rem 2rem 1.6rem 1.5rem; background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 40%), var(--tissue); clip-path: var(--notch); transition: transform .3s; }
.pattern::before { content: ''; position: absolute; inset: 12px; border: 1.5px dashed var(--cherry); opacity: .55; pointer-events: none; }
.marking { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin-bottom: .8rem; font: 500 .68rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.swatch { width: 100%; margin-bottom: .9rem; border: 1px solid var(--tissue-2); }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.grain { position: absolute; right: 18px; top: 30%; height: 34%; width: 1.5px; background: var(--pencil); opacity: .7; }
.grain::before, .grain::after { content: ''; position: absolute; left: -4px; border: 5px solid transparent; }
.grain::before { top: -9px; border-bottom: 7px solid var(--pencil); border-top: 0; }
.grain::after { bottom: -9px; border-top: 7px solid var(--pencil); border-bottom: 0; }
.grain span { position: absolute; left: -8px; top: 50%; font: 500 .56rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--pencil); background: var(--tissue); padding: .3rem 0; writing-mode: vertical-rl; transform: translateY(-50%); }
.pattern h4 { font: 500 1.4rem/1.15 var(--display); }
.desc { color: var(--muted); font-size: .96rem; line-height: 1.5; margin-top: .25rem; }
.price { font: 500 1.4rem/1 var(--mono); color: var(--cherry); margin-top: .8rem; white-space: nowrap; }
.cur { font-family: var(--mono); margin-right: .04em; }
.stock { font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pencil); margin: .35rem 0 .9rem; }
.add-btn { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; background: var(--paper); color: var(--cherry); border: 1.5px dashed var(--cherry); font: 600 .95rem/1.1 var(--text); transition: background-color .2s, color .2s; }
.add-btn:hover { background: var(--cherry); color: #fff; border-style: solid; }
.stepper { margin-top: auto; display: inline-flex; align-items: center; border-radius: 999px; background: var(--cherry); color: #fff; }
.stepper button, .qty button { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 999px; color: inherit; }
.stepper button:disabled, .qty button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 2ch; text-align: center; font: 500 1rem/1 var(--mono); }
.pattern.in-cart { transform: rotate(-1deg); background: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 40%), #f7dfe0; }
.pattern.in-cart::before { border-style: solid; opacity: .8; }
.pattern.in-cart .marking span:last-child::after { content: ' \2713'; color: var(--cherry); }
/* the scissors on the top cut line */
.cut-track { position: absolute; left: 12px; right: 12px; top: 12px; height: 0; pointer-events: none; z-index: 2; }
.cut-track::after { content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--cherry); transform: scaleX(0); transform-origin: left; }
.blade { position: absolute; left: -2px; top: -11px; display: grid; place-items: center; width: 22px; height: 22px; color: var(--cherry); opacity: 0; }
.blade .icon { width: 22px; height: 22px; transform: rotate(-90deg) scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .cutting .blade { animation: cut 1s cubic-bezier(.4, 0, .3, 1) forwards; }
  .cutting .cut-track::after { animation: cutline 1s cubic-bezier(.4, 0, .3, 1) forwards; }
  @keyframes cut { 0% { left: -2px; opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 20px); opacity: 0; } }
  @keyframes cutline { to { transform: scaleX(1); } }
  .cutting .blade .icon { animation: snipsnip .2s steps(2) 5; }
  @keyframes snipsnip { 50% { transform: rotate(-90deg) scaleX(-1) scaleY(.7); } }
}
@media (max-width: 599px) {
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .7rem; }
  .pattern { padding: 1.9rem 1.15rem 1.2rem 1.05rem; }
  .pattern::before { inset: 8px; }
  .cut-track { left: 8px; right: 8px; top: 8px; }
  .marking { font-size: .58rem; gap: .1rem .5rem; letter-spacing: .08em; }
  .marking span:nth-child(3) { display: none; }
  .grain { display: none; }
  .pattern h4 { font-size: 1.12rem; }
  .desc { font-size: .88rem; }
  .price { font-size: 1.15rem; }
  .add-btn { width: 100%; justify-content: center; padding-inline: .5rem; font-size: .9rem; }
  .stepper button { width: 40px; }
}

/* How: instructions sheet */
.how { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--paper); border-block: 1.5px dashed var(--rose); }
.how-grid { display: grid; gap: 2.6rem; align-items: center; }
.how h2 { margin-bottom: 1.8rem; }
.steps { display: grid; gap: 1.2rem; }
.steps li { padding: 0 0 1.2rem 1.2rem; border-left: 2px solid var(--cherry); border-bottom: 1.5px dashed var(--line); }
.steps .mono { color: var(--cherry); }
.steps h3 { font: 500 1.5rem/1.2 var(--display); margin: .15rem 0 .25rem; }
.steps p:last-child { color: var(--muted); }
.how-photo { position: relative; padding: 10px; background: var(--tissue); clip-path: var(--notch); }
.how-photo .pinhead { top: 14px; }
.how-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }

/* Story */
.story { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--cherry); color: var(--blush); }
.story .kicker { color: var(--blush-2); }
.story h2 em { color: #f3b6c0; }
.story-grid { display: grid; gap: 2.4rem; align-items: center; }
.story-photo { justify-self: center; width: min(100%, 400px); padding: 10px; background: var(--tissue); clip-path: var(--notch); }
.story-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.story-copy h2 { margin-bottom: 1.2rem; color: #fff; }
.story-copy p:not(.kicker) { max-width: 38rem; color: #f6dcdc; }
.story-copy p + p { margin-top: 1rem; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }

/* FAQ */
.faq { padding: clamp(3rem, 7vw, 5rem) 0; }
.faq-grid { display: grid; gap: 2rem; }
.faq-list { display: grid; gap: .7rem; align-content: start; }
.faq details { background: var(--paper); border: 1.5px dashed var(--rose); border-radius: 14px; padding: 0 1.2rem; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 58px; padding: .9rem 0; cursor: pointer; list-style: none; font: 500 1.25rem/1.25 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--cherry); transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.1rem; color: var(--muted); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }

/* Visit */
.visit { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--paper); border-top: 1.5px dashed var(--rose); }
.visit h2 { margin-bottom: 1.8rem; }
.visit-grid { display: grid; gap: 2.4rem; align-items: center; }
.visit-cards { font-style: normal; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.visit-card { padding: 1.1rem 1.3rem; background: var(--tissue); clip-path: polygon(0 0, 100% 0, 100% calc(50% - 8px), calc(100% - 10px) 50%, 100% calc(50% + 8px), 100% 100%, 0 100%); }
.visit-card h3 { font: 500 .74rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cherry); margin-bottom: .35rem; }
.visit-card p, .visit-card a { overflow-wrap: anywhere; }
.visit-card a { color: var(--cherry-deep); font-weight: 600; text-underline-offset: 4px; }
.visit-card > a { display: inline-block; margin-top: .5rem; }
.visit-photo { position: relative; justify-self: center; width: min(100%, 400px); padding: 10px; background: var(--tissue); clip-path: var(--notch); }
.visit-photo .pinhead { top: 14px; }
.visit-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (min-width: 640px) { .visit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .visit-card.wide { grid-column: 1 / -1; } }
@media (min-width: 960px) { .visit-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }

/* Policies */
.policies { padding: 3rem 0 4rem; background: var(--paper); }
.policy-list { display: grid; gap: 1.6rem; }
.policy-list h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.policy-list p { color: var(--muted); }
.policy-list a { display: inline-block; margin-top: .5rem; font-weight: 600; color: var(--cherry); text-underline-offset: 4px; }
@media (min-width: 800px) { .policy-list { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Tape measure + footer */
.tape { display: flex; overflow: hidden; height: 40px; background:
  repeating-linear-gradient(90deg, var(--cherry) 0 1px, transparent 1px 10px) left bottom / 100% 9px no-repeat,
  repeating-linear-gradient(90deg, var(--cherry) 0 1.5px, transparent 1.5px 50px) left bottom / 100% 16px no-repeat,
  repeating-linear-gradient(90deg, var(--cherry) 0 2px, transparent 2px 100px) left bottom / 100% 24px no-repeat, #f6e6c4; border-block: 2px solid var(--cherry-deep); }
.tape span { flex: 0 0 100px; padding: 3px 0 0 5px; font: 500 .7rem/1 var(--mono); color: var(--cherry-deep); }
.footer { background: var(--cherry-deep); color: var(--blush); padding: 3.4rem 0 2rem; }
.footer-top { display: grid; gap: 2.2rem; }
.footer-line { font: 500 1.8rem/1.2 var(--display); color: #fff; }
.footer-line em { color: #f3b6c0; }
.footer h2 { font: 500 .74rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #f3b6c0; margin-bottom: .8rem; }
.footer li + li { margin-top: .45rem; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1.5px dashed rgba(247, 227, 223, .35); font-size: .9rem; color: #efcfd2; }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.6fr repeat(3, 1fr); } }

/* Cart: the cutting list */
.cart-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(60, 12, 22, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(430px, 100%); display: flex; flex-direction: column; background: var(--mat), var(--paper); transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s; }
.cart-sidebar.open { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem; background: var(--cherry); color: #fff; }
.cart-head h2 { font-size: 1.9rem; margin-right: auto; }
.cart-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: none; border: 1.5px dashed #fff; color: #fff; }
.cart-items { flex: 1; overflow-y: auto; padding: .6rem 1.2rem; counter-reset: piece; }
.cart-item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1.5px dashed var(--rose); counter-increment: piece; }
.cart-item::before { content: counter(piece, decimal-leading-zero); position: absolute; right: 0; top: 1rem; font: 500 .7rem/1 var(--mono); color: var(--pencil); letter-spacing: .1em; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; padding: 4px; background: var(--tissue); clip-path: var(--notch); }
.cart-item h3 { font: 500 1.15rem/1.2 var(--display); padding-right: 2rem; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px dashed var(--cherry); border-radius: 999px; }
.qty button { width: 40px; height: 40px; }
.qty output { min-width: 2ch; text-align: center; font: 500 1rem/1 var(--mono); }
.cart-item-sub { font: 500 1.05rem/1 var(--mono); color: var(--cherry); }
.cart-remove { margin-top: .35rem; padding: .3rem 0; background: none; border: 0; font-size: .88rem; color: var(--muted); text-decoration: underline; }
.cart-empty { padding: 3rem 0; text-align: center; }
.cart-empty p { font: 500 1.6rem/1.3 var(--display); margin-bottom: 1.2rem; }
.cart-foot { padding: 1.1rem 1.2rem calc(1.3rem + env(safe-area-inset-bottom)); border-top: 1.5px dashed var(--rose); background: var(--paper); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; font-weight: 600; }
.cart-total .price { font-size: 1.7rem; margin: 0; }
.cart-foot .btn { width: 100%; }
.cart-foot p { margin-top: .8rem; font-size: .88rem; color: var(--muted); text-align: center; }

/* Order page */
.order-page { padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.order-intro { max-width: 40rem; margin-bottom: 2.2rem; }
.order-intro h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: .8rem; }
.order { display: grid; gap: 2rem; align-items: start; }
.order-form { background: var(--paper); border: 1.5px dashed var(--rose); border-radius: 16px; padding: 2rem clamp(1.1rem, 4vw, 2.2rem); }
.order-form h2, .summary h2 { font-size: 1.9rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .95rem; font: 400 1rem/1.4 var(--text); color: var(--ink); background: #fff; border: 1px solid rgba(43, 29, 32, .35); border-radius: 10px; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--cherry); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-hint { margin-top: .35rem; font-size: .86rem; color: var(--muted); }
.field-error { margin-top: .35rem; font-size: .9rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.order-submit { width: 100%; margin-top: .6rem; }
.summary { position: relative; background: var(--tissue); padding: 2.2rem clamp(1.3rem, 4vw, 2rem); clip-path: var(--notch); }
.summary::before { content: ''; position: absolute; inset: 10px; border: 1.5px dashed var(--cherry); opacity: .55; pointer-events: none; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: .8rem 0; border-bottom: 1.5px dashed rgba(142, 27, 46, .3); vertical-align: top; }
.summary td small { display: block; margin-top: .2rem; color: var(--muted); font: 500 .8rem/1.3 var(--mono); }
.summary td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; font: 500 1rem/1.3 var(--mono); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.1rem; font-weight: 600; }
.summary-total .price { font-size: 1.7rem; margin: 0; }
.summary-note { margin-top: 1.1rem; }
.summary-note a { color: var(--cherry); font-weight: 600; text-underline-offset: 4px; }
.sent { max-width: 44rem; background: var(--paper); border: 1.5px dashed var(--rose); border-radius: 16px; padding: 2.2rem clamp(1.1rem, 4vw, 2.4rem); }
.sent h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 1rem; }
.sent .hero-actions { margin-top: 1.4rem; }
.sent-copy { margin-top: 2rem; }
.sent-copy pre { margin-top: 1rem; padding: 1rem; background: var(--blush); border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .85rem/1.5 var(--mono); }
@media (min-width: 900px) { .order { grid-template-columns: 1.4fr 1fr; gap: 3rem; } .summary { position: sticky; top: 120px; } }

/* Legal pages */
.legal-head { background: var(--cherry); color: #fff; padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.legal-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.legal-body { padding: clamp(2.4rem, 6vw, 3.6rem) 0 clamp(4rem, 8vw, 6rem); }
.legal { max-width: 46rem; background: var(--paper); padding: clamp(1.4rem, 4vw, 2.6rem); border: 1.5px dashed var(--rose); border-radius: 16px; }
.legal h2 { font-size: 1.7rem; margin: 2rem 0 .6rem; }
.legal h2:first-of-type { margin-top: 1.4rem; }
.legal p + p { margin-top: .9rem; }
.legal ul { padding-left: 1.3rem; list-style: disc; margin-top: .6rem; }
.legal li + li { margin-top: .4rem; }
.legal a { color: var(--cherry); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }

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