/* ==========================================================================
   2mh — storefront styles (plain CSS port of the original Tailwind design)
   Brand: #ff6b00 · Ink: #101828
   ========================================================================== */

:root {
  --brand: #ff6b00;
  --brand-dark: #e65c00;
  --brand-light: #ff8f3d;
  --brand-soft: #fff1e6;
  --ink: #101828;
  --ink-soft: #475467;
  --ink-faint: #98a2b3;
  --border: #e4e7ec;
  --shadow-card: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-pop: 0 8px 24px rgba(16, 24, 40, .14);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f9fafb;
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
.site-main { flex: 1; }
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.center { text-align: center; }
.right { text-align: right; }
.mt-6 { margin-top: 1.5rem; }
.pad { padding: 1.25rem; }
.pad-y { padding: 1.5rem 0; }
.muted { color: var(--ink-soft); font-size: .9rem; }
.muted-sm { color: var(--ink-faint); font-size: .78rem; }
.faint { color: var(--ink-faint); font-weight: 400; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.uppercase { text-transform: uppercase; }
.centered { text-align: center; }
.red-text { color: #dc2626; }
.orange-text { color: #ea580c; }
.brand-text { color: var(--brand); }
.text-red { color: #ef4444; }
.grow { flex: 1; }
.block { display: block; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.truncate-280 { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { word-break: break-all; }
.w-56 { width: 14rem; }
.w-44 { width: 11rem; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; }
.promo-strip { background: var(--ink); color: #fff; font-size: 13px; }
.promo-inner { display: flex; height: 36px; align-items: center; justify-content: space-between; gap: 1rem; }
.promo-inner p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-links { display: none; gap: 1rem; }
.promo-links a:hover { color: var(--brand-light); }
.promo-links .strong { font-weight: 600; }
@media (min-width: 640px) { .promo-links { display: flex; } }

.main-bar { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.main-bar-inner { display: flex; height: 64px; align-items: center; gap: .75rem; }
@media (min-width: 640px) { .main-bar-inner { gap: 1.25rem; } }

.logo { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.logo-mark {
  display: grid; place-items: center; height: 36px; width: 36px;
  border-radius: 8px; background: var(--brand); color: #fff;
  font-size: 1.25rem; font-weight: 900;
}
.logo-mark.small { height: 32px; width: 32px; font-size: 1rem; }
.logo-text { display: none; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
@media (min-width: 640px) { .logo-text { display: block; } }

.search-form { display: flex; flex: 1; min-width: 0; }
.search-form input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-right: 0;
  border-radius: 8px 0 0 8px; padding: .5rem 1rem; font-size: .9rem; color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--brand); }
.search-form .btn-primary { border-radius: 0 8px 8px 0; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .search-form .btn-primary { padding-left: 1.5rem; padding-right: 1.5rem; } }

.cart-link { position: relative; display: flex; align-items: center; gap: .4rem; flex-shrink: 0;
  padding: .5rem .5rem; border-radius: 8px; font-size: .9rem; font-weight: 600; }
.cart-link:hover { background: var(--brand-soft); }
.cart-icon { font-size: 1.5rem; }
.cart-label { display: none; }
@media (min-width: 640px) { .cart-label { display: inline; } }
.cart-badge {
  position: absolute; top: -2px; right: -4px; background: var(--brand); color: #fff;
  border-radius: 999px; padding: 1px 6px; font-size: 11px; font-weight: 700;
}

.cat-nav { overflow-x: auto; }
.cat-nav-inner { display: flex; gap: .25rem; padding-bottom: .5rem; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Pills ──────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  border-radius: 999px; padding: .375rem .75rem; font-size: .875rem; font-weight: 500;
}
.pill:hover { background: var(--brand-soft); }
.pill-red { background: #fef2f2; color: #dc2626; font-weight: 600; }
.pill-red:hover { background: #fee2e2; }
.pill-light { background: #fff; color: var(--ink-soft); box-shadow: var(--shadow-card); }
.pill-light:hover { color: var(--brand); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: var(--ink); color: #fff; }
.pill-brand { background: var(--brand); color: #fff; }
.pill-brand:hover { background: var(--brand); color: #fff; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary, .btn-dark, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 8px; padding: .5rem 1rem; font-weight: 600; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; border-color: #d0d5dd; color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary:disabled, .btn-dark:disabled, .btn-outline:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-sm { font-size: .85rem; }
.btn-block { display: flex; width: 100%; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ── Forms ──────────────────────────────────────────────────────────── */
.label { display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: 500; color: var(--ink); }
.input {
  width: 100%; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff;
  padding: .5rem .75rem; font-size: .875rem; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 107, 0, .3); }
.input:disabled { background: #f9fafb; color: var(--ink-faint); }
.input.sm { font-size: .75rem; }
textarea.input { resize: vertical; }
.file-input { padding: .3rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .span2 { grid-column: 1 / -1; }
.form-stack > * + * { margin-top: 1rem; }
.form-actions { display: flex; gap: .75rem; }
.form-error { border-radius: 8px; background: #fef2f2; padding: .625rem 1rem; font-size: .875rem; font-weight: 500; color: #dc2626; }
.form-success { border-radius: 8px; background: #f0fdf4; padding: .625rem 1rem; font-size: .875rem; font-weight: 500; color: #15803d; }

/* ── Toast ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 50; max-width: 20rem;
  border-radius: var(--radius); background: var(--ink); color: #fff;
  padding: .75rem 1rem; font-size: .875rem; font-weight: 500; box-shadow: var(--shadow-pop);
  animation: toast-in .2s ease-out;
}
.toast-error { background: #b42318; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Page scaffolding ───────────────────────────────────────────────── */
.page-stack { display: flex; flex-direction: column; gap: 2rem; padding-top: 1.25rem; padding-bottom: 1.5rem; }
.page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .5rem; }
.page-title.xl { font-size: 1.875rem; margin-bottom: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.section-link { font-size: .875rem; font-weight: 600; color: var(--brand); }
.section-link:hover { text-decoration: underline; }
.breadcrumb { font-size: .875rem; color: var(--ink-soft); }
.breadcrumb .sep { margin: 0 .375rem; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .current { font-weight: 500; color: var(--ink); }

/* ── Hero carousel ──────────────────────────────────────────────────── */
.hero-carousel { position: relative; }
.hero-slide { display: none; position: relative; overflow: hidden; border-radius: 16px; color: #fff; }
.hero-slide.active { display: block; }
.hero-indigo { background: linear-gradient(135deg, #312e81, #4338ca, #3b82f6); }
.hero-orange { background: linear-gradient(135deg, #c2410c, #f97316, #fbbf24); }
.hero-slate { background: linear-gradient(135deg, #0f172a, #334155, #10b981); }
.hero-art {
  position: absolute; right: -2.5rem; top: -4rem; font-size: 11rem; opacity: .2;
  pointer-events: none; user-select: none; line-height: 1;
}
.hero-content { position: relative; z-index: 10; padding: 3rem 1.5rem; }
@media (min-width: 640px) { .hero-content { padding: 4rem 3rem; } }
@media (min-width: 1024px) { .hero-content { padding: 5rem 3rem; } }
.hero-tag {
  display: inline-block; margin-bottom: .5rem; border-radius: 999px; background: rgba(255, 255, 255, .2);
  padding: .25rem .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}
.hero-title { max-width: 36rem; font-size: 1.875rem; font-weight: 800; line-height: 1.2; }
@media (min-width: 640px) { .hero-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3rem; } }
.hero-sub { margin-top: .75rem; max-width: 32rem; color: rgba(255, 255, 255, .9); font-size: 1.05rem; }
.hero-cta { margin-top: 1.5rem; box-shadow: var(--shadow-pop); }
.hero-dots { position: absolute; bottom: 1rem; left: 1.5rem; z-index: 10; display: flex; gap: .5rem; }
@media (min-width: 640px) { .hero-dots { left: 3rem; } }
.hero-dot { height: 8px; width: 8px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .5); padding: 0; transition: all .2s; }
.hero-dot.active { width: 24px; background: #fff; }

/* ── Trust / categories ─────────────────────────────────────────────── */
/* minmax(0, 1fr) + min-width: 0 let the grid cells shrink below their
   content's intrinsic (nowrap) width, so the ellipsis text styles actually
   clamp instead of pushing the document wide on phones. */
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-card { display: flex; align-items: center; gap: .75rem; padding: .875rem; min-width: 0; }
.trust-card .trust-text { min-width: 0; }
.trust-icon { font-size: 1.5rem; flex-shrink: 0; }
.trust-title { font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trust-sub { font-size: .75rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem; text-align: center; min-width: 0; }
.cat-card:hover { box-shadow: var(--shadow-pop); }
.cat-emoji { font-size: 2.25rem; transition: transform .15s; }
.cat-card:hover .cat-emoji { transform: scale(1.1); }
.cat-name { font-size: .75rem; font-weight: 600; line-height: 1.2; }

/* ── Product cards ──────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card:hover { box-shadow: var(--shadow-pop); }
.product-card-img { display: block; aspect-ratio: 1; overflow: hidden; background: #f3f4f6; }
.product-card-img img { height: 100%; width: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { display: flex; flex: 1; flex-direction: column; gap: .375rem; padding: .75rem; }
.product-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.product-brand { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.discount-badge { border-radius: 4px; background: #ef4444; color: #fff; padding: 1px 6px; font-size: .75rem; font-weight: 700; }
.discount-badge.big { border-radius: 6px; padding: 4px 8px; }
.product-name {
  font-size: .875rem; font-weight: 500; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-name:hover { color: var(--brand); }
.product-rating { font-size: .75rem; }
.stars-amber { color: #fbbf24; }
.stars-dim { color: #d1d5db; }
.review-count { color: var(--ink-faint); }
.product-card-bottom { margin-top: auto; padding-top: .25rem; }
.price-row { display: flex; align-items: baseline; gap: .5rem; }
.price { font-size: 1.125rem; font-weight: 800; }
.price-was { font-size: .875rem; color: var(--ink-faint); text-decoration: line-through; }
.price-was.lg { font-size: 1.25rem; }
.low-stock { font-size: .75rem; font-weight: 600; color: #ea580c; margin: .25rem 0 0; }
.add-wrap { margin-top: .375rem; }
.btn-add {
  width: 100%; border: 0; border-radius: 8px; padding: .5rem 0; font-size: .875rem; font-weight: 700;
  background: var(--brand); color: #fff; transition: background-color .15s;
}
.btn-add:hover { background: var(--brand-dark); }
.btn-add:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }

.deals-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.deal-item { width: 12rem; flex-shrink: 0; }
@media (min-width: 640px) { .deal-item { width: 13rem; } }

.seo-blurb { padding: 1.5rem; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }
.seo-blurb h2 { margin-bottom: .5rem; font-size: 1.125rem; color: var(--ink); }

/* ── Shop page ──────────────────────────────────────────────────────── */
.shop-layout { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .shop-layout { flex-direction: row; } }
.shop-sidebar { }
@media (min-width: 1024px) { .shop-sidebar { width: 15rem; flex-shrink: 0; } }
.filter-card { padding: 1rem; position: static; }
@media (min-width: 1024px) { .filter-card { position: sticky; top: 10rem; } }
.filter-card h3 { font-weight: 700; margin-bottom: .75rem; }
.filter-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: .25rem; font-size: .875rem; }
.filter-list a { display: block; border-radius: 8px; padding: .375rem .625rem; }
.filter-list a:hover { background: #f9fafb; }
.filter-list a.active { background: var(--brand-soft); font-weight: 600; color: var(--brand); }
.price-form { display: flex; align-items: center; gap: .5rem; }
.price-form input { width: 100%; padding: .375rem .5rem; }
.price-form .dash { color: var(--ink-faint); }
.sale-toggle { margin-top: 1.25rem; }
.sale-toggle-link {
  display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border);
  border-radius: 8px; padding: .5rem .75rem; font-size: .875rem; font-weight: 600;
}
.sale-toggle-link:hover { border-color: var(--brand); }
.sale-toggle-link.on { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
.shop-results { flex: 1; min-width: 0; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.results-count { font-size: .875rem; color: var(--ink-soft); }
.results-count strong { color: var(--ink); }
.sort-pills { display: flex; flex-wrap: wrap; gap: .375rem; }
.sort-pills .pill { font-size: .75rem; }
.empty-state { padding: 3rem; text-align: center; }
.empty-state h3 { font-size: 1.125rem; font-weight: 700; margin: .25rem 0; }
.empty-state p { font-size: .875rem; color: var(--ink-soft); margin-bottom: 1rem; }
.empty-icon { font-size: 3rem; margin-bottom: .75rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .375rem; margin-top: 2rem; }
.pagination .ellipsis { color: var(--ink-faint); }

/* ── Product detail ─────────────────────────────────────────────────── */
.product-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1fr 1fr; } }
.product-gallery { overflow: hidden; }
.product-gallery img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.product-detail-brand { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.product-detail-title { margin-top: .25rem; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
@media (min-width: 640px) { .product-detail-title { font-size: 1.875rem; } }
.rating-num { font-weight: 600; }
.detail-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin-top: 1rem; }
.detail-price { font-size: 2.25rem; font-weight: 800; }
.gst-note { margin-top: .25rem; font-size: .75rem; color: var(--ink-faint); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.stock-note { font-size: .875rem; font-weight: 600; }
.stock-ok { color: #16a34a; }
.stock-low { color: #ea580c; }
.buy-panel { display: flex; flex-direction: column; gap: .75rem; }
.qty-row { display: flex; align-items: center; gap: .75rem; }
.qty-label { font-size: .875rem; font-weight: 500; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden; }
.qty-stepper button { border: 0; background: none; padding: .375rem .75rem; font-size: 1.125rem; font-weight: 700; color: var(--ink-soft); }
.qty-stepper button:hover { color: var(--brand); }
.qty-input { width: 2.5rem; border: 0; text-align: center; font-weight: 700; font-size: .9rem; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }
.buybox-view { margin-top: .25rem; }
.delivery-box { margin-top: 1.5rem; border-radius: var(--radius); background: var(--brand-soft); padding: 1rem; font-size: .875rem; }
.delivery-box p + p { margin-top: 0; }
.delivery-title { font-weight: 700; margin-bottom: .125rem; }
.delivery-box .delivery-title:not(:first-child) { margin-top: .5rem; }
.highlights { margin-top: 1.5rem; }
.highlights h3 { font-weight: 700; margin-bottom: .5rem; }
.highlights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; font-size: .875rem; color: var(--ink-soft); }
@media (min-width: 640px) { .highlights ul { grid-template-columns: 1fr 1fr; } }
.highlights .check { color: var(--brand); }
.highlights strong { color: var(--ink); }
.detail-lower { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .detail-lower { grid-template-columns: 2fr 1fr; } }
.detail-desc, .detail-specs { padding: 1.5rem; }
.detail-desc h2, .detail-specs h2 { margin-bottom: .75rem; font-size: 1.125rem; font-weight: 700; }
.detail-desc p { line-height: 1.6; color: var(--ink-soft); }
.specs-table { width: 100%; font-size: .875rem; border-collapse: collapse; }
.specs-table td { padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--border); }
.specs-table tr:last-child td { border-bottom: 0; }
.specs-table td:first-child { font-weight: 500; }
.specs-table td:last-child { color: var(--ink-soft); }
.related-title { margin-bottom: 1rem; }
.out-of-stock { border: 2px solid #fee2e2; background: #fef2f2; border-radius: var(--radius); padding: 1rem; font-size: .875rem; font-weight: 600; color: #dc2626; }

/* ── Cart ───────────────────────────────────────────────────────────── */
.cart-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 2fr 1fr; } }
.cart-lines { display: flex; flex-direction: column; gap: .75rem; }
.cart-line { display: flex; gap: 1rem; padding: .75rem; }
.cart-line-img { flex-shrink: 0; }
.cart-line-img img { height: 6rem; width: 6rem; border-radius: 8px; object-fit: cover; }
.cart-line-body { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.cart-line-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.cart-line-name { font-size: .875rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line-name:hover { color: var(--brand); }
.remove-btn { border: 0; background: none; border-radius: 4px; padding: .25rem .5rem; font-size: .75rem; font-weight: 600; color: var(--ink-faint); flex-shrink: 0; }
.remove-btn:hover { background: #fef2f2; color: #dc2626; }
.cart-line-stock { margin-top: .125rem; font-size: .75rem; color: var(--ink-faint); }
.cart-line-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.qty-form { display: inline-flex; }
.cart-line-price { font-weight: 800; }
.continue-link { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--brand); }
.continue-link:hover { text-decoration: underline; }
.summary-card { padding: 1.25rem; position: static; }
@media (min-width: 1024px) { .summary-card { position: sticky; top: 10rem; } }
.summary-card h2 { font-weight: 700; margin-bottom: 1rem; }
.free-ship-meter p { font-size: .75rem; color: var(--ink-soft); margin-bottom: .375rem; }
.meter { height: 8px; border-radius: 999px; background: #f3f4f6; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--brand); transition: width .3s; }
.free-unlocked { margin-bottom: 1rem; border-radius: 8px; background: #f0fdf4; padding: .5rem .75rem; font-size: .875rem; font-weight: 600; color: #15803d; }
.summary-rows { margin: 0; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .875rem; }
.summary-rows > div { display: flex; justify-content: space-between; padding: .25rem 0; }
.summary-rows dt { color: var(--ink-soft); }
.summary-rows dd { margin: 0; font-weight: 600; }
.summary-rows .total { padding-top: .75rem; margin-top: .25rem; border-top: 1px solid var(--border); font-size: 1rem; }
.summary-rows .total dt { font-weight: 700; color: var(--ink); }
.summary-rows .total dd { font-weight: 800; }
.free-text { color: #16a34a; font-weight: 600; }
.summary-card .btn-primary { margin-top: 1.25rem; }
.secure-note { margin-top: .75rem; text-align: center; font-size: 11px; color: var(--ink-faint); }
.empty-cart { max-width: 42rem; margin: 0 auto; padding: 5rem 1rem; text-align: center; }
.empty-cart h1 { font-size: 1.5rem; font-weight: 800; margin: .5rem 0; }
.empty-cart .btn-primary { margin-top: 1.5rem; }

/* ── Checkout ───────────────────────────────────────────────────────── */
.guest-note { font-size: .875rem; color: var(--ink-soft); }
.guest-note a { font-weight: 600; color: var(--brand); }
.guest-note a:hover { text-decoration: underline; }
.steps { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; margin-bottom: 1.5rem; }
.step { color: var(--ink-faint); }
.step.current { color: var(--brand); }
.step-dash { color: var(--ink-faint); }
.checkout-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: 2fr 1fr; } }
.checkout-form { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.checkout-form h2 { font-weight: 700; }
.checkout-form .btn-primary { width: 100%; }
.checkout-summary .summary-items { max-height: 18rem; }
.summary-items { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.summary-items li { display: flex; align-items: center; gap: .75rem; font-size: .875rem; }
.summary-items img { height: 3rem; width: 3rem; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.summary-items.bordered { border-top: 1px solid var(--border); padding-top: .75rem; margin-bottom: 0; }
.summary-item-name { flex: 1; min-width: 0; }
.summary-item-name p, .summary-item-name a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; display: block; }
.summary-item-name a:hover { color: var(--brand); }
.summary-item-price { font-weight: 700; }
.state-card { max-width: 36rem; margin: 0 auto; padding: 2.5rem; text-align: center; }
.state-card.left { margin: 0; text-align: left; max-width: none; }
.state-card h1 { font-size: 1.25rem; font-weight: 800; margin: .5rem 0; }
.state-card h2 { font-weight: 700; margin-bottom: 1rem; }
.state-actions { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.order-chip { border-radius: 6px; background: #f3f4f6; padding: 2px 8px; font-weight: 700; }
.success-wrap { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; padding: 2.5rem 0; }
.order-page { max-width: 42rem; padding-top: 2rem; padding-bottom: 3rem; }
.order-meta { margin-bottom: 1.5rem; }
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; font-size: .75rem; text-align: center; }
.order-steps li { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.step-circle { display: grid; place-items: center; height: 36px; width: 36px; border-radius: 999px; background: #f3f4f6; color: var(--ink-faint); font-weight: 700; }
.step-circle.done { background: var(--brand); color: #fff; }
.step-text { color: var(--ink-faint); }
.step-text.done { font-weight: 600; color: var(--ink); }
.track-page { max-width: 36rem; padding: 4rem 1rem; }
.track-form { display: flex; gap: .5rem; }
.track-form .input { flex: 1; }
.notfound { max-width: 36rem; margin: 0 auto; padding: 6rem 1rem; text-align: center; }
.notfound h1 { font-size: 1.875rem; font-weight: 800; margin: .5rem 0; }
.notfound .state-actions { margin-top: 1.5rem; }

/* ── Auth ───────────────────────────────────────────────────────────── */
.auth-page { max-width: 28rem; padding: 4rem 1rem; }
.auth-card { padding: 2rem; }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-icon { display: inline-grid; place-items: center; height: 3rem; width: 3rem; border-radius: 12px; background: var(--brand-soft); font-size: 1.5rem; margin-bottom: .75rem; }
.auth-icon.dark { background: var(--ink); }
.auth-head h1 { font-size: 1.25rem; font-weight: 800; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-alt { margin-top: 1.25rem; text-align: center; font-size: .875rem; color: var(--ink-soft); }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--ink-soft); font-size: .75rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.code-input { font-size: 1.5rem; letter-spacing: .5rem; text-align: center; font-weight: 700; }
.hidden-form { display: none; }
.inline-form { display: inline-block; margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.linklike:disabled { color: var(--ink-soft); cursor: default; text-decoration: none; }
.auth-alt a { font-weight: 600; color: var(--brand); }
.auth-alt a:hover { text-decoration: underline; }
.auth-hint { margin-top: .75rem; text-align: center; font-size: .75rem; color: var(--ink-faint); }
.auth-back { margin-top: 1rem; text-align: center; font-size: .75rem; color: var(--ink-faint); }
.auth-back a:hover { color: var(--brand); }
/* v1.13.0: the emailed-code sign-in method folds away behind a toggle */
.auth-method { margin-top: 1rem; font-size: .875rem; color: var(--ink-soft); text-align: center; }
.auth-method summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.auth-method summary:hover { text-decoration: underline; }
.auth-method[open] summary { margin-bottom: .75rem; }

/* ── Help ───────────────────────────────────────────────────────────── */
.help-page { max-width: 48rem; padding: 2.5rem 1rem; }
.help-intro { margin-bottom: 2rem; }
.help-list { display: flex; flex-direction: column; gap: 1rem; }
.help-section { padding: 1.5rem; scroll-margin-top: 12rem; }
.help-section h2 { margin-bottom: .75rem; font-size: 1.125rem; font-weight: 700; }
.help-section p { margin-bottom: .5rem; font-size: .875rem; line-height: 1.6; color: var(--ink-soft); }
.help-section p:last-child { margin-bottom: 0; }

/* ── Account ────────────────────────────────────────────────────────── */
.account-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.account-head .page-title { margin-bottom: .25rem; }
.account-nav { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }
.stats-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .stats-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid.four { grid-template-columns: repeat(4, 1fr); } }
.stat-card { padding: 1.25rem; }
.stat-icon { font-size: 1.5rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; margin-top: .125rem; }
.data-table { width: 100%; font-size: .875rem; border-collapse: collapse; }
.data-table thead th { padding: .5rem .25rem; border-bottom: 1px solid var(--border); text-align: left; font-size: .75rem; text-transform: uppercase; color: var(--ink-faint); }
.data-table tbody td { padding: .625rem .25rem; border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tfoot td { padding: .25rem .25rem; font-size: .875rem; }
.data-table .total-row td { font-size: 1rem; font-weight: 800; padding-top: .5rem; }
.status-badge { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: .75rem; font-weight: 600; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-emerald { background: #d1fae5; color: #047857; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-gray { background: #e5e7eb; color: #6b7280; }
.cancelled-note { margin-top: .5rem; font-size: .75rem; font-weight: 600; color: #dc2626; }
.progress-row { display: flex; align-items: center; gap: .25rem; margin-top: .75rem; }
.progress-seg { flex: 1; }
.progress-bar { height: 6px; border-radius: 999px; background: #f3f4f6; }
.progress-bar.done { background: var(--brand); }
.progress-label { margin-top: .25rem; font-size: 10px; line-height: 1.2; color: var(--ink-faint); }
.progress-label.done { font-weight: 600; color: var(--ink); }
.order-history-card { }
.order-history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.order-history-side { display: flex; align-items: center; gap: .75rem; }
.profile-col { max-width: 42rem; display: flex; flex-direction: column; gap: 1rem; }
.muted-input { color: var(--ink-faint); background: #f9fafb; }

/* ── Admin ──────────────────────────────────────────────────────────── */
.container.narrow { max-width: 48rem; }
.dash-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .dash-grid { grid-template-columns: 2fr 1fr; } }
.low-stock-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; font-size: .875rem; }
.low-stock-list li { display: flex; align-items: center; gap: .5rem; }
.low-stock-list img { height: 2rem; width: 2rem; border-radius: 6px; object-fit: cover; }
.low-stock-list a { flex: 1; min-width: 0; }
.low-stock-list a:hover { color: var(--brand); }
.table-card { overflow-x: auto; padding: 0; }
.admin-table { min-width: 760px; }
.admin-table thead th { background: #f9fafb; padding: .75rem 1rem; }
.admin-table tbody td { padding: .625rem 1rem; }
.admin-table tbody tr:hover { background: #f9fafb; }
.table-product { display: flex; align-items: center; gap: .75rem; }
.table-product img { height: 2.5rem; width: 2.5rem; border-radius: 8px; object-fit: cover; }
.table-actions { display: flex; justify-content: flex-end; gap: .375rem; }
.btn-mini { display: inline-block; border: 1px solid var(--border); border-radius: 6px; padding: .25rem .625rem; font-size: .75rem; font-weight: 600; background: #fff; }
.btn-mini:hover { border-color: var(--brand); color: var(--brand); }
.btn-mini.amber:hover { border-color: #fbbf24; color: #d97706; }
.btn-mini.red { color: #ef4444; }
.btn-mini.red:hover { border-color: #fca5a5; background: #fef2f2; color: #dc2626; }
.search-row { display: flex; gap: .5rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .375rem; }
.status-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-bottom: .5rem; }
.two-col { display: grid; gap: 1rem; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h3 { font-weight: 700; margin-bottom: .5rem; }
.check-row { display: flex; flex-wrap: wrap; gap: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.check-row label { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; }
.check-row input { height: 1rem; width: 1rem; }
.current-image { display: flex; align-items: center; gap: .75rem; }
.current-image img { height: 4rem; width: 4rem; border-radius: 8px; object-fit: cover; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--border); background: #fff; }
.footer-grid { display: grid; gap: 2rem; padding: 2.5rem 1rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.footer-logo-text { font-size: 1.125rem; font-weight: 800; }
.footer-blurb { font-size: .875rem; line-height: 1.6; color: var(--ink-soft); }
.pay-badges { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: 1rem; }
.pay-badges span { border: 1px solid var(--border); border-radius: 6px; background: #f9fafb; padding: .25rem .5rem; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.site-footer h4 { font-weight: 700; margin-bottom: .75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand); }
.footer-note { margin-top: 1rem; font-size: .75rem; color: var(--ink-faint); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1rem 0; }
.footer-bottom p { max-width: 80rem; margin: 0 auto; padding: 0 1rem; text-align: center; font-size: .75rem; color: var(--ink-faint); }

/* ==========================================================================
   Catalogue-preview banner (APP_ENV=preview only)
   ========================================================================== */

.preview-banner {
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
}
.preview-banner .preview-inner {
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.preview-banner strong { color: var(--brand-light); }
.preview-banner a { color: #fff; text-decoration: underline; margin-left: .25rem; }
