/* ==========================================================================
   SCRIPTIFYZONE - Design System (Desktop)
   Brand: navy #22385F · cyan #2FCEC6 · orange #E3A545
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --navy: #22385F;
  --navy-2: #2B4A7A;
  --cyan: #2FCEC6;
  --cyan-2: #26B8B1;
  --orange: #E3A545;
  --orange-2: #D18F2F;
  --steel: #4A7386;
  --soft: #A4C0CA;
  --sky: #EBF3F6;

  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --surface-3: #F0F5F7;
  --border: #E2EAF0;
  --border-2: #D5E0E8;

  --text: #22385F;
  --text-2: #44597A;
  --text-soft: #6B7F9C;
  --text-muted: #93A5BC;

  --danger: #E5484D;
  --success: #27AE60;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(16, 42, 80, .05), 0 4px 12px rgba(16, 42, 80, .05);
  --shadow: 0 6px 18px rgba(16, 42, 80, .08);
  --shadow-lg: 0 18px 44px rgba(16, 42, 80, .14);
  --shadow-brand: 0 10px 26px rgba(47, 206, 198, .28);

  --nav-h: 66px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #121B2E;
  --surface-2: #16223A;
  --surface-3: #1B2A45;
  --border: #1F2E4A;
  --border-2: #2A3B5C;

  --text: #EAF0F8;
  --text-2: #C2CEE0;
  --text-soft: #93A4BF;
  --text-muted: #5E7192;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .25);
  --shadow: 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, .5);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan-2); text-decoration: none; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.25; font-weight: 800; margin: 0 0 10px; }
p { margin: 0 0 14px; }
svg { flex-shrink: 0; }
button { font-family: inherit; }
::selection { background: rgba(47, 206, 198, .25); }

/* ---------- UTILITIES ---------- */
.container { max-width: 1190px; margin: 0 auto; padding: 0 20px; }
.mt-1 { margin-top: 14px !important; }
.mt-2 { margin-top: 34px !important; }
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--text-muted); }
.text-err { color: var(--danger); }
.hidden { display: none !important; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-weight: 700; font-size: 14.5px;
  padding: 11px 20px; border-radius: 11px; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-accent { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #25241c; box-shadow: 0 8px 18px rgba(227, 165, 69, .3); }
.btn-accent:hover { box-shadow: 0 12px 26px rgba(227, 165, 69, .4); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1.5px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-2); }
.btn-warm { background: rgba(227, 165, 69, .12); color: var(--orange); }
.btn-warm:hover { background: rgba(227, 165, 69, .2); }
.btn-danger { background: rgba(229, 72, 77, .1); color: var(--danger); }
.btn-danger:hover { background: rgba(229, 72, 77, .18); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 13px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn > svg { width: 18px; height: 18px; }

/* ---------- FORMS ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-2, var(--text-soft)); margin-bottom: 7px; letter-spacing: .2px; }
.form-grid input[type="text"], .form-grid input[type="email"], .form-grid input[type="tel"],
.form-grid input[type="password"], .form-grid input[type="number"], .form-grid select, .form-grid textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px; font-size: 14.5px; font-family: inherit;
  border: 1.5px solid var(--border-2); border-radius: 11px;
  background: var(--surface); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 206, 198, .14);
}
input:disabled { background: var(--surface-3); color: var(--text-muted); cursor: not-allowed; }
textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 64px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: var(--surface-3); color: var(--text-soft);
  font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 8px; cursor: pointer;
}

/* ---------- NAV / HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-row { display: flex; align-items: center; gap: 26px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -.2px; }
.nav-main { display: flex; gap: 4px; margin-left: 8px; }
.nav-main a {
  padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--text-soft); transition: color .15s, background .15s;
}
.nav-main a:hover { color: var(--text); background: var(--surface-3); }
.nav-main a.active { color: var(--cyan-2); background: rgba(47, 206, 198, .1); }

.header-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; border: 1.5px solid var(--border-2);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text-soft); cursor: pointer;
  position: relative; transition: color .15s, border-color .15s, transform .15s;
}
.icon-btn:hover { color: var(--cyan-2); border-color: var(--cyan); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  background: var(--orange); color: #241d0e; font-size: 10.5px; font-weight: 800;
  border-radius: 20px; display: grid; place-items: center; padding: 0 4px;
  border: 2px solid var(--surface);
}

/* theme toggle icons */
#themeToggle .sun, [data-theme="dark"] #themeToggle .moon { display: none; }
#themeToggle .moon, [data-theme="dark"] #themeToggle .sun { display: block; }

/* user menu */
.user-menu { position: relative; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--navy-2));
  color: #fff; font-weight: 800; font-size: 16px; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s; z-index: 110;
}
.user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.ud-name { font-weight: 800; font-size: 13.5px; padding: 8px 10px 2px; }
.ud-mail { font-size: 12px; color: var(--text-muted); padding: 0 10px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-dropdown a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--text); font-weight: 600; }
.user-dropdown a:hover { background: var(--surface-3); }
.user-dropdown a.danger { color: var(--danger); }

