/* ==========================================================================
   Storefront theme: midnight sky, violet and gold.
   Colours are tokens; a store can override --primary and --accent.
   ========================================================================== */
:root {
  --night: #14113a;
  --night-2: #241b5e;
  --primary: #6a4bd8;
  --primary-dark: color-mix(in srgb, var(--primary) 75%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 10%, #fff);
  --accent: #f6c453;
  --accent-dark: color-mix(in srgb, var(--accent) 80%, #000);
  --pink: #f4a6c7;
  --text: #1f1b3a;
  --muted: #6e6a8a;
  --border: #e7e3f6;
  --bg: #f8f6ff;
  --card: #ffffff;
  --danger: #c0264b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(36, 27, 94, .08);
  --shadow-lg: 0 20px 50px rgba(36, 27, 94, .18);
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Twinkling star field used on dark surfaces */
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 80px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 160px 20px, #ffe9a8, transparent),
    radial-gradient(1px 1px at 230px 110px, #fff, transparent),
    radial-gradient(2px 2px at 300px 60px, #fff6d6, transparent),
    radial-gradient(1px 1px at 370px 140px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 440px 40px, #fff, transparent);
  background-size: 480px 160px;
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .stars { animation: none; } }

/* ---------- Top bar ---------- */
.topbar { background: var(--night); color: #d9d3ff; font-size: .82rem; }
.topbar .container { display: flex; justify-content: center; gap: 28px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.header { position: relative; z-index: 20; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; }
.header-row { position: relative; display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: #fff; white-space: nowrap; }
.logo img { height: 44px; width: auto; }
.logo-spark { color: var(--accent); font-size: 1.2rem; text-shadow: 0 0 12px var(--accent); }
.search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; display: flex; }
.search input { width: 100%; height: 46px; border: 0; border-radius: 999px; padding: 0 52px 0 20px; font: inherit; color: var(--text);
  background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.search input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.search-btn { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 1.2rem; line-height: 1; }
.cart-link { position: relative; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; padding: 10px 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .08); white-space: nowrap; }
.cart-link:hover { background: rgba(255, 255, 255, .16); }
.cart-icon { font-size: 1.15rem; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--night);
  font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Main menu + mega menu ---------- */
.main-nav { position: relative; background: rgba(255, 255, 255, .05); border-top: 1px solid rgba(255, 255, 255, .08); }
.header .main-nav .container { display: block; height: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.menu-row { display: flex; align-items: center; height: 50px; }
.menu-link { color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; padding: 6px 4px 6px 12px; }
a.menu-link:hover, .menu-item:hover > .menu-row .menu-link, .menu-item.open > .menu-row .menu-link { color: var(--accent); }
.mega-toggle { border: 0; background: none; color: rgba(255, 255, 255, .7); cursor: pointer; padding: 6px 10px 6px 2px; font-size: .75rem; }
.menu-toggle { display: none; border: 0; background: none; font: inherit; font-weight: 700; padding: 12px 0; cursor: pointer; color: #fff; }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; color: var(--text);
  background: var(--card); border-radius: 0 0 24px 24px; box-shadow: var(--shadow-lg); }
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--pink), var(--accent)); }
.menu-item.open > .mega { display: block; }
.header .main-nav .mega-inner { display: flex; align-items: stretch; justify-content: flex-start; height: auto; gap: 40px; padding: 32px 16px 34px; }
.mega-main { flex: 1; display: flex; flex-direction: column; }
.mega-columns { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 28px; align-content: start; }
.mega-heading { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--primary);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-soft); }
a.mega-heading:hover { color: var(--primary-dark); }
.mega-column ul { list-style: none; margin: 0; padding: 0; }
.mega-column li { margin: 0 0 9px; }
.mega-column li a { color: var(--text); font-size: .95rem; display: inline-flex; align-items: baseline; }
.mega-column li a:hover { color: var(--primary); }
.mega-column li a::before { content: '✦'; color: var(--accent); font-size: .6rem; margin-right: 8px; flex-shrink: 0; opacity: 0; transition: opacity .15s; }
.mega-column li a:hover::before { opacity: 1; }
.mega-all { align-self: flex-start; margin-top: 24px; font-weight: 800; color: var(--primary); background: var(--primary-soft);
  padding: 9px 18px; border-radius: 999px; font-size: .9rem; }
.mega-all:hover { background: var(--primary); color: #fff; }
.mega-promo { width: 260px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; position: relative; display: block;
  background: linear-gradient(160deg, var(--night-2), var(--primary)); color: #fff; min-height: 260px; }
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px 18px 70px; }
.mega-promo-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; display: flex; justify-content: space-between;
  align-items: flex-end; gap: 10px; background: linear-gradient(transparent, rgba(20, 17, 58, .85)); }
.mega-promo-text strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.mega-promo-text em { font-style: normal; color: var(--accent); font-weight: 800; white-space: nowrap; font-size: .9rem; }

@media (min-width: 821px) {
  .menu-item.has-mega:hover > .mega, .menu-item.has-mega:focus-within > .mega { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(246, 196, 83, .25), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(244, 166, 199, .25), transparent 40%),
              linear-gradient(135deg, var(--night-2) 0%, var(--primary) 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin: 18px 0 14px; }
.hero p { font-size: 1.15rem; color: #e7e2ff; max-width: 520px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-collage { position: relative; height: 360px; }
.collage-item { position: absolute; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 14px; transition: transform .25s; }
.collage-item img { width: 100%; height: 100%; object-fit: contain; }
.collage-item:hover { transform: translateY(-6px) rotate(0deg) !important; }
.collage-1 { width: 58%; height: 78%; left: 4%; top: 6%; transform: rotate(-4deg); z-index: 2; }
.collage-2 { width: 40%; height: 52%; right: 2%; top: 0; transform: rotate(5deg); }
.collage-3 { width: 42%; height: 50%; right: 8%; bottom: 0; transform: rotate(-2deg); z-index: 3; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; border: 0;
  border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 800; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(106, 75, 216, .3); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: var(--accent); color: var(--night); }
.btn-gold:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); box-shadow: 0 8px 24px rgba(246, 196, 83, .45); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--primary); padding: 0; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; margin-left: 8px; }

/* ---------- Layout ---------- */
main { padding: 36px 0 64px; }
h1 { font-size: 2rem; margin: 0 0 22px; }
.section { margin: 8px 0 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 1.7rem; margin: 0; }
.section-head h2::after { content: ' ✦'; color: var(--accent); font-size: .9em; }
.see-all { font-weight: 800; white-space: nowrap; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.tile img { width: 100%; height: 100%; object-fit: contain; padding: 18px 18px 70px; transition: transform .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile:hover img { transform: scale(1.05); }
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff;
  background: linear-gradient(135deg, var(--night-2), var(--primary)); display: flex; flex-direction: column; }
.tile-label strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.tile-label small { color: #d9d3ff; font-size: .8rem; }

/* Popular figures */
.figure-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.figure-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff;
  color: var(--text); font-weight: 700; box-shadow: var(--shadow); transition: transform .15s; }
.figure-chip:hover { transform: translateY(-2px); color: var(--primary); }
.figure-dot { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--pink)); color: #fff; font-family: var(--font-head); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column;
  overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image { position: relative; display: block; aspect-ratio: 1; overflow: hidden; flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--border); }
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s; }
.card:hover .card-image img { transform: scale(1.04); }
.no-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2rem;
  background: linear-gradient(135deg, var(--primary-soft), #fff); }
.badge-soldout { position: absolute; top: 12px; left: 12px; background: var(--night); color: #fff; font-size: .75rem; font-weight: 800;
  border-radius: 999px; padding: 4px 10px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card .brand { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; min-height: 1.2rem; line-height: 1.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h3 { font-family: var(--font-body); font-weight: 700; font-size: .98rem; margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.35em); }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary); }
