/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:    #c0392b;
  --brand-dk: #96281b;
  --dark:     #1a1a2e;
  --text:     #222;
  --muted:    #666;
  --border:   #e2e2e2;
  --bg:       #f7f6f4;
  --card-bg:  #fff;
  --radius:   6px;
  --shadow:   0 1px 4px rgba(0,0,0,.08);
}

body { font-family: system-ui, -apple-system, sans-serif; font-size: 15px; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }

/* ── Header ───────────────────────────────────────────────── */
.holiday-banner { background: #92400e; color: #fff; text-align: center; padding: 9px 20px; font-size: 14px; font-weight: 500; }

.rec-columns { max-width: 1240px; margin: 40px auto 0; padding: 28px 20px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .rec-columns { grid-template-columns: 1fr; gap: 24px; } }
.rec-col-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.rec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rec-link { display: flex; align-items: center; gap: 10px; }
.rec-thumb { width: 52px; height: 52px; flex-shrink: 0; background: #f0eeec; border-radius: 5px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rec-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rec-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-name { font-size: 13px; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec-link:hover .rec-name { color: var(--brand); }
.rec-price { font-size: 13px; font-weight: 600; color: var(--brand); }

.wishlist-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; font-size: 14px; color: var(--muted); cursor: pointer; transition: .12s; }
.wishlist-btn:hover { border-color: var(--brand); color: var(--brand); }
.wishlist-btn.saved { color: var(--brand); border-color: var(--brand); font-weight: 600; }

.site-topbar { background: var(--brand-dk); color: #fff; font-size: 13px; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 5px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-newsletter { color: #fff; opacity: .92; }
.topbar-newsletter:hover { opacity: 1; text-decoration: underline; }
.topbar-social { display: flex; align-items: center; gap: 12px; }
.topbar-social a { color: #fff; opacity: .85; display: inline-flex; }
.topbar-social a:hover { opacity: 1; }

.cart-icon-wrap { position: relative; display: inline-flex; }
.cart-header-total { font-size: 13px; font-weight: 600; color: #fff; margin-left: 8px; }

.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 20px; }

.site-logo { font-size: 20px; font-weight: 700; letter-spacing: -.5px; color: #fff; white-space: nowrap; }
.site-logo span { color: var(--brand); }

.header-search { flex: 1; display: flex; max-width: 480px; }
.search-input  { flex: 1; padding: 7px 12px; border: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 14px; outline: none; }
.search-btn    { padding: 7px 14px; background: var(--brand); color: #fff; border: none; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; }
.search-btn:hover { background: var(--brand-dk); }

.header-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-account { font-size: 14px; color: rgba(255,255,255,.85); white-space: nowrap; }
.nav-account:hover { color: #fff; }
.cart-link  { display: flex; align-items: center; gap: 4px; color: #fff; position: relative; }
.cart-badge { background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; position: absolute; top: -6px; right: -8px; }

/* ── Main ─────────────────────────────────────────────────── */
.site-main { max-width: 1240px; margin: 0 auto; padding: 24px 20px; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 20px; font-size: 13px; color: var(--muted); }

/* ── Catalogue layout ─────────────────────────────────────── */
.catalogue-layout { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
@media (max-width: 700px) { .catalogue-layout { grid-template-columns: 1fr; } .filters { display: none; } }

/* ── Filters ──────────────────────────────────────────────── */
.filters { font-size: 13px; }
.filter-group { margin-bottom: 20px; }
.filter-title { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 8px; }
.filter-check { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.filter-check input { accent-color: var(--brand); }
.filter-select { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; background: #fff; }
.filter-clear { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--brand); }

/* ── Product grid ─────────────────────────────────────────── */
.shop-heading { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.results-bar { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

.product-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.product-card-link { flex: 1; display: flex; flex-direction: column; }

.product-image { aspect-ratio: 1; overflow: hidden; background: #f0eeec; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }

.product-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-name  { font-size: 14px; font-weight: 600; line-height: 1.3; }
.product-meta  { display: flex; flex-wrap: wrap; gap: 4px; }
.product-price { font-size: 16px; font-weight: 700; color: var(--brand); margin-top: auto; }

.add-form { padding: 0 12px 12px; }
.btn-add { width: 100%; padding: 8px; background: var(--dark); color: #fff; border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; }
.btn-add:hover { background: var(--brand); }

/* ── Badges ───────────────────────────────────────────────── */
.badge       { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 20px; background: #eee; color: var(--text); }
.badge-muted { background: #f0eeec; color: var(--muted); }

/* ── Stock labels ─────────────────────────────────────────── */
.stock-label    { font-size: 12px; font-weight: 600; }
.stock-in-stock { color: #16a34a; }
.stock-backorder{ color: #b45309; }
.stock-made-to-order{ color: #b45309; }
.stock-out      { color: #dc2626; }

/* ── Product detail ───────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 700px) { .product-detail { grid-template-columns: 1fr; } }

.product-detail-image { background: #f0eeec; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
/* contain (not cover) so tall/wide product images are shown whole, never cropped */
.product-detail-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-no-image.large { height: 400px; }

.product-gallery { display: flex; flex-direction: column; gap: 10px; }
.product-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.product-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 6px;
  border: 2px solid transparent; background: #f0eeec; cursor: pointer; transition: border-color .12s;
}
.product-thumb:hover { border-color: var(--muted); }
.product-thumb.active { border-color: var(--accent, #1d4ed8); }

.breadcrumb  { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--brand); }
.detail-name { font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.detail-price { font-size: 28px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.detail-sale  { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-bottom: 4px; }
.detail-short-desc { margin: 16px 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.detail-add-form { margin: 20px 0; }
.qty-row { display: flex; gap: 10px; align-items: center; }
.qty-input { width: 64px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; text-align: center; }
.detail-description { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.detail-description h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.desc-body { font-size: 14px; line-height: 1.7; }
.detail-meta-table { margin-top: 24px; font-size: 13px; }
.meta-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.meta-row span:first-child { color: var(--muted); }

/* ── Cart ─────────────────────────────────────────────────── */
.page-narrow { max-width: 760px; margin: 0 auto; }
.page-title  { font-size: 24px; font-weight: 700; margin-bottom: 24px; }

.cart-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th { text-align: left; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: #f9f9f9; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product-link { color: var(--text); font-weight: 500; }
.cart-product-link:hover { color: var(--brand); }
.cart-thumb   { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.qty-input-sm { width: 54px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; font: inherit; }
.btn-remove   { background: none; border: none; color: var(--muted); font-size: 16px; padding: 4px 8px; }
.btn-remove:hover { color: var(--brand); }

.cart-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.cart-total  { font-size: 18px; display: flex; gap: 12px; align-items: center; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 20px; }

/* ── Cart shipping estimate ────────────────────────────────── */
.shipping-est-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.shipping-est-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.shipping-est-title { font-weight: 600; font-size: 14px; white-space: nowrap; }

.country-picker { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.country-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; font-size: 14px; }
.country-input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.country-drop { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 200; max-height: 260px; overflow-y: auto; }
.country-opt { padding: 9px 14px; font-size: 14px; cursor: pointer; }
.country-opt:hover, .country-opt.focused { background: #f3f4f6; }
.country-opt mark { background: none; color: var(--brand); font-weight: 600; }

.est-options { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.est-method { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.est-method.cheapest { border-color: var(--brand); background: #fef2f2; }
.est-name { flex: 1; }
.est-cost { font-weight: 600; white-space: nowrap; }
.est-method.cheapest .est-cost { color: var(--brand); }
.cheapest-tag { display: inline-block; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 10px; margin-left: 8px; vertical-align: middle; }
.est-grand { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 15px; }
.est-grand strong { font-size: 18px; color: var(--brand); }
.est-note { font-size: 12px; color: var(--muted); }
.est-loading, .est-none { font-size: 13px; color: var(--muted); margin-top: 10px; padding: 8px 0; }
.est-duty-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 7px 10px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; font-size: 13px; color: #92400e; }
.duty-info-link { color: #92400e; text-decoration: underline; font-size: 12px; white-space: nowrap; }

/* ── VAT display ──────────────────────────────────────────── */
.price-ex-vat { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.product-price .price-ex-vat { font-size: 11px; }
.detail-price .price-ex-vat { font-size: 13px; margin-top: 4px; }

.cart-total-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cart-vat-row, .cart-exvat-row { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.cart-vat-row { color: #374151; }

.summary-fee--vat { color: #374151; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 2px; }
.summary-fee--muted { font-size: 12px; color: var(--muted); }

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
@media (max-width: 780px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-form-wrap { max-width: 540px; }
.form-section { border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; margin-bottom: 16px; background: var(--card-bg); }
.form-section-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.form-field { margin-top: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #374151; }
.form-field input, .form-field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; font-size: 14px; background: #fff; box-sizing: border-box; transition: border-color .15s; }
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(185,28,28,.1); }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.req { color: var(--brand); font-weight: 400; }
.form-error { background: #fee2e2; color: #dc2626; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }

.shipping-hint { font-size: 13px; color: var(--muted); padding: 8px 0; margin: 0; }
.shipping-option { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 8px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.shipping-option:has(input:checked) { border-color: var(--brand); background: #fef2f2; }
.shipping-option input[type=radio] { flex-shrink: 0; accent-color: var(--brand); width: 16px; height: 16px; }
.ship-name { flex: 1; font-size: 14px; }
.ship-cost { font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }

.payment-notice { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 12px 0; margin-bottom: 16px; }

/* ── Order summary ────────────────────────────────────────── */
.order-summary { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 24px; position: sticky; top: 80px; }
.summary-title { font-size: 15px; font-weight: 700; margin: 0 0 16px; }

.summary-items { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 0; }
.summary-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.summary-item + .summary-item { border-top: 1px solid var(--bg); }
.summary-item-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; border: 1px solid var(--border); display: block; }
.summary-item-thumb--empty { background: var(--bg); }
.summary-item-info { min-width: 0; }
.summary-item-name { display: block; font-size: 13px; font-weight: 500; color: #374151; line-height: 1.35; text-decoration: none; }
.summary-item-name:hover { color: var(--accent); text-decoration: underline; }
.summary-item-qty { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.summary-item-price { font-size: 13px; font-weight: 600; white-space: nowrap; }

.summary-fees { border-bottom: 1px solid var(--border); padding: 10px 0; }
.summary-fee { display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; color: #374151; padding: 4px 0; }
.summary-fee--duty { color: #92400e; }
.summary-fee-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.duty-what-link { display: block; font-size: 11px; color: #b45309; text-decoration: underline; margin-top: 2px; }
.duty-what-link:hover { color: #92400e; }

.summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; margin-top: 0; font-size: 16px; font-weight: 600; }
.summary-total strong { font-size: 22px; font-weight: 700; color: #111; }

/* ── Confirm ──────────────────────────────────────────────── */
.confirm-page { text-align: center; padding-top: 60px; }
.confirm-icon { width: 64px; height: 64px; background: #dcfce7; color: #16a34a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin: 0 auto 20px; }
.confirm-ref  { font-size: 18px; margin: 16px 0 8px; }
.confirm-msg  { font-size: 14px; color: var(--muted); max-width: 400px; margin: 0 auto 28px; line-height: 1.6; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary   { display: inline-block; padding: 10px 20px; background: var(--brand); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.btn-primary:hover { background: var(--brand-dk); }
.btn-secondary { display: inline-block; padding: 10px 20px; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.btn-secondary:hover { border-color: #aaa; }
.btn-lg   { padding: 12px 28px; font-size: 15px; }
.btn-full { width: 100%; text-align: center; }

/* ── Misc ─────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 32px; justify-content: center; flex-wrap: wrap; }
.page-btn { display: inline-block; padding: 7px 13px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; background: #fff; color: var(--text); }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-current { background: var(--dark); color: #fff; border-color: var(--dark); }
.page-ellipsis { padding: 7px 4px; color: var(--muted); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 16px; }
.empty-state a { color: var(--brand); }
.shop-error  { background: #fee2e2; color: #dc2626; padding: 16px; border-radius: var(--radius); margin-bottom: 20px; }

/* ── Auth / Account ───────────────────────────────────────── */
.auth-wrap { max-width: 420px; margin: 40px auto; }
.auth-form { display: flex; flex-direction: column; gap: 4px; }
.auth-alt  { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--brand); }
.req { color: var(--brand); }

.account-nav { display: flex; gap: 8px; margin-bottom: 28px; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.account-nav-link { padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.account-nav-link:hover { color: var(--text); }
.account-nav-link.active { color: var(--brand); border-bottom-color: var(--brand); }

.settings-card { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.settings-card-title { padding: 14px 20px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.chpass-toggle { cursor: pointer; user-select: none; }
.chpass-toggle:hover { background: #f0f0f0; }
.settings-card-body  { padding: 20px; }
.settings-muted { color: var(--muted); font-weight: 400; }
.settings-help  { font-size: 12px; color: var(--muted); margin-top: 4px; }

.form-success { background: #dcfce7; color: #16a34a; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.form-error   { background: #fee2e2; color: #dc2626;  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }

.order-status { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.status-pending    { background: #fef9c3; color: #854d0e; }
.status-processing { background: #dbeafe; color: #1d4ed8; }
.status-completed  { background: #dcfce7; color: #15803d; }
.status-cancelled  { background: #f1f5f9; color: #64748b; }
.status-refunded   { background: #f1f5f9; color: #64748b; }
.status-paid       { background: #dcfce7; color: #15803d; }
.status-unpaid     { background: #fef9c3; color: #854d0e; }

.order-row { cursor: pointer; }
.order-row:hover td { background: #f9f9f9; }
.order-ref-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.order-ref-link:hover { text-decoration: underline; }

.order-detail-header { margin-bottom: 4px; }
.order-meta-grid { display: flex; gap: 32px; flex-wrap: wrap; padding: 16px 0; }
.order-meta-item {}
.order-meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.order-meta-value { font-size: 14px; font-weight: 500; }

.order-totals { padding: 16px 20px; border-top: 1px solid var(--border); }
.order-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: var(--muted); }
.order-total-final { font-size: 16px; font-weight: 700; color: var(--text); padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--border); }

/* ── Category nav ──────────────────────────────────────────── */
.cat-nav { background: var(--card-bg); border-bottom: 1px solid var(--border); }
.cat-nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item { position: relative; }
.cat-nav-link { display: block; padding: 10px 14px; font-size: 14px; color: var(--text); white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.cat-nav-arrow { font-size: 10px; color: var(--muted); }
.cat-nav-sub { display: none; position: absolute; top: 100%; left: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,.1); min-width: 160px; z-index: 200; }
.cat-nav-item.has-sub:hover .cat-nav-sub { display: block; }
.cat-nav-sub-link { display: block; padding: 9px 16px; font-size: 14px; color: var(--text); white-space: nowrap; }
.cat-nav-sub-link:hover { background: var(--bg); color: var(--brand); }

/* ── Category chips ────────────────────────────────────────── */
.cat-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cat-chip { display: inline-block; font-size: 11px; padding: 2px 8px; background: #f0f0ef; border-radius: 10px; color: var(--muted); }
.cat-chip-link { text-decoration: none; }
.cat-chip-link:hover { background: var(--brand); color: #fff; }

/* ── Category page ─────────────────────────────────────────── */
.category-hero { margin-bottom: 24px; }
.cat-desc { color: var(--muted); font-size: 15px; margin-top: 6px; }
.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 28px; }
.subcat-card { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 12px; text-align: center; font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s; }
.subcat-card:hover { border-color: var(--brand); color: var(--brand); }

/* ── Category sidebar widget ───────────────────────────────── */
.cat-widget { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.cat-sidebar-tree { list-style: none; margin: 0; padding: 0; }
.cat-sidebar-item { margin: 0; }
.cat-sidebar-row { display: flex; align-items: center; }
.cat-sidebar-toggle { background: none; border: none; padding: 0 4px 0 0; cursor: pointer; font-size: 9px; color: var(--muted); flex-shrink: 0; line-height: 1; }
.cat-sidebar-toggle:hover { color: var(--brand); }
.cat-sidebar-link { display: block; padding: 5px 0; font-size: 13px; color: var(--text); line-height: 1.3; }
.cat-sidebar-link:hover { color: var(--brand); }
.cat-sidebar-link.cat-sidebar-active { color: var(--brand); font-weight: 600; }
.cat-sidebar-count { color: var(--muted); font-size: 11px; font-weight: 400; }
.cat-sidebar-sub { list-style: none; margin: 0; padding: 0 0 0 12px; display: none; }
.cat-sidebar-sub.open { display: block; }
.cat-sidebar-link-child { font-size: 12px; }

/* ── News / Blog ──────────────────────────────────────────── */
.news-page { max-width: 1100px; margin: 0 auto; }
.news-hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.news-heading { font-size: 28px; font-weight: 700; margin: 0; }
.news-search-form { display: flex; align-items: center; gap: 8px; }
.news-search-input { border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 12px; font-size: 14px; min-width: 200px; }
.news-search-btn { background: var(--brand); color: #fff; border: none; border-radius: var(--radius); padding: 7px 14px; font-size: 14px; cursor: pointer; }
.news-search-clear { color: var(--muted); font-size: 18px; text-decoration: none; line-height: 1; }
.news-layout { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
@media (max-width: 640px) { .news-layout { grid-template-columns: 1fr; } .news-sidebar { order: -1; } }
.news-sidebar-block { margin-bottom: 24px; }
.news-sidebar-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.news-cat-list { list-style: none; margin: 0; padding: 0; }
.news-cat-item { border-radius: 4px; margin-bottom: 2px; }
.news-cat-item a { display: block; padding: 6px 10px; font-size: 14px; color: var(--text); border-radius: 4px; }
.news-cat-item a:hover { background: var(--border); }
.news-cat-active a { background: var(--brand); color: #fff !important; }
.news-main { min-width: 0; }
.news-empty { color: var(--muted); font-size: 15px; margin-top: 16px; padding: 40px; text-align: center; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.news-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.news-card-img-link { display: block; background: #f0f0f0; }
.news-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-card-img-placeholder { height: 120px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: rgba(255,255,255,.4); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.news-card-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.news-card-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); padding: 2px 6px; border: 1px solid currentColor; border-radius: 3px; }
.news-card-cat:hover { background: var(--brand); color: #fff; }
.news-card-date { font-size: 12px; color: var(--muted); }
.news-card-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.news-card-title-sm { font-size: 15px; }
.news-card-title a:hover { color: var(--brand); }
.news-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; margin-bottom: 12px; }
.news-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.news-card-read { font-size: 13px; font-weight: 600; color: var(--brand); margin-top: auto; }
.news-card-read:hover { text-decoration: underline; }
.news-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.news-page-btn { display: inline-block; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-weight: 500; }
.news-page-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.news-page-info { font-size: 13px; color: var(--muted); }

.news-post-page { max-width: 1100px; margin: 0 auto; }
.news-post-header { max-width: 740px; margin: 0 auto 28px; }
.news-back { font-size: 13px; color: var(--brand); display: inline-block; margin-bottom: 16px; }
.news-back:hover { text-decoration: underline; }
.news-post-title { font-size: 34px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.news-post-byline { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.news-post-author { font-weight: 600; color: var(--text); }
.news-post-date { }
.news-post-reading-time { }
.news-post-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.news-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.news-tag { font-size: 12px; background: #f0f0f0; border-radius: 3px; padding: 2px 8px; color: var(--muted); }
.news-post-hero { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.news-post-hero-img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.news-post-layout { display: grid; grid-template-columns: 1fr 200px; gap: 40px; align-items: start; max-width: 1100px; margin: 0 auto 40px; }
@media (max-width: 768px) { .news-post-layout { grid-template-columns: 1fr; } .news-post-sidebar { display: none; } }
.news-post-body { min-width: 0; }
.news-post-sidebar { position: sticky; top: 24px; }
.news-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 740px; margin: 0 auto 40px; border-top: 1px solid var(--border); padding-top: 24px; }
.news-post-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.news-post-nav-link:hover { border-color: var(--brand); }
.news-post-nav-next { text-align: right; }
.news-post-nav-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.news-post-nav-title { font-size: 14px; font-weight: 500; color: var(--text); }
.news-related { max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 32px; }
.news-related-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

.prose { line-height: 1.75; font-size: 16px; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-weight: 700; margin: 1.5em 0 .6em; line-height: 1.25; }
.prose h1 { font-size: 1.8em; }
.prose h2 { font-size: 1.4em; border-bottom: 1px solid var(--border); padding-bottom: .3em; }
.prose h3 { font-size: 1.15em; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1em 1.6em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; max-width: 100%; }
.prose blockquote { border-left: 3px solid var(--brand); padding-left: 20px; color: var(--muted); margin: 1.2em 0; font-style: italic; }
.prose code { background: #f0f0f0; padding: 2px 5px; border-radius: 3px; font-size: .9em; font-family: monospace; }
.prose pre { background: #1e1e2e; color: #cdd6f4; padding: 16px 20px; border-radius: var(--radius); overflow-x: auto; margin-bottom: 1.2em; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: #f7f7f7; font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ── Checkout account nudge / bar ──────────────────────────────────────────── */
.checkout-account-nudge {
  background: #f5f7ff;
  border: 1px solid #d0d9f0;
  border-radius: var(--radius);
  padding: .65rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  color: var(--muted);
}
.checkout-account-nudge a { color: var(--brand); font-weight: 500; }
.checkout-account-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #f0faf4;
  border: 1px solid #b8ddc8;
  border-radius: var(--radius);
  padding: .6rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  color: var(--text);
}
.checkout-account-signout { margin-left: auto; font-size: .8rem; color: var(--muted); }
.checkout-account-signout:hover { color: var(--text); }
.form-optional { font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: .25rem; }
.checkout-create-account { margin-top: .25rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; color: var(--text); cursor: pointer; }
.checkbox-label input[type=checkbox] { flex-shrink: 0; margin-top: .2rem; accent-color: var(--brand); width: 16px; height: 16px; cursor: pointer; }
.create-account-fields { margin-top: .75rem; padding-left: 1.5rem; border-left: 2px solid var(--border); }
.create-account-fields .form-field { margin-bottom: .75rem; }
.create-account-fields .form-field:last-child { margin-bottom: 0; }

/* ── Payment method tabs ─────────────────────────────────────────────────── */
.pay-method-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.pay-method-tab {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pay-method-tab--active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, #fff);
  font-weight: 600;
}
.pay-tab-paypal-logo { height: 20px; display: block; }
.paypal-hint { font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }

/* ── Saved address selector ──────────────────────────────────────────────── */
.saved-address-select { margin-bottom: 1rem; }

/* ── Field validation errors ─────────────────────────────────────────────── */
.field--error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important; }
.section--error .form-section-heading { color: #dc2626; }
.section--error #shippingOptions { outline: 2px solid #dc2626; outline-offset: 4px; border-radius: 4px; }
