/* Magnora: navy / gold / cream, taken from the Magnora Home prototype. */

:root {
  --navy: #131f47;
  --navy-2: #233269;
  --navy-3: #1b2a5c;
  --gold: #b39a50;
  --gold-soft: #cdbb82;
  --cream: #f6f2e7;
  --cream-2: #ece6d3;
  --white: #ffffff;
  --muted: #5b6489;
  --line: rgba(19, 31, 71, 0.16);
  --danger: #a3332b;
  --ok: #2f6b4a;
  --display: 'Josefin Sans', 'Century Gothic', 'Avenir Next', sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.on-navy { background: var(--navy); color: var(--cream); }
.eyebrow { font: 500 0.75rem/1.4 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow.muted { color: var(--muted); }
.h-xl { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.h-lg { font-size: clamp(2rem, 4vw, 2.9rem); }
.h-md { font-size: 1.5rem; font-weight: 400; }
.lede { font-size: 1.05rem; max-width: 34em; opacity: 0.92; }
.muted { color: var(--muted); }
.on-navy .muted { color: rgba(246, 242, 231, 0.7); }

/* ---- buttons / links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 1px solid var(--gold); background: var(--gold); color: var(--navy);
  font: 500 0.92rem/1 var(--body); letter-spacing: 0.02em; text-decoration: none; border-radius: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(179, 154, 80, 0.14); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn.dark:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--cream); }
.btn.sm { padding: 9px 16px; font-size: 0.84rem; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn.block { width: 100%; }
.link { color: inherit; text-decoration: underline; text-underline-offset: 4px; font-size: 0.9rem; font-weight: 500; background: none; border: 0; padding: 0; }
.link:hover { color: var(--gold); }

/* ---- header ---- */
.site-header { background: var(--navy); color: var(--cream); position: sticky; top: 0; z-index: 40; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { font-family: var(--display); font-weight: 300; font-size: 1.45rem; letter-spacing: 0.34em; text-decoration: none; color: var(--gold-soft); }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a { text-decoration: none; font-size: 0.88rem; opacity: 0.92; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-color: var(--gold); }
.icons { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; background: none; border: 0; color: var(--cream); width: 42px; height: 42px; display: grid; place-items: center; text-decoration: none; }
.icon-btn:hover { color: var(--gold-soft); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 600; display: grid; place-items: center; }
.menu-btn { display: none; }
.search-row { background: var(--navy-3); border-top: 1px solid rgba(246, 242, 231, 0.12); }
.search-row form { display: flex; gap: 10px; padding: 12px 0; }
.search-row input { flex: 1; background: transparent; border: 1px solid rgba(246, 242, 231, 0.3); color: var(--cream); padding: 10px 14px; }
.search-row input::placeholder { color: rgba(246, 242, 231, 0.6); }

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(246, 242, 231, 0.12); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(246, 242, 231, 0.1); font-size: 1rem; }
  .logo { font-size: 1.2rem; letter-spacing: 0.26em; }
}

/* ---- hero ---- */
.hero-video { position: relative; background: var(--navy); }
.hero-video video { width: 100%; height: clamp(240px, 56.25vw, 78vh); object-fit: cover; background: var(--cream-2); }
.hero-controls { position: absolute; right: var(--gutter); bottom: 16px; display: flex; gap: 8px; }
.hero-controls button {
  width: 42px; height: 42px; display: grid; place-items: center; background: rgba(19, 31, 71, 0.72); color: var(--cream);
  border: 1px solid rgba(246, 242, 231, 0.4); border-radius: 50%;
}
.hero-controls button:hover { background: var(--navy); }
.hero-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.hero-copy .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.arch {
  width: min(100%, 340px); aspect-ratio: 3 / 4.1; margin-left: auto; overflow: hidden;
  border: 1px solid var(--gold); border-radius: 999px 999px 0 0; background: var(--navy-3);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (max-width: 820px) {
  .hero-copy .wrap { grid-template-columns: 1fr; }
  .arch { margin: 8px auto 0; width: min(100%, 280px); }
}

/* ---- feature strip ---- */
.strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: flex; justify-content: space-around; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; font-weight: 500; }
.strip li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--gold); transform: rotate(45deg) translateY(-1px); }