/* ---------- PARTICLE CANVAS ---------- */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
}
main#app, .site-footer, .site-header, .mobile-bottomnav, .mobile-topbar { position: relative; z-index: 1; }

/* ---------- ANNOUNCE / TOP BAR ---------- */
.announce-bar {
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  color: #CFE9EF; font-size: 12.5px; font-weight: 600; text-align: center;
  padding: 8px 16px; letter-spacing: .2px; z-index: 5; position: relative;
}
.announce-bar b { color: var(--orange); }

/* ---------- HERO (HOME) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(47, 206, 198, .14), transparent 60%),
    radial-gradient(900px 480px at 0% 110%, rgba(227, 165, 69, .1), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(47, 206, 198, .12), transparent 60%),
    radial-gradient(800px 460px at -5% 115%, rgba(227, 165, 69, .08), transparent 55%),
    var(--bg);
}
.hero .container { padding-top: 64px; padding-bottom: 72px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(47, 206, 198, .1); color: var(--cyan-2);
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 30px;
  letter-spacing: .3px; margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(47, 206, 198, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 206, 198, .06); } }

.hero h1 { font-size: 46px; line-height: 1.15; letter-spacing: -1px; margin-bottom: 18px; }
.hero .grad-l {
  background: linear-gradient(92deg, var(--cyan) 10%, var(--orange) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero > .container > .hero-grid .hero-sub, .hero-sub {
  font-size: 16.5px; color: var(--text-soft); max-width: 520px; line-height: 1.75;
}
.hero-cta { display: flex; gap: 13px; margin: 30px 0 36px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--border); padding-top: 26px; max-width: 480px; }
.stat { flex: 1; padding-right: 22px; }
.stat + .stat { border-left: 1px solid var(--border); padding-left: 22px; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--navy-2), var(--cyan-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .stat b { background: linear-gradient(135deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-lg); padding: 20px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hc-head .tag { font-size: 12px; font-weight: 800; color: var(--text); }
.hc-head .tag .fire { color: var(--orange); }
.sticker {
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px; color: #7a3d00;
  background: linear-gradient(135deg, #FFD98E, var(--orange)); padding: 5px 11px;
  border-radius: 30px; text-transform: uppercase;
}
.hc-item { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 12px; transition: background .15s; }
.hc-item + .hc-item { border-top: 1px dashed var(--border); }
.hc-item:hover { background: var(--surface-3); }
.hc-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.hc-ic svg { width: 18px; height: 18px; }
.hc-ic.c0 { background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); }
.hc-ic.c1 { background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
.hc-ic.c2 { background: linear-gradient(135deg, #6C8CD5, #4B5AA8); }
.hc-body { flex: 1; min-width: 0; }
.hc-title { font-weight: 700; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-sub { font-size: 11.5px; color: var(--text-muted); }
.hc-price { font-weight: 800; font-size: 14px; color: var(--cyan-2); }

.hero-float-chip {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px;
  font-size: 12.5px; font-weight: 700; color: var(--text);
  animation: float 5s ease-in-out infinite reverse;
}
.hero-float-chip .ic {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  color: #0d3b39; font-weight: 800;
}
.chip-1 { top: -18px; right: 6%; }
.chip-1 .ic { background: var(--cyan); }
.chip-2 { bottom: 34px; left: -18px; }
.chip-2 .ic { background: var(--orange); }

/* ---------- GENERIC SECTIONS ---------- */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--cyan-2); margin-bottom: 12px;
}
.section-title { font-size: 34px; letter-spacing: -.7px; }
.grad {
  background: linear-gradient(92deg, var(--cyan), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--text-soft); font-size: 15.5px; }

