/* Beatriz Store: "Label maker". Embossed tape on white shelves. */
:root {
  --coral: #e8574a;
  --coral-deep: #c63f31;
  --navy: #1f3157;
  --navy-deep: #16233f;
  --paper: #f5f3ee;
  --shelf: #ffffff;
  --ink: #1b2233;
  --muted: #5b6275;
  --line: #d9d5cb;
  --display: 'Varela Round', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Tape: raised white letters on coloured vinyl ---------- */
.tape {
  display: inline-block; position: relative;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
  color: #fff; background: var(--coral);
  padding: .14em .62em .1em .74em; margin: 0 0 .18em;
  border-radius: 2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .28), 0 -1px 0 rgba(255, 255, 255, .35), 0 2px 3px rgba(0, 0, 0, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 2px 0 rgba(0, 0, 0, .12), 0 6px 14px -8px rgba(0, 0, 0, .45);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tape--navy { background: var(--navy); }
.tape--paper { background: var(--paper); color: var(--navy); text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(0, 0, 0, .15); }
.tape--sm { font-size: .78rem; letter-spacing: .1em; background: var(--coral-deep); padding: .3em .6em .26em .7em; }
.tape--xl { font-size: clamp(2.2rem, 6vw, 4.6rem); }
h1 .tape:nth-child(1), h2 .tape:nth-child(odd) { transform: rotate(-1.2deg); }
h1 .tape:nth-of-type(2), h2 .tape:nth-child(even) { transform: rotate(.8deg); }
.tape .ch { display: inline; }
.typing [data-type] .ch { opacity: 0; }
.typing [data-type].typed .ch { animation: punch 1ms steps(1) forwards; animation-delay: calc(var(--i) * 48ms); }
@keyframes punch { to { opacity: 1; } }

/* ---------- Keys: label-maker buttons ---------- */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 600 .95rem/1 var(--body); letter-spacing: .02em; text-decoration: none;
  color: var(--navy); background: #fff; border: 2px solid var(--navy);
  padding: .75em 1.1em; border-radius: 6px;
  box-shadow: 0 4px 0 var(--navy); transition: transform .08s, box-shadow .08s;
}
.key:hover { color: var(--navy); background: #fff7f5; }
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.key--big { background: var(--coral); border-color: var(--navy); color: #fff; font-size: 1.05rem; padding: .9em 1.4em; }
.key--big:hover { background: var(--coral-deep); color: #fff; }
.link-under { font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--body); color: #fff; background: var(--coral-deep); border: 2px solid var(--navy);
  padding: .9em 1.3em; border-radius: 6px; text-decoration: none; box-shadow: 0 4px 0 var(--navy);
}
.btn:hover { color: #fff; background: var(--coral); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn--line { background: #fff; color: var(--navy); }
.btn--line:hover { background: var(--paper); color: var(--navy); }

/* ---------- Header: a navy dispenser bar ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--navy); border-bottom: 4px solid var(--coral); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand-mark { width: 116px; height: 58px; object-fit: contain; background: #fff; border-radius: 3px; padding: 3px; }
.nav-list { display: flex; gap: 6px; list-style: none; margin-left: auto; }
.nav-link { display: block; color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 3px; }
.nav-link:hover { color: #fff; background: var(--coral-deep); }
.nav-close-li, .nav-toggle { display: none; }
.cart-btn {
  --n: 0; display: inline-flex; align-items: center; height: 40px; border: 0; padding: 0; background: none; color: #fff;
}
.cart-word { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; background: var(--coral); height: 100%; display: flex; align-items: center; padding: 0 12px 0 14px; border-radius: 2px 0 0 2px; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.cart-tail { display: block; height: 100%; width: calc(var(--n) * 9px); background: repeating-linear-gradient(90deg, var(--coral) 0 7px, #f08b81 7px 9px); transition: width .3s ease; }
.cart-count { height: 100%; min-width: 40px; display: flex; align-items: center; justify-content: center; font-weight: 600; background: #fff; color: var(--navy); border-radius: 0 2px 2px 0; padding: 0 10px; }
.cart-btn.pop .cart-count { animation: pop .35s ease; }
@keyframes pop { 50% { background: #ffd9d4; } }
.header--plain .back-link { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #fff; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border-bottom: 1px solid var(--line); }
.hero-photo { grid-column: 2; grid-row: 1; width: 100%; height: min(80vh, 700px); min-height: 520px; object-fit: cover; object-position: 78% center; }
.hero-inner { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; padding: 48px 48px 48px 32px; }
.hero-copy { max-width: 500px; }
.kicker { font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 3.05rem); margin-bottom: 26px; }
.lede { font-size: 1.08rem; max-width: 46ch; color: #2d3446; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }

/* ---------- Shop: shelves with tape labels ---------- */
.shop { padding: 96px 0 72px; }
.section-head { display: grid; grid-template-columns: auto minmax(0, 420px); gap: 40px; align-items: end; justify-content: space-between; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--muted); margin: 0; font-size: .95rem; }
.shelf { margin-bottom: 64px; }
.shelf-label { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; margin-bottom: 18px; }
.shelf-label .tape { transform: none !important; margin: 0; }
.shelf-letter { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 50%; font-family: var(--display); color: var(--navy); font-size: 1rem; }
.shelf-row {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0;
  background: var(--shelf); border-bottom: 16px solid #fff; box-shadow: 0 1px 0 var(--line), 0 18px 0 -2px #e6e2d8, 0 26px 24px -18px rgba(31, 49, 87, .35);
}
.item { position: relative; display: flex; flex-direction: column; padding: 18px 18px 22px; border-right: 1px dashed var(--line); }
.item:last-child { border-right: 0; }
.item-photo { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; background: var(--paper); }
.item-name { margin: 0 0 8px; line-height: 1.4; }
.item-name .tape { margin: 0; }
.item:nth-child(3n+2) .item-name .tape { transform: rotate(-.8deg); }
.item:nth-child(3n) .item-name .tape { transform: rotate(.6deg); }
.item-desc { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.item-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: auto 0 14px; }
.item-price { font-family: var(--display); font-size: 1.35rem; color: var(--navy); }
.item-price .cur { font-size: .8em; margin-right: 1px; }
.item-stock { font-size: .8rem; color: var(--muted); }
.item .key { width: 100%; }
.stepper { display: flex; align-items: stretch; border: 2px solid var(--navy); border-radius: 6px; overflow: hidden; height: 46px; background: var(--navy); }
.stepper[hidden] { display: none; }
.stepper button { width: 46px; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { flex: 1; display: grid; place-items: center; color: #fff; font-weight: 600; font-family: var(--display); }
.item.in-cart { background: #fff6f4; }
.item.in-cart::after { content: 'ON STRIP'; position: absolute; top: 26px; left: 26px; font-family: var(--display); font-size: .7rem; letter-spacing: .14em; color: #fff; background: var(--navy); padding: 3px 8px; }

/* ---------- How ---------- */
.how { background: var(--navy); color: #e8ebf3; padding: 96px 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.how h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 36px; }
.steps { list-style: none; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding-bottom: 22px; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.step-no { grid-row: span 2; font-family: var(--display); font-size: 1.4rem; color: #fff; background: var(--coral); height: 44px; display: grid; place-items: center; border-radius: 2px; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.steps h3 { font-family: var(--display); font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.steps p { margin: 0; color: #c7cddc; }
.how-photo img { width: 100%; border: 10px solid #fff; }

/* ---------- Story ---------- */
.story { padding: 104px 0; }
.story-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 72px; align-items: center; }
.story-photo img { width: 100%; max-height: 640px; object-fit: cover; }
.story h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin-bottom: 28px; }
.story-copy p { font-size: 1.06rem; max-width: 58ch; }

/* ---------- FAQ ---------- */
.faq { background: #fff; padding: 88px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.faq h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.faq details { border-bottom: 2px solid var(--navy); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; transition: transform .2s; color: var(--coral-deep); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { color: #3a4152; max-width: 62ch; }

/* ---------- Visit ---------- */
.visit { padding: 104px 0; }
.visit-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.visit h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin-bottom: 32px; }
.visit dl { margin: 0; display: grid; gap: 0; }
.visit dl div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-top: 1px dashed var(--line); }
.visit dt { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--coral-deep); padding-top: 4px; }
.visit dd { margin: 0; }
.visit-photo img { width: 100%; max-height: 560px; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #c7cddc; padding: 72px 0 28px; }
.footer a { color: #fff; }
.footer a:hover { color: #ffb3aa; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-line { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-line .tape:first-child { transform: rotate(-2deg); }
.footer-line .tape:last-child { margin-left: 18%; }
.foot-col h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: #ff9d92; margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col p { font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, .25); font-size: .85rem; }

/* ---------- Cart drawer: the strip printed so far ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(22, 35, 63, .55); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 60; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--navy); color: #fff; z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.cart-sidebar.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px dashed rgba(255, 255, 255, .3); }
.cart-head h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 1rem; }
.cart-close { background: none; border: 0; color: #fff; padding: 8px; }
.cart-items { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; }
.cart-item {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start;
  background: var(--coral); padding: 14px 16px 14px 14px; border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.cart-item + .cart-item { border-top: 2px dashed rgba(255, 255, 255, .7); }
.cart-item:first-child::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: linear-gradient(135deg, transparent 50%, var(--coral) 50%) 0 0 / 10px 10px repeat-x; }
.cart-item:last-child::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 50%, var(--coral) 50%) 0 0 / 10px 10px repeat-x; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border: 2px solid #fff; }
.cart-item h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); margin-bottom: 8px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; background: #fff; border-radius: 4px; color: var(--navy); }
.qty button { width: 32px; height: 32px; border: 0; background: none; display: grid; place-items: center; color: var(--navy); }
.qty button:disabled { opacity: .35; }
.qty .icon { width: 16px; height: 16px; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; }
.cart-item-sub { font-weight: 600; }
.cart-remove { background: none; border: 0; padding: 6px 0 0; color: #fff; font-size: .82rem; text-decoration: underline; }
.cart-empty { text-align: center; padding: 40px 0; }
.cart-empty .btn { margin-top: 10px; }
.cart-foot { padding: 20px 24px 26px; border-top: 1px dashed rgba(255, 255, 255, .3); }
.cart-foot[hidden] { display: none; }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 14px; }
.cart-foot .btn { width: 100%; background: var(--coral); border-color: #fff; box-shadow: 0 4px 0 #fff; }
.cart-foot p { font-size: .85rem; color: #c7cddc; margin: 14px 0 0; }

/* ---------- Order page ---------- */
.order-page { padding: 64px 0 96px; }
.order-intro h1 { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); margin-bottom: 12px; }
.order-intro { margin-bottom: 36px; }
.order { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.order[hidden], .order-intro[hidden], .sent[hidden] { display: none; }
.order-form, .summary { background: #fff; border: 2px solid var(--navy); padding: 28px; }
.order-form h2, .summary h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; color: var(--coral-deep); margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid #b9b5ab; border-radius: 4px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(232, 87, 74, .3); }
.field [aria-invalid="true"] { border-color: var(--coral-deep); }
.field-hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: .88rem; color: var(--coral-deep); margin: 6px 0 0; font-weight: 600; }
.field-error:empty { display: none; }
.order-submit { width: 100%; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: 12px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.summary small { display: block; color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; padding-top: 16px; }
.summary-note { margin: 16px 0 0; font-size: .92rem; }
.sent { max-width: 640px; background: #fff; border: 2px solid var(--navy); padding: 36px; }
.sent h2 { font-family: var(--display); color: var(--navy); font-size: 1.5rem; margin-bottom: 12px; }
.sent .hero-actions { margin-top: 18px; }
.sent-copy { margin-top: 24px; }
.sent-copy pre { white-space: pre-wrap; background: var(--paper); padding: 16px; font-size: .88rem; }

/* ---------- Legal ---------- */
.legal-head { padding: 64px 0 24px; }
.legal-head h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.legal-body { padding-bottom: 96px; }
.legal { max-width: 720px; background: #fff; padding: 40px; border-left: 6px solid var(--coral); }
.legal h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; color: var(--navy); margin: 28px 0 10px; }
.legal ul { padding-left: 20px; margin-bottom: 1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-line { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav { min-height: 64px; gap: 12px; }
  .brand-mark { width: 92px; height: 46px; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 2px solid rgba(255, 255, 255, .6); border-radius: 4px; color: #fff; }
  .cart-btn { margin-left: auto; }
  .nav-list { display: none; }
  .nav-list.open { display: flex; position: fixed; inset: 0; z-index: 80; background: var(--navy); flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 32px; margin: 0; }
  .nav-list.open .nav-link { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: 1.5rem; background: var(--coral); padding: 8px 16px; }
  .nav-list.open .nav-close-li { display: block; position: absolute; top: 12px; right: 16px; }
  .nav-close { width: 48px; height: 48px; background: none; border: 2px solid #fff; color: #fff; border-radius: 4px; display: grid; place-items: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { grid-column: 1; height: auto; min-height: 0; aspect-ratio: 3 / 2; object-position: 75% center; }
  .hero-inner { grid-column: 1; grid-row: 2; justify-content: flex-start; padding: 36px 20px 56px; }
  .hero-copy { max-width: none; }
  .section-head, .how-grid, .story-grid, .faq-grid, .visit-grid, .order { grid-template-columns: 1fr; gap: 32px; }
  .shop, .how, .story, .faq, .visit { padding: 64px 0; }
  .story-photo img, .visit-photo img { max-height: 420px; }
}
@media (max-width: 599px) {
  body { font-size: 16px; }
  .cart-word { padding: 0 8px 0 10px; font-size: .85rem; }
  .cart-tail { width: calc(var(--n) * 4px); }
  .shelf-row { grid-template-columns: 1fr 1fr; }
  .item { padding: 12px 10px 16px; }
  .item:nth-child(2n) { border-right: 0; }
  .item:nth-child(n+3) { border-top: 1px dashed var(--line); }
  .tape--sm { font-size: .68rem; letter-spacing: .06em; }
  .item-meta { flex-direction: column; gap: 2px; }
  .item.in-cart::after { top: 18px; left: 16px; }
  .visit dl div { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .order-form, .summary, .legal, .sent { padding: 22px; }
}
