/* Onyx Bunny — page-level dark pass.
   brand.css ships a light "v42 premium" theme; final-dark.css re-darks the home and shop.
   This file does the same for the pages that had not had a design pass: product detail,
   checkout, account, orders, contact, gift, guides, thank-you, bundle and every legal page.
   Loaded after final-dark.css by scripts/build-site.mjs, so it can assume those variables.   */

/* ── Shared type and rhythm ───────────────────────────────────────────── */

.legal, .checkout-page, .account-page, .bundle-page, .contact-page,
.gift-page, .guides-page, .thank-you, .orders-admin {
  color: var(--text);
}

/* The single biggest readability problem: body copy on these pages inherited a muted grey
   that sat around 3:1 on the dark surface. --muted (#b9adc4) clears 7:1 on #0e0c15. */
.legal p, .legal li, .legal dd, .legal td,
.bundle-page p, .checkout-page p, .account-page p,
.product-detail .product-story, .product-detail .lede,
.product-detail .spec-table td, .product-detail .faq-answer {
  color: var(--text);
}
.legal .lede, .bundle-page .lede, .checkout-page .lede, .account-page .lede {
  color: #e6dcea;
}
.fine, .muted, .legal .fine, .product-detail .fine { color: var(--muted); }

.legal { max-width: 860px; padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 9vw, 7rem); }
.legal h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); line-height: 1.02; margin: .35rem 0 1rem; }
.legal h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.15; margin: 0 0 .85rem; }
.legal h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; color: var(--text); }
.legal section { padding: clamp(1.6rem, 3.5vw, 2.4rem) 0; border-top: 1px solid var(--line); }
.legal section:first-of-type { border-top: 0; }
.legal p { line-height: 1.68; margin: 0 0 1rem; max-width: 68ch; }
.legal ul, .legal ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.legal li { line-height: 1.6; margin-bottom: .55rem; max-width: 66ch; }
.legal a { color: #ff9ac7; text-underline-offset: .18em; }
.legal a:hover { color: #ffc4dd; }
.legal strong { color: var(--text); }
.legal code { background: var(--surface-3); padding: .12em .4em; border-radius: 6px; font-size: .9em; }
.doc-meta { font-size: .88rem; color: var(--muted); margin: -.4rem 0 1.4rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current="page"] { color: #ff8fc0; font-weight: 600; }

.notice {
  background: linear-gradient(145deg, #2a1730, #170f1f);
  border: 1px solid #6b3a57; border-left: 3px solid var(--rose);
  border-radius: 14px; padding: 1.1rem 1.25rem; color: var(--text);
  margin: 0 0 1.5rem; line-height: 1.6;
}
.notice strong { color: #ffd0e5; }

/* ── Definition and data tables shared by the legal pages ─────────────── */

.legal-facts { margin: 0; display: grid; gap: .1rem; }
.legal-facts > div {
  display: grid; grid-template-columns: minmax(150px, 15rem) minmax(0, 1fr);
  gap: .5rem 1.25rem; padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.legal-facts dt { color: var(--muted); font-size: .92rem; }
.legal-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

.policy-table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .94rem; }
.policy-table th, .policy-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.policy-table thead th { color: #ff9ac7; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; border-bottom-color: #6b3a57; }
.policy-table tbody tr:nth-child(even) { background: #ffffff05; }

.contact-routes { margin: 0; }
.contact-routes > div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-routes dt { color: #ff9ac7; font-weight: 600; margin-bottom: .3rem; }
.contact-routes dd { margin: 0; color: var(--text); line-height: 1.6; }

.legal-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.legal-index .card { display: block; padding: 1.3rem 1.4rem; text-decoration: none; color: inherit; }
.legal-index .card h2 { font-size: 1.12rem; margin: 0 0 .45rem; }
.legal-index .card p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.55; }
.legal-index .card:hover { border-color: var(--rose); transform: translateY(-2px); }
.legal-index .text-link { display: inline-block; margin-top: .7rem; color: #ff9ac7; font-size: .9rem; }

/* ── Safety pages and blocks ──────────────────────────────────────────── */

.warning-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.warning-list li {
  position: relative; padding: .55rem 0 .55rem 1.9rem;
  border-bottom: 1px solid #ffffff0d; line-height: 1.6; max-width: 70ch;
}
.warning-list li::before {
  content: "!"; position: absolute; left: 0; top: .55rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: #7a2547; color: #ffd6e6; border: 1px solid #b0426f;
}
.safety-summary { color: var(--muted); font-style: italic; margin: 0 0 .9rem; }
.safety-care { background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.05rem; font-size: .93rem; line-height: 1.6; }
.safety-block { padding: clamp(1.6rem, 3.5vw, 2.3rem) 0; border-top: 1px solid var(--line); }
.safety-jump { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0 .5rem; }
.safety-jump a {
  font-size: .82rem; padding: .38rem .8rem; border-radius: 999px;
  border: 1px dashed #5a4363; color: var(--muted); text-decoration: none;
}
.safety-jump a:hover { color: var(--text); border-color: var(--rose); border-style: solid; }
.safety-notice { border-left-color: #e0b64a; }

.product-safety .warning-list { margin-bottom: 1rem; }
.gpsr-block { margin: 1.3rem 0 1rem; padding: 1.1rem 1.25rem; background: var(--surface-3); border: 1px solid var(--line); border-radius: 14px; }
.gpsr-block h3 { margin: 0 0 .7rem; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; color: #ff9ac7; }
.gpsr-block dl { margin: 0; }
.gpsr-block > dl > div { display: grid; grid-template-columns: minmax(130px, 12rem) minmax(0, 1fr); gap: .4rem 1rem; padding: .5rem 0; border-bottom: 1px solid #ffffff0d; }
.gpsr-block dt { color: var(--muted); font-size: .86rem; }
.gpsr-block dd { margin: 0; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.image-disclosure { border-top: 1px solid var(--line); padding-top: .9rem; }
.review-empty { color: var(--muted); max-width: 62ch; line-height: 1.6; }

/* ── Checkout ─────────────────────────────────────────────────────────── */

.checkout-page { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem); align-items: start; }
.checkout-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .3rem 0 1.2rem; }
.checkout-page form { display: grid; gap: 1.5rem; }
.checkout-page fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.35rem 1.4rem; margin: 0; background: var(--surface-2); }
.checkout-page legend { display: flex; align-items: center; gap: .6rem; padding: 0 .5rem; font-weight: 600; font-size: 1.02rem; color: var(--text); }
.step-number {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: linear-gradient(135deg, #ff65a7, #9f4ee9); color: #fff; font-size: .82rem; font-weight: 700;
}
.checkout-page label { display: block; margin-bottom: .9rem; font-size: .93rem; color: var(--muted); }
.checkout-page label .field { margin-top: .35rem; }
.optional { color: #8d7f98; font-weight: 400; }
.field {
  width: 100%; min-height: 2.9rem; padding: .6rem .85rem; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--text); font: inherit;
}
.field:focus-visible { outline: 3px solid #b0426f; outline-offset: 1px; border-color: var(--rose); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.payment-notice {
  background: linear-gradient(145deg, #23142c, #150f1d);
  border: 1px solid #6b3a57; border-left: 3px solid #e0b64a;
  border-radius: 16px; padding: 1.2rem 1.35rem; margin: 0 0 1.75rem;
}
.payment-notice h2 { font-size: 1.05rem; margin: 0 0 .6rem; color: #ffd9a8; }
.payment-notice p { margin: 0 0 .7rem; line-height: 1.6; font-size: .95rem; }
.payment-notice p:last-child { margin-bottom: 0; }

.shipping-option {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: .3rem .85rem; padding: .85rem 1rem; margin-bottom: .6rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface-3); cursor: pointer;
}
.shipping-option:has(input:checked) { border-color: var(--rose); background: #ff4f9a10; }
.shipping-copy { display: grid; gap: .15rem; }
.shipping-copy strong { color: var(--text); font-size: .96rem; }
.shipping-copy small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.shipping-option b { color: var(--text); white-space: nowrap; }

.consent-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; margin-bottom: 1rem; line-height: 1.55; color: var(--text); font-size: .92rem; }
.consent-row input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; accent-color: #e03791; }
.checkout-submit { width: 100%; margin-top: .4rem; }
.form-error { background: #46101f; border: 1px solid #a8395c; color: #ffd6e0; border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; font-size: .93rem; }

.checkout-summary { position: sticky; top: 6.5rem; padding: 1.4rem 1.5rem; }
.checkout-summary h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--text); }
.summary-row.total { border-bottom: 0; border-top: 1px solid #6b3a57; margin-top: .4rem; padding-top: .8rem; font-size: 1.08rem; }
.summary-row.total strong { color: #ff9ac7; }
.tax-note { font-size: .84rem; color: var(--muted); line-height: 1.5; margin: .8rem 0 0; }
/* brand.css gives .payment-status a light-pink panel (#f9e4ee on #683044) that is unreadable
   on the dark surface. Re-skin it as a quiet dark panel instead of inheriting that. */
.payment-status {
  font-size: .84rem; line-height: 1.5; margin: .9rem 0 0;
  background: var(--surface-3); color: var(--muted);
  border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem;
}
.checkout-assurances { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .45rem; }
.checkout-assurances li { font-size: .85rem; color: var(--muted); padding-left: 1.2rem; position: relative; }
.checkout-assurances li::before { content: "✓"; position: absolute; left: 0; color: #6fd39a; }

/* ── Thank you ────────────────────────────────────────────────────────── */

.thank-you .order-number { font-size: 1.05rem; color: var(--muted); margin: 0 0 1.2rem; }
.thank-you .order-number strong { color: #ff9ac7; letter-spacing: .04em; }
.order-receipt { padding: 1.3rem 1.45rem; margin: 0 0 1.5rem; }
.order-receipt h2 { font-size: 1rem; margin: 0 0 .8rem; }
.next-steps { counter-reset: step; list-style: none; padding: 0; }
.next-steps li { position: relative; padding: .7rem 0 .7rem 2.6rem; border-bottom: 1px solid var(--line); line-height: 1.6; }
.next-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: .65rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
  background: var(--surface-3); border: 1px solid #6b3a57; color: #ff9ac7;
}

/* ── Account ──────────────────────────────────────────────────────────── */

.account-page { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem); }
.account-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .3rem 0 1rem; }
.account-warning { border-left-color: #e0b64a; }
.account-auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin: 0 0 2.5rem; }
.account-auth .card { padding: 1.5rem 1.6rem; }
.account-auth h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.account-auth label { display: block; margin-bottom: .9rem; font-size: .92rem; color: var(--muted); }
.account-auth .button { width: 100%; margin-top: .4rem; }
.password-row { display: flex; gap: .5rem; align-items: center; margin-top: .35rem; }
.password-row .field { margin-top: 0; }
.text-link { background: none; border: 0; color: #ff9ac7; cursor: pointer; font: inherit; padding: .4rem; }
.field-error:empty { display: none; }
.field-error { color: #ff9db3; font-size: .85rem; margin: -.6rem 0 .8rem; }
.account-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1rem; }
.account-facts > div { background: var(--surface-3); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; font-size: .91rem; line-height: 1.55; color: var(--muted); }
.account-facts strong { display: block; color: var(--text); margin-bottom: .25rem; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; align-items: start; }
.account-grid .card { padding: 1.4rem 1.5rem; }
.account-heading { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin: 0 0 1.5rem; }

/* ── Orders admin ─────────────────────────────────────────────────────── */

.orders-list { display: grid; gap: .8rem; margin-top: 1.2rem; }
.admin-order { display: grid; gap: .3rem; padding: 1rem 1.15rem; font-size: .92rem; }
.admin-order strong { color: #ff9ac7; letter-spacing: .03em; }
.admin-order span { color: var(--muted); font-size: .84rem; }
.orders-list .empty { color: var(--muted); }

/* ── Contact ──────────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0 0 1.2rem; }
.contact-card { padding: 1.3rem 1.4rem; }
.contact-card h3 { margin: 0 0 .5rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: 1.08rem; margin: 0 0 .6rem; overflow-wrap: anywhere; }
.contact-value a { color: #ff9ac7; }
.contact-form { display: grid; gap: 1rem; max-width: 40rem; }
.contact-form label { font-size: .93rem; color: var(--muted); }
.contact-form textarea { min-height: 9rem; border-radius: 16px; resize: vertical; }

/* ── Gift ─────────────────────────────────────────────────────────────── */

.gift-page .gift-hero { padding-bottom: 0; }
.gift-page h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
.gift-right { display: grid; gap: 1.5rem; }
.gift-builder fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; margin: 0 0 1.1rem; }
.gift-builder legend { padding: 0 .4rem; font-size: .9rem; color: var(--muted); }
.gift-builder output { display: block; margin-top: .6rem; font-size: 1.3rem; color: #ff9ac7; }
.budget-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.segmented, .gift-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.segmented label, .gift-chips label {
  padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-3); font-size: .88rem; cursor: pointer; color: var(--text);
}
.segmented label:has(input:checked), .gift-chips label:has(input:checked) { border-color: var(--rose); background: #ff4f9a1a; }
.segmented input, .gift-chips input { margin-right: .35rem; accent-color: #e03791; }
.gift-discretion, .gift-consent { padding: 1.4rem 1.5rem; }
.gift-discretion h2, .gift-consent h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
.gift-discretion ul { padding-left: 1.2rem; }
.gift-discretion li { margin-bottom: .5rem; line-height: 1.55; color: var(--text); }

/* ── Guides ───────────────────────────────────────────────────────────── */

.guides-page h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
.guides-safety-card { padding: clamp(1.5rem, 3.5vw, 2.2rem); border-left: 3px solid #e0b64a; }
.guides-safety-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .3rem 0 .8rem; }
.guides-safety-card p { max-width: 62ch; line-height: 1.65; }

/* ── Bundle pages ─────────────────────────────────────────────────────── */

.bundle-page { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem); }
.bundle-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.bundle-head h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1; margin: .3rem 0 .9rem; }
.bundle-head .lede { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.6; }
.bundle-note { color: var(--muted); font-size: .94rem; line-height: 1.6; border-left: 2px solid #6b3a57; padding-left: 1rem; }
.bundle-hero-image { margin: 0; border-radius: 20px; overflow: hidden; background: #f7f2f5; border: 1px solid #5e3850; }
.bundle-hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

.bundle-items h2, .bundle-safety h2, .bundle-more h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 1.1rem; }
.bundle-items, .bundle-safety, .bundle-more { padding: clamp(1.6rem, 3.5vw, 2.4rem) 0; border-top: 1px solid var(--line); }
.bundle-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .75rem; }
.bundle-item {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: .85rem 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px;
}
.bundle-item-art { display: block; border-radius: 12px; overflow: hidden; background: #f7f2f5; }
.bundle-item-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.bundle-item-copy h3 { margin: 0 0 .25rem; font-size: 1rem; }
.bundle-item-copy h3 a { color: var(--text); text-decoration: none; }
.bundle-item-copy h3 a:hover { color: #ff9ac7; }
.bundle-item-copy p { margin: 0; font-size: .87rem; color: var(--muted); line-height: 1.5; }
.bundle-item-price { color: #ff9ac7; white-space: nowrap; font-size: 1rem; }
.bundle-total { background: var(--surface-2); border: 1px solid #6b3a57; border-radius: 18px; padding: 1.3rem 1.45rem; }
.bundle-total > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.bundle-total strong { font-size: 1.5rem; color: #ff9ac7; }
.bundle-total .button { width: 100%; margin-top: .9rem; }
.bundle-safety-links { list-style: none; padding: 0; display: grid; gap: .55rem; }
.bundle-safety-links li { padding: .7rem .9rem; background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.bundle-safety-links a { color: #ff9ac7; font-weight: 600; }

/* ── Mobile: no horizontal scroll at 375px ────────────────────────────── */

@media (max-width: 900px) {
  .checkout-page { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .bundle-head { grid-template-columns: 1fr; }
  .bundle-hero-image { order: -1; max-width: 22rem; }
}

@media (max-width: 620px) {
  .legal, .checkout-page, .account-page, .bundle-page { padding-left: 0; padding-right: 0; }
  .legal h1, .checkout-page h1, .account-page h1, .bundle-page h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .legal-facts > div, .gpsr-block > dl > div { grid-template-columns: 1fr; gap: .2rem; }
  .field-pair { grid-template-columns: 1fr; }
  .bundle-item { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .bundle-item-price { grid-column: 2; justify-self: start; }
  .shipping-option { grid-template-columns: auto minmax(0, 1fr); }
  .shipping-option b { grid-column: 2; }
  .contact-grid, .account-facts, .account-auth, .account-grid, .legal-index { grid-template-columns: 1fr; }
  /* Wide policy tables become scrollable rather than pushing the page sideways. */
  .policy-table { display: block; overflow-x: auto; white-space: nowrap; }
  .policy-table td, .policy-table th { white-space: normal; min-width: 8.5rem; }
}

/* Nothing on these pages may create a horizontal scrollbar. */
.legal, .checkout-page, .account-page, .bundle-page, .contact-page, .gift-page, .guides-page { overflow-x: clip; }
.legal img, .bundle-page img, .legal pre { max-width: 100%; }

/* ── Owner order desk (/admin.html) ───────────────────────────────────── */
/* Deliberately plainer than the storefront: this is a work surface, not a shop window. */

.admin-page { max-width: 1100px; }
.admin-auth .card { max-width: 26rem; padding: 1.5rem 1.6rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.admin-counts { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-count { font-size: .84rem; color: var(--muted); background: var(--surface-3); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; }
.admin-count b { color: var(--text); }
.admin-count-ship { border-color: #3f9d6e; }
.admin-count-ship b { color: #6fd39a; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.admin-actions .button { padding: .45rem .9rem; font-size: .88rem; }
.admin-filter { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; margin: 0; }
.admin-filter .field { min-height: 2.3rem; padding: .3rem .6rem; width: auto; }

.admin-order-card { padding: 1.2rem 1.35rem; margin: 1rem 0; }
.admin-order-card[data-state="to-ship"] { border-left: 3px solid #3f9d6e; }
.admin-order-card[data-state="unpaid"] { border-left: 3px solid #d9a13c; opacity: .8; }
.admin-order-card[data-state="shipped"] { border-left: 3px solid var(--line); opacity: .65; }
.admin-order-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: baseline; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.admin-order-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #ff9ac7; letter-spacing: .03em; }
.admin-state { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; margin-left: .6rem; }
.admin-state-to-ship { background: #14301f; color: #6fd39a; border: 1px solid #3f9d6e; }
.admin-state-unpaid { background: #33230c; color: #e8c37a; border: 1px solid #d9a13c; }
.admin-state-shipped { background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); }

.admin-order-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem; padding: 1rem 0; }
.admin-order-grid h3 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.admin-address { font-size: 1rem; line-height: 1.6; margin: 0 0 .5rem; }
.admin-copy { padding: .35rem .8rem; font-size: .82rem; }
.admin-lines, .admin-totals { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-lines td { padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-lines code { font-size: .78rem; color: var(--muted); }
.admin-lines a { color: #ff9ac7; }
.admin-totals { margin-top: .6rem; }
.admin-totals td { padding: .25rem .4rem; color: var(--muted); }
.admin-totals .total td { color: var(--text); font-weight: 600; border-top: 1px solid var(--line); padding-top: .5rem; }
.num { text-align: right; white-space: nowrap; }
.admin-tax-note { margin-top: .6rem; }

.admin-fulfil { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .7rem; }
.admin-fulfil h3 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.admin-fulfil-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; }
.admin-fulfil label { font-size: .85rem; color: var(--muted); margin: 0; }
.admin-check { display: flex; align-items: center; gap: .5rem; color: var(--text); font-size: .9rem; }
.admin-check input { width: 1.1rem; height: 1.1rem; accent-color: #3f9d6e; }
.admin-check small { color: var(--muted); }
.admin-fulfil .button { justify-self: start; padding: .45rem 1.1rem; font-size: .88rem; }

@media (max-width: 800px) {
  .admin-order-grid, .admin-fulfil-row { grid-template-columns: 1fr; }
  .admin-toolbar { flex-direction: column; align-items: flex-start; }
}

/* Struck-through sum of parts, shown only when a set carries an agreed discount. */
.bundle-total .bundle-was{margin-left:.5rem;opacity:.65;font-weight:400;font-size:.9em}

/* Size must be chosen before adding to the bag; the picker lights up if it was skipped. */
.variant-group.needs-choice{outline:2px solid var(--rose);outline-offset:6px;border-radius:14px}
.variant-group.needs-choice legend::after{content:" — choose one";color:var(--rose);font-weight:600}
html[lang="es"] .variant-group.needs-choice legend::after{content:" — elige una"}

/* Language switch never wraps (it stacked "E/S" on phones). */
.language-switch{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;min-width:2.4em}
/* Spanish footer: links to pages that exist only in English carry a small EN tag. */
.lang-tag{display:inline-block;margin-left:.35em;padding:0 .35em;border:1px solid var(--line);border-radius:4px;font-size:.68em;letter-spacing:.04em;line-height:1.5;color:var(--muted);vertical-align:middle}

/* Unselected option chips were dark text on the dark theme — unreadable once no size is pre-selected. */
.variant-chips button:not(.selected),.card-variant-toggle button:not(.selected),.unit-toggle button:not(.selected){color:var(--text);border-color:var(--line);background:transparent}
.variant-chips button:not(.selected):hover,.card-variant-toggle button:not(.selected):hover{border-color:var(--champagne)}