/* ---------- CATEGORY CARDS ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 16px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cyan); }
.cat-ic {
  width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 13px;
  background: rgba(47, 206, 198, .1); color: var(--cyan-2);
  display: grid; place-items: center;
}
.cat-ic svg { width: 23px; height: 23px; }
.cat-ic img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 1px solid var(--border); }
.cat-ic.c-1 { background: rgba(227, 165, 69, .12); color: var(--orange); }
.cat-ic.c-2 { background: rgba(108, 140, 213, .12); color: #6C8CD5; }
.cat-ic.c-3 { background: rgba(229, 72, 77, .1); color: var(--danger); }
.cat-card h3 { font-size: 14.5px; margin: 0 0 3px; }
.cat-card span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ---------- PRODUCT CARDS ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-2); }
.prod-media { position: relative; aspect-ratio: 4/3; background: var(--surface-3); overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.prod-card:hover .prod-media img { transform: scale(1.05); }
.prod-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge-sale {
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #3d2a05;
  font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 7px;
  box-shadow: var(--shadow-sm);
}
.badge-featured {
  background: rgba(16, 39, 75, .82); color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 9px; border-radius: 7px; backdrop-filter: blur(4px);
}
.prod-quickview {
  position: absolute; inset: auto 10px 10px 10px; text-align: center;
  background: rgba(16, 39, 75, .85); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 9px; border-radius: 9px; opacity: 0; transform: translateY(8px);
  transition: .2s; backdrop-filter: blur(4px);
}
.prod-card:hover .prod-quickview { opacity: 1; transform: translateY(0); }
.prod-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--cyan-2); margin-bottom: 6px; }
.prod-title { font-size: 14.5px; margin: 0 0 6px; line-height: 1.4; }
.prod-title a { color: var(--text); }
.prod-title a:hover { color: var(--cyan-2); }
.prod-desc { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price-now { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.price-was { font-size: 12.5px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; font-weight: 600; }
.price-off { font-size: 11.5px; font-weight: 800; color: var(--success); margin-left: 6px; }
.prod-add {
  width: 38px; height: 38px; border-radius: 11px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #2c2308;
  display: grid; place-items: center; transition: transform .15s, box-shadow .15s;
}
.prod-add:hover { transform: scale(1.08); box-shadow: 0 8px 18px rgba(227, 165, 69, .4); }
.prod-add svg { width: 17px; height: 17px; }

/* ---------- FEATURES ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cyan); }
.feature-ic {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(47, 206, 198, .14), rgba(47, 206, 198, .05));
  color: var(--cyan-2); display: grid; place-items: center;
}
.feature-ic.alt {
  background: linear-gradient(135deg, rgba(227, 165, 69, .15), rgba(227, 165, 69, .05));
  color: var(--orange);
}
.feature-ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: 13.5px; margin: 0; line-height: 1.7; }

/* ---------- SCROLL ROW (latest) ---------- */
.scroll-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- TESTIMONIALS ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: transform .2s, box-shadow .2s;
}
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi-stars { color: var(--orange); font-size: 15px; letter-spacing: 3px; margin-bottom: 12px; }
.testi p { color: var(--text); font-size: 14px; line-height: 1.8; }
.testi-user { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-av {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--steel));
}
.testi-user b { display: block; font-size: 13.5px; }
.testi-user span { font-size: 12px; color: var(--text-muted); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(120deg, var(--navy), var(--navy-2) 55%, #2E5584);
  border-radius: 24px; padding: 64px 40px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(47, 206, 198, .22), transparent 60%),
    radial-gradient(500px 220px at 90% 100%, rgba(227, 165, 69, .2), transparent 60%);
}
.cta-banner h2 { color: #fff; font-size: 34px; letter-spacing: -.7px; margin-bottom: 12px; position: relative; }
.cta-banner p { color: #A4C0CA; font-size: 15.5px; margin-bottom: 30px; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { padding: 44px 0 30px; border-bottom: 1px solid var(--border); background: var(--bg); }
.page-hero h1 { font-size: 32px; letter-spacing: -.6px; margin-bottom: 8px; }
.page-hero p { color: var(--text-soft); margin: 0; font-size: 15px; }
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); font-weight: 600; }
.crumbs a:hover { color: var(--cyan-2); }
.crumbs b { color: var(--text-soft); font-weight: 700; }

/* ---------- PANELS ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; margin-bottom: 22px;
}
.panel > h2 {
  display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 20px;
}
.panel > h2 svg { width: 21px; height: 21px; color: var(--cyan-2); }
.panel > h3 { font-size: 15px; }

/* ---------- EMPTY STATE ---------- */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-ic { font-size: 44px; margin-bottom: 12px; }
.empty-state h3 { font-size: 19px; }
.empty-state p { color: var(--text-soft); font-size: 14px; max-width: 380px; margin: 0 auto 18px; }

