/* =========================================================
   GLTrade — Design System
   Palette: Royal blue (brand) · Violet (depth) · Sunset orange (accent)
   ========================================================= */
:root {
    --brand-50: #eef1ff;
    --brand-100: #dfe5ff;
    --brand-200: #c2ccff;
    --brand-400: #6b83ff;
    --brand-500: #4a67ff;
    --brand-600: #2b4bf2;
    --brand-700: #1f38c7;
    --violet-500: #7b4dff;
    --accent-400: #ffa266;
    --accent-500: #ff8a3d;
    --success: #12b886;
    --danger: #ef4444;
    --warning: #f59f00;

    --bg: #f5f7fc;
    --bg-soft: #eef2fa;
    --surface: #ffffff;
    --surface-2: #f8faff;
    --text: #131a33;
    --text-2: #3b4566;
    --muted: #6b7594;
    --border: #e3e8f4;
    --border-strong: #cfd6ea;

    --grad-brand: linear-gradient(135deg, #2b4bf2 0%, #7b4dff 60%, #b14dff 100%);
    --grad-pop: linear-gradient(120deg, #2b4bf2 0%, #7b4dff 45%, #ff8a3d 100%);
    --grad-dark: linear-gradient(160deg, #0b1230 0%, #131c45 100%);

    --shadow-xs: 0 1px 2px rgba(19, 26, 51, .06);
    --shadow-sm: 0 2px 8px rgba(19, 26, 51, .06), 0 1px 2px rgba(19, 26, 51, .04);
    --shadow-md: 0 10px 30px -10px rgba(19, 26, 51, .18), 0 4px 10px -4px rgba(19, 26, 51, .06);
    --shadow-lg: 0 30px 60px -20px rgba(19, 26, 51, .28);
    --shadow-brand: 0 12px 30px -10px rgba(43, 75, 242, .55);

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --header-h: 72px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
    --font: 'Inter', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html.dark {
    --bg: #070b1a;
    --bg-soft: #0c1228;
    --surface: #0f1631;
    --surface-2: #131b3b;
    --text: #e9edfb;
    --text-2: #c3cae3;
    --muted: #8d97b8;
    --border: #1e2850;
    --border-strong: #2a3666;
    --brand-50: #151e46;
    --brand-100: #1b2758;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
    --shadow-md: 0 14px 34px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color .4s var(--ease), color .4s var(--ease);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
::selection { background: var(--brand-500); color: #fff; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 24px; }
.container.section { padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-success { color: var(--success); font-weight: 700; }
.mobile-only { display: none !important; }

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--grad-pop); z-index: 1100; transition: width .1s linear;
}

/* ---------- Logo ---------- */
.logo {
    font-size: 26px; font-weight: 800; letter-spacing: -.04em;
    color: var(--text); display: inline-flex; align-items: center; white-space: nowrap;
}
.logo span {
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo.light { color: #fff; }
.logo.light span { background: linear-gradient(120deg, #9fb0ff, #ffb07a); -webkit-background-clip: text; background-clip: text; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface); --btn-fg: var(--text);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
    background: var(--btn-bg); color: var(--btn-fg); white-space: nowrap; overflow: hidden; isolation: isolate;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); background-size: 150% 150%; background-position: 0% 50%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(43, 75, 242, .65); background-position: 100% 50%; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-1px); }
html.dark .btn-ghost:hover { color: var(--brand-400); }
.btn-glass { background: rgba(255, 255, 255, .6); color: var(--text); border: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html.dark .btn-glass { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.btn-glass:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border: 1px solid rgba(239, 68, 68, .3); }
.btn-danger-ghost:hover { background: rgba(239, 68, 68, .08); }

.btn-shine::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-shine:hover::after { transform: translateX(120%); }
.btn .fa-arrow-right { transition: transform .3s var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(4px); }

.icon-btn {
    position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center;
    border-radius: 12px; color: var(--text-2); background: transparent; font-size: 17px;
    transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--brand-600); }
html.dark .icon-btn:hover { color: var(--brand-400); }
.icon-btn.sm { width: 34px; height: 34px; font-size: 14px; border-radius: 9px; }

.badge {
    position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--accent-500); color: #fff; font-size: 11px; font-weight: 800;
    display: grid; place-items: center; border: 2px solid var(--surface); line-height: 1;
    transform: scale(1); transition: transform .3s var(--ease-bounce);
}
.badge.empty { transform: scale(0); }
.badge.bump { animation: bump .5s var(--ease-bounce); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--brand-600); white-space: nowrap; }
html.dark .link-arrow { color: var(--brand-400); }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000; height: var(--header-h);
    background: rgba(245, 247, 252, .72);
    backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: height .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background-color .35s;
}
html.dark .site-header { background: rgba(7, 11, 26, .7); }
.site-header.scrolled { height: 62px; border-color: var(--border); box-shadow: 0 8px 30px -18px rgba(19, 26, 51, .35); }
.header-inner { max-width: 1280px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 24px; }

.main-nav { position: relative; display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
    position: relative; z-index: 1; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
    color: var(--text-2); white-space: nowrap; transition: color .25s;
}
.nav-link:hover, .nav-link.active { color: var(--brand-600); }
html.dark .nav-link:hover, html.dark .nav-link.active { color: #fff; }
.nav-indicator {
    position: absolute; top: 0; left: 0; height: 100%; border-radius: 10px; background: var(--brand-50);
    transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0; pointer-events: none;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-search {
    position: relative; display: flex; align-items: center; margin-right: 6px;
}
.header-search i { position: absolute; left: 13px; color: var(--muted); font-size: 14px; pointer-events: none; }
.header-search input {
    width: 210px; height: 42px; padding: 0 14px 0 38px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface); outline: none; font-size: 14px;
    transition: width .4s var(--ease), border-color .2s, box-shadow .2s;
}
.header-search input:focus { width: 280px; border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(74, 103, 255, .15); }

.lang-menu { position: relative; }
.lang-trigger { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; font-size: 14px; font-weight: 700; }
.lang-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.lang-menu.open .lang-dropdown { opacity: 1; visibility: visible; transform: none; }
.lang-dropdown button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; text-align: left; }
.lang-dropdown button:hover, .lang-dropdown button.active { background: var(--brand-50); color: var(--brand-600); }
html.dark .lang-dropdown button.active, html.dark .lang-dropdown button:hover { color: #fff; }

.user-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.user-chip:hover { border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.user-chip-name { font-size: 14px; font-weight: 700; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 14px;
}
.avatar.xl { width: 64px; height: 64px; font-size: 26px; box-shadow: var(--shadow-brand); }

.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Drawers ---------- */
.drawer-overlay, .sidebar-overlay {
    position: fixed; inset: 0; z-index: 1190; background: rgba(8, 12, 30, .45);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.drawer-overlay.show, .sidebar-overlay.show { opacity: 1; visibility: visible; }
.mobile-drawer, .profile-drawer {
    position: fixed; top: 0; right: 0; z-index: 1200; height: 100%; height: 100dvh; width: min(380px, 88vw);
    background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px;
    padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateX(105%); transition: transform .5s var(--ease); overflow-y: auto;
}
.mobile-drawer.open, .profile-drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-search { position: relative; }
.drawer-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.drawer-search input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); padding: 0 14px 0 40px; outline: none; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
    display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; font-weight: 600;
    opacity: 0; transform: translateX(16px); transition: background-color .2s, color .2s, opacity .4s var(--ease), transform .5s var(--ease);
}
.mobile-drawer.open .drawer-nav a { opacity: 1; transform: none; }
.mobile-drawer.open .drawer-nav a:nth-child(2) { transition-delay: .04s; }
.mobile-drawer.open .drawer-nav a:nth-child(3) { transition-delay: .08s; }
.mobile-drawer.open .drawer-nav a:nth-child(4) { transition-delay: .12s; }
.mobile-drawer.open .drawer-nav a:nth-child(5) { transition-delay: .16s; }
.mobile-drawer.open .drawer-nav a:nth-child(6) { transition-delay: .2s; }
.drawer-nav a i { width: 22px; text-align: center; color: var(--brand-500); }
.drawer-nav a:hover, .drawer-nav a.active { background: var(--brand-50); color: var(--brand-600); }
html.dark .drawer-nav a.active { color: #fff; }
.drawer-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.drawer-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; background: var(--bg); border-radius: 12px; }
.drawer-langs button { padding: 9px; border-radius: 9px; font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.drawer-langs button.active { background: var(--surface); color: var(--brand-600); box-shadow: var(--shadow-sm); }

/* ---------- Page transitions & reveal ---------- */
.page-section { display: none; }
.page-section.active-section { display: block; animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 90px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 18s ease-in-out infinite; }
.blob.b1 { width: 520px; height: 520px; background: #6b83ff; top: -160px; left: -120px; }
.blob.b2 { width: 460px; height: 460px; background: #b14dff; top: 10%; right: -140px; animation-delay: -6s; opacity: .4; }
.blob.b3 { width: 380px; height: 380px; background: #ffa266; bottom: -160px; left: 35%; animation-delay: -12s; opacity: .35; }
html.dark .blob { opacity: .28; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 25px) scale(.95); }
}
.grid-pattern {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px; opacity: .55;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    font-size: 13.5px; font-weight: 700; color: var(--text-2);
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); position: relative; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-title { margin: 22px 0 18px; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; }
.hero-title span { display: block; }
.gradient-text {
    background: var(--grad-pop); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.stat strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.stat > span { font-size: 13px; color: var(--muted); font-weight: 500; }

.reveal:nth-child(2) { --d: .08s; }
.reveal:nth-child(3) { --d: .16s; }
.reveal:nth-child(4) { --d: .24s; }
.reveal:nth-child(5) { --d: .32s; }

.hero-visual { position: relative; height: 480px; }
.hero-card {
    position: absolute; inset: 20px 30px; border-radius: var(--r-xl); padding: 18px;
    background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
    transform-style: preserve-3d; transition: transform .4s var(--ease);
}
html.dark .hero-card { background: rgba(19, 27, 59, .55); border-color: rgba(255, 255, 255, .08); }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 100%; }
.hero-tile {
    background: #fff; border-radius: 18px; padding: 14px; display: grid; place-items: center; overflow: hidden;
    box-shadow: var(--shadow-sm); animation: tileIn .9s var(--ease) both;
}
.hero-tile:nth-child(2) { animation-delay: .1s; } .hero-tile:nth-child(3) { animation-delay: .2s; } .hero-tile:nth-child(4) { animation-delay: .3s; }
.hero-tile img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.hero-tile:hover img { transform: scale(1.08) rotate(-2deg); }
@keyframes tileIn { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: none; } }
.float-chip {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px;
    background: var(--surface); box-shadow: var(--shadow-md); font-weight: 700; font-size: 14px; white-space: nowrap;
    animation: bob 6s ease-in-out infinite;
}
.float-chip i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); font-size: 14px; }
.chip-1 { top: 0; left: -10px; }
.chip-2 { bottom: 40px; left: -30px; animation-delay: -2s; }
.chip-2 i { background: linear-gradient(135deg, #12b886, #0ca678); }
.chip-3 { top: 45%; right: -14px; animation-delay: -4s; }
.chip-3 i { background: linear-gradient(135deg, #ff8a3d, #ff5f6d); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }
.kicker {
    display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    background: var(--grad-pop); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -40px; position: relative; z-index: 2; }
.feature, .about-card, .terms-card {
    position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
    overflow: hidden;
}
.feature::before, .about-card::before, .terms-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-pop);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.feature:hover, .about-card:hover, .terms-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before, .about-card:hover::before, .terms-card:hover::before { transform: scaleX(1); }
.feature h3 { font-size: 17px; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }
.feature-icon {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
    color: var(--brand-600); background: var(--brand-50); transition: transform .5s var(--ease-bounce), background .3s, color .3s;
}
html.dark .feature-icon { color: var(--brand-400); }
.feature:hover .feature-icon, .about-card:hover .feature-icon, .terms-card:hover .feature-icon { transform: rotate(-8deg) scale(1.1); background: var(--grad-brand); color: #fff; }

/* ---------- Category tiles ---------- */
.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.category-tile {
    position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 150px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--border); text-align: left; overflow: hidden; isolation: isolate;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, color .3s;
    animation: cardIn .6s var(--ease) both; animation-delay: var(--d, 0s);
}
.category-tile::after {
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad-brand); opacity: 0; transition: opacity .4s var(--ease);
}
.category-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-brand); border-color: transparent; color: #fff; }
.category-tile:hover::after { opacity: 1; }
.category-tile .ct-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 20px;
    background: var(--brand-50); color: var(--brand-600); transition: background .3s, color .3s, transform .5s var(--ease-bounce);
}
html.dark .category-tile .ct-icon { color: var(--brand-400); }
.category-tile:hover .ct-icon { background: rgba(255, 255, 255, .2); color: #fff; transform: scale(1.1) rotate(-6deg); }
.category-tile strong { font-size: 16px; line-height: 1.3; }
.category-tile small { margin-top: auto; color: var(--muted); font-weight: 600; transition: color .3s; }
.category-tile:hover small { color: rgba(255, 255, 255, .85); }
.category-tile .ct-arrow { position: absolute; right: 18px; bottom: 18px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); }
.category-tile:hover .ct-arrow { opacity: 1; transform: none; }

/* ---------- Brands marquee ---------- */
.brands-section { padding-left: 0; padding-right: 0; }
.marquee {
    overflow: hidden; padding: 10px 0;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand {
    width: 170px; height: 92px; flex-shrink: 0; border-radius: 18px; background: #fff; border: 1px solid var(--border);
    display: grid; place-items: center; padding: 16px 22px; transition: transform .35s var(--ease), box-shadow .35s;
}
.brand img { max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .35s, opacity .35s; }
.brand:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brand:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    padding: 48px; border-radius: var(--r-xl); color: #fff; background: var(--grad-dark); box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .75); max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.cta-glow {
    position: absolute; width: 520px; height: 520px; right: -120px; top: -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 77, 255, .7), transparent 65%); animation: float 14s ease-in-out infinite;
}
.cta-band > div:not(.cta-glow) { position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
    display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s;
}
.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.cc-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex-shrink: 0; }
.cc-label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact-card strong { font-size: 15.5px; }
.contact-card a:hover { color: var(--brand-600); }
.map-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); min-height: 340px; }
.map-card iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
html.dark .map-card iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 46px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.page-hero.compact { padding: 30px 0 26px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); margin-top: 6px; }
.page-hero.compact h1 { font-size: clamp(24px, 3vw, 34px); }
.page-hero .lead { margin-top: 14px; max-width: 760px; font-size: 17px; color: var(--text-2); }
.page-hero .blob { opacity: .25; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.breadcrumbs i { font-size: 10px; }
.breadcrumbs a:hover { color: var(--brand-600); }
#crumb-cat:not(:empty)::before { content: '/'; margin: 0 8px 0 0; }

/* ---------- Catalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; padding-top: 28px; padding-bottom: 80px; align-items: start; }
.sidebar {
    position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 12px; box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
}
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.sidebar-head h3 { font-size: 17px; }
.cat-menu { display: flex; flex-direction: column; gap: 2px; }
.cat-btn {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 11px; text-align: left;
    font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: background .2s, color .2s;
}
.cat-btn i.cat-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-soft); color: var(--brand-600); font-size: 14px; flex-shrink: 0; transition: background .3s, color .3s; }
html.dark .cat-btn i.cat-ic { color: var(--brand-400); }
.cat-btn .label { flex: 1; line-height: 1.3; }
.cat-btn .count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 2px 8px; border-radius: 999px; }
.cat-btn .chev { font-size: 11px; color: var(--muted); transition: transform .35s var(--ease); }
.cat-btn:hover { background: var(--bg-soft); color: var(--text); }
.cat-item.open > .cat-btn .chev { transform: rotate(180deg); }
.cat-item.active > .cat-btn { background: var(--brand-50); color: var(--brand-700); }
html.dark .cat-item.active > .cat-btn { color: #fff; }
.cat-item.active > .cat-btn i.cat-ic { background: var(--grad-brand); color: #fff; }
.sub-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.cat-item.open .sub-wrap { grid-template-rows: 1fr; }
.sub-list { overflow: hidden; padding-left: 26px; }
.sub-list li:first-child { margin-top: 4px; }
.sub-list li:last-child { margin-bottom: 8px; }
.sub-btn {
    position: relative; width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px 7px 16px; border-radius: 9px;
    text-align: left; font-size: 13.5px; color: var(--muted); font-weight: 500; transition: background .2s, color .2s;
}
.sub-btn::before { content: ''; position: absolute; left: 4px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); transform: translateY(-50%); transition: background .2s, transform .3s var(--ease-bounce); }
.sub-btn:hover { color: var(--text); background: var(--bg-soft); }
.sub-btn.active { color: var(--brand-600); font-weight: 700; background: var(--brand-50); }
html.dark .sub-btn.active { color: #fff; }
.sub-btn.active::before { background: var(--brand-500); transform: translateY(-50%) scale(1.5); }
.sub-btn small { color: var(--muted); font-size: 12px; }

.catalog-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.search-field { position: relative; flex: 1; min-width: 240px; max-width: 520px; }
.search-field > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input {
    width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); padding: 0 44px;
    outline: none; font-size: 15px; box-shadow: var(--shadow-xs); transition: border-color .2s, box-shadow .2s;
}
.search-field input:focus { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(74, 103, 255, .15); }
.search-field input::-webkit-search-cancel-button { display: none; }
.clear-search { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; color: var(--muted); }
.clear-search:hover { background: var(--bg-soft); color: var(--text); }
.toolbar-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.select-wrap { position: relative; }
.select-wrap::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: 13px; }
.select-wrap select, .pm-option select {
    appearance: none; -webkit-appearance: none; height: 46px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; outline: none; transition: border-color .2s, box-shadow .2s;
}
.select-wrap select:focus, .pm-option select:focus { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(74, 103, 255, .15); }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--border-strong); transition: background .3s; flex-shrink: 0; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-bounce); }
.switch input:checked + .switch-ui { background: var(--brand-600); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--brand-400); outline-offset: 2px; }

.results-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 34px; margin-bottom: 16px; font-size: 14px; color: var(--muted); font-weight: 600; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
    background: var(--brand-50); color: var(--brand-700); animation: chipIn .35s var(--ease-bounce);
}
html.dark .chip { color: #fff; }
.chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(43, 75, 242, .12); }
.chip button:hover { background: var(--brand-600); color: #fff; }
@keyframes chipIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

/* ---------- Product cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-card {
    position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface);
    border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-xs);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
    animation: cardIn .6s var(--ease) both; animation-delay: var(--d, 0s);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
html.dark .product-card:hover { border-color: var(--border-strong); }
.pc-media { position: relative; aspect-ratio: 1 / 1; background: #fff; cursor: pointer; overflow: hidden; }
.pc-media::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, #f1f4fb 30%, #fafbff 50%, #f1f4fb 70%); background-size: 200% 100%; animation: skeleton 1.4s linear infinite;
}
.pc-media.loaded::before { display: none; }
@keyframes skeleton { to { background-position: -200% 0; } }
.pc-img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 18px; opacity: 0; transition: opacity .5s, transform .7s var(--ease); }
.pc-media.loaded .pc-img { opacity: 1; }
.product-card:hover .pc-img { transform: scale(1.07); }
.pc-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
    background: rgba(239, 68, 68, .1); color: var(--danger); backdrop-filter: blur(6px);
}
.pc-badge.ok { background: rgba(18, 184, 134, .12); color: var(--success); }
.out-of-stock .pc-img { filter: grayscale(.9); opacity: .55 !important; }
.pc-nav {
    position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .92); color: #131a33; box-shadow: var(--shadow-sm); font-size: 12px;
    opacity: 0; transform: translateY(-50%) scale(.8); transition: opacity .25s, transform .3s var(--ease);
}
.pc-nav.prev { left: 10px; } .pc-nav.next { right: 10px; }
.product-card:hover .pc-nav { opacity: 1; transform: translateY(-50%) scale(1); }
.pc-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.pc-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(19, 26, 51, .2); transition: width .3s var(--ease), background .3s; }
.pc-dots span.on { width: 16px; background: var(--brand-600); }
.pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 1px solid var(--border); }
.pc-title {
    font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--text); cursor: pointer;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.pc-title:hover { color: var(--brand-600); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.pc-price { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.pc-price small { font-size: 14px; font-weight: 700; margin-left: 2px; color: var(--muted); }
.pc-add {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--brand-50); color: var(--brand-600); font-size: 16px;
    transition: background .25s, color .25s, transform .3s var(--ease-bounce), box-shadow .25s;
}
html.dark .pc-add { color: var(--brand-400); }
.pc-add:hover { background: var(--grad-brand); color: #fff; transform: scale(1.08); box-shadow: var(--shadow-brand); }
.pc-add:disabled { opacity: .45; cursor: not-allowed; transform: none; background: var(--bg-soft); color: var(--muted); box-shadow: none; }
.pc-add.added { background: var(--success); color: #fff; animation: pop .45s var(--ease-bounce); }
@keyframes pop { 50% { transform: scale(1.25); } }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .es-icon {
    width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 26px; display: grid; place-items: center; font-size: 34px;
    background: var(--brand-50); color: var(--brand-500); animation: bob 4s ease-in-out infinite;
}
.empty-state h3 { color: var(--text); font-size: 20px; margin-bottom: 6px; }
.empty-state .btn { margin-top: 18px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 30px; }
#load-sentinel { height: 1px; }

.fly-img {
    position: fixed; z-index: 3000; width: 70px; height: 70px; object-fit: contain; border-radius: 14px; background: #fff;
    box-shadow: var(--shadow-lg); pointer-events: none; transition: transform .8s cubic-bezier(.5, -0.3, .7, 1), opacity .8s ease-in;
}

/* ---------- Modal ---------- */
.modal {
    position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px;
    background: rgba(8, 12, 30, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-dialog {
    position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: var(--r-xl);
    background: var(--surface); box-shadow: var(--shadow-lg); padding: 30px;
    transform: translateY(24px) scale(.96); opacity: 0; transition: transform .5s var(--ease), opacity .35s;
}
.modal.open .modal-dialog { transform: none; opacity: 1; }
.modal-lg { max-width: 980px; padding: 0; }
.modal-sm { max-width: 440px; }
.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg-soft); color: var(--text-2); transition: transform .35s var(--ease), background .2s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--danger); color: #fff; }

.pm-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.pm-gallery { padding: 26px; background: #fff; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--border); }
.pm-main { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.pm-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease-out, opacity .3s; }
.pm-main.zoom img { transform: scale(1.9); }
.pm-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pm-thumbs button { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; border: 2px solid #e8ecf6; padding: 6px; background: #fff; transition: border-color .2s, transform .2s; }
.pm-thumbs button.active { border-color: var(--brand-500); transform: translateY(-2px); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pm-info { padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 14px; }
.pm-info h2 { font-size: 23px; line-height: 1.3; padding-right: 36px; }
.pm-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.pm-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--bg-soft); color: var(--text-2); }
.pm-meta .ok { background: rgba(18, 184, 134, .12); color: var(--success); }
.pm-meta .no { background: rgba(239, 68, 68, .1); color: var(--danger); }
.pm-price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-desc { color: var(--text-2); font-size: 14.5px; }
.pm-options { display: grid; gap: 12px; }
.pm-option label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.pm-option select { width: 100%; }
.pm-actions { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.pm-actions .btn { flex: 1; }
.pm-share { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; align-self: flex-start; }
.pm-share:hover { color: var(--brand-600); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.qty button { width: 40px; height: 46px; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s; }
.qty button:hover { background: var(--bg-soft); color: var(--brand-600); }
.qty input { width: 44px; height: 46px; text-align: center; border: 0; background: transparent; font-weight: 800; outline: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 32px; height: 36px; }
.qty.sm input { width: 36px; height: 36px; font-size: 14px; }

/* ---------- Cart ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 26px; padding-top: 28px; padding-bottom: 80px; align-items: start; }
.cart-layout.is-empty { grid-template-columns: 1fr; }
.cart-items { padding: 8px 22px; }
.cart-item {
    display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border);
    animation: cardIn .5s var(--ease) both; transition: opacity .35s, transform .35s var(--ease);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item.removing { opacity: 0; transform: translateX(40px); }
.ci-img { width: 84px; height: 84px; border-radius: 14px; background: #fff; border: 1px solid var(--border); padding: 8px; object-fit: contain; }
.ci-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.ci-meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.ci-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.ci-unit { font-size: 13px; color: var(--muted); font-weight: 600; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ci-price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.ci-remove { width: 36px; height: 36px; border-radius: 10px; color: var(--muted); display: grid; place-items: center; transition: background .2s, color .2s; }
.ci-remove:hover { background: rgba(239, 68, 68, .1); color: var(--danger); }

.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.cart-summary h3 { font-size: 19px; }
.cart-summary h4 { display: flex; gap: 10px; align-items: center; font-size: 15px; margin-bottom: 12px; }
.cart-summary h4 i { color: var(--brand-500); }
.summary-rows { display: grid; gap: 10px; }
.summary-rows > div { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--text-2); }
.summary-rows dd { font-weight: 700; color: var(--text); }
.summary-rows .total { padding-top: 12px; border-top: 1px dashed var(--border-strong); font-size: 18px; color: var(--text); font-weight: 800; }
.summary-rows .total dd { font-size: 24px; letter-spacing: -.02em; }
.min-order { padding: 14px; border-radius: 14px; background: var(--brand-50); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.min-order.ok { background: rgba(18, 184, 134, .1); }
.min-order-text { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.min-order-text i { color: var(--brand-500); margin-top: 3px; }
.min-order.ok .min-order-text i { color: var(--success); }
.progress { height: 8px; border-radius: 999px; background: rgba(43, 75, 242, .12); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-pop); transition: width .8s var(--ease); }
.min-order.ok .progress span { background: var(--success); }

.address-box, .bank-box { padding-top: 18px; border-top: 1px solid var(--border); }
.address-guest p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.radio-card {
    display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--border); margin-bottom: 10px;
    cursor: pointer; transition: border-color .25s, background .25s;
}
.radio-card:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-ui { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; margin-top: 2px; position: relative; transition: border-color .2s; }
.radio-ui::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand-600); transform: scale(0); transition: transform .3s var(--ease-bounce); }
.radio-card input:checked + .radio-ui { border-color: var(--brand-600); }
.radio-card input:checked + .radio-ui::after { transform: scale(1); }
.radio-body strong { display: block; font-size: 14.5px; }
.radio-body small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-word; }
.other-address { animation: slideDown .4s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.iban { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); margin-bottom: 8px; }
.iban small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.iban code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
.secure-note { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 12.5px; color: var(--muted); text-align: center; }
.secure-note i { color: var(--success); }

/* ---------- Forms ---------- */
.field { position: relative; margin-bottom: 14px; }
.field input {
    width: 100%; height: 56px; padding: 22px 16px 6px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface);
    outline: none; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field label {
    position: absolute; left: 17px; top: 50%; transform: translateY(-50%); transform-origin: left; color: var(--muted);
    font-size: 15px; pointer-events: none; transition: transform .25s var(--ease), top .25s var(--ease), color .2s;
}
.field input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(74, 103, 255, .14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 17px; transform: translateY(-50%) scale(.78); color: var(--brand-600); font-weight: 600; }
html.dark .field input:focus + label, html.dark .field input:not(:placeholder-shown) + label { color: var(--brand-400); }
.field.prefix .prefix-text { position: absolute; left: 16px; top: 30px; font-size: 15px; font-weight: 700; color: var(--text-2); opacity: 0; transition: opacity .2s; }
.field.prefix input { padding-left: 16px; }
.field.prefix input:focus, .field.prefix input:not(:placeholder-shown) { padding-left: 60px; }
.field.prefix:focus-within .prefix-text, .field.prefix:has(input:not(:placeholder-shown)) .prefix-text { opacity: 1; }
.field.has-toggle input { padding-right: 50px; }
.pass-toggle { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); }
.pass-toggle:hover { color: var(--brand-600); background: var(--bg-soft); }
.field .error, #reg-terms-error { display: block; min-height: 0; font-size: 12.5px; color: var(--danger); font-weight: 600; margin-top: 5px; }
.field .error:empty, #reg-terms-error:empty { display: none; }
.field.invalid input { border-color: var(--danger); animation: shake .4s; }
.field.valid input { border-color: var(--success); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.strength { height: 4px; border-radius: 4px; background: var(--border); margin-top: 8px; overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .4s var(--ease), background .3s; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; margin: 4px 0 6px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-ui { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-strong); flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check-ui::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: #fff; transform: scale(0); transition: transform .3s var(--ease-bounce); }
.check input:checked + .check-ui { background: var(--brand-600); border-color: var(--brand-600); }
.check input:checked + .check-ui::after { transform: scale(1); }
.check input:focus-visible + .check-ui { outline: 3px solid var(--brand-400); outline-offset: 2px; }
.check a { color: var(--brand-600); font-weight: 700; }

/* ---------- Auth ---------- */
.auth-wrap { padding-top: 40px; padding-bottom: 80px; }
.auth-card { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); min-height: 640px; }
.auth-side { position: relative; overflow: hidden; padding: 44px; color: #fff; background: var(--grad-dark); display: flex; flex-direction: column; gap: 28px; }
.auth-side > *:not(.hero-bg) { position: relative; z-index: 1; }
.auth-side .blob { opacity: .5; }
.auth-side h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: auto; }
.perks { display: grid; gap: 16px; margin-bottom: auto; }
.perks li { display: flex; gap: 14px; align-items: center; color: rgba(255, 255, 255, .85); font-weight: 500; }
.perks i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); flex-shrink: 0; }
.auth-main { padding: 36px 44px 40px; }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: var(--bg-soft); margin-bottom: 28px; }
.tab { position: relative; z-index: 1; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--muted); transition: color .3s; }
.tab.active { color: var(--text); }
.tab-indicator { position: absolute; top: 5px; left: 5px; width: calc(50% - 5px); height: calc(100% - 10px); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease); }
.tabs.register .tab-indicator { transform: translateX(100%); }
.auth-form { display: none; }
.auth-form.active { display: block; animation: pageIn .5s var(--ease); }
.auth-form h2 { font-size: 26px; margin-bottom: 6px; }
.auth-form > p.muted { margin-bottom: 22px; }
.auth-form .btn { margin-top: 10px; }
.switch-line { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.switch-line a { color: var(--brand-600); font-weight: 700; }
.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 5px; margin: 16px 0 18px; border-radius: 14px; border: 1.5px solid var(--border); }
.seg { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .3s; }
.seg.active { color: #fff; }
.seg-indicator { position: absolute; top: 5px; left: 5px; width: calc(50% - 5px); height: calc(100% - 10px); border-radius: 10px; background: var(--grad-brand); box-shadow: var(--shadow-brand); transition: transform .45s var(--ease); }
.segmented.company .seg-indicator { transform: translateX(100%); }

/* ---------- Profile drawer ---------- */
.profile-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--bg-soft); }
.profile-card strong { display: block; font-size: 18px; word-break: break-word; }
.pill { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--brand-50); color: var(--brand-600); }
.profile-fields { display: grid; gap: 4px; }
.pf-row { padding: 12px 6px; border-bottom: 1px solid var(--border); }
.pf-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pf-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; gap: 8px; align-items: center; }
.pf-value { font-weight: 600; margin-top: 2px; word-break: break-word; }
.pf-edit-form { display: flex; gap: 8px; margin-top: 8px; animation: slideDown .3s var(--ease); }
.pf-edit-form input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--brand-400); background: var(--surface); outline: none; }

