/* ==========================================================
   Surf Daddy Surf Company — brand + storefront + admin styles
   ========================================================== */
:root {
  --navy: #0d2b45;
  --navy-2: #163e60;
  --orange: #f2683a;
  --orange-dark: #d9542a;
  --sun: #ffb347;
  --sand: #f4ead9;
  --sand-2: #fbf6ee;
  --foam: #7fd1c7;
  --ink: #0d2b45;
  --muted: #56708a;
  --line: #e4dccd;
  --white: #ffffff;
  --success: #2e8b57;
  --error: #c0392b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 43, 69, .08);
  --display: 'Bowlby One', Impact, 'Arial Black', sans-serif;
  --script: 'Pacifico', 'Brush Script MT', cursive;
  --body: 'Work 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(--body); color: var(--ink); background: var(--sand-2); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { background: var(--sand); padding: 1px 6px; border-radius: 4px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.muted { color: var(--muted); }
.script { font-family: var(--script); color: var(--orange); font-weight: 400; }
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- Buttons & forms ---------- */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font: 600 1rem var(--body); cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .875rem; }
.btn-lg { padding: 15px 32px; font-size: 1.1rem; }
.btn-danger { background: var(--error); }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--navy); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.form .field, .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .925rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=date], input[type=url], input[type=file], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13, 43, 69, .12); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 8px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.help { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.captcha-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.captcha-row img { border-radius: 8px; border: 1.5px solid var(--line); }

.alert { padding: 12px 16px; border-radius: 10px; margin: 12px 0; border-left: 5px solid; background: #fff; }
.alert-success { border-color: var(--success); background: #eaf7ef; }
.alert-error { border-color: var(--error); background: #fdecea; }
.alert-info { border-color: var(--navy); background: #e9f1f7; }
.alert-warning { border-color: var(--sun); background: #fff6e5; }
.flash-wrap { padding-top: 12px; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 24px; }

/* ---------- Header ---------- */
.announce { background: var(--orange); color: #fff; text-align: center; font-size: .875rem; font-weight: 600; padding: 7px 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand svg { height: 54px; width: auto; display: block; }
.site-nav { display: flex; gap: 22px; align-items: center; flex: 1; }
.site-nav > a, .dropdown > a { text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 3px solid transparent; }
.site-nav a.active { border-color: var(--orange); }
.site-nav .admin-link { color: var(--orange-dark); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: -14px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 210px; display: none; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.dropdown-menu a:hover { background: var(--sand); }
.dropdown-menu .sale-link { color: var(--orange-dark); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.search input { width: 170px; padding: 8px 14px; border-radius: 999px; background: var(--sand-2); }
.icon-link { color: var(--navy); position: relative; display: inline-flex; }
.login-link { font-weight: 600; text-decoration: none; }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(circle at 78% 38%, #ffe2a8 0, rgba(255,226,168,0) 32%), linear-gradient(180deg, #ffd08c 0%, #f9b27a 45%, #f2683a 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; min-height: 520px; padding: 48px 16px 100px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--navy); margin-bottom: .2em; text-shadow: 0 2px 0 rgba(255,255,255,.4); }
.hero h1 .script { display: block; font-size: .7em; color: #fff; text-shadow: 0 3px 0 rgba(13,43,69,.35); }
.hero p.lead { font-size: 1.2rem; color: var(--navy); font-weight: 500; max-width: 34ch; }
.hero-badge { justify-self: center; width: min(380px, 80vw); filter: drop-shadow(0 18px 28px rgba(13,43,69,.35)); animation: bob 6s ease-in-out infinite; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-cta .btn-outline { color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); background: rgba(255,255,255,.35); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }

.trust { background: var(--navy); color: var(--sand); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 18px 16px; gap: 16px; text-align: center; font-weight: 600; font-size: .95rem; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { background: #fff; border-radius: var(--radius); padding: 18px; text-decoration: none; text-align: center; box-shadow: var(--shadow); transition: transform .15s; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--sand); }
.cat-tile span { display: block; font-family: var(--display); margin-top: 10px; letter-spacing: .5px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.product-card:hover { transform: translateY(-3px); }
.card-img { position: relative; display: block; background: var(--sand); }
.card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-size: 1rem; margin-bottom: 4px; }
.card-body h3 a { text-decoration: none; }
.price { font-weight: 700; color: var(--navy); margin: 0; }
.price s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px; border-radius: 999px; }
.badge-sale { background: var(--orange); color: #fff; }
.badge-print { background: var(--navy); color: #fff; top: auto; bottom: 10px; }

/* ---------- Custom print promo ---------- */
.promo { background: var(--navy); color: #fff; border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.promo-copy { padding: 44px; }
.promo h2 { color: var(--sun); }
.promo ul { padding-left: 1.1em; }
.promo-art { background: radial-gradient(circle at 50% 40%, #ffcf8a, #f2683a 60%, #d9542a); display: grid; place-items: center; padding: 30px; }
.promo-art img { width: min(320px, 90%); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding: 32px 0 56px; }
.filters a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; }
.filters a.active, .filters a:hover { background: var(--sand); font-weight: 600; }
.filters h3 { margin-top: 18px; font-family: var(--display); font-weight: 400; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-toolbar select { width: auto; }
.breadcrumbs { font-size: .875rem; color: var(--muted); padding-top: 20px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px 0 56px; }
.gallery-main { background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 74px; cursor: pointer; background: var(--sand); }
.thumbs button.active { border-color: var(--orange); }
.thumbs img { display: block; aspect-ratio: 1; object-fit: cover; }
.product-info .price { font-size: 1.6rem; margin-bottom: 14px; }
.option-group { border: 0; padding: 0; margin: 0 0 18px; }
.option-group legend { font-weight: 700; margin-bottom: 8px; }
.option-group legend span { font-weight: 400; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches label { margin: 0; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; background: #fff; }
.swatches input:checked + label { border-color: var(--navy); background: var(--navy); color: #fff; }
.swatches input:focus-visible + label { box-shadow: 0 0 0 3px rgba(242, 104, 58, .5); }
.swatches label.unavailable { opacity: .4; text-decoration: line-through; }
.stock-note { font-size: .9rem; color: var(--muted); min-height: 1.5em; }
.stock-note.low { color: var(--orange-dark); font-weight: 600; }
.stock-note.out { color: var(--error); font-weight: 600; }
.qty-row { display: flex; gap: 12px; align-items: end; margin: 16px 0; }
.qty-row .field { margin: 0; width: 110px; }
.custom-print { background: var(--sand); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.custom-print summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.custom-print summary::-webkit-details-marker { display: none; }
.custom-print summary::after { content: '+'; font-size: 1.4rem; color: var(--orange); }
.custom-print[open] summary::after { content: '–'; }
.custom-print .inner { margin-top: 14px; }
.print-quote { background: #fff; border-radius: 10px; padding: 10px 14px; font-size: .925rem; }
.description { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Tables / cart ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: var(--sand-2); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 28px 0 56px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { border-radius: 10px; background: var(--sand); aspect-ratio: 1; object-fit: cover; }
.cart-item .meta { font-size: .875rem; color: var(--muted); }
.cart-item .print-meta { font-size: .85rem; color: var(--orange-dark); }
.cart-item .qty { width: 80px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 16px; }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { font-size: 1.25rem; border-top: 2px solid var(--navy); padding-top: 10px; }
.empty-state { text-align: center; padding: 60px 20px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 28px 0 56px; align-items: start; }
.radio-cards { display: grid; gap: 10px; margin-bottom: 18px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: #fff; font-weight: 500; }
.radio-card:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.radio-card input { margin-top: 4px; accent-color: var(--orange); }
.radio-card strong { display: block; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 6px 0; border-bottom: 1px dashed var(--line); }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 460px; margin: 40px auto 64px; }
.auth-wrap h1 { text-align: center; }
.auth-alt { text-align: center; margin-top: 16px; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px 0 56px; }
.account-nav a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.account-nav a.active, .account-nav a:hover { background: var(--sand); }

/* ---------- Status pills ---------- */
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e9eef2; color: var(--navy); white-space: nowrap; }
.status-pending { background: #fff1d6; color: #8a5a00; }
.status-processing { background: #e1efff; color: #1d5ea8; }
.status-printing { background: #fde4da; color: #a23d18; }
.status-shipped, .status-ready { background: #dff4f1; color: #1e6f66; }
.status-completed { background: #e3f4e8; color: #23683f; }
.status-cancelled, .status-refunded { background: #f1e3e3; color: #8a2b2b; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .875rem; }
.cal-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--line); gap: 1px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calendar .dow { background: var(--navy); color: #fff; text-align: center; font-weight: 700; font-size: .8rem; padding: 8px 0; text-transform: uppercase; }
.calendar .day { background: #fff; min-height: 110px; padding: 6px; font-size: .8rem; }
.calendar .day.other { background: var(--sand-2); color: #b0a99b; }
.calendar .day.today { box-shadow: inset 0 0 0 3px var(--orange); }
.calendar .num { font-weight: 700; display: block; margin-bottom: 4px; }
.ev { display: block; border-radius: 6px; padding: 2px 6px; margin-bottom: 3px; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .72rem; }
.ev:hover { color: #fff; filter: brightness(1.1); }
.ev-competition { background: #1f7a8c; --c: #1f7a8c; }
.ev-sale { background: var(--orange); --c: var(--orange); }
.ev-event { background: var(--navy); --c: var(--navy); }
.ev-holiday { background: #8d98a1; --c: #8d98a1; }
.cal-legend .ev-competition, .cal-legend .ev-sale, .cal-legend .ev-event, .cal-legend .ev-holiday { background: none; color: var(--ink); }
.event-list { display: grid; gap: 14px; }
.event-item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.event-date { text-align: center; border-radius: 10px; color: #fff; padding: 8px 4px; line-height: 1.1; }
.event-date .m { font-size: .75rem; text-transform: uppercase; font-weight: 700; }
.event-date .d { font-family: var(--display); font-size: 1.7rem; }
.event-item h3 { margin-bottom: 2px; }

/* ---------- Newsletter / footer ---------- */
.newsletter-band { background: var(--foam); padding: 40px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.newsletter-inner h2 { margin-bottom: 4px; }
.newsletter-inner p { margin: 0; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input[type=email] { border-radius: 999px; border-color: #fff; }
.site-footer { background: var(--navy); color: #cfe3ea; padding: 48px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer h3 { color: var(--sun); font-family: var(--display); font-weight: 400; letter-spacing: .5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; margin-bottom: 10px; }
.footer-logo svg { height: 64px; width: auto; margin-bottom: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding: 18px 16px; font-size: .85rem; color: #8fb0c3; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; background: #fff; text-decoration: none; box-shadow: var(--shadow); }
.pagination .current { background: var(--navy); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 0 56px; }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }

/* ---------- Install ---------- */
body.install { background: var(--sand); padding: 32px 0; }
.install-logo svg { height: 70px; width: auto; display: block; margin: 0 auto 20px; }
.install h2 { font-size: 1.2rem; margin-top: 22px; }

/* ==========================================================
   ADMIN
   ========================================================== */
body.admin { background: #f3f5f7; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #cfe3ea; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand-sm svg { height: 40px; width: auto; margin: 4px 8px 18px; }
.admin-side a { display: flex; justify-content: space-between; align-items: center; color: #dbe9ef; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.admin-side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side a.active { background: var(--orange); color: #fff; }
.admin-side .side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: #7f9fb3; padding: 14px 12px 4px; }
.admin-side .pill { background: var(--orange); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; }
.admin-main { padding: 24px 28px 60px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.7rem; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stat .value { font-family: var(--display); font-size: 1.8rem; color: var(--navy); }
.admin-grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar input, .toolbar select { width: auto; padding: 8px 12px; }
.thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.variant-table input, .variant-table select { padding: 7px 9px; min-width: 70px; }
.variant-table td { padding: 6px 8px; }
.inline-form { display: inline; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 3px solid var(--line); padding: 0 0 14px 14px; position: relative; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); }
.option-builder .opt-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; margin-bottom: 8px; }
.tag { display: inline-block; background: var(--sand); padding: 2px 8px; border-radius: 6px; font-size: .8rem; margin: 2px; }
.admin-toggle { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .search { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-inner { gap: 12px; }
  .brand svg { height: 44px; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 0; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav > a, .dropdown > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .dropdown-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 12px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .hero p.lead { margin: 0 auto 1em; }
  .hero-cta { justify-content: center; }
  .hero-badge { width: 240px; grid-row: 1; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo { grid-template-columns: 1fr; }
  .promo-copy { padding: 28px 22px; }
  .shop-layout, .product-layout, .cart-layout, .checkout-layout, .account-layout, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .filters h3 { display: none; }
  .filters a { white-space: nowrap; background: #fff; }
  .newsletter-inner, .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .calendar .day { min-height: 64px; padding: 3px; }
  .calendar .ev { font-size: 0; height: 6px; padding: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 30% 0 0; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .admin-side.open { transform: none; }
  .admin-toggle { display: inline-flex; }
  .admin-main { padding: 16px; }
  .account-nav { display: flex; overflow-x: auto; gap: 4px; }
  .account-nav a { white-space: nowrap; }
}
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .header-actions { gap: 10px; }
  .login-link { font-size: .9rem; }
}