/* ---------- SHOP PAGE ---------- */
.shop-layout { display: grid; grid-template-columns: 236px 1fr; gap: 30px; padding: 34px 0 80px; }
.filter-box { position: sticky; top: calc(var(--nav-h) + 22px); align-self: start; }
.filter-box h4 { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }
.filter-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--text-soft); margin-bottom: 3px; transition: .15s;
}
.filter-link:hover { background: var(--surface-3); color: var(--text); }
.filter-link.on { background: rgba(47, 206, 198, .1); color: var(--cyan-2); }
.filter-link .cnt { font-size: 11px; font-weight: 700; background: var(--surface-3); padding: 2px 8px; border-radius: 20px; color: var(--text-muted); }
.filter-link.on .cnt { background: rgba(47, 206, 198, .15); color: var(--cyan-2); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 14px; flex-wrap: wrap; }
.search-hits { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.sort-form select {
  width: auto; min-width: 190px; padding: 10px 36px 10px 14px; font-size: 13.5px;
  border-radius: 10px; border: 1.5px solid var(--border-2); background: var(--surface);
  color: var(--text); cursor: pointer;
}

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; }
.pagination a, .pagination .dots {
  min-width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border); transition: .15s;
}
.pagination a:hover { border-color: var(--cyan); color: var(--cyan-2); }
.pagination a.cur { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-color: transparent; }
.pagination .dots { border: none; background: none; }

/* ---------- PRODUCT DETAIL ---------- */
.product-page { padding: 26px 0 90px; }
.prod-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; margin-bottom: 44px; }
.gallery-main {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); aspect-ratio: 16/11;
  display: grid; place-items: center; margin-bottom: 14px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb {
  width: 74px; height: 58px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--border); opacity: .65; transition: .15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.on { border-color: var(--cyan); opacity: 1; box-shadow: 0 0 0 3px rgba(47, 206, 198, .15); }

.prod-info h1 { font-size: 30px; letter-spacing: -.6px; margin-bottom: 16px; line-height: 1.25; }
.prod-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--text-soft); background: var(--surface-3); padding: 6px 12px;
  border-radius: 30px;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.chip i { font-style: normal; }