/* ---------- History ---------- */
.history-list { padding-top: 28px; padding-bottom: 80px; display: grid; gap: 18px; max-width: 920px; }
.order-card { padding: 22px; animation: cardIn .5s var(--ease) both; animation-delay: var(--d, 0s); }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.oc-head strong { font-size: 17px; }
.oc-date { font-size: 13px; color: var(--muted); font-weight: 600; }
.oc-items { display: flex; gap: 10px; margin: 16px 0; overflow-x: auto; padding-bottom: 4px; }
.oc-items img { width: 60px; height: 60px; border-radius: 12px; background: #fff; border: 1px solid var(--border); padding: 5px; object-fit: contain; flex-shrink: 0; }
.oc-list { font-size: 14px; color: var(--text-2); display: grid; gap: 4px; margin-bottom: 14px; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.oc-total { font-size: 20px; font-weight: 800; }
.oc-addr { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* ---------- About / Terms ---------- */
.about-intro { max-width: 860px; margin: 0 auto 40px; text-align: center; display: grid; gap: 14px; color: var(--text-2); font-size: 16.5px; }
.about-highlight { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about-card h3 { font-size: 20px; margin: 18px 0 10px; }
.about-card p { color: var(--text-2); margin-bottom: 10px; font-size: 15px; }
.about-card.accent { background: var(--grad-dark); color: #fff; border-color: transparent; }
.about-card.accent p { color: rgba(255, 255, 255, .78); }
.about-card.accent .feature-icon { background: rgba(255, 255, 255, .12); color: #fff; }

.terms-layout { display: grid; gap: 22px; }
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.terms-card h3 { font-size: 18px; margin: 16px 0 12px; }
.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text-2); }
.check-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 2px;
    width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: #fff; background: var(--success);
}
.legal-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.legal-card summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; font-weight: 800; font-size: 18px; }
.legal-card summary::-webkit-details-marker { display: none; }
.legal-title { flex: 1; }
.legal-chevron { transition: transform .4s var(--ease); color: var(--muted); }
.legal-card[open] .legal-chevron { transform: rotate(180deg); }
.legal-body { padding: 0 26px 26px; color: var(--text-2); font-size: 14.5px; line-height: 1.85; animation: slideDown .4s var(--ease); }
.legal-body h4 { font-size: 16px; color: var(--text); margin: 24px 0 8px; }
.legal-text { white-space: pre-line; }
.merchant-box { padding: 18px 20px; border-radius: var(--r-md); background: var(--bg-soft); border-left: 4px solid var(--brand-500); margin-bottom: 18px; }
.merchant-title { font-weight: 800; font-size: 17px; color: var(--text); margin-bottom: 6px; }
.legal-lead { font-weight: 700; color: var(--text); margin: 8px 0 12px; }
.warranty-highlight { padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 138, 61, .1); border: 1px solid rgba(255, 138, 61, .3); margin-bottom: 8px; }
.warranty-highlight strong { color: var(--accent-500); }
.notice-card { display: flex; gap: 18px; padding: 22px 26px; border-radius: var(--r-lg); background: rgba(245, 159, 0, .1); border: 1px solid rgba(245, 159, 0, .3); }
.notice-card > i { font-size: 22px; color: var(--warning); margin-top: 3px; }
.notice-card h3 { font-size: 17px; margin-bottom: 6px; }
.notice-card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Success modal ---------- */
.success-dialog { text-align: center; }
.success-dialog h2 { font-size: 24px; margin: 12px 0 6px; }
.success-dialog .order-code { margin-bottom: 10px; }
.success-dialog .order-code strong { color: var(--brand-600); font-size: 18px; }
.success-dialog .muted { margin-bottom: 22px; font-size: 14.5px; }
.success-check { width: 92px; height: 92px; margin: 0 auto; }
.success-check svg { width: 100%; height: 100%; }
.success-check circle { fill: none; stroke: var(--success); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; }
.success-check path { fill: none; stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.modal.open .success-check circle { animation: draw .7s var(--ease) .15s forwards; }
.modal.open .success-check path { animation: draw .45s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; z-index: 4000; top: 86px; right: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 400px; padding: 14px 16px; border-radius: 14px;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 600;
    animation: toastIn .5s var(--ease-bounce) both; position: relative; overflow: hidden;
}
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--brand-600); }
.toast.success i { background: var(--success); }
.toast.error i { background: var(--danger); }
.toast.warning i { background: var(--warning); }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: .15; transform-origin: left; animation: toastTimer var(--t, 3.5s) linear forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes toastTimer { to { transform: scaleX(0); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-dark); color: rgba(255, 255, 255, .75); padding-top: 64px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 16px 0 20px; max-width: 320px; font-size: 14.5px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--grad-brand); transform: translateY(-3px); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { margin-top: 4px; color: var(--brand-400); width: 14px; }
.pay-badges { display: flex; gap: 8px; margin-top: 16px; }
.pay-badges span { padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: 12.5px; letter-spacing: .05em; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 24px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.site-footer .muted { color: rgba(255, 255, 255, .5); }

/* ---------- Bottom nav & to-top ---------- */
.bottom-nav { display: none; }
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand);
    opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .35s, transform .45s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
    .header-search input { width: 160px; }
    .header-search input:focus { width: 200px; }
    .nav-link { padding: 8px 10px; font-size: 14px; }
}

