/* Elsams Packaging storefront
   Palette: deep green (brand), kraft (the material), gold (deals), paper grey-green (background) */
:root {
  --green: #0E5A3B;
  --green-dark: #0A4229;
  --green-tint: #E3EEE7;
  --paper: #F3F5F2;
  --white: #FFFFFF;
  --ink: #22302A;
  --muted: #59665F;
  --line: #D8DED7;
  --kraft: #C99A66;
  --kraft-mid: #DDB98B;
  --kraft-light: #EFDFC6;
  --gold: #F0B429;
  --gold-dark: #B98207;
  --red: #B23A2E;
  --radius: 8px;
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.025em; }
h2, .h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 700; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
  padding: .7rem 1.25rem; border-radius: var(--radius); border: 2px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E2A517; color: var(--ink); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-tint); color: var(--green-dark); }
.btn-sm { padding: .5rem .9rem; font-size: .92rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--red); text-decoration: underline; cursor: pointer; }
.text-link { font-weight: 600; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 1rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--green-dark); }
.header-search { display: flex; gap: .4rem; flex: 1 1 260px; max-width: 460px; margin-left: auto; }
.header-search input { flex: 1; min-width: 0; font: inherit; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: .3rem 0; border-bottom: 3px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--kraft); color: var(--ink); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.cart-count { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .82rem; text-align: center; line-height: 1.4rem; }