.sale-chip { background: rgba(47, 206, 198, .1); color: var(--cyan-2); font-weight: 700; }
.chip-free { background: linear-gradient(135deg, #4A7386, #6D94A6); color: #fff; font-weight: 800; }

.prod-price-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 20px;
}
.prod-price-box .price-now { font-size: 30px; }
.prod-price-box .price-off { background: rgba(227, 165, 69, .14); color: var(--orange); font-size: 12px; padding: 3px 9px; border-radius: 6px; }

.prod-short { font-size: 15px; color: var(--text-soft); line-height: 1.8; margin-bottom: 24px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.auth-note { font-size: 13px; color: var(--text-soft); background: var(--surface); border: 1.5px dashed var(--border-2); border-radius: 12px; padding: 13px 17px; margin-bottom: 20px; }
.auth-note a { font-weight: 800; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.trust-tile {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 13px 14px;
}
.trust-tile svg { width: 25px; height: 25px; color: var(--cyan-2); }
.trust-tile b { display: block; font-size: 12.5px; color: var(--text); }
.trust-tile span { font-size: 11px; color: var(--text-muted); }

/* tabs */
.prod-tabs { margin-bottom: 50px; }
.tab-heads { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  border: none; background: none; cursor: pointer; padding: 12px 18px;
  font-size: 14.5px; font-weight: 700; color: var(--text-muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: .15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.on { color: var(--cyan-2); border-bottom-color: var(--cyan); }
.tab-panel { font-size: 14.5px; color: var(--text-soft); line-height: 1.85; }
.tab-panel h3 { font-size: 16px; }

/* ---------- CART ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 38px 0 90px; align-items: start; }
.cart-layout > div > .panel:first-child { margin-top: 0; }

.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px; transition: box-shadow .18s, transform .18s;
}
.cart-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cart-item > a:first-child { width: 96px; height: 72px; border-radius: 11px; overflow: hidden; flex-shrink: 0; }
.cart-item > a:first-child img { width: 100%; height: 100%; object-fit: cover; }
.ci-body { flex: 1; min-width: 0; }
.ci-body h4 { font-size: 14.5px; margin: 0 0 4px; }
.ci-body h4 a { color: var(--text); }
.ci-body span { font-size: 12px; color: var(--text-muted); }
.ci-price { font-weight: 800; font-size: 15px; color: var(--text); white-space: nowrap; }
.ci-remove {
  width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--border-2);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.ci-remove:hover { color: var(--danger); border-color: var(--danger); }
.ci-remove svg { width: 16px; height: 16px; }

.summary {
  position: sticky; top: calc(var(--nav-h) + 22px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px;
}
.summary h3 { font-size: 16.5px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13.5px; color: var(--text-soft); }
.sum-row.total { border-top: 1.5px dashed var(--border-2); margin-top: 8px; padding-top: 15px; }
.sum-row.total span { font-size: 14.5px; font-weight: 700; color: var(--text); }
.sum-row.total b { font-size: 21px; color: var(--text); letter-spacing: -.4px; }
.sum-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11.5px; color: var(--text-muted); margin-top: 16px; }
.sum-secure svg { width: 15px; height: 15px; color: var(--cyan-2); }

/* ---------- CHECKOUT ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 38px 0 90px; align-items: start; }
.checkout-grid > form { min-width: 0; }
.gateway-option {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.gateway-option:hover { border-color: var(--cyan-2); }
.gateway-option.selected { border-color: var(--cyan); background: rgba(47, 206, 198, .05); box-shadow: 0 0 0 3px rgba(47, 206, 198, .12); }
.go-radio {
  width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--border-2);
  display: grid; place-items: center; transition: .15s; flex-shrink: 0;
}
.gateway-option.selected .go-radio { border-color: var(--cyan); }
.gateway-option.selected .go-radio::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.gateway-option b { font-size: 14px; color: var(--text); }
.gateway-option small { display: block; color: var(--text-muted); font-size: 11.5px; }

/* ---------- ACCOUNT ---------- */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 40px 0 90px; align-items: start; }
.acct-side { position: sticky; top: calc(var(--nav-h) + 22px); }
.acct-me {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
}
.acct-me .avatar { width: 46px; height: 46px; font-size: 17px; }
.acct-me b { display: block; font-size: 14px; }
.acct-me span { display: block; font-size: 11.5px; color: var(--text-muted); word-break: break-all; }
.acct-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.acct-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); transition: .15s;
}
.acct-nav a svg { width: 17px; height: 17px; opacity: .8; }
.acct-nav a:hover { background: var(--surface-3); color: var(--text); }
.acct-nav a.on { background: rgba(47, 206, 198, .1); color: var(--cyan-2); }
.acct-nav a.danger { color: var(--danger); }

.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.dash-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; border-top: 3px solid var(--cyan);
}
.dc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; margin-bottom: 12px; }
.dc-ic svg { width: 18px; height: 18px; }
.dash-card b { display: block; font-size: 21px; letter-spacing: -.4px; }
.dash-card span { font-size: 12px; color: var(--text-muted); }

.dl-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 4px;
  border-bottom: 1px dashed var(--border);
}
.dl-item:last-child { border-bottom: none; }
.dl-ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(47, 206, 198, .1); color: var(--cyan-2); flex-shrink: 0;
}
.dl-ic svg { width: 19px; height: 19px; }
.dl-info { flex: 1; min-width: 0; }
.dl-info b { display: block; font-size: 13.5px; }
.dl-info span { font-size: 12px; color: var(--text-muted); }
.dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-3); color: var(--cyan-2); font-size: 12.5px; font-weight: 800;
  padding: 9px 14px; border-radius: 9px; transition: .15s; white-space: nowrap;
}
.dl-btn:hover { background: rgba(47, 206, 198, .12); }
.dl-btn svg { width: 14px; height: 14px; }