/* ---- product grid ---- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.card { display: flex; flex-direction: column; }
.card-img { display: block; position: relative; aspect-ratio: 4 / 5; background: var(--navy); overflow: hidden; }
.card:nth-child(2n) .card-img { background: var(--navy-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; transition: transform 0.5s ease; }
.card-img:hover img { transform: scale(1.03); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--cream); color: var(--navy); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; }
.tag.sold { background: var(--navy); color: var(--cream); }
.card h3 { font-size: 1.35rem; font-weight: 400; margin-top: 16px; }
.card h3 a { text-decoration: none; }
.card .sub { font-size: 0.86rem; color: var(--muted); margin-top: 4px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.price { font-family: var(--display); font-size: 1.15rem; font-weight: 400; letter-spacing: 0.02em; }

/* ---- layering ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
.step { border-top: 1px solid rgba(246, 242, 231, 0.22); padding-top: 22px; }
.step .num { font-family: var(--display); font-weight: 200; font-size: 3rem; line-height: 1; color: var(--gold); }
.step h3 { font-size: 1.15rem; font-weight: 600; margin: 14px 0 8px; }
.step p { font-size: 0.92rem; opacity: 0.85; }

/* ---- scent ---- */
.scent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.scent-art { background: var(--navy); aspect-ratio: 1.15; }
.scent-art svg, .scent-art img { width: 100%; height: 100%; }
.scent-art img { object-fit: cover; }
@media (max-width: 820px) { .scent-grid { grid-template-columns: 1fr; } }

/* ---- newsletter ---- */
.newsletter { text-align: center; padding: clamp(48px, 7vw, 84px) var(--gutter); }
.newsletter form { display: flex; gap: 0; justify-content: center; margin: 26px auto 0; max-width: 480px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 1px solid var(--gold); border-right: 0; color: var(--cream); padding: 13px 16px; border-radius: 0; }
.newsletter input::placeholder { color: rgba(246, 242, 231, 0.65); }
.news-note { min-height: 1.5em; margin: 14px 0 0; font-size: 0.9rem; color: var(--gold-soft); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font: 600 0.74rem/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--gold); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.foot-bottom a { text-decoration: none; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---- generic pages ---- */
.page { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); min-height: 60vh; }
.page-head { margin-bottom: 36px; }
.prose { max-width: 40em; }
.prose p { white-space: pre-line; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: transparent; padding: 8px 16px; font-size: 0.86rem; text-decoration: none; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed='true'] { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ---- product page ---- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp-main { aspect-ratio: 4 / 5; background: var(--navy); overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); background: var(--navy); overflow: hidden; }
.thumbs button[aria-current='true'] { border-color: var(--gold); outline: 1px solid var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { margin: 6px 0 8px; }
.pdp .price { font-size: 1.6rem; margin: 18px 0; display: block; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-top: 24px; }
.stock-note { font-size: 0.88rem; color: var(--muted); }
.stock-note.low { color: var(--danger); font-weight: 500; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--white); }
.qty button { width: 38px; height: 40px; background: none; border: 0; font-size: 1.1rem; }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 34px; text-align: center; font-weight: 500; }

/* ---- cart drawer ---- */
.overlay { position: fixed; inset: 0; background: rgba(19, 31, 71, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 60; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 61;
  transform: translateX(100%); transition: transform 0.28s ease, box-shadow 0.28s; display: flex; flex-direction: column; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; box-shadow: -12px 0 40px rgba(19, 31, 71, 0.2); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; font-weight: 400; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--white); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 96px; object-fit: cover; object-position: center 52%; background: var(--navy); }
.line h4 { font-size: 1.05rem; font-weight: 400; }
.line .sub { font-size: 0.82rem; color: var(--muted); }
.line .qty { margin-top: 8px; }
.line .qty button { height: 32px; width: 32px; }
.line-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.empty { text-align: center; padding: 56px 12px; color: var(--muted); }
.totals { display: grid; gap: 6px; font-size: 0.95rem; }
.totals > div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 600; font-size: 1.1rem; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }

