/* ==========================================================================
   AP Tech Multi Global — design system
   ========================================================================== */
:root {
  --ink: #0a0f1e;
  --ink-2: #121a2f;
  --ink-3: #1d2742;
  --gold: #c9a24a;
  --gold-2: #e6cd8a;
  --gold-soft: #f7efdc;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --line: #e8e5dd;
  --line-2: #d9d5ca;
  --text: #0f1629;
  --muted: #646b7b;
  --ok: #15803d;   --ok-bg: #e8f6ed;
  --info: #1d4ed8; --info-bg: #e8effd;
  --warn: #b45309; --warn-bg: #fdf3e4;
  --bad: #b91c1c;  --bad-bg: #fdecec;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10,15,30,.05), 0 1px 3px rgba(10,15,30,.04);
  --shadow: 0 10px 30px -12px rgba(10,15,30,.18), 0 2px 6px rgba(10,15,30,.04);
  --shadow-lg: 0 30px 60px -20px rgba(10,15,30,.35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --wrap: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.display { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; }
p { margin: 0; }
.ic { flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: var(--c); font-weight: 600; font-size: 14.5px;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { --b: var(--gold); --c: var(--ink); }
.btn-gold:hover { --b: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-light { --b: #fff; --c: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-danger { --b: var(--bad); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  border: 0; background: transparent; cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }
.link { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: #8a6d22; }
.link .ic { transition: transform .2s; }
.link:hover .ic { transform: translateX(3px); }

/* ---------- Announcement + header ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.72); font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: none; gap: 20px; }
@media (min-width: 768px) { .topbar .tb-right { display: flex; } }
.topbar b { color: var(--gold-2); font-weight: 600; }

.header {
  position: sticky; top: 0; z-index: 50; background: rgba(10,15,30,.92); color: #fff;
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header .wrap { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; flex: none; }
.logo-svg { flex: none; display: block; filter: drop-shadow(0 4px 14px rgba(201,162,74,.18)); transition: transform .3s; }
.logo:hover .logo-svg { transform: rotate(-4deg) scale(1.04); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 16px; }
.logo-text small { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-top: 3px; }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78); transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.07); }
.search {
  flex: 1; display: none; align-items: center; gap: 8px; max-width: 380px; margin-left: auto;
  height: 42px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, border-color .2s;
}
.search:focus-within { background: rgba(255,255,255,.12); border-color: rgba(230,205,138,.5); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; }
.search input::placeholder { color: rgba(255,255,255,.5); }
.search button { border: 0; background: var(--gold); color: var(--ink); width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
@media (min-width: 1024px) { .search + .header-actions { margin-left: 0; } }
.badge-count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.3,1.6,.6,1);
}
.badge-count.bump { transform: scale(1.35); }
.badge-count[data-count="0"] { display: none; }
.account-link { display: none; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.account-link:hover { background: rgba(255,255,255,.07); }
.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--ink-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--gold-2); border: 1px solid rgba(230,205,138,.35); }
.menu-btn { display: inline-grid; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .search { display: flex; }
  .account-link { display: flex; }
  .menu-btn { display: none; }
  .mobile-user { display: none; }
}

/* Mobile search row */
.mobile-search { background: var(--ink); padding: 0 0 12px; }
.mobile-search .search { display: flex; max-width: none; margin: 0; }
@media (min-width: 1024px) { .mobile-search { display: none; } }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(5,8,18,.55); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 80; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--ink); color: #fff; z-index: 90;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding: 18px;
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer nav a, .drawer nav button {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; color: rgba(255,255,255,.85);
  font-size: 15px; font-weight: 500; background: none; border: 0; text-align: left; width: 100%; cursor: pointer;
}
.drawer nav a:hover, .drawer nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.drawer nav .ic { color: var(--gold-2); }
.drawer hr { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: 12px 0; }
.drawer .drawer-foot { margin-top: auto; font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- Flash / toasts ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 50px); right: 16px; left: 16px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: 420px; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 14px;
  padding: 13px 14px; box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in .35s cubic-bezier(.2,.8,.2,1);
}
.toast.success { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--bad); }
.toast button { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; }
.toast.out { animation: toast-out .3s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201,162,74,.28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(60,90,200,.25), transparent 60%),
    linear-gradient(180deg, #0a0f1e, #0d1427);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 72px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; padding-top: 84px; padding-bottom: 96px; } }
@media (max-width: 600px) { .hero-stats { gap: 20px; } .hero-cta .btn { flex: 1; } .hero-visual .hv-1 { aspect-ratio: 3/3.6; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); padding: 7px 12px; border: 1px solid rgba(230,205,138,.28); border-radius: 999px; background: rgba(201,162,74,.08);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,74,.2); }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); margin: 20px 0 18px; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero p.lead { font-size: clamp(16px, 1.6vw, 18px); color: rgba(255,255,255,.72); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font: 500 28px/1 var(--display); color: #fff; }
.hero-stats span { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 6px; }
.hero-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-visual .hv { border-radius: 22px; overflow: hidden; position: relative; background: var(--ink-3); box-shadow: var(--shadow-lg); }
.hero-visual .hv img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .hv-1 { grid-row: span 2; aspect-ratio: 3/4.2; }
.hero-visual .hv-2, .hero-visual .hv-3 { aspect-ratio: 1/1; }
.hv-tag {
  position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: rgba(10,15,30,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px; border: 1px solid rgba(255,255,255,.12);
}
.hv-tag .ic { color: var(--gold-2); }
.hv-tag strong { display: block; font-size: 13.5px; }
.float-card {
  position: absolute; left: -18px; top: 9%; display: none; align-items: center; gap: 12px; background: #fff; color: var(--text);
  padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 13px; animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
@media (min-width: 1100px) { .float-card { display: flex; } }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------- Hero slideshow ---------- */
.hero-slider { --dur: 6.5s; position: relative; background: var(--ink); color: #fff; overflow: hidden; height: clamp(600px, 82vh, 760px); isolation: isolate; }
.hero-slider .slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 8s cubic-bezier(.2,.6,.2,1); }
.slide.is-active .slide-bg { transform: scale(1); }
.slide-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,15,30,.94) 0%, rgba(10,15,30,.72) 38%, rgba(10,15,30,.18) 75%, rgba(10,15,30,.05) 100%),
    linear-gradient(0deg, rgba(10,15,30,.85) 0%, transparent 35%);
}
@media (max-width: 760px) {
  .slide-shade { background: linear-gradient(0deg, rgba(10,15,30,.97) 0%, rgba(10,15,30,.82) 52%, rgba(10,15,30,.25) 100%); }
}
.slide-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 110px; padding-top: 32px; }
@media (max-width: 760px) { .slide-inner { justify-content: flex-end; padding-bottom: 150px; } }
.slide-inner > * { max-width: 640px; opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.slide.is-active .slide-inner > * { opacity: 1; transform: none; }
.slide.is-active .slide-inner > :nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide-inner > :nth-child(3) { transition-delay: .22s; }
.slide.is-active .slide-inner > :nth-child(4) { transition-delay: .3s; }
.slide.is-active .slide-inner > :nth-child(5) { transition-delay: .38s; }
.slide-title { font-size: clamp(34px, 5.6vw, 64px); margin: 18px 0 14px; text-wrap: balance; }
.slide .lead { font-size: clamp(15.5px, 1.5vw, 18px); color: rgba(255,255,255,.75); }
.slide-meta { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-top: 22px; }
.slide-price { font: 600 clamp(24px, 2.6vw, 32px)/1 var(--font); color: var(--gold-2); letter-spacing: -.02em; }
.slide-price small { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.6); }
.slide-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.75); }
.slide .hero-cta { margin-top: 28px; }
@media (max-width: 600px) { .slide .hero-cta { width: 100%; } .slide .hero-cta .btn { flex: 1; padding: 0 16px; } .slide .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }

.slider-ui { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.slider-dots { display: flex; gap: 10px; flex: 1; max-width: 720px; }
.slider-dots button { flex: 1; min-width: 0; background: none; border: 0; padding: 8px 0; cursor: pointer; color: rgba(255,255,255,.55); text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: color .2s; }
.slider-dots button:hover, .slider-dots button.is-active { color: #fff; }
.sd-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-bar { display: block; height: 3px; border-radius: 9px; background: rgba(255,255,255,.2); overflow: hidden; }
.sd-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 9px; }
.slider-dots button.is-active .sd-bar i { animation: sdfill var(--dur) linear forwards; }
.hero-slider.is-paused .sd-bar i { animation-play-state: paused; }
.hero-slider.is-static .slider-dots button.is-active .sd-bar i { animation: none; width: 100%; }
@keyframes sdfill { from { width: 0; } to { width: 100%; } }
.slider-arrows { display: flex; align-items: center; gap: 6px; flex: none; }
.slider-arrows .icon-btn { border: 1px solid rgba(255,255,255,.25); color: #fff; width: 46px; height: 46px; }
.slider-arrows .icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.slider-count { font-size: 13px; color: rgba(255,255,255,.55); margin-right: 10px; font-variant-numeric: tabular-nums; }
.slider-count b { color: #fff; font-weight: 600; }
@media (max-width: 760px) {
  .slider-ui { bottom: 62px; }
  .sd-label, .slider-count { display: none; }
  .slider-dots button { padding: 12px 0; }
  .slider-arrows .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Popup ---------- */
.promo { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.promo[hidden] { display: none; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(5,8,18,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.promo-card {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 24px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1); outline: 0;
}
.promo.is-open .promo-backdrop { opacity: 1; }
.promo.is-open .promo-card { opacity: 1; transform: none; }
.promo-image .promo-card { max-width: 520px; background: transparent; box-shadow: none; overflow: visible; }
.promo-image .promo-card img { width: 100%; max-height: calc(100vh - 48px); object-fit: contain; border-radius: 18px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.promo-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.promo-body { padding: 26px 24px 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.promo-body h2 { font-size: clamp(26px, 4vw, 32px); }
.promo-body p { color: #384054; line-height: 1.65; }
.promo-body .btn { margin-top: 6px; }
.promo-skip { align-self: center; background: none; border: 0; color: var(--muted); font-size: 13.5px; cursor: pointer; padding: 6px; }
.promo-skip:hover { color: var(--text); }
.promo-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--shadow); }
.promo-image .promo-close { top: -14px; right: -14px; }
@media (max-width: 560px) { .promo-image .promo-close { top: 8px; right: 8px; } }

/* Admin: slideshow + popup */
.slide-admin { display: grid; grid-template-columns: auto 96px 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
@media (min-width: 900px) { .slide-admin { grid-template-columns: auto 120px 1fr auto; } }
.slide-admin.is-inactive { border-color: #f3c8c8; background: #fffafa; }
.sa-num { font: 500 26px/1 var(--display); color: var(--gold); width: 36px; }
.sa-img { width: 96px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
@media (min-width: 900px) { .sa-img { width: 120px; } }
.sa-img img { width: 100%; height: 100%; object-fit: cover; }
.sa-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sa-actions { display: flex; gap: 6px; grid-column: 1 / -1; justify-content: flex-end; }
@media (min-width: 900px) { .sa-actions { grid-column: auto; flex-direction: column; } }
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.type-pick label { cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; }
.type-pick span { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 2px solid var(--line); border-radius: 14px; height: 100%; transition: border-color .2s, background .2s; }
.type-pick span .ic { color: #8a6d22; }
.type-pick small { color: var(--muted); font-size: 12.5px; }
.type-pick input:checked + span { border-color: var(--gold); background: var(--gold-soft); }
.type-pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 560px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8a6d22; margin-bottom: 10px; display: block; }

/* Category tiles */
.cat-grid { display: grid; gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.cat-tile {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-2); }
.cat-tile .ct-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); }
.cat-tile h3 { font-size: 20px; }
.cat-tile p { color: var(--muted); font-size: 14px; }
.cat-tile .ct-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.cat-tile .ct-arrow { width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .25s, color .25s, border-color .25s; }
.cat-tile:hover .ct-arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1100px) { .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid.props { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.props { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid.props { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 1/1; background: linear-gradient(135deg, #eef0f4, #e3e6ec); overflow: hidden; }
.card.prop .card-media { aspect-ratio: 4/3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.05); }
.img-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #9aa2b1; background: linear-gradient(135deg, #eef0f4, #dfe3ea); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(6px);
}
.card-media .chips { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip.gold { background: var(--gold); color: var(--ink); }
.chip.dark { background: rgba(10,15,30,.82); color: #fff; }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (min-width: 768px) { .card-body { padding: 18px 18px 20px; } }
.card-sub { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card.prop .card-title { font-size: 17px; }
.card-loc { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.card-feats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line); }
.card-feats span { display: inline-flex; align-items: center; gap: 5px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.price-old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; display: block; font-weight: 500; }
.add-btn {
  position: relative; z-index: 2; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; flex: none;
  background: var(--ink); color: #fff; border: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.add-btn:hover { background: var(--gold); color: var(--ink); transform: scale(1.06); }
.add-btn.done { background: var(--ok); color: #fff; }
@media (max-width: 480px) { .card-body .price { font-size: 15px; } .card-feats { gap: 10px; font-size: 12px; } }

/* ---------- Feature / trust strip ---------- */
.trust { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.trust div { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trust .t-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: #8a6d22; flex: none; }
.trust h4 { font-size: 15px; margin-bottom: 4px; }
.trust p { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .trust div { flex-direction: column; gap: 10px; padding: 16px; } }

/* Split banner */
.banner {
  position: relative; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff;
  display: grid; isolation: isolate;
}
@media (min-width: 900px) { .banner { grid-template-columns: 1.1fr 1fr; } }
.banner .b-copy { padding: 36px 24px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
@media (min-width: 768px) { .banner .b-copy { padding: 56px; } }
.banner h2 { font-size: clamp(28px, 3.6vw, 44px); }
.banner p { color: rgba(255,255,255,.7); max-width: 460px; }
.banner .b-media { min-height: 260px; position: relative; }
.banner .b-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .b-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink), transparent 40%); }
@media (max-width: 899px) { .banner .b-media::before { background: linear-gradient(180deg, var(--ink), transparent 40%); } }
.banner ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 10px; }
.banner li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.85); font-size: 14.5px; }
.banner li .ic { color: var(--gold-2); }

/* Tabs (segmented) */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); gap: 2px; overflow-x: auto; max-width: 100%; }
.seg a { padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg a.active { background: var(--ink); color: #fff; }
.seg a:not(.active):hover { color: var(--text); }

/* ---------- Page header ---------- */
.page-head { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0, rgba(201,162,74,.25), transparent 60%); }
.page-head .wrap { position: relative; padding-top: 36px; padding-bottom: 36px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); }
.page-head p { color: rgba(255,255,255,.65); margin-top: 10px; max-width: 620px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs.dark { color: var(--muted); }
.crumbs.dark a:hover { color: var(--text); }

/* ---------- Shop layout ---------- */
.shop { display: grid; gap: 28px; padding: 32px 0 80px; }
@media (min-width: 1024px) { .shop { grid-template-columns: 260px 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 20px); } }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; 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 { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.filter-list a:hover { background: var(--surface-2); }
.filter-list a.active { background: var(--ink); color: #fff; }
.filter-list a span { color: var(--muted); font-size: 12.5px; }
.filter-list a.active span { color: rgba(255,255,255,.6); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
details.filters-mobile { display: block; }
details.filters-mobile > summary { list-style: none; cursor: pointer; }
details.filters-mobile > summary::-webkit-details-marker { display: none; }
@media (min-width: 1024px) {
  details.filters-mobile > summary { display: none; }
}
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar select { height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 36px 0 14px; font-size: 14px; }
.toolbar .tb-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filter-toggle { display: none; } }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; padding: 0 12px; background: var(--surface); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .e-ic { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--gold-soft); color: #8a6d22; }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 28px; padding: 24px 0 56px; }
.pdp > * { min-width: 0; }
.pdp-info { order: 1; }
.pdp-details { order: 2; }
@media (min-width: 960px) {
  .pdp { grid-template-columns: 1.1fr .9fr; grid-template-areas: "gallery info" "details info"; column-gap: 48px; row-gap: 24px; padding-top: 32px; }
  .pdp-gallery { grid-area: gallery; }
  .pdp-details { grid-area: details; }
  .pdp-info { grid-area: info; }
}
.gallery-main { position: relative; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 4/3.2; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface); opacity: .7; transition: opacity .2s, border-color .2s; }
.thumbs button.active, .thumbs button:hover { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 960px) { .pdp-info { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.pdp-info h1 { font-size: clamp(26px, 3.2vw, 38px); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price .price { font-size: 30px; }
.save-tag { font-size: 12.5px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 4px 10px; border-radius: 99px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.fact .ic { color: #8a6d22; margin-bottom: 6px; }
.fact strong { display: block; font-size: 15px; }
.fact span { font-size: 12px; color: var(--muted); }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 150px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.stock.low::before { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-bg); }
.stock.out::before { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 46px; background: var(--surface); }
.qty button { width: 40px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty input { width: 40px; text-align: center; border: 0; outline: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 38px; }
.qty.sm button { width: 32px; }
.qty.sm input { width: 32px; }
.perks { display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.perks div { display: flex; gap: 10px; align-items: center; }
.perks .ic { color: #8a6d22; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; }
.prose { color: #384054; line-height: 1.75; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
@media (min-width: 768px) { .panel { padding: 28px; } }
.panel h3 { font-size: 18px; margin-bottom: 14px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title h3 { margin: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--bad); font-weight: 500; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  outline: 0; transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,74,.15); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }

/* Auth */
.auth { display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 36px); } }
.auth-art { display: none; position: relative; background: var(--ink); color: #fff; overflow: hidden; }
@media (min-width: 960px) { .auth-art { display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; } }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 10%, rgba(10,15,30,.2)); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h2 { font-size: 40px; max-width: 460px; }
.auth-art p { color: rgba(255,255,255,.7); margin-top: 14px; max-width: 420px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 32px; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); margin-bottom: 28px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert.error { background: var(--bad-bg); color: var(--bad); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; gap: 24px; padding: 32px 0 80px; align-items: start; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 380px; gap: 32px; } }
.cart-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
@media (min-width: 640px) { .cart-item { grid-template-columns: 108px 1fr auto; gap: 20px; padding: 22px; } }
.cart-item .ci-img { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-size: 15.5px; font-weight: 600; }
.ci-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ci-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ci-price { grid-column: 2; font-weight: 700; }
@media (min-width: 640px) { .ci-price { grid-column: auto; text-align: right; font-size: 16.5px; } }
.remove-btn { border: 0; background: none; color: var(--muted); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; padding: 6px 0; }
.remove-btn:hover { color: var(--bad); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
@media (min-width: 960px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary h3 { font-size: 18px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; color: #384054; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 18px; font-weight: 700; color: var(--text); }
.sum-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-item { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.sum-item .si-img { position: relative; width: 52px; height: 52px; border-radius: 12px; overflow: visible; flex: none; }
.sum-item .si-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.sum-item .si-img b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.sum-item .si-t { flex: 1; min-width: 0; }
.sum-item .si-t div { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.pay-logos { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.pay-logos span { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: var(--surface-2); }
.steps { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.55); margin-top: 14px; flex-wrap: wrap; }
.steps .on { color: var(--gold-2); font-weight: 600; }

/* ---------- Status pills, tables ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.pill.muted { background: #eef0f3; color: #4b5263; }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.row-link { font-weight: 600; }
.row-link:hover { color: #8a6d22; }

/* Order list cards (customer) */
.order-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.order-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .order-card { grid-template-columns: 72px 1fr auto auto; gap: 20px; padding: 18px 20px; } }
.order-card img, .order-card .oc-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
@media (min-width: 640px) { .order-card img, .order-card .oc-ph { width: 72px; height: 72px; } }
.order-card .oc-main h4 { font-size: 15px; }
.order-card .oc-side { grid-column: 2; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (min-width: 640px) { .order-card .oc-side { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 99px; background: var(--surface); border: 3px solid var(--line-2); }
.timeline li:first-child::after { border-color: var(--gold); background: var(--gold-soft); }
.timeline .tl-t { font-weight: 600; font-size: 14.5px; }
.timeline .tl-m { font-size: 14px; color: #384054; margin-top: 3px; white-space: pre-line; }
.timeline .tl-d { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* Progress tracker */
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 4px; }
.tracker div { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.tracker div::before { content: ''; height: 6px; border-radius: 99px; background: var(--line); }
.tracker div.done { color: var(--text); }
.tracker div.done::before { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.eta-box { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--gold-soft); border: 1px solid #efe0b8; }
.eta-box .ic { color: #8a6d22; }
.eta-box small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: #8a6d22; font-weight: 700; }
.eta-box strong { font-size: 18px; }

/* Account layout */
.acct { display: grid; gap: 24px; padding: 32px 0 80px; align-items: start; }
@media (min-width: 960px) { .acct { grid-template-columns: 240px 1fr; gap: 32px; } }
.acct-nav { display: flex; gap: 6px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
@media (min-width: 960px) { .acct-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 20px); } }
.acct-nav a, .acct-nav button { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; white-space: nowrap; color: #384054; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.acct-nav a:hover, .acct-nav button:hover { background: var(--surface-2); color: var(--text); }
.acct-nav a.active { background: var(--ink); color: #fff; }
.acct-nav a.active .ic { color: var(--gold-2); }
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat strong { display: block; font: 500 28px/1.1 var(--display); margin-top: 8px; letter-spacing: -.02em; }
.stat.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.dark span { color: rgba(255,255,255,.6); }
.stat.dark strong { color: var(--gold-2); }
.two-col { display: grid; gap: 24px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.4fr 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.65); margin-top: auto; }
.footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.foot-grid .fg-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid .fg-brand { grid-column: auto; } }
.footer h5 { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer .contact .ic { color: var(--gold-2); margin-top: 2px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.socials { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.8); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font-size: 13.5px; }
.legal-links a:hover { color: #fff; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37,211,102,.6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 75; max-width: 720px; margin: 0 auto;
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 16px; background: var(--ink); color: rgba(255,255,255,.85); box-shadow: var(--shadow-lg); font-size: 13.5px;
  border: 1px solid rgba(230,205,138,.2);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 220px; }
.cookie-bar .ic { color: var(--gold-2); margin-top: 1px; }
.cookie-bar a { color: var(--gold-2); text-decoration: underline; }
body:has(.cookie-bar:not([hidden])) .wa-float { bottom: 110px; }

/* Legal pages */
.legal { display: grid; gap: 28px; padding: 36px 0 88px; align-items: start; }
@media (min-width: 960px) { .legal { grid-template-columns: 240px 1fr; gap: 40px; } }
.legal-nav { display: flex; gap: 6px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
@media (min-width: 960px) { .legal-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 20px); } }
.legal-nav a { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; white-space: nowrap; color: #384054; }
.legal-nav a:hover { background: var(--surface-2); }
.legal-nav a.active { background: var(--ink); color: #fff; }
.legal-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; max-width: 860px; }
@media (min-width: 768px) { .legal-doc { padding: 44px 52px; } }
.legal-doc .meta { font-size: 13px; color: var(--muted); padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-doc h2 { font-size: 20px; margin: 34px 0 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-doc h3 { font-size: 16px; margin: 22px 0 8px; }
.legal-doc p, .legal-doc li { color: #384054; line-height: 1.75; font-size: 15px; }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 10px 0; }
.legal-doc li + li { margin-top: 6px; }
.legal-doc a { color: #8a6d22; font-weight: 600; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-doc th { background: var(--surface-2); font-weight: 600; }
.legal-doc .table-scroll { overflow-x: auto; }
.legal-doc .callout { background: var(--gold-soft); border: 1px solid #efe0b8; border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 20px 0 8px; }
.toc ol { margin: 6px 0 0; columns: 2 220px; }
.toc li { font-size: 14px; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; max-width: 360px; }
.newsletter input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: #fff; padding: 0 16px; outline: 0; }
.newsletter input:focus { border-color: var(--gold); }

/* ---------- Admin ---------- */
.admin-body { background: #f3f3f0; }
.admin { display: grid; min-height: 100vh; }
@media (min-width: 1024px) { .admin { grid-template-columns: 250px 1fr; } }
.admin-side { background: var(--ink); color: #fff; padding: 20px 14px; display: none; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
@media (min-width: 1024px) { .admin-side { display: flex; } }
.admin-side .logo { padding: 4px 8px 22px; }
.admin-side a, .admin-side button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14px; color: rgba(255,255,255,.7); font-weight: 500; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.admin-side a:hover, .admin-side button:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side a.active { background: rgba(201,162,74,.14); color: var(--gold-2); }
.admin-side .side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
@media (min-width: 768px) { .admin-top { padding: 16px 32px; } }
.admin-top h1 { font-size: 20px; }
.admin-main { padding: 20px 16px 60px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (min-width: 768px) { .admin-main { padding: 28px 32px 60px; } }
.admin-mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: var(--ink); }
.admin-mobile-nav a { color: rgba(255,255,255,.75); font-size: 13.5px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.admin-mobile-nav a.active { background: var(--gold); color: var(--ink); font-weight: 600; }
@media (min-width: 1024px) { .admin-mobile-nav { display: none; } }
.bar-list { display: flex; flex-direction: column; gap: 14px; }
.bar-list .bl-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bar-list .bl-track { height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar-list .bl-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.img-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.img-picker label { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; }
.img-picker label:has(input:not(:checked)) { opacity: .35; }
.img-picker img { width: 100%; height: 100%; object-fit: cover; }
.img-picker input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; accent-color: var(--gold); }
.spec-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); font-size: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .2s; }
.dropzone:hover { border-color: var(--gold); }
.dropzone input { display: none; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-bar .input { height: 42px; max-width: 280px; }

/* Utilities */
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; } .wrap-f { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-16 { margin-bottom: 16px; }
.tr { text-align: right; } .nowrap { white-space: nowrap; } .w-full { width: 100%; }
.success-hero { text-align: center; max-width: 640px; margin: 0 auto; padding: 56px 0 24px; }
.success-hero .s-ic { width: 84px; height: 84px; border-radius: 99px; margin: 0 auto 22px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 10px rgba(21,128,61,.06); animation: pop .5s cubic-bezier(.3,1.6,.6,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