.card-footer { margin-top: auto; padding-top: 10px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--primary-dark); }
.btn-add { border: 0; border-radius: 999px; background: var(--accent); color: var(--night); font: inherit; font-weight: 800; font-size: .85rem;
  padding: 8px 14px; cursor: pointer; transition: transform .15s; white-space: nowrap; }
.btn-add:hover { transform: scale(1.05); }

/* ---------- Forms ---------- */
input, select { font: inherit; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; width: 100%; color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 36px; }
.product h1 { font-size: 2rem; margin: 6px 0 12px; }
.product .price { font-size: 1.8rem; }
.product .description { color: var(--muted); }
.stock { color: var(--muted); font-size: .92rem; }
.gallery-main { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); padding: 16px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { border: 2px solid var(--border); border-radius: 12px; padding: 4px; background: #fff; cursor: pointer; width: 72px; height: 72px; overflow: hidden; }
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product .description { margin-top: 24px; }

/* ---------- Tables, cart & checkout ---------- */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--primary-soft); font-size: .85rem; color: var(--primary-dark); }
td.num, th.num { text-align: right; }
td input[type=number] { width: 80px; }
.cart-footer { display: flex; justify-content: flex-end; margin-top: 20px; }
.cart-footer .panel { width: 100%; max-width: 400px; }
.cart-footer .btn { margin-top: 16px; }
.checkout { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-size: 1.1rem; }
.summary-vat { color: var(--muted); font-size: .85rem; padding: 2px 0; }
.thanks-totals { max-width: 400px; margin-top: 16px; }

.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; background: #edfbf3; color: #106b3d; font-weight: 600; }
.alert-error { background: #fdeef2; color: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.pagination { margin-top: 28px; }
.breadcrumbs { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 7px 15px; color: var(--text); font-size: .9rem; font-weight: 600; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ---------- Search suggestions ---------- */
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--card); color: var(--text); border-radius: 18px;
  box-shadow: var(--shadow-lg); z-index: 40; max-height: 70vh; overflow-y: auto; padding: 8px; }