/* ---- forms ---- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--white); border: 1px solid rgba(19, 31, 71, 0.28); border-radius: 0;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field .hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
@media (max-width: 560px) { .row, .row-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; margin-bottom: 14px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--navy); }
.form-error { color: var(--danger); font-size: 0.9rem; min-height: 1.4em; margin: 4px 0 12px; }
.form-ok { color: var(--ok); font-size: 0.9rem; }

.auth { max-width: 440px; margin: 0 auto; background: var(--white); padding: clamp(24px, 5vw, 40px); border: 1px solid var(--line); }
.auth h1 { font-size: 2rem; margin-bottom: 8px; }
.auth .alt { margin-top: 20px; font-size: 0.9rem; }
.divider { text-align: center; font-size: 0.82rem; color: var(--muted); margin: 20px 0; position: relative; }
.divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.divider span { background: var(--white); padding: 0 12px; position: relative; }

/* ---- checkout ---- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.panel h2 { font-size: 1.3rem; font-weight: 400; margin-bottom: 18px; }
.summary { position: sticky; top: 90px; }
.sum-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.sum-line img { width: 56px; height: 70px; object-fit: cover; object-position: center 52%; background: var(--navy); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); margin-bottom: 10px; cursor: pointer; background: var(--cream); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--white); }
.choice input { margin-top: 5px; accent-color: var(--navy); }
.note { background: var(--cream); border-left: 3px solid var(--gold); padding: 12px 14px; font-size: 0.88rem; margin: 0 0 16px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---- account ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs a { padding: 12px 18px; text-decoration: none; font-size: 0.92rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current='page'] { border-color: var(--gold); font-weight: 600; }
.pill { display: inline-block; padding: 3px 11px; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; background: var(--cream-2); }
.pill.pending { background: #f4e7b8; }
.pill.paid { background: #cfe5d8; }
.pill.shipped { background: #cdd8f1; }
.pill.delivered { background: #bfe0cc; }
.pill.cancelled { background: #efd0cc; color: var(--danger); }
.pill.sent { background: #cfe5d8; }
.pill.failed { background: #efd0cc; color: var(--danger); }
.pill.not-configured, .pill.pending-mail { background: #f4e7b8; }
.order { background: var(--white); border: 1px solid var(--line); padding: 20px; margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.addr-card { background: var(--white); border: 1px solid var(--line); padding: 18px; font-size: 0.92rem; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.addr-card .acts { display: flex; gap: 14px; margin-top: 14px; }

/* ---- modal ---- */
.modal { border: 0; padding: 0; background: var(--cream); color: var(--navy); width: min(680px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; box-shadow: 0 30px 80px rgba(19, 31, 71, 0.4); }
.modal::backdrop { background: rgba(19, 31, 71, 0.6); }
.modal-in { padding: clamp(20px, 4vw, 34px); }
.modal-in h2 { font-size: 1.6rem; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: var(--cream); padding: 12px 20px; font-size: 0.92rem; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 200; max-width: calc(100% - 32px); border-left: 3px solid var(--gold); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: #e07a70; }

/* ---- admin ---- */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.admin-nav { position: sticky; top: 90px; display: grid; gap: 2px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; text-decoration: none; font-size: 0.93rem; border-left: 2px solid transparent; }
.admin-nav a:hover { background: var(--cream-2); }
.admin-nav a[aria-current='page'] { background: var(--white); border-color: var(--gold); font-weight: 600; }
.admin-nav .count { background: var(--gold); color: var(--navy); font-size: 0.72rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 4px; border-bottom: 1px solid var(--line); }
  .admin-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .admin-nav a[aria-current='page'] { border-bottom-color: var(--gold); background: none; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--white); border: 1px solid var(--line); padding: 18px; }
.stat b { display: block; font-family: var(--display); font-weight: 300; font-size: 2rem; line-height: 1.1; }
.stat span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.alert { background: #fbf3d9; border-left: 4px solid var(--gold); padding: 14px 16px; margin-bottom: 20px; font-size: 0.92rem; }
.alert.bad { background: #f6dedb; border-color: var(--danger); }
.table-wrap { background: var(--white); border: 1px solid var(--line); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th { text-align: left; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px 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 .thumb { width: 44px; height: 56px; object-fit: cover; object-position: center 52%; background: var(--navy); }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .acts { white-space: nowrap; text-align: right; }
.low { color: var(--danger); font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.img-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.img-item { width: 100px; }
.img-item img { width: 100px; height: 124px; object-fit: cover; background: var(--navy); border: 1px solid var(--line); }
.img-item .main { font-size: 0.7rem; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; height: 1.2em; }
.img-item .acts { display: flex; justify-content: space-between; margin-top: 4px; }
.notif { background: var(--white); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 10px; border-left: 4px solid var(--line); }
.notif.unread { border-left-color: var(--gold); }
.notif .when { font-size: 0.78rem; color: var(--muted); }
.page-edit { border: 1px solid var(--line); background: var(--white); padding: 14px; margin-bottom: 12px; }
.page-edit summary { cursor: pointer; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.wa-panel { max-width: 40em; margin-top: 28px; }
.wa-panel h2 { margin-bottom: 6px; }

.slot { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.slot-preview { width: 120px; height: 150px; background: var(--navy); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; text-align: center; font-size: .75rem; padding: 6px; }
.slot-preview img { width: 100%; height: 100%; object-fit: cover; }
.slot h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.slot .acts { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 520px) { .slot { grid-template-columns: 1fr; } }

.slot-preview .muted { color: rgba(246, 242, 231, 0.85); }

/* ---- discounts and bundles ---- */
.price .old, .sum-line .old, .line .old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 0.85em; margin-right: 8px; }
.price .now { color: var(--navy); }
.tag.deal { left: auto; right: 12px; background: var(--gold); color: var(--navy); }
.save-note { font-family: var(--body); font-size: 0.85rem; font-weight: 600; color: var(--ok); margin-left: 10px; }
.includes { margin: 4px 0 18px; padding: 14px 16px; background: var(--white); border-left: 3px solid var(--gold); font-size: 0.92rem; }
.includes ul { margin: 6px 0 0; padding-left: 18px; }
.bundle-row { display: grid; grid-template-columns: 1fr 84px auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.bundle-row select, .bundle-row input { width: 100%; padding: 10px 12px; background: var(--white); border: 1px solid rgba(19, 31, 71, 0.28); border-radius: 0; }
@media (max-width: 520px) { .bundle-row { grid-template-columns: 1fr 70px auto; } }
