/* ==========================================================================
   MEMZ design system
   Brand palette (from the identity guide): Burgundy #6C141E · Cream #F5DABE · Deep Green #0F3C39
   ========================================================================== */
:root {
  --burgundy: #6c141e;
  --burgundy-700: #55101a;
  --burgundy-900: #3a0a11;
  --burgundy-100: #f3e3e4;
  --cream: #f5dabe;
  --cream-200: #f9e8d3;
  --cream-100: #fdf6ec;
  --green: #0f3c39;
  --green-700: #0b2e2c;
  --green-100: #e2eeec;
  --white: #ffffff;
  --ink: #2a1215;
  --muted: #7a6466;
  --line: #ead9c6;
  --ok: #1d7a55; --warn: #b7791f; --bad: #b42335; --info: #2a6f97;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(58, 10, 17, .06), 0 2px 8px rgba(58, 10, 17, .05);
  --shadow-md: 0 8px 28px rgba(58, 10, 17, .12);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--burgundy); letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: var(--r-pill);
  padding: 12px 24px; font-weight: 600; font-size: .95rem; transition: transform .15s, background .2s, color .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--burgundy); color: var(--cream-100); }
.btn-primary:hover:not(:disabled) { background: var(--burgundy-700); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green); color: var(--cream-100); }
.btn-green:hover:not(:disabled) { background: var(--green-700); }
.btn-cream { background: var(--cream); color: var(--burgundy); }
.btn-cream:hover { background: var(--cream-200); }
.btn-outline { background: transparent; border-color: var(--burgundy); color: var(--burgundy); }
.btn-outline:hover:not(:disabled) { background: var(--burgundy); color: var(--cream-100); }
.btn-ghost { background: transparent; color: var(--burgundy); padding-inline: 12px; }
.btn-ghost:hover { background: var(--burgundy-100); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: var(--bad); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--burgundy); display: grid; place-items: center; position: relative; font-size: 1.25rem; }
.icon-btn:hover { background: var(--burgundy-100); }
.badge-dot { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: .85rem; font-weight: 600; color: var(--burgundy); }
.input, select.input, textarea.input, .field input:not([type=checkbox]):not([type=file]), .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); padding: 12px 14px; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(108, 20, 30, .12); }
textarea.input, .field textarea { min-height: 96px; resize: vertical; }
.validation-message, .field-error { color: var(--bad); font-size: .82rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--burgundy); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: .92rem; margin-bottom: 16px; }
.alert.bad { background: #fbe9eb; color: var(--bad); border: 1px solid #f0c3c8; }
.alert.ok { background: #e4f4ec; color: var(--ok); border: 1px solid #bfe3d0; }
.alert.info { background: var(--green-100); color: var(--green); border: 1px solid #c3dcd8; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--green); color: var(--cream); font-size: .82rem; }
.announce .container { display: flex; justify-content: center; gap: 28px; padding-block: 9px; flex-wrap: wrap; text-align: center; }
.announce b { color: #fff; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-block: 12px; }
.brand img { height: 46px; width: auto; }
.search { position: relative; max-width: 640px; width: 100%; margin-inline: auto; }
.search input { width: 100%; border: 1.5px solid transparent; background: var(--cream-100); border-radius: var(--r-pill); padding: 12px 52px 12px 22px; font: inherit; transition: .2s; }
.search input:focus { outline: none; background: #fff; border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(108, 20, 30, .1); }
.search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--burgundy); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); border: 0; background: transparent; font-weight: 600; color: var(--burgundy); }
.user-chip:hover { background: var(--burgundy-100); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--burgundy); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 8px; z-index: 60; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); font-size: .92rem; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--cream-100); }
.nav-row { border-top: 1px solid var(--line); }
.nav-row .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; }
.nav-link { padding: 10px 16px; border-radius: var(--r-pill); font-weight: 500; font-size: .93rem; color: var(--ink); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.nav-link:hover { background: var(--cream-100); color: var(--burgundy); }
.nav-link.active { background: var(--burgundy); color: var(--cream-100); }
.nav-link.sale { color: var(--burgundy); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { margin-top: 24px; position: relative; }
.hero-track { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 440px; }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; padding: 56px 64px; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; overflow: hidden; }
.hero-slide.active { opacity: 1; visibility: visible; position: relative; }
.hero-slide.burgundy { background: radial-gradient(120% 120% at 100% 0%, #8a1d2a 0%, var(--burgundy) 45%, var(--burgundy-700) 100%); color: var(--cream-100); }
.hero-slide.green { background: radial-gradient(120% 120% at 100% 0%, #1b5a55 0%, var(--green) 50%, var(--green-700) 100%); color: var(--cream-100); }
.hero-slide.cream { background: radial-gradient(120% 120% at 100% 0%, #fff3e3 0%, var(--cream) 55%, #efcba6 100%); color: var(--burgundy); }
.hero-slide h1, .hero-slide h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); color: inherit; margin-bottom: 16px; }
.hero-slide p { font-size: 1.15rem; max-width: 46ch; opacity: .92; margin: 0 0 28px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; opacity: .8; margin-bottom: 14px; }
.hero-art { position: relative; height: 100%; min-height: 300px; display: grid; place-items: center; }
.hero-art img.hero-photo { max-height: 380px; width: 100%; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid currentColor; opacity: .18; }
.ring.r1 { width: 380px; height: 380px; } .ring.r2 { width: 280px; height: 280px; opacity: .28; } .ring.r3 { width: 180px; height: 180px; opacity: .4; }
.hero-emoji { position: relative; font-size: 7.5rem; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25)); animation: float 5s ease-in-out infinite; }
.hero-emoji span { position: absolute; font-size: 3.2rem; }
.hero-emoji span:nth-child(1) { left: -120px; top: 40px; animation: float 6s ease-in-out infinite .4s; }
.hero-emoji span:nth-child(2) { right: -110px; top: -30px; animation: float 4.5s ease-in-out infinite .9s; }
.hero-emoji span:nth-child(3) { right: -60px; bottom: -40px; animation: float 5.5s ease-in-out infinite .2s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.hero-dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: currentColor; opacity: .35; padding: 0; transition: .3s; color: #fff; }
.hero-dots button.on { width: 28px; opacity: .95; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--burgundy); box-shadow: var(--shadow-sm); font-size: 1.2rem; }
.hero-arrow:hover { background: #fff; box-shadow: var(--shadow-md); }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }

/* ---------- Sections ---------- */
.section { padding-block: 56px 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.link-arrow { font-weight: 600; color: var(--burgundy); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { gap: 10px; }

.cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-weight: 600; font-size: .95rem; color: var(--burgundy); }
.cat-bubble { width: 112px; height: 112px; border-radius: 50%; background: var(--cream-200); display: grid; place-items: center; font-size: 2.8rem; transition: transform .25s, background .25s, box-shadow .25s; border: 2px solid transparent; overflow: hidden; }
.cat-bubble img { width: 100%; height: 100%; object-fit: cover; }
.cat-item:hover .cat-bubble { transform: translateY(-6px) scale(1.04); background: var(--cream); box-shadow: var(--shadow-md); border-color: var(--burgundy); }

.occasion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.occasion-tile { position: relative; border-radius: var(--r-md); padding: 24px 20px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .25s, box-shadow .25s; color: var(--cream-100); background: var(--burgundy); }
.occasion-tile:nth-child(3n+2) { background: var(--green); }
.occasion-tile:nth-child(3n) { background: var(--cream); color: var(--burgundy); }
.occasion-tile .oi { font-size: 2.2rem; }
.occasion-tile b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.occasion-tile small { opacity: .8; }
.occasion-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 18px solid currentColor; opacity: .08; }
.occasion-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Product card & rail ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 260px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--burgundy); box-shadow: var(--shadow-sm); }
.rail-btn:hover { background: var(--burgundy); color: #fff; }
.rail-btn.l { left: -16px; } .rail-btn.r { right: -16px; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 20px; }

.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-md); transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pcard-media { position: relative; aspect-ratio: 1 / 1.08; border-radius: var(--r-md); overflow: hidden; background: var(--cream-200); display: block; }
.pimg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pimg { transform: scale(1.06); }
.pph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 4.2rem; position: relative; background: linear-gradient(145deg, var(--cream-200), var(--cream)); }
.pph.t1 { background: linear-gradient(145deg, #f9e1d6, #e9b9ae); }
.pph.t2 { background: linear-gradient(145deg, var(--green-100), #b7d4cf); }
.pph.t3 { background: linear-gradient(145deg, var(--cream-100), var(--cream)); }
.pph.t4 { background: linear-gradient(145deg, #efd3d6, #d9a5ab); }
.pph::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.pph span { position: relative; filter: drop-shadow(0 10px 12px rgba(58, 10, 17, .22)); }
.pph.lg { font-size: 9rem; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--burgundy); color: var(--cream-100); border-radius: var(--r-pill); font-size: .72rem; font-weight: 700; padding: 5px 11px; letter-spacing: .03em; z-index: 2; }
.tag.green { background: var(--green); }
.pcard-body { padding: 14px 4px 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pcard-name { font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price b { font-size: 1.1rem; color: var(--burgundy); font-weight: 700; }
.price s { color: var(--muted); font-size: .9rem; }
.pcard-actions { margin-top: 10px; }
.add-fab { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--burgundy); box-shadow: var(--shadow-md); font-size: 1.3rem; transition: .2s; opacity: 0; transform: translateY(8px); }
.pcard:hover .add-fab, .add-fab:focus-visible { opacity: 1; transform: none; }
.add-fab:hover { background: var(--burgundy); color: #fff; }
.soldout { position: absolute; inset: 0; background: rgba(255, 255, 255, .65); display: grid; place-items: center; font-weight: 700; color: var(--burgundy); z-index: 1; }
@media (hover: none) { .add-fab { opacity: 1; transform: none; } }

/* ---------- Promise strip ---------- */
.promises { margin-top: 64px; background: var(--cream-200); border-radius: var(--r-lg); padding: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.promise { display: flex; gap: 14px; align-items: flex-start; }
.promise .pi { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--burgundy); color: var(--cream); display: grid; place-items: center; font-size: 1.4rem; }
.promise b { display: block; color: var(--burgundy); font-family: var(--font-display); font-size: 1.05rem; }
.promise span { font-size: .88rem; color: var(--muted); }

.feature-band { margin-top: 64px; border-radius: var(--r-lg); background: var(--green); color: var(--cream-100); padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; overflow: hidden; position: relative; }
.feature-band h2 { color: var(--cream); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.feature-band p { opacity: .85; max-width: 48ch; }
.feature-band .logo-mark { justify-self: end; width: min(100%, 340px); opacity: .95; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: var(--burgundy); color: var(--cream); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 40px; }
.footer-top h4 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-top a { display: block; padding: 4px 0; opacity: .85; font-size: .93rem; }
.footer-top a:hover { opacity: 1; text-decoration: underline; }
.footer-brand img { height: 90px; margin-bottom: 12px; }
.footer-brand p { max-width: 34ch; opacity: .85; font-size: .93rem; }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; border-radius: var(--r-pill); border: 0; padding: 12px 18px; font: inherit; }
.footer-bottom { border-top: 1px solid rgba(245, 218, 190, .2); padding-block: 20px; font-size: .84rem; opacity: .8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Shop page ---------- */
.page-head { padding-block: 32px 8px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a:hover { color: var(--burgundy); text-decoration: underline; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding-block: 16px 24px; align-items: start; }
.filters { position: sticky; top: 150px; background: var(--cream-100); border-radius: var(--r-md); padding: 22px; }
.filters h4 { font-size: .8rem; font-family: var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list a { padding: 8px 12px; border-radius: 10px; font-size: .93rem; display: flex; justify-content: space-between; }
.filter-list a:hover { background: #fff; }
.filter-list a.on { background: var(--burgundy); color: var(--cream-100); font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--burgundy-100); color: var(--burgundy); border-radius: var(--r-pill); padding: 5px 12px; font-size: .82rem; font-weight: 600; border: 0; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager button { min-width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--burgundy); font-weight: 600; }
.pager button.on { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty .big { font-size: 3.5rem; margin-bottom: 8px; }

/* ---------- Product details ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-block: 16px 24px; }
.pdp-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--cream-200); }
.pdp h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.pdp .price b { font-size: 1.9rem; }
.pdp .price s { font-size: 1.15rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; color: var(--burgundy); }
.qty button:hover { background: var(--burgundy-100); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.perks { display: grid; gap: 10px; margin-top: 24px; padding: 18px; background: var(--cream-100); border-radius: var(--r-md); font-size: .92rem; }
.stock { font-size: .88rem; font-weight: 600; }
.stock.ok { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--bad); }

/* ---------- Cart & checkout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-block: 16px 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.panel.soft { background: var(--cream-100); border-color: transparent; }
.panel h3 { font-size: 1.25rem; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; }
.cart-thumb .pph { font-size: 2.4rem; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-row.total { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 16px; font-weight: 700; font-size: 1.15rem; color: var(--burgundy); }
.progress { height: 8px; background: var(--cream-200); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s; }
.success { max-width: 620px; margin: 56px auto; text-align: center; }
.success .tick { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 2.4rem; }
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding-block: 40px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-md); }
.auth-card .brand-top { display: flex; justify-content: center; margin-bottom: 8px; }
.auth-card .brand-top img { height: 64px; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { background: #e4f4ec; color: var(--ok); } .status.warn { background: #fdf2dc; color: var(--warn); }
.status.info { background: #e3eef6; color: var(--info); } .status.bad { background: #fbe9eb; color: var(--bad); }
.order-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; background: #fff; }
.order-card + .order-card { margin-top: 16px; }

/* ---------- Toasts / loading ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--green); color: #fff; padding: 13px 20px; border-radius: var(--r-sm); box-shadow: var(--shadow-md); animation: slidein .3s ease; max-width: 340px; font-size: .92rem; }
.toast.bad { background: var(--bad); } .toast.info { background: var(--burgundy); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--cream); border-top-color: var(--burgundy); animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--cream-200) 25%, var(--cream-100) 50%, var(--cream-200) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Mobile drawer ---------- */
.menu-toggle { display: none; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(58, 10, 17, .5); z-index: 90; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); background: #fff; z-index: 91; padding: 20px; overflow-y: auto; animation: slidein-l .25s ease; }
@keyframes slidein-l { from { transform: translateX(-100%); } to { transform: none; } }
.drawer a { display: block; padding: 13px 8px; border-bottom: 1px solid var(--line); font-weight: 500; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #faf5ee; }
.admin-side { background: var(--green); color: var(--cream); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
.admin-side .logo { padding: 4px 10px 22px; }
.admin-side .logo img { height: 52px; }
.admin-side .logo small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .65; margin-top: 6px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; font-weight: 500; font-size: .94rem; opacity: .85; }
.admin-nav a:hover { background: rgba(245, 218, 190, .1); opacity: 1; }
.admin-nav a.active { background: var(--cream); color: var(--burgundy); font-weight: 700; opacity: 1; }
.admin-nav .sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; opacity: .5; padding: 18px 14px 6px; }
.admin-main { min-width: 0; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 32px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 20; }
.admin-top h1 { font-size: 1.4rem; margin: 0; }
.admin-body { padding: 28px 32px 56px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: var(--r-md); padding: 20px; border: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.stat .si { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--burgundy-100); }
.stat:nth-child(2) .si { background: var(--green-100); } .stat:nth-child(3) .si { background: var(--cream); }
.stat b { display: block; font-size: 1.55rem; font-family: var(--font-display); color: var(--burgundy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 20px; }
.bars { display: flex; align-items: end; gap: 14px; height: 190px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 6px; height: 100%; font-size: .75rem; color: var(--muted); }
.bar i { width: 100%; max-width: 44px; background: linear-gradient(180deg, var(--burgundy), #8a1d2a); border-radius: 8px 8px 3px 3px; min-height: 4px; transition: height .5s; }
.bar em { font-style: normal; font-weight: 700; color: var(--burgundy); font-size: .72rem; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--cream-100); }
.tbl .num { text-align: right; }
.thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; }
.thumb .pph { font-size: 1.4rem; }
.thumb .pph::before { display: none; }
.toolbar-admin { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar-admin .input { width: auto; min-width: 200px; }
.switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d9c8b5; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(20px); }
.modal-scrim { position: fixed; inset: 0; background: rgba(15, 60, 57, .55); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: var(--r-lg); width: min(560px, 100%); max-height: 92vh; overflow-y: auto; padding: 28px; box-shadow: var(--shadow-md); }
.modal h3 { font-size: 1.4rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.upload { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); background: var(--cream-100); }
.upload .thumb { width: 64px; height: 64px; }
.banner-preview { border-radius: var(--r-md); padding: 20px 24px; min-height: 96px; }
.banner-preview.burgundy { background: var(--burgundy); color: var(--cream-100); }
.banner-preview.green { background: var(--green); color: var(--cream-100); }
.banner-preview.cream { background: var(--cream); color: var(--burgundy); }
.banner-preview b { font-family: var(--font-display); font-size: 1.2rem; display: block; }
.denied { max-width: 480px; margin: 80px auto; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .container { padding-inline: 16px; }
  .header-main { grid-template-columns: auto 1fr auto; gap: 10px; }
  .menu-toggle { display: grid; }
  .brand img { height: 38px; }
  .search { grid-column: 1 / -1; order: 5; }
  .nav-row { display: none; }
  .hero-track { min-height: 480px; }
  .hero-slide { grid-template-columns: 1fr; padding: 36px 24px 64px; text-align: center; }
  .hero-slide p { margin-inline: auto; }
  .hero-art { display: none; }
  .hero-arrow { display: none; }
  .shop-layout, .pdp, .two-col, .feature-band { grid-template-columns: 1fr; }
  .filters { position: static; }
  .feature-band { padding: 32px 24px; } .feature-band .logo-mark { justify-self: start; width: 220px; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-nav { flex-direction: row; overflow-x: auto; } .admin-nav .sep { display: none; } .admin-nav a { white-space: nowrap; }
  .admin-body { padding: 20px 16px 40px; } .admin-top { padding: 12px 16px; }
  .announce .container span:not(:first-child) { display: none; }
  .rail-btn { display: none; }
}
@media (max-width: 560px) {
  .promises { grid-template-columns: 1fr; padding: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; } .cart-thumb { width: 72px; height: 72px; } .cart-line > :last-child { grid-column: 1 / -1; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .rail { grid-auto-columns: 62%; }
  .cat-bubble { width: 88px; height: 88px; font-size: 2.2rem; }
  .auth-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Blazor defaults */
#blazor-error-ui { display: none; }
.blazor-error-boundary { background: var(--bad); color: #fff; padding: 1rem; border-radius: 8px; }
.blazor-error-boundary::after { content: "Something went wrong."; }
@media (max-width: 700px) { .hide-sm { display: none; } }
h1:focus { outline: none; }