.suggestion { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--text); }
.suggestion:hover, .suggestion.active { background: var(--primary-soft); }
.suggestion-group { border-bottom: 1px solid var(--border); margin-bottom: 6px; padding-bottom: 6px; }
.suggestion-kind { font-size: .72rem; font-weight: 800; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 2px 8px; }
.suggestion-product img, .suggestion-noimg { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; flex-shrink: 0; background: #fff; border: 1px solid var(--border); }
.suggestion-name { flex: 1; }
.suggestion-price { font-weight: 800; white-space: nowrap; color: var(--primary-dark); }
.suggestion-all { justify-content: center; color: var(--primary); font-weight: 800; }
.suggestion-empty { padding: 12px; color: var(--muted); }

/* ---------- Listing with filters ---------- */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.filters-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.filters-panel summary { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.filters-panel summary::-webkit-details-marker { display: none; }
.filters-panel fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.filters-panel legend { font-weight: 800; font-size: .9rem; margin-bottom: 6px; color: var(--primary-dark); }
.filters-panel .btn { margin-top: 16px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0 0 6px; cursor: pointer; }
.check input { width: auto; accent-color: var(--primary); }
.check small { color: var(--muted); }
.price-range { display: flex; align-items: center; gap: 6px; }
.badge { background: var(--accent); color: var(--night); font-size: .7rem; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; font-family: var(--font-body); font-weight: 800; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.result-count { color: var(--muted); font-weight: 600; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { margin: 0; font-weight: 600; color: var(--muted); }
.sort-form select { width: auto; }
.active-filters { margin: 0 0 16px; }

/* ---------- USP bar & footer ---------- */
.usp-bar { background: #fff; border-top: 1px solid var(--border); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.usp-grid div { display: flex; flex-direction: column; }
.usp-grid strong { font-family: var(--font-head); font-weight: 600; }
.usp-grid span { color: var(--muted); font-size: .9rem; }
.footer { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--night-2), var(--night)); color: #cfc8f5; padding: 44px 0 0; }
.footer-grid { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo { font-size: 1.4rem; margin-bottom: 8px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 1.05rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #cfc8f5; }
.footer a:hover { color: var(--accent); }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; padding-bottom: 22px; font-size: .85rem; color: #9d95cf; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { height: 280px; }
}
@media (max-width: 820px) {
  .header-row { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .cart-link { margin-left: auto; }
  .menu-toggle { display: block; }
  .menu { display: none; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .main-nav.menu-open .menu { display: flex; }
  .menu-row { justify-content: space-between; height: 46px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .menu-link { padding-left: 0; }
  .mega-toggle { font-size: 1rem; padding: 8px 4px 8px 16px; }
  .mega { position: static; box-shadow: none; border-radius: 16px; margin-bottom: 8px; }
  .header .main-nav .mega-inner { flex-direction: column; align-items: stretch; padding: 18px 16px; gap: 18px; }
  .mega-columns { grid-template-columns: 1fr 1fr; gap: 16px; }
  .mega-promo { width: 100%; min-height: 200px; }
  .listing, .checkout, .product { grid-template-columns: 1fr; }
  .product { padding: 20px; gap: 24px; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .btn-add span { display: none; }
  .hide-sm, th.hide-sm, td.hide-sm { display: none; }
  .filters-panel summary::after { content: '▾'; float: right; color: var(--muted); }
  .filters-panel[open] summary::after { content: '▴'; }
}
@media (min-width: 821px) {
  .filters-panel summary { pointer-events: none; }
}
@media (max-width: 480px) {
  .logo { font-size: 1.3rem; }
  .hero-grid { padding-top: 36px; padding-bottom: 40px; }
  .hero-collage { height: 220px; }
  .card-body { padding: 10px 12px 12px; }
  .price { font-size: 1rem; }
  .mega-columns { grid-template-columns: 1fr; }
}

/* Brand logo image */
.header .logo img { height: 50px; }
.footer-logo img { height: 44px; width: auto; }
@media (max-width: 480px) { .header .logo img { height: 40px; } }

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.pager a:hover { color: var(--primary); }
.pager .current { background: var(--primary); color: #fff; }
.pager .disabled { opacity: .4; box-shadow: none; }
.pager .gap { background: none; box-shadow: none; min-width: 20px; padding: 0; }
.pager-info { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* Product details: description + specifications */
.product-details { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 28px; align-items: start; }
.product-details h2 { font-size: 1.4rem; margin: 0 0 14px; }
.rich-text { color: var(--text); }
.rich-text h2, .rich-text h3 { font-size: 1.15rem; margin: 20px 0 8px; color: var(--primary-dark); }
.rich-text h2:first-child, .rich-text h3:first-child { margin-top: 0; }
.rich-text p { margin: 0 0 12px; }
.rich-text ul { padding-left: 20px; margin: 0 0 12px; }
.rich-text li { margin-bottom: 4px; }
.product-specs dl { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; }
.product-specs dt, .product-specs dd { padding: 10px 0; border-bottom: 1px solid var(--border); margin: 0; }
.product-specs dt { color: var(--muted); font-weight: 700; padding-right: 18px; }
.product-specs dd { font-weight: 600; }
.related { margin-top: 40px; }
@media (max-width: 820px) { .product-details { grid-template-columns: 1fr; } }