.flashes { padding-top: 1rem; }
.flash { margin: 0 0 .5rem; padding: .75rem 1rem; border-radius: var(--radius); border: 1px solid; }
.flash-success { background: var(--green-tint); border-color: #B7D3C1; color: var(--green-dark); }
.flash-error { background: #FBE9E6; border-color: #EBC1BA; color: #7E2118; }
.flash-info { background: #FFF5DA; border-color: #EFD98F; color: #6B4E00; }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 3.5rem; background: var(--white); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.hero-copy h1 { margin-bottom: .45em; }
.hero-lead { font-size: 1.15rem; max-width: 34em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.hero-art {
  background-color: var(--kraft);
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 14px; padding: 1.25rem;
}
.hero-art svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0 1rem; }
.section:last-of-type { padding-bottom: 3.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.band-gold { background: var(--gold); padding: 2.75rem 0 3rem; margin-top: 2.5rem; }
.band-gold .text-link { color: var(--ink); }
.band-lead { max-width: 40em; margin-bottom: 1.5rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cat-tile { display: flex; align-items: center; gap: .9rem; padding: .75rem; background: var(--kraft-light); border-radius: 12px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.cat-tile:hover { border-color: var(--kraft); color: var(--ink); }
.cat-tile-img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--kraft-mid); display: grid; place-items: center; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.cat-tile-count { display: block; font-size: .9rem; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 1rem; border-top: 3px solid var(--kraft); }
.why-grid p { color: var(--muted); margin: 0; max-width: 26em; }
.why-grid .h3 { margin-top: 1.25rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); }
.product-card:hover { border-color: var(--green); color: var(--ink); }
.product-card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--kraft-light); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 1rem 1rem; }
.product-card-cat { font-size: .85rem; color: var(--muted); }
.product-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.product-card-price { margin-top: .35rem; font-weight: 700; color: var(--green); }
.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #9C7040; }
.img-placeholder-lg svg { width: 96px; height: 96px; }
.badge { position: absolute; top: .6rem; left: .6rem; padding: .25rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge-pre { background: var(--gold); color: var(--ink); }
.badge-out { background: var(--white); color: var(--red); border: 1px solid var(--red); }
.badge-inline { position: static; display: inline-block; margin-right: .4rem; }

/* ---------- Shop page ---------- */
.page-head { padding-top: 1.75rem; }
.breadcrumbs { font-size: .92rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumbs a { color: var(--muted); }
.lead-sm { color: var(--muted); max-width: 42em; }
.shop-layout { display: grid; grid-template-columns: 210px 1fr; gap: 2rem; padding-top: 1rem; padding-bottom: 3.5rem; align-items: start; }
.filters-title { font-family: var(--font-display); font-weight: 700; margin-bottom: .5rem; }
.filter-list li a { display: block; padding: .4rem .7rem; margin-left: -.7rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
.filter-list li a:hover { background: var(--kraft-light); }
.filter-list li a[aria-current="true"] { background: var(--green); color: #fff; font-weight: 600; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.result-count { margin: 0; color: var(--muted); }
.sort-label { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.sort-label select, .qty-row input, .cart-qty input {
  font: inherit; padding: .5rem .65rem; border: 1px solid #B9C2B9; border-radius: var(--radius); background: var(--white);
}
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.pagination a { min-width: 2.4rem; padding: .45rem .8rem; text-align: center; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--white); color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }
.empty-state { padding: 3rem 0; max-width: 34em; }
.empty-state p { color: var(--muted); }

/* ---------- Product page ---------- */
.product-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-top: .5rem; padding-bottom: 2rem; align-items: start; }
.gallery-main { background: var(--kraft-light); border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.thumb-btn { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; width: 72px; height: 72px; cursor: pointer; background: var(--kraft-light); }
.thumb-btn[aria-current="true"] { border-color: var(--green); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.product-cat { margin-bottom: .3rem; font-size: .95rem; }
.product-material { color: var(--muted); }

.buy-form { margin-top: 1.25rem; }
.variant-list { border: 0; padding: 0; margin: 0 0 1.25rem; }
.variant-list legend { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: .6rem; }
.variant-option { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; margin-bottom: .5rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.variant-option:hover { border-color: var(--green); }
.variant-option:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #F6FAF7; }
.variant-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.variant-option.is-disabled { opacity: .6; cursor: not-allowed; }
.variant-option input { accent-color: var(--green); width: 1.1rem; height: 1.1rem; flex: none; }
.variant-body { flex: 1; min-width: 0; }
.variant-name { display: block; font-weight: 600; }
.variant-meta { display: block; font-size: .88rem; color: var(--muted); }
.variant-side { text-align: right; }
.variant-price { display: block; font-weight: 700; }
.stock { display: block; font-size: .82rem; font-weight: 600; }
.stock-in { color: var(--green); }
.stock-pre { color: var(--gold-dark); }
.stock-out { color: var(--red); }

.buy-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
.qty-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.qty-row label { font-weight: 600; }
.qty-row input { width: 7rem; }
.qty-unit { color: var(--muted); }
.stock-note { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.stock-note.note-pre, .note-pre { background: #FFF5DA; border: 1px solid #EFD98F; color: #5F4500; padding: .6rem .8rem; border-radius: var(--radius); }
.price-summary { margin-bottom: 1rem; }
.price-line { margin: 0; }
.price-big { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--green); }
.price-per { color: var(--muted); }
.price-was, .tier-note { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); }
.tier-note { color: var(--green-dark); font-weight: 600; }
.price-total { margin: .6rem 0 0; font-size: 1.1rem; }
.tier-table-wrap { margin-bottom: 1rem; }
.tier-title { font-weight: 600; margin-bottom: .35rem; }
.tier-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tier-table td { padding: .4rem .6rem; border-bottom: 1px solid var(--line); }
.tier-table td:last-child { text-align: right; font-weight: 600; }
.tier-table tr.tier-active td { background: var(--green-tint); }
.fine-print { margin: .6rem 0 0; font-size: .88rem; color: var(--muted); text-align: center; }
.unavailable { padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.product-desc { margin-top: 2rem; max-width: 38em; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; padding-bottom: 3.5rem; align-items: start; }
.cart-list { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) 110px 110px auto; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-img { width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--kraft-light); display: block; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.cart-variant, .cart-unit, .cart-pre { margin: .15rem 0 0; font-size: .92rem; color: var(--muted); }
.cart-qty input { width: 100%; }
.cart-total { font-weight: 700; text-align: right; }
.cart-actions { margin-top: 1rem; }
.cart-summary { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; position: sticky; top: 5.5rem; }
.summary-rows { margin: 0 0 1rem; }
.summary-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.summary-rows dt { color: var(--muted); }
.summary-rows dd { margin: 0; font-weight: 600; text-align: right; }
.summary-save dd, .summary-save dt { color: var(--green); }
.cart-continue { text-align: center; margin: .9rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #DCE8E0; padding-top: 2.5rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: .4rem; }
.footer-note { max-width: 24em; }
.footer-head { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.site-footer li { margin-bottom: .3rem; }
.footer-base { margin-top: 2rem; padding-top: 1rem; padding-bottom: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
  .filter-list { display: flex; flex-wrap: wrap; gap: .4rem; }
  .filter-list li a { margin-left: 0; border: 1px solid var(--line); background: var(--white); }
  .product-page { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .why-grid, .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 640px) {
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .main-nav { margin-left: auto; gap: 1rem; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-img { width: 72px; height: 72px; }
  .cart-qty { grid-column: 2; max-width: 120px; }
  .cart-total { grid-column: 2; text-align: left; }
  .cart-remove { grid-column: 2; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .product-card-body { padding: .65rem .75rem .8rem; }
  .product-card-name { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Header account links ---------- */
.nav-form { margin: 0; }
.nav-logout { font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; padding: .3rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nav-logout:hover { color: var(--ink); }
.main-nav a.nav-cta { border-bottom: 2px solid transparent; padding: .5rem .9rem; color: var(--ink); }
.main-nav a.nav-cta:hover { border-bottom-color: transparent; color: var(--ink); }

/* ---------- Forms (login, sign-up, account) ---------- */
.stack { display: flex; flex-direction: column; gap: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid #B9C2B9; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field textarea { resize: vertical; }
.field-help { margin: .3rem 0 0; font-size: .88rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.text-right, .num { text-align: right; }

.auth-wrap { display: grid; place-items: start center; padding-top: 2.5rem; padding-bottom: 4rem; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; }
.auth-card .stack { margin-top: 1.25rem; }
.auth-links { margin: 1rem 0 0; text-align: center; }
.auth-alt { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.flash p { margin: 0 0 .3rem; } .flash p:last-child { margin: 0; }

/* ---------- Account area ---------- */
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; padding-top: 1rem; padding-bottom: 4rem; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: .2rem; }
.account-nav a { padding: .55rem .8rem; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.account-nav a:hover { background: var(--kraft-light); }
.account-nav a[aria-current="page"] { background: var(--green); color: #fff; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat-box { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--green); }
.stat-label { color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel .stack { max-width: 460px; }
.two-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.empty-inline { padding: .5rem 0; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: .7rem .6rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: .88rem; color: var(--muted); font-weight: 600; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table tfoot td { border-bottom: 0; padding-top: .35rem; padding-bottom: .35rem; }
.data-table tfoot tr.grand td { font-weight: 700; font-size: 1.1rem; border-top: 2px solid var(--ink); padding-top: .7rem; }
.status { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 600; background: #E7EAE6; color: #3D4A43; }
.st-pending, .st-confirmed { background: #E4ECF7; color: #1F4B86; }
.st-processing, .st-out_for_delivery { background: #FFF0C7; color: #6B4E00; }
.st-delivered { background: var(--green-tint); color: var(--green-dark); }
.st-cancelled { background: #F8D9D4; color: #7E2118; }
.st-preorder { background: var(--gold); color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 3px solid var(--kraft); }
.timeline li { margin-bottom: .8rem; }
.order-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.inline-form { display: inline; margin: 0; }

@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; gap: 1rem; }
  .account-nav { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .account-nav a { border: 1px solid var(--line); background: var(--white); }
  .two-panels { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
  .main-nav { flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1rem; }
}

/* ---------- Printing (order receipts) ---------- */
@media print {
  .site-header, .site-footer, .no-print, .skip-link, .flashes { display: none !important; }
  body { background: #fff; }
  .account-layout { display: block; padding: 0; }
  .panel { border: 1px solid #999; break-inside: avoid; }
  .two-panels { display: block; }
}

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  padding-bottom: 3.5rem;
  align-items: start;
}
.checkout-form h2, .checkout-form .h3 { margin-top: 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; }
.form-grid label span { font-size: .92rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--white); width: 100%;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: 2px solid var(--green); outline-offset: 1px;
}
.stack-form { display: flex; flex-direction: column; gap: 1rem; max-width: 360px; }
.stack-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; }
.stack-form input { font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; }
.checkout-submit { margin-top: 1.5rem; }
.checkout-lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.checkout-lines li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.alert {
  margin: 0 0 1rem; padding: .85rem 1rem; border-radius: var(--radius);
  border: 1px solid;
}
.alert-error { background: #FBE9E6; border-color: #EBC1BA; color: #7E2118; }
.alert-success { background: var(--green-tint); border-color: #B7D3C1; color: var(--green-dark); }
.alert-info { background: #FFF5DA; border-color: #EFD98F; color: #6B4E00; }
.bare { list-style: none; margin: 0; padding: 0; }
.grand-line { font-size: 1.4rem; font-weight: 700; margin: 0; }
.summary-rows .grand dt, .summary-rows .grand dd { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}