/* orders */
.order-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.order-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.order-head b { font-size: 14px; }
.order-head small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.order-status { font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 30px; letter-spacing: .4px; text-transform: uppercase; }
.order-status.completed { background: rgba(38, 168, 96, .12); color: var(--success); }
.order-status.pending { background: rgba(227, 165, 69, .14); color: var(--orange); }
.order-status.failed { background: rgba(229, 72, 77, .12); color: var(--danger); }
.order-prod { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--border); }
.order-prod img { width: 52px; height: 40px; border-radius: 8px; object-fit: cover; }
.op-name { flex: 1; font-size: 13px; font-weight: 600; }
.op-price { font-size: 13px; font-weight: 700; }
.order-foot { display: flex; justify-content: space-between; border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.order-foot b { color: var(--text); font-size: 15px; }

/* ---------- AUTH ---------- */
.auth-wrap { display: grid; place-items: center; padding: 66px 20px 110px; background: radial-gradient(900px 480px at 80% -10%, rgba(47, 206, 198, .09), transparent 55%), var(--bg); }
.auth-card {
  width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-lg); padding: 38px;
}
.auth-card h1 { font-size: 26px; letter-spacing: -.5px; margin-bottom: 6px; }
.auth-sub { color: var(--text-soft); font-size: 14px; margin-bottom: 28px; }
.auth-alt { margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--text-soft); }
.auth-alt a { font-weight: 800; }

/* ---------- SUPPORT ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 40px 0 90px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 4px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text);
}
.faq-q svg { width: 18px; height: 18px; color: var(--text-muted); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--cyan-2); }
.faq-a { display: none; padding: 0 4px 16px; font-size: 13.5px; color: var(--text-soft); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin: 0; }

/* ---------- LEGAL ---------- */
.legal { padding: 40px 0 90px; max-width: 820px; margin: 0 auto; }
.legal .panel h2 { font-size: 15.5px; margin-bottom: 10px; margin-top: 20px; }
.legal .panel h2:first-child { margin-top: 0; }
.legal .panel p, .legal .panel li { color: var(--text-soft); font-size: 14px; line-height: 1.85; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

/* ---------- PAYMENT STATUS ---------- */
.payment-status-wrap { padding: 50px 0 110px; }
.success-ring { animation: spin 4s linear infinite; }

/* ---------- TOASTS ---------- */
.toast-wrap { position: fixed; top: calc(var(--nav-h) + 16px); right: 20px; z-index: 200; display: grid; gap: 10px; max-width: 360px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--cyan);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 17px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--cyan); }
.toast b { display: block; font-size: 12px; color: var(--text-muted); font-weight: 700; }

/* ---------- REVEAL ---------- */
.reveal, .reveal-d1, .reveal-d2, .reveal-d3, .reveal-d4 { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in, .reveal-d1.in, .reveal-d2.in, .reveal-d3.in, .reveal-d4.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .05s; }
.reveal-d2 { transition-delay: .12s; }
.reveal-d3 { transition-delay: .19s; }
.reveal-d4 { transition-delay: .26s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-d1, .reveal-d2, .reveal-d3, .reveal-d4 { opacity: 1; transform: none; } }

/* ---------- FOOTER ---------- */
.site-footer {
  background: linear-gradient(160deg, #0E1A2E, #14233D);
  color: #A4C0CA; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 34px; padding: 56px 0 44px; }
.footer-col h4 { color: #fff; font-size: 13.5px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; padding: 5px 0; font-size: 13.5px; color: color-mix(in srgb, #A4C0CA 90%, transparent); transition: color .15s, padding-left .15s; }
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }
.footer-brand { max-width: 300px; }
.footer-logo { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; }
.footer-socials { display: flex; gap: 9px; margin-top: 18px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); color: #A4C0CA;
}
.footer-socials a:hover { color: var(--cyan); background: rgba(47, 206, 198, .12); }
.footer-socials svg { width: 15px; height: 15px; }
.news-form { display: flex; gap: 8px; margin-top: 4px; }
.news-form input {
  flex: 1; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; border-radius: 10px; padding: 11px 13px; font-size: 13px; outline: none;
}
.news-form input:focus { border-color: var(--cyan); }
.news-form input::placeholder { color: color-mix(in srgb, #A4C0CA 70%, transparent); }
.news-form button {
  width: 44px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); color: #042f2c;
  display: grid; place-items: center; transition: transform .15s;
}
.news-form button:hover { transform: translateY(-2px); }
.news-form svg { width: 17px; height: 17px; }
.payment-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.payment-badges span {
  font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 5px 11px;
  border-radius: 6px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  color: #A4C0CA;
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 12.5px; color: color-mix(in srgb, #A4C0CA 65%, transparent); }
.footer-bottom i { color: var(--orange); font-style: normal; }

/* ---------- BACK TO TOP ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- RESPONSIVE (desktop tablet quirks) ---------- */
@media (max-width: 1024px) {
  .products-grid, .scroll-row { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 38px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .prod-detail { grid-template-columns: 1fr; }
  .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-box { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .acct-side { position: static; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
}