/* ==========================================================================
   Ace Dynamics – storefront design system
   Themes:  hub / auto  = dark graphite + brand violet
            shop        = warm light + terracotta
            neutral     = clean light (cart, checkout, account)
   ========================================================================== */

:root {
  --font-display: "Genos", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .12);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --hdr-bg: #0a0c0f;
  --hdr-ink: #f3f4f8;
  --hdr-muted: #a4acba;
  --hdr-line: rgba(255, 255, 255, .1);
  --ok: #2fbf71;
  --warn: #e9a23b;
  --danger: #e5484d;
}

body, body[data-theme="neutral"] {
  --bg: #f4f4f7; --bg-2: #ececf1; --surface: #fff; --surface-2: #f5f5f9;
  --line: rgba(20, 21, 26, .12); --ink: #14151a; --muted: #5d6272;
  --accent: #6d28d9; --accent-hover: #5b21b6; --accent-ink: #fff;
  --accent-text: #6d28d9; --accent-soft: rgba(109, 40, 217, .1);
  --ok-text: #137a46; --danger-text: #b4232a; --warn-text: #8a5a00;
}
body[data-theme="auto"], body[data-theme="hub"] {
  --bg: #0a0c0f; --bg-2: #0f1216; --surface: #14181d; --surface-2: #1b2027;
  --line: rgba(255, 255, 255, .1); --ink: #f3f4f8; --muted: #9aa3b2;
  --accent: #7c3aed; --accent-hover: #6d28d9; --accent-ink: #fff;
  --accent-text: #b79cff; --accent-soft: rgba(124, 58, 237, .18);
  --ok-text: #5fdc9a; --danger-text: #ff8a8e; --warn-text: #f3bd68;
  color-scheme: dark;
}
body[data-theme="shop"] {
  --bg: #faf7f2; --bg-2: #f2ece2; --surface: #fff; --surface-2: #f5f0e7;
  --line: rgba(31, 27, 22, .13); --ink: #1f1b16; --muted: #686154;
  --accent: #b04a22; --accent-hover: #933b17; --accent-ink: #fff;
  --accent-text: #a8431b; --accent-soft: rgba(176, 74, 34, .1);
  --ok-text: #137a46; --danger-text: #b4232a; --warn-text: #8a5a00;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 1rem/1.6 var(--font-body); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); text-transform: uppercase; line-height: .98; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-2); }
.eyebrow { font: 700 .8rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--accent); --_ink: var(--accent-ink); --_bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 700 .95rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid var(--_bd); background: var(--_bg); color: var(--_ink);
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { --_bg: var(--accent-hover); --_bd: var(--accent-hover); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn:active { transform: translateY(0); }
.btn--ghost { --_bg: transparent; --_ink: var(--ink); --_bd: var(--line); }
.btn--ghost:hover { --_bg: var(--accent-soft); --_bd: var(--accent-text); box-shadow: none; }
.btn--light { --_bg: #fff; --_ink: #0a0c0f; --_bd: #fff; }
.btn--light:hover { --_bg: #e9e6f5; --_bd: #e9e6f5; box-shadow: none; }
.btn--whatsapp { --_bg: #1fa855; --_bd: #1fa855; --_ink: #fff; }
.btn--whatsapp:hover { --_bg: #178a45; --_bd: #178a45; box-shadow: 0 10px 24px -10px #1fa855; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.link-arrow { font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--hdr-bg); color: var(--hdr-ink); border-bottom: 1px solid var(--hdr-line); }
.site-header a { color: inherit; }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none !important; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand-text { font: 800 1.35rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.brand-text small { display: block; font: 600 .6rem/1.4 var(--font-body); letter-spacing: .22em; color: var(--hdr-muted); }
.dept-switch { display: flex; background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 4px; gap: 2px; }
.dept-switch a { padding: .45rem 1rem; border-radius: 999px; font: 700 .82rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--hdr-muted); text-decoration: none; transition: .2s; }
.dept-switch a:hover { color: #fff; }
.dept-switch a[aria-current="true"] { background: #fff; color: #0a0c0f; }
.primary-nav { display: flex; gap: .25rem; margin-left: .5rem; }
.primary-nav a { padding: .5rem .8rem; border-radius: 8px; font-weight: 600; font-size: .92rem; color: var(--hdr-muted); text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 1.1rem; text-decoration: none !important; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 .7rem/20px var(--font-body); text-align: center; }
.cart-badge[data-count="0"] { display: none; }
.nav-toggle { display: none; }
.user-menu { position: relative; }
.user-toggle { display: flex; align-items: center; gap: .55rem; background: rgba(255, 255, 255, .07); border: 0; color: #fff; padding: .35rem .8rem .35rem .35rem; border-radius: 999px; cursor: pointer; font: 600 .88rem/1 var(--font-body); }
.user-toggle:hover { background: rgba(255, 255, 255, .13); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 700; text-transform: uppercase; }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: #14181d; border: 1px solid var(--hdr-line); border-radius: var(--radius); padding: .4rem; box-shadow: var(--shadow); display: none; }
.user-dropdown.show { display: block; }
.user-dropdown a { display: flex; gap: .7rem; align-items: center; padding: .65rem .8rem; border-radius: 8px; color: #e8eaf0; font-size: .92rem; text-decoration: none; }
.user-dropdown a:hover { background: rgba(255, 255, 255, .08); }
.user-dropdown a i { width: 18px; color: var(--hdr-muted); text-align: center; }
.user-dropdown a.admin-link { color: #c9b6ff; }
.user-dropdown hr { border: 0; border-top: 1px solid var(--hdr-line); margin: .3rem 0; }
.auth-links { display: flex; gap: .4rem; align-items: center; }
.auth-links .btn { padding: .6rem 1.1rem; font-size: .85rem; }
.site-header a.btn { --_bg: #fff; --_ink: #0a0c0f; --_bd: #fff; color: var(--_ink); }
.site-header a.btn:hover { --_bg: #e9e6f5; --_bd: #e9e6f5; box-shadow: none; }
.site-header a.btn--ghost { --_bg: transparent; --_ink: #fff; --_bd: rgba(255, 255, 255, .28); }
.site-header a.btn--ghost:hover { --_bg: rgba(255, 255, 255, .1); --_bd: #fff; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--hdr-bg); padding: .75rem 1rem 1.25rem; border-bottom: 1px solid var(--hdr-line); margin: 0; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .85rem .8rem; font-size: 1rem; }
  .brand-text { display: none; }
  .user-toggle span, .user-toggle .fa-chevron-down { display: none; }
  .user-toggle { padding: .35rem; }
}
@media (max-width: 520px) {
  .dept-switch a { padding: .45rem .7rem; }
  .auth-links .btn--ghost { display: none; }
}

/* ---------- announcement ---------- */
.topbar { background: var(--accent); color: var(--accent-ink); text-align: center; font: 600 .82rem/1.3 var(--font-body); letter-spacing: .04em; padding: .55rem 1rem; }
.topbar a { color: inherit; text-decoration: underline; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 9, 12, .94) 0%, rgba(8, 9, 12, .72) 45%, rgba(8, 9, 12, .25) 100%), linear-gradient(0deg, rgba(8, 9, 12, .9), transparent 40%); }
.hero h1, .hero h2, .hero p, .hero .eyebrow { color: #fff; }
.hero .eyebrow { color: #c9b6ff; }
.hero .lead { color: rgba(255, 255, 255, .82); }
.hero__inner { padding: clamp(4rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero h1 em { font-style: normal; color: #b79cff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .btn--ghost { --_ink: #fff; --_bd: rgba(255, 255, 255, .35); }
.hero .btn--ghost:hover { --_bg: rgba(255, 255, 255, .12); --_bd: #fff; }
.hero--short .hero__inner { padding: clamp(3rem, 8vw, 5.5rem) 0; }

/* department doors (hub) */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: -3.5rem; position: relative; z-index: 2; }
.door { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; color: #fff; text-decoration: none !important; isolation: isolate; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.door:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.door:hover img { transform: scale(1.05); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 9, 12, .95) 8%, rgba(8, 9, 12, .35) 60%, rgba(8, 9, 12, .15)); }
.door--shop { background: linear-gradient(135deg, #f0e3d2, #d9a77f 55%, #b04a22); }
.door--shop::after { background: linear-gradient(0deg, rgba(40, 18, 8, .85) 5%, rgba(40, 18, 8, .1) 70%); }
.door--shop .door__glyph { position: absolute; right: -20px; top: -10px; font-size: 15rem; color: rgba(255, 255, 255, .18); z-index: -1; line-height: 1; }
.door__tag { align-self: flex-start; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); padding: .35rem .8rem; border-radius: 999px; font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.door h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .4rem; }
.door p { color: rgba(255, 255, 255, .85); max-width: 40ch; }
.door__go { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; margin-top: .5rem; }
.door__go span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0a0c0f; transition: transform .3s var(--ease); }
.door:hover .door__go span { transform: translateX(6px); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; margin-top: -2rem; } .door { min-height: 280px; } }

/* ---------- feature grids ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .25s var(--ease), border-color .25s; }
.feature:hover { transform: translateY(-3px); border-color: var(--accent-text); }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.feature a.link-arrow { margin-top: 1rem; font-size: .92rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--accent-text); font-size: .85rem; margin-top: .3rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: .25s var(--ease); min-height: 130px; }
.tile i { font-size: 1.4rem; color: var(--accent-text); margin-bottom: auto; }
.tile strong { font: 800 1.35rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.tile span { font-size: .85rem; color: var(--muted); }
.tile:hover { transform: translateY(-4px); border-color: var(--accent-text); background: var(--accent-soft); }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-text); }
.pcard__media { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 2.4rem; opacity: .5; }
.pcard__badge { position: absolute; top: .7rem; left: .7rem; padding: .3rem .65rem; border-radius: 999px; font: 700 .7rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: rgba(10, 12, 15, .82); color: #fff; backdrop-filter: blur(4px); }
.pcard__badge--low { background: #8a5a00; }
.pcard__badge--pre { background: var(--accent); color: var(--accent-ink); }
.pcard__badge--out { background: #7a1d22; }
.pcard__body { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.pcard__cat { font: 700 .7rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pcard__name { font: 700 1.05rem/1.3 var(--font-body); margin: .15rem 0 0; color: var(--ink); }
.pcard__name a { color: inherit; text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__brand { font-size: .82rem; color: var(--muted); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .8rem; gap: .5rem; }
.price { font: 800 1.45rem/1 var(--font-display); letter-spacing: .02em; color: var(--ink); }
.pcard__add { position: relative; z-index: 2; }
.add-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-size: .95rem; transition: transform .2s var(--ease), background .2s; }
.add-btn:hover { background: var(--accent-hover); transform: scale(1.08); }
.add-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.add-btn.is-busy { opacity: .6; pointer-events: none; }
.add-btn.is-done { background: var(--ok); }

/* ---------- catalogue layout ---------- */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; align-items: start; padding-bottom: 4rem; }
.filters { position: sticky; top: 90px; display: grid; gap: 1rem; }
.filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.filter-box h3 { font: 700 .75rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.cat-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem .65rem; border-radius: 8px; color: var(--ink); font-size: .93rem; text-decoration: none; }
.cat-list a small { color: var(--muted); }
.cat-list a:hover { background: var(--accent-soft); }
.cat-list a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cat-list a[aria-current="true"] small { color: inherit; opacity: .8; }
.catalog-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.searchbox { position: relative; flex: 1 1 260px; max-width: 460px; }
.searchbox i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbox input[type="search"] { padding-left: 2.8rem; }
.result-meta { color: var(--muted); font-size: .9rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; gap: .45rem; align-items: center; background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: .35rem .8rem; font-size: .82rem; font-weight: 600; text-decoration: none !important; }
.chip:hover { background: var(--accent); color: var(--accent-ink); }
.filters-panel { display: grid; gap: 1rem; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; }
  .filters-panel:not(.open) { display: none; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .pcard__body { padding: .8rem; }
  .pcard__name { font-size: .95rem; }
  .price { font-size: 1.25rem; }
  .add-btn { width: 38px; height: 38px; }
}

/* pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.pager a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.pager .current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager .gap { border: 0; background: transparent; }
.pager .disabled { opacity: .4; }

/* ---------- forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label, .label { font: 600 .85rem/1.2 var(--font-body); color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: .65rem; align-items: center; cursor: pointer; font-size: .93rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.field-error, .validation-summary { color: var(--danger-text); font-size: .85rem; }
.validation-summary ul { margin: 0; padding-left: 1.1rem; }
.alert { display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid; font-size: .95rem; margin-bottom: 1.25rem; }
.alert--ok { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok-text); }
.alert--error { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger-text); }
.alert--info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent-text) 40%, transparent); color: var(--ink); }

/* ---------- panels / pages ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.75rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .4rem; }
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.panel h2 { font-size: 1.8rem; text-transform: none; }
.panel + .panel { margin-top: 1.25rem; }
.empty { text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.empty > i { font-size: 2.4rem; color: var(--accent-text); opacity: .7; margin-bottom: 1rem; }
.empty h3 { font-size: 1.9rem; }
.empty p { color: var(--muted); max-width: 44ch; margin-inline: auto; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: 3rem; align-items: start; }
.gallery__main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery__thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; opacity: .75; }
.gallery__thumbs button[aria-current="true"], .gallery__thumbs button:hover { border-color: var(--accent-text); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info h1 { font-size: clamp(2rem, 4vw, 3.1rem); text-transform: none; margin-bottom: .3rem; }
.pdp__price { font: 800 2.6rem/1 var(--font-display); margin: 1rem 0; }
.stock { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock--pre { color: var(--accent-text); }
.stock--in { color: var(--ok-text); } .stock--low { color: var(--warn-text); } .stock--out { color: var(--danger-text); }
.buy-row { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.qty button:hover { background: var(--accent-soft); }
.qty input { width: 48px; text-align: center; border: 0; padding: .6rem 0; background: transparent; border-radius: 0; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.spec { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .93rem; }
.spec th, .spec td { text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.spec th { color: var(--muted); font-weight: 500; width: 38%; }
.prose { color: var(--ink); max-width: 65ch; white-space: pre-line; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }

/* ---------- cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.75rem; align-items: start; padding-bottom: 4rem; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item__img { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font: 700 1.05rem/1.3 var(--font-body); margin-bottom: .2rem; }
.cart-item h3 a { color: var(--ink); }
.cart-item__meta { font-size: .85rem; color: var(--muted); }
.cart-item__side { text-align: right; display: grid; gap: .6rem; justify-items: end; }
.cart-item .qty button { height: 38px; width: 36px; } .cart-item .qty input { width: 38px; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.linklike:hover { color: var(--danger-text); }
.summary { position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; font: 800 1.7rem/1 var(--font-display); }
.progress { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin: .5rem 0 .35rem; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
.radio-card { display: flex; gap: .9rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; margin-bottom: .7rem; background: var(--surface); transition: .2s; }
.radio-card:hover { border-color: var(--accent-text); }
.radio-card:has(input:checked) { border-color: var(--accent-text); background: var(--accent-soft); }
.radio-card input { margin-top: .3rem; accent-color: var(--accent); width: 18px; height: 18px; }
.radio-card strong { display: block; }
.radio-card small { color: var(--muted); display: block; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .cart-item { grid-template-columns: 72px 1fr; } .cart-item__img { width: 72px; height: 72px; } .cart-item__side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; text-align: left; } }

/* orders */
.status { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font: 700 .72rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-text); }
.status--Delivered, .status--Paid, .status--Confirmed, .status--Completed { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok-text); }
.status--Cancelled, .status--Refunded { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger-text); }
.status--Pre-order { background: var(--accent-soft); color: var(--accent-text); }
.status--Pending, .status--Processing { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn-text); }
.order-card { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .9rem; color: var(--ink); text-decoration: none !important; transition: .2s; }
.order-card:hover { border-color: var(--accent-text); transform: translateY(-2px); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .8rem .6rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.table td.num, .table th.num { text-align: right; }

/* auth */
.auth { min-height: 70vh; display: grid; place-items: center; padding: 3rem 0; }
.auth-card { width: min(480px, 100% - 2rem); }
.auth-card h1 { font-size: 2.6rem; text-transform: none; }
.auth-alt { text-align: center; margin-top: 1.25rem; color: var(--muted); font-size: .93rem; }

/* transport page */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); font: 800 2.6rem/1 var(--font-display); color: var(--accent-text); display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.4rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
.booking { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: #07080a; color: #c4c9d4; padding: 4rem 0 1.5rem; margin-top: auto; border-top: 1px solid var(--hdr-line); }
.site-footer h4 { font: 700 .75rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #8d95a5; margin-bottom: 1.1rem; }
.site-footer a { color: #e6e8ee; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid a { text-decoration: none; font-size: .93rem; color: #c4c9d4; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid--3 { grid-template-columns: 1.6fr 1fr 1.3fr; }
.footer-brand img { height: 64px; margin-bottom: 1rem; }
.footer-brand p { font-size: .93rem; max-width: 34ch; color: #98a0b0; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); transition: .2s; color: #fff; }
.socials a:hover { background: var(--accent, #7c3aed); transform: translateY(-2px); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; color: #7f8797; }
.footer-base a { color: #98a0b0; }
@media (max-width: 860px) { .footer-grid, .footer-grid--3 { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid, .footer-grid--3 { grid-template-columns: 1fr; } }

/* floating whatsapp + toast */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff !important; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .5); transition: transform .2s var(--ease); text-decoration: none !important; }
.wa-float:hover { transform: scale(1.08); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 140%); z-index: 300; background: #14181d; color: #fff; border: 1px solid rgba(255, 255, 255, .15); padding: .85rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); font-size: .93rem; transition: transform .35s var(--ease); max-width: calc(100% - 2rem); display: flex; gap: .7rem; align-items: center; }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: #c9b6ff; font-weight: 700; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .wa-float, .toast { display: none !important; } }