@media (max-width: 1024px) {
    .main-nav, .header-search, .desktop-only { display: none !important; }
    .burger { display: inline-flex; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { height: 380px; max-width: 520px; width: 100%; margin: 0 auto; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .mobile-only { display: inline-flex !important; }
    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 1250; width: min(340px, 88vw); max-height: none; height: 100dvh;
        border-radius: 0 var(--r-xl) var(--r-xl) 0; transform: translateX(-105%); transition: transform .5s var(--ease); padding-top: 22px;
    }
    .sidebar.open { transform: none; }
    .sidebar-overlay { z-index: 1240; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .auth-card { grid-template-columns: 1fr; }
    .auth-side { padding: 32px; }
    .auth-side h2 { margin-top: 0; }
    .terms-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 62px; }
    .container, .header-inner { padding-left: 16px; padding-right: 16px; }
    .section, .container.section { padding: 52px 16px; }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .site-header.scrolled { height: 58px; }
    .logo { font-size: 23px; }
    .hero { padding: 36px 0 70px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .hero-visual { height: 320px; }
    .hero-card { inset: 14px 10px; }
    .float-chip { font-size: 12.5px; padding: 8px 12px; }
    .float-chip i { width: 26px; height: 26px; font-size: 12px; }
    .chip-1 { left: 0; } .chip-2 { left: 0; bottom: 20px; } .chip-3 { right: 0; }
    .features { margin-top: -30px; gap: 12px; }
    .feature { padding: 18px; }
    .feature h3 { font-size: 15px; margin-top: 14px; }
    .feature p { font-size: 13.5px; }
    .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
    .section-head.center { align-items: center; }
    .category-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-tile { padding: 16px; min-height: 130px; }
    .category-tile strong { font-size: 14px; }
    .brand { width: 130px; height: 74px; padding: 12px 16px; }
    .cta-band { padding: 32px 22px; }
    .cta-actions .btn { width: 100%; }
    .contact-grid { grid-template-columns: 1fr; }
    .catalog-layout { padding-top: 18px; }
    .catalog-toolbar { flex-direction: column; align-items: stretch; }
    .search-field { max-width: none; }
    .toolbar-right { justify-content: space-between; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pc-body { padding: 12px; }
    .pc-title { font-size: 13.5px; }
    .pc-price { font-size: 16px; }
    .pc-add { width: 38px; height: 38px; border-radius: 11px; }
    .pc-nav { display: none; }

    .modal { padding: 0; align-items: end; }
    .modal-dialog { max-height: 92dvh; border-radius: 26px 26px 0 0; transform: translateY(100%); padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); }
    .modal-dialog::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--border-strong); margin: -12px auto 14px; }
    .modal-lg { padding: 0; }
    .modal-lg::before { position: absolute; left: 50%; top: 20px; margin: 0 0 0 -22px; z-index: 6; }
    .modal.open .modal-dialog { transform: none; }
    .pm-grid { grid-template-columns: 1fr; }
    .pm-gallery { border-right: 0; border-bottom: 1px solid var(--border); padding: 30px 18px 14px; }
    .pm-main { max-height: 300px; aspect-ratio: auto; height: 300px; }
    .pm-info { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
    .pm-info h2 { font-size: 19px; }
    .pm-price { font-size: 28px; }

    .cart-items { padding: 4px 14px; }
    .cart-item { grid-template-columns: 68px 1fr; gap: 12px; }
    .ci-img { width: 68px; height: 68px; }
    .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .auth-wrap { padding-top: 16px; }
    .auth-side { display: none; }
    .auth-main { padding: 24px 18px 28px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .toast-stack { top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); left: 12px; right: 12px; }
    .toast { min-width: 0; max-width: none; }
    @keyframes toastIn { from { opacity: 0; transform: translateY(30px) scale(.95); } to { opacity: 1; transform: none; } }
    @keyframes toastOut { to { opacity: 0; transform: translateY(30px); } }
    .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px; width: 44px; height: 44px; }

    .bottom-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: grid; grid-template-columns: repeat(4, 1fr);
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -18px rgba(19, 26, 51, .3);
    }
    html.dark .bottom-nav { background: rgba(10, 15, 34, .86); }
    .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--muted); transition: color .25s; }
    .bottom-nav a i { font-size: 19px; transition: transform .4s var(--ease-bounce); }
    .bottom-nav a span:not(.badge) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .bottom-nav a.active { color: var(--brand-600); }
    html.dark .bottom-nav a.active { color: var(--brand-400); }
    .bottom-nav a.active i { transform: translateY(-2px) scale(1.12); }
    .bottom-nav a.active::before { content: ''; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad-brand); }
    .bottom-nav .badge { top: 2px; right: calc(50% - 22px); }
}

@media (max-width: 400px) {
    .products-grid { gap: 10px; }
    .hero-ctas .btn { width: 100%; }
    .category-tiles { grid-template-columns: 1fr 1fr; }
}

@media (hover: none) {
    .pc-nav { display: none; }
    .product-card:hover, .feature:hover, .category-tile:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
