/* Berries Store: layered on each page's site styles and colour tokens. */
:root { --sale: #C2410C; --sale-bg: #F97316; --sale-ink: #1A0A00; --ok-bg: #E4F2E8; --ok-ink: #14532D; --err: #B3261E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --sale: #FB923C; --ok-bg: #12301D; --ok-ink: #A7E3B8; --err: #FF8A80; }
}
:root[data-theme="dark"] { --sale: #FB923C; --ok-bg: #12301D; --ok-ink: #A7E3B8; --err: #FF8A80; }

.store-bar { position: sticky; top: 0; z-index: 4; background: var(--bg); border-bottom: 1px solid var(--border); }
.store-bar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.store-bar nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; }
.store-bar nav a { text-decoration: none; color: var(--text); }
.store-bar nav a:hover { color: var(--gold); }
.cart-link { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--text); border-radius: 4px; text-decoration: none; color: var(--text); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cart-link:hover { border-color: var(--gold); color: var(--gold); }
.cart-link svg { width: 18px; height: 18px; }

.store-section { padding: clamp(28px, 4vw, 44px) 0 8px; }
.store-section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.muted { color: var(--text-soft); }

.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.path { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-raised); text-decoration: none; color: var(--text); transition: transform .15s; }
.path:hover { transform: translateY(-2px); }
.path.primary { background: var(--gold-500); border-color: var(--gold-500); color: #FFFFFF; }
.path .kicker { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--gold); }
.path.primary .kicker { color: #DCE4FF; }
.path .title { font-family: 'Anton', sans-serif; font-size: 1.8rem; text-transform: uppercase; line-height: 1.05; }
.path .go { margin-top: auto; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.clearance { background: var(--maroon-700); border-radius: 10px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.clearance h2 { color: #F4EEE0; }
.clearance .lede { color: #C9D6E2; margin: 0; }
.sale-tag { align-self: flex-start; background: var(--sale-bg); color: var(--sale-ink); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; padding: 3px 10px; border-radius: 3px; }
.clearance-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.clearance-card { display: flex; gap: 14px; align-items: center; background: #FFFFFF; color: #0B1016; border-radius: 8px; padding: 12px; text-decoration: none; }
.clearance-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; flex: none; }
.clearance-card .now { font-family: 'Anton', sans-serif; font-size: 1.5rem; color: #C2410C; }
.clearance-card .was { color: #4A5662; text-decoration: line-through; font-size: 0.9rem; margin-left: 8px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg-raised); color: var(--text); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .15s; }
.product-card:hover { box-shadow: var(--shadow); }
.product-card .ph { position: relative; aspect-ratio: 1 / 1; background: #F2F4F6; }
.product-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; color: #FFFFFF; background: var(--maroon-700); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; padding: 3px 9px; border-radius: 3px; }
.badge.sale { background: #C2410C; }
.badge.out { background: #4A5662; }
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card .group { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--text-soft); }
.product-card .name { font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.product-card .opts { font-size: 0.9rem; color: var(--text-soft); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-family: 'Anton', sans-serif; font-size: 1.45rem; }
.price.sale { color: var(--sale); }
.was { color: var(--text-soft); text-decoration: line-through; font-size: 0.9rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.step .n { font-family: 'Anton', sans-serif; font-size: 2rem; color: var(--gold); line-height: 1; }

.btn-store { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 6px; background: var(--gold-500); color: #FFFFFF; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem; cursor: pointer; text-decoration: none; }
.btn-store:disabled { opacity: 0.5; cursor: default; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--text); }

.item-layout { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 44px); padding: 24px 0 40px; }
.gallery { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery .main { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #F2F4F6; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { width: 84px; height: 84px; padding: 0; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--border); background: none; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--gold-500); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.item-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.item-info h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.size-legend { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0; margin-bottom: 10px; }
fieldset.sizes { border: 0; padding: 0; margin: 0; }
.size-row { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn { min-width: 76px; min-height: 56px; padding: 6px 12px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--bg-raised); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; }
.size-btn b { font-family: 'Barlow Condensed', sans-serif; font-size: 1.15rem; }
.size-btn small { font-size: 0.75rem; opacity: 0.85; }
.size-btn[aria-pressed="true"] { background: var(--gold-500); border-color: var(--gold-500); color: #FFFFFF; }
.size-btn:disabled { opacity: 0.45; cursor: default; text-decoration: line-through; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.opt-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.opt-field select { min-height: 48px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 6px; background: var(--bg-raised); color: var(--text); font: inherit; font-weight: 400; }
.early-bird { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 8px; background: var(--maroon-700); color: #F4EEE0; }
.early-bird strong { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: #8FA8F2; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 6px; background: var(--bg-raised); }
.qty button { width: 48px; height: 52px; border: 0; background: none; font-size: 1.4rem; color: var(--text); cursor: pointer; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; }
.buy-row .btn-store { flex: 1 1 220px; }
.notice { padding: 12px 16px; border-radius: 6px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice.err { background: transparent; color: var(--err); border: 1px solid var(--err); }
.notice a { color: inherit; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.info-box { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; }
.info-box p { margin: 0; }

.cart-layout { display: flex; flex-wrap: wrap; gap: 28px; padding: 24px 0 48px; align-items: flex-start; }
.cart-lines { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: flex; gap: 14px; align-items: center; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; padding: 12px; flex-wrap: wrap; }
.cart-line img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.cart-line .meta { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line .remove { border: 0; background: none; color: var(--err); text-decoration: underline; cursor: pointer; padding: 6px 0; font: inherit; font-size: 0.9rem; align-self: flex-start; min-height: 32px; }
.cart-summary { flex: 1 1 300px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-row.total { border-top: 1px solid var(--border); padding-top: 12px; font-weight: 700; font-size: 1.25rem; }
.sum-row.save { color: var(--sale); }
.empty { padding: 32px; text-align: center; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; }
.loading { color: var(--text-soft); padding: 24px 0; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold-500); color: #FFFFFF; font-size: 0.85rem; letter-spacing: 0; }
@media (max-width: 620px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card .body { padding: 10px 12px 12px; }
  .product-card .name { font-size: 0.98rem; }
  #crumb-name, .store-bar nav span[aria-hidden] { display: none; }
  .store-bar .wrap { flex-wrap: nowrap; }
}
