/* ==========================================================================
   HepsiTrend — Teknik hırdavat, kaynak ve elektrikli alet mağazası teması
   ========================================================================== */

:root {
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --accent-soft: rgba(234, 88, 12, .1);
    --steel: #1c1f24;
    --steel-2: #2a2e35;
    --spark: #facc15;
    --ink: #16181d;
    --text: #2a2e35;
    --muted: #6b7079;
    --line: #e4e4e7;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f6f6f4;
    --surface-3: #ededea;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --violet: #7c3aed;
    --violet-soft: #ede9fe;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 4px 18px rgba(15, 23, 42, .07);
    --shadow-lg: 0 18px 48px rgba(15, 23, 42, .14);
    --header-h: 72px;
    --container: 1280px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --accent: #fb923c;
    --accent-hover: #fdba74;
    --accent-soft: rgba(251, 146, 60, .16);
    --steel: #0e1013;
    --steel-2: #1b1e23;
    --ink: #f5f5f4;
    --text: #e7e5e4;
    --muted: #a1a1aa;
    --line: #2a2d33;
    --bg: #121418;
    --surface: #181b20;
    --surface-2: #15171b;
    --surface-3: #23262c;
    --success-soft: rgba(22, 163, 74, .18);
    --danger-soft: rgba(220, 38, 38, .18);
    --warning-soft: rgba(217, 119, 6, .18);
    --info-soft: rgba(37, 99, 235, .18);
    --violet-soft: rgba(124, 58, 237, .2);
    --shadow: 0 4px 18px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video { 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 { color: var(--ink); line-height: 1.15; letter-spacing: -.005em; font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif; font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.container-sm { max-width: 760px; }
.container-xs { max-width: 480px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px; white-space: nowrap;
    border: 1px solid transparent; transition: all .2s var(--ease);
}
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #121418; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px var(--accent-soft); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-3); }
.btn-danger-ghost { color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-outline.is-loading::after { border-color: var(--line); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; font-size: 20px; color: var(--ink);
    transition: background .2s;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn .count {
    position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: var(--radius-sm); background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
    transition: transform .3s var(--ease);
}
.icon-btn .count:empty, .icon-btn .count[data-count="0"] { display: none; }
.count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input, .select, .textarea {
    width: 100%; height: 46px; padding: 0 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 46px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; color: var(--muted); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert i { font-size: 18px; line-height: 1.2; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert ul { list-style: disc; padding-left: 18px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; }
.badge-pending { background: var(--warning-soft); color: var(--warning); }
.badge-processing { background: var(--info-soft); color: var(--info); }
.badge-shipped { background: var(--violet-soft); color: var(--violet); }
.badge-delivered { background: var(--success-soft); color: var(--success); }
.badge-cancelled, .badge-refunded { background: var(--danger-soft); color: var(--danger); }
.badge-neutral { background: var(--surface-3); color: var(--muted); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- Card ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-body { padding: 20px; }
@media (min-width: 768px) { .card-body { padding: 28px; } }
.card-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.card-title i { color: var(--accent); }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.announce { background: var(--accent); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }
.announce a { text-decoration: underline; font-weight: 600; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); flex-shrink: 0; }
.logo img { max-height: 40px; width: auto; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 17px; clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); }

.header-search { flex: 1; max-width: 520px; margin: 0 auto; display: none; position: relative; }
.header-search .input { height: 44px; border-radius: var(--radius-sm); padding-left: 44px; background: var(--surface-2); }
.header-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.header-actions .hide-mobile { display: none; }

.main-nav { border-top: 1px solid var(--line); display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; height: 50px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text); transition: all .2s; }
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease);
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.nav-dropdown a:hover { background: var(--surface-3); color: var(--accent); }

.mobile-search { padding: 0 0 12px; }
.mobile-search form { position: relative; }
.mobile-search .input { border-radius: var(--radius-sm); padding-left: 42px; background: var(--surface-2); height: 42px; }
.mobile-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

@media (min-width: 992px) {
    .header-search { display: block; }
    .main-nav { display: block; }
    .mobile-search, .menu-toggle { display: none !important; }
    .header-actions .hide-mobile { display: inline-flex; }
}

/* Account dropdown */
.account-menu { position: relative; }
.account-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); width: 230px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease); z-index: 60;
}
.account-menu.open .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-dropdown .who strong { display: block; color: var(--ink); font-size: 14px; }
.account-dropdown .who span { font-size: 12px; color: var(--muted); word-break: break-all; }
.account-dropdown a, .account-dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; text-align: left; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--surface-3); }
.account-dropdown .logout { color: var(--danger); }

/* Drawer (mobile menu / filters) */
.overlay { position: fixed; inset: 0; background: rgba(2, 6, 23, .5); z-index: 90; opacity: 0; visibility: hidden; transition: all .25s; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); z-index: 100;
    background: var(--surface); transform: translateX(-100%); transition: transform .3s var(--ease);
    display: flex; flex-direction: column;
}
.drawer.drawer-right { left: auto; right: 0; transform: translateX(100%); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px 24px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.m-nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.m-nav .sub a { padding-left: 16px; font-weight: 500; color: var(--muted); font-size: 14px; }
.m-nav-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 20px 0 4px; }

/* Bottom nav (mobile) */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; }
.bottom-nav i { font-size: 20px; }
.bottom-nav .active { color: var(--accent); }
.bottom-nav .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-size: 10px; line-height: 16px; padding: 0 4px; }
.bottom-nav .count[data-count="0"] { display: none; }
body { padding-bottom: 64px; }
@media (min-width: 992px) { .bottom-nav { display: none; } body { padding-bottom: 0; } }

/* ==========================================================================
   Page chrome
   ========================================================================== */
.page-head { padding: 28px 0 20px; }
.page-head h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 6px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 10px; }
.breadcrumb span:last-child { color: var(--ink); font-weight: 500; }
.section { padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 72px 0; } }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 4px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--accent); white-space: nowrap; }
.link-arrow:hover i { transform: translateX(3px); }
.link-arrow i { transition: transform .2s; }

.empty { text-align: center; padding: 64px 16px; }
.empty-icon { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 36px; color: var(--muted); }
.empty h2, .empty h3 { font-size: 21px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 24px; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { position: relative; margin-top: 16px; }
.hero-track { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-3); touch-action: pan-y; }
@media (min-width: 640px) { .hero-track { aspect-ratio: 16 / 9; } }
@media (min-width: 992px) { .hero-track { aspect-ratio: 21 / 8; } }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.hero-slide.active img { transform: scale(1); }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 6, 23, .75), rgba(2, 6, 23, .1) 60%); }
@media (min-width: 768px) { .hero-slide::after { background: linear-gradient(90deg, rgba(2, 6, 23, .72), rgba(2, 6, 23, 0) 65%); } }
.hero-content { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 56px; color: #fff; max-width: 560px; }
@media (min-width: 768px) { .hero-content { left: 56px; top: 50%; bottom: auto; transform: translateY(-50%); } }
.hero-content h1, .hero-content h2 { color: #fff; font-size: clamp(28px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 12px; }
.hero-content p { font-size: clamp(15px, 1.4vw, 18px); opacity: .9; margin-bottom: 24px; }
.hero-content .btn-primary { background: #fff; color: #0f172a; }
.hero-arrows { position: absolute; z-index: 3; right: 20px; bottom: 20px; display: none; gap: 8px; }
@media (min-width: 768px) { .hero-arrows { display: flex; } }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); font-size: 18px; transition: background .2s; }
.hero-arrows button:hover { background: rgba(255, 255, 255, .35); }
.hero-dots { position: absolute; z-index: 3; left: 24px; bottom: 22px; display: flex; gap: 6px; }
@media (min-width: 768px) { .hero-dots { left: 56px; } }
.hero-dots button { width: 8px; height: 8px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .45); transition: all .3s; }
.hero-dots button.active { width: 28px; background: #fff; }

.hero-fallback {
    margin-top: 16px; border-radius: var(--radius-lg); padding: 56px 24px;
    background: radial-gradient(900px 380px at 85% 10%, rgba(234, 88, 12, .45), transparent), linear-gradient(135deg, #111317, #2a2e35);
    color: #fff; text-align: center;
}
@media (min-width: 768px) { .hero-fallback { padding: 96px 48px; } }
.hero-fallback h1 { color: #fff; font-size: clamp(30px, 5vw, 56px); font-weight: 800; margin-bottom: 14px; }
.hero-fallback p { opacity: .85; font-size: 18px; margin-bottom: 28px; }
.hero-fallback .btn-primary { background: var(--accent); color: #fff; }

.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 992px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface-2); border-radius: var(--radius); }
.perk i { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--accent); font-size: 20px; box-shadow: var(--shadow-sm); }
.perk strong { display: block; font-size: 14px; color: var(--ink); }
.perk span { font-size: 12px; color: var(--muted); }

.cat-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.cat-scroller::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .cat-scroller { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); overflow: visible; } }
.cat-tile { scroll-snap-align: start; text-align: center; }
.cat-tile .thumb { width: 88px; height: 88px; margin-left: auto; margin-right: auto; border-radius: 50%; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; margin-bottom: 10px; border: 2px solid transparent; transition: all .25s var(--ease); }
@media (min-width: 992px) { .cat-tile .thumb { width: 104px; height: 104px; } }
.cat-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .thumb i { font-size: 30px; color: var(--accent); }
.cat-tile:hover .thumb { border-color: var(--accent); transform: translateY(-3px); }
.cat-tile span { font-size: 13px; font-weight: 600; color: var(--ink); }

.promo-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .promo-grid { grid-template-columns: 1fr 1fr; } }
.promo { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 32px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.promo::before { content: ''; position: absolute; width: 260px; height: 260px; right: -60px; top: -60px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.promo h3 { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 6px; position: relative; }
.promo p { opacity: .85; margin-bottom: 18px; position: relative; }
.promo .btn { align-self: flex-start; background: #fff; color: #0f172a; position: relative; }
.promo-a { background: linear-gradient(135deg, #16181d, #3a3f48); }
.promo-b { background: linear-gradient(135deg, #c2410c, #f59e0b); }

/* ==========================================================================
   Product grid & card
   ========================================================================== */
.product-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .product-grid { gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-grid.cols-3 { }
@media (min-width: 1200px) { .product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.product-rail::-webkit-scrollbar { display: none; }
.product-rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .product-rail { grid-auto-columns: 31%; gap: 20px; } }
@media (min-width: 1200px) { .product-rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }

.p-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); transition: transform .3s var(--ease); }
.p-media { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; color: var(--muted); opacity: .5; }
.p-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.p-badge { padding: 4px 9px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.p-badge.sale { background: var(--spark); color: #16181d; }
.p-badge.out { background: var(--ink); color: var(--bg); }
.p-fav {
    position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface); color: var(--ink); display: grid; place-items: center; font-size: 16px;
    box-shadow: var(--shadow-sm); transition: all .2s;
}
.p-fav:hover { transform: scale(1.08); }
.p-fav.active { color: #e11d48; }
.p-fav.active i::before { content: "\f415"; } /* bi-heart-fill */
.p-quick {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
    height: 40px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: all .3s var(--ease);
}
@media (hover: hover) and (min-width: 992px) {
    .p-quick { opacity: 0; transform: translateY(10px); }
    .p-card:hover .p-quick { opacity: 1; transform: translateY(0); }
}
@media (max-width: 991px) {
    .p-quick { left: auto; right: 10px; width: 40px; padding: 0; }
    .p-quick span { display: none; }
}
.p-body { padding: 12px 4px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.p-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.p-price .now { font-size: 16px; font-weight: 800; color: var(--ink); }
.p-price .now.sale { color: var(--danger); }
.p-price .old { font-size: 13px; color: var(--muted); text-decoration: line-through; }

/* ==========================================================================
   Listing (products / category)
   ========================================================================== */
.listing { display: grid; gap: 28px; padding-bottom: 64px; }
@media (min-width: 992px) { .listing { grid-template-columns: 260px 1fr; align-items: start; } }
.filters { display: none; }
@media (min-width: 992px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 66px); } }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; color: var(--text); }
.filter-option input { width: 17px; height: 17px; accent-color: var(--accent); }
.filter-option.child { padding-left: 24px; font-size: 13px; color: var(--muted); }
.filter-scroll { max-height: 260px; overflow-y: auto; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range .input { height: 40px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .result { font-size: 14px; color: var(--muted); }
.toolbar .result strong { color: var(--ink); }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.toolbar .select { height: 40px; width: auto; border-radius: var(--radius-sm); padding: 0 36px 0 16px; font-size: 13px; font-weight: 600; }
.filter-btn { display: inline-flex; }
@media (min-width: 992px) { .filter-btn { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip i { font-size: 11px; }

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 14px; font-weight: 600; background: var(--surface); }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pagination .disabled { opacity: .4; }
.pagination .dots { border: 0; background: none; }

/* ==========================================================================
   Product detail
   ========================================================================== */
.pdp { display: grid; gap: 28px; padding-bottom: 48px; }
@media (min-width: 992px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.gallery { display: grid; gap: 12px; }
@media (min-width: 992px) {
    .gallery { grid-template-columns: 80px 1fr; position: sticky; top: calc(var(--header-h) + 66px); }
    .gallery.single { grid-template-columns: 1fr; }
}
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); touch-action: pan-y; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-main.zoomed img { transform: scale(2); cursor: zoom-out; transition: transform .1s; }
.gallery-main .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 72px; color: var(--muted); opacity: .4; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(2, 6, 23, .6); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-sm); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .thumbs { flex-direction: column; order: -1; max-height: 600px; overflow-y: auto; } }
.thumb { flex: 0 0 68px; width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; opacity: .65; transition: all .2s; }
@media (min-width: 992px) { .thumb { width: 80px; height: 80px; flex-basis: 80px; } }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--ink); opacity: 1; }

.pdp-info .p-brand { font-size: 12px; margin-bottom: 6px; display: inline-block; }
.pdp-info h1 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; margin-bottom: 10px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 15px; }
.stars .off { color: var(--line); }
.pdp-price { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.pdp-price .now { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.pdp-price .now.sale { color: var(--danger); }
.pdp-price .old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pdp-short { color: var(--muted); margin-bottom: 20px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.stock.in { color: var(--success); } .stock.low { color: var(--warning); } .stock.out { color: var(--danger); }
.variant-group { margin-bottom: 20px; }
.variant-group .label span { font-weight: 500; color: var(--muted); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt { min-width: 48px; height: 42px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; transition: all .2s; }
.variant-opt:hover { border-color: var(--ink); }
.variant-opt.active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.variant-opt.unavailable { opacity: .35; text-decoration: line-through; }
.variant-opt.color { width: 38px; min-width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); }
.variant-opt.color.active { box-shadow: 0 0 0 2px var(--ink); background: inherit; }

.buy-row { display: flex; gap: 10px; margin-bottom: 20px; }
.qty { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); flex-shrink: 0; }
.qty button { width: 44px; height: 100%; font-size: 18px; color: var(--ink); }
.qty button:disabled { opacity: .3; }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.qty-sm { height: 38px; }
.qty.qty-sm button { width: 34px; font-size: 15px; }
.qty.qty-sm input { width: 30px; font-size: 14px; }
.buy-row .btn-primary { flex: 1; }
.buy-row .fav-lg { width: 52px; height: 52px; padding: 0; flex-shrink: 0; font-size: 20px; }
.buy-row .fav-lg.active { color: #e11d48; border-color: #fecdd3; }
.buy-row .fav-lg.active i::before { content: "\f415"; }

.assurance { display: grid; gap: 10px; padding: 16px; background: var(--surface-2); border-radius: var(--radius); margin-bottom: 20px; }
.assurance div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.assurance i { color: var(--accent); font-size: 18px; }
.meta-list { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.meta-list strong, .meta-list a { color: var(--ink); font-weight: 600; }
.meta-list a:hover { color: var(--accent); }
.share { display: flex; gap: 6px; margin-top: 16px; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; }
.share a:hover, .share button:hover { border-color: var(--ink); }

.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 24px; overflow-x: auto; margin-bottom: 24px; scrollbar-width: none; }
.tab { padding: 14px 0; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: var(--ink); border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.prose { color: var(--text); line-height: 1.8; max-width: 820px; }
.prose p + p { margin-top: 1em; }

.reviews { display: grid; gap: 32px; }
@media (min-width: 992px) { .reviews { grid-template-columns: 320px 1fr; } }
.review-summary .big { font-size: 48px; font-weight: 800; color: var(--ink); line-height: 1; }
.review-bars { display: grid; gap: 6px; margin-top: 16px; }
.review-bar { display: grid; grid-template-columns: 28px 1fr 32px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.review-bar .track { height: 6px; border-radius: var(--radius-sm); background: var(--surface-3); overflow: hidden; }
.review-bar .fill { height: 100%; background: #f59e0b; border-radius: var(--radius-sm); }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.review-date { font-size: 12px; color: var(--muted); }
.review h4 { font-size: 15px; margin: 6px 0 4px; }
.review p { font-size: 14px; color: var(--text); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 28px; color: var(--line); cursor: pointer; transition: color .15s; margin: 0; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }

.sticky-buy {
    position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 39;
    background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px;
    display: flex; align-items: center; gap: 12px; transform: translateY(150%); transition: transform .3s var(--ease);
}
.sticky-buy.show { transform: translateY(0); }
.sticky-buy .info { flex: 1; min-width: 0; }
.sticky-buy .info div { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .info strong { font-size: 16px; color: var(--ink); }
@media (min-width: 992px) { .sticky-buy { display: none; } }

/* ==========================================================================
   Cart & checkout
   ========================================================================== */
.cart-layout { display: grid; gap: 24px; padding-bottom: 64px; }
@media (min-width: 992px) { .cart-layout { grid-template-columns: 1fr 380px; gap: 32px; align-items: start; } }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cart-item { grid-template-columns: 104px 1fr; gap: 18px; } }
.cart-item:first-child { padding-top: 0; }
.cart-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-top { display: flex; justify-content: space-between; gap: 12px; }
.cart-name { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.35; }
.cart-name:hover { color: var(--accent); }
.cart-variant { font-size: 12px; color: var(--muted); }
.cart-unit { font-size: 13px; color: var(--muted); }
.cart-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.cart-line { font-weight: 800; color: var(--ink); }
.remove-btn { width: 34px; height: 34px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.remove-btn:hover { background: var(--danger-soft); color: var(--danger); }

.summary { position: relative; }
@media (min-width: 992px) { .summary { position: sticky; top: calc(var(--header-h) + 66px); } }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.sum-row span:first-child { color: var(--muted); }
.sum-row.discount { color: var(--success); }
.sum-row.discount span:first-child { color: var(--success); }
.sum-row.total { font-size: 18px; font-weight: 800; color: var(--ink); padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line); }
.sum-row.total span:first-child { color: var(--ink); }
.free-ship { font-size: 13px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 600; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { height: 42px; text-transform: uppercase; }
.coupon-form .btn { height: 42px; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 600; }
.coupon-msg { font-size: 12px; margin-top: 6px; }
.coupon-msg.ok { color: var(--success); } .coupon-msg.err { color: var(--danger); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.pay-logos { display: flex; justify-content: center; gap: 8px; margin-top: 10px; font-size: 26px; color: var(--muted); }

.steps { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; }
.step b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; }
.step.done b { background: var(--success); color: #fff; }
.step.current { color: var(--ink); }
.step.current b { background: var(--ink); color: var(--bg); }
.step-line { width: 28px; height: 2px; background: var(--line); }
@media (min-width: 640px) { .step-line { width: 56px; } }

.checkout-layout { display: grid; gap: 24px; padding-bottom: 64px; }
@media (min-width: 992px) { .checkout-layout { grid-template-columns: 1fr 400px; gap: 32px; align-items: start; } }
.checkout-layout .card + .card { margin-top: 16px; }
.saved-addresses { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 640px) { .saved-addresses { grid-template-columns: 1fr 1fr; } }
.option-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: all .2s; background: var(--surface); }
.option-card:hover { border-color: var(--muted); }
.option-card:has(input:checked), .option-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.option-card input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.option-card .oc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; font-size: 20px; color: var(--accent); flex-shrink: 0; }
.option-card strong { display: block; color: var(--ink); font-size: 14px; }
.option-card small { color: var(--muted); font-size: 12px; line-height: 1.5; display: block; }
.pay-options { display: grid; gap: 10px; }
.mini-items { display: grid; gap: 12px; max-height: 320px; overflow-y: auto; margin-bottom: 16px; padding: 8px 8px 0 0; }
.mini-item { display: flex; align-items: center; gap: 12px; }
.mini-thumb { position: relative; width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--surface-3); flex-shrink: 0; display: grid; place-items: center; color: var(--muted); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.mini-thumb .q { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: var(--radius-sm); background: var(--muted); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.mini-item .n { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; min-width: 0; }
.mini-item .p { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.card-preview {
    position: relative; aspect-ratio: 1.586; max-width: 360px; border-radius: 18px; padding: 22px; color: #fff; margin-bottom: 20px;
    background: linear-gradient(135deg, #1e1b4b, #4f46e5 60%, #a855f7); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; justify-content: space-between; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.card-preview .chip-ic { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.card-preview .num { font-size: clamp(16px, 4.6vw, 21px); letter-spacing: .12em; }
.card-preview .row { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; }
.card-preview .row small { display: block; opacity: .7; font-size: 9px; }
.bank-box { background: var(--surface-2); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; font-size: 14px; }
.bank-box div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bank-box span { color: var(--muted); }
.bank-box strong { color: var(--ink); word-break: break-all; }
.copy-btn { font-size: 12px; color: var(--accent); font-weight: 600; margin-left: 6px; }

/* Success */
.success-hero { text-align: center; padding: 48px 0 28px; }
.success-icon { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 20px; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 44px; box-shadow: 0 0 0 12px var(--success-soft); animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } }
.success-hero h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; margin-bottom: 8px; }
.success-hero p { color: var(--muted); }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv strong { color: var(--ink); text-align: right; }

/* ==========================================================================
   Account
   ========================================================================== */
.account-layout { display: grid; gap: 24px; padding-bottom: 64px; }
@media (min-width: 992px) { .account-layout { grid-template-columns: 270px 1fr; gap: 32px; align-items: start; } }
.account-nav { overflow: hidden; }
.account-user { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.account-user .avatar { width: 48px; height: 48px; font-size: 18px; background: linear-gradient(135deg, var(--accent), #a855f7); color: #fff; }
.account-user strong { display: block; color: var(--ink); font-size: 15px; }
.account-user span { font-size: 12px; color: var(--muted); word-break: break-all; }
.account-links { display: flex; gap: 4px; padding: 8px; overflow-x: auto; scrollbar-width: none; }
.account-links::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .account-links { flex-direction: column; overflow: visible; } }
.account-links a, .account-links button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; width: 100%; text-align: left; }
.account-links a:hover, .account-links button:hover { background: var(--surface-3); color: var(--ink); }
.account-links a.active { background: var(--accent-soft); color: var(--accent); }
.account-links .logout { color: var(--danger); }
.account-links form { flex-shrink: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 18px; }
.stat i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; margin-bottom: 12px; }
.stat .v { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }

.order-row { display: grid; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.order-row:last-child { border-bottom: 0; }
@media (min-width: 768px) { .order-row { grid-template-columns: 1.4fr 1fr 1fr auto; } }
.order-row .no { font-weight: 700; color: var(--ink); }
.order-row .date { font-size: 12px; color: var(--muted); }
.order-row .amt { font-weight: 800; color: var(--ink); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 4px; }
.tl-step { text-align: center; position: relative; font-size: 12px; color: var(--muted); font-weight: 600; }
.tl-step::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step.done::before { background: var(--success); }
.tl-step b { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 15px; }
.tl-step.done b { background: var(--success); color: #fff; }
.tl-step.done { color: var(--ink); }

.address-grid { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 768px) { .address-grid { grid-template-columns: 1fr 1fr; } }
.address-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.address-card .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.address-card strong { color: var(--ink); }
.address-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth-wrap { display: grid; min-height: calc(100vh - var(--header-h) - 120px); }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1fr 1fr; } }
.auth-art { display: none; position: relative; overflow: hidden; background: linear-gradient(145deg, #1e1b4b, #4f46e5 55%, #a855f7); color: #fff; padding: 56px; }
@media (min-width: 992px) { .auth-art { display: flex; flex-direction: column; justify-content: flex-end; } }
.auth-art::before, .auth-art::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.auth-art::before { width: 420px; height: 420px; top: -120px; right: -120px; }
.auth-art::after { width: 260px; height: 260px; top: 160px; left: -80px; }
.auth-art h2 { color: #fff; font-size: 38px; font-weight: 800; margin-bottom: 12px; position: relative; }
.auth-art p { opacity: .85; font-size: 17px; max-width: 420px; position: relative; }
.auth-art ul { margin-top: 28px; display: grid; gap: 12px; position: relative; }
.auth-art li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.auth-art li i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 16px 56px; }
.auth-form .inner { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.auth-form .sub { color: var(--muted); margin-bottom: 28px; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--accent); font-weight: 700; }
.pw-meter { height: 4px; border-radius: var(--radius-sm); background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: all .3s; border-radius: var(--radius-sm); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); margin-top: 32px; }
.footer-top { display: grid; gap: 32px; padding: 48px 0 32px; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-top h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-about p { color: var(--muted); font-size: 14px; margin: 12px 0 18px; max-width: 320px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact li { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: 2px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; transition: all .2s; }
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom .pays { display: flex; gap: 10px; font-size: 24px; }

/* Theme toggle */

/* Back to top */
.to-top { position: fixed; right: 16px; bottom: 80px; z-index: 38; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 992px) { .to-top { bottom: 24px; right: 24px; } }

/* Toasts */
.toasts { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
@media (min-width: 992px) { .toasts { left: auto; right: 24px; bottom: 24px; align-items: flex-end; } }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 420px; width: 100%;
    padding: 14px 16px; border-radius: var(--radius); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg);
    font-size: 14px; font-weight: 500; animation: toastIn .35s var(--ease);
}
@media (min-width: 992px) { .toast { width: auto; min-width: 300px; } }
.toast i { font-size: 20px; }
.toast.success i { color: #4ade80; } .toast.error i { color: #f87171; } .toast.info i { color: #93c5fd; }
.toast a { margin-left: auto; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px) scale(.96); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.fw-700 { font-weight: 700; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; }
.hidden { display: none !important; }


/* ==========================================================================
   HepsiTrend — Üst bar, kategori menüsü, teknik servis reklamları
   ========================================================================== */
h2, h3 { text-transform: none; }
.eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: .14em; }
.section-head h2, .page-head h1 { font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }

/* Üst bar */
.topbar { background: var(--steel); color: #d4d4d8; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--spark); }
.topbar-service { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.topbar-service .tag { flex-shrink: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; }
.ticker { display: block; position: relative; height: 20px; overflow: hidden; flex: 1; min-width: 0; }
.ticker span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: all .5s var(--ease); }
.ticker span.active { opacity: 1; transform: translateY(0); }
.topbar-links { display: none; align-items: center; gap: 18px; flex-shrink: 0; }
.topbar-links i { color: var(--accent); margin-right: 4px; }
@media (min-width: 992px) { .topbar-links { display: flex; } }

/* Header */
.site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
.logo { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; letter-spacing: 0; text-transform: uppercase; }
.logo .logo-accent { color: var(--accent); }
.header-search .input { border-radius: var(--radius-sm); border: 2px solid var(--ink); background: var(--surface); height: 46px; padding-right: 110px; }
.header-search .search-btn { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 18px; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.header-search .search-btn:hover { background: var(--accent-hover); }
.header-call { display: none; align-items: center; gap: 10px; padding: 0 8px 0 4px; flex-shrink: 0; }
.header-call i { font-size: 26px; color: var(--accent); }
.header-call small { display: block; font-size: 11px; color: var(--muted); line-height: 1.1; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.header-call strong { font-size: 15px; color: var(--ink); line-height: 1.2; }
@media (min-width: 1200px) { .header-call { display: flex; } }

.main-nav { background: var(--steel); border-top: 0; }
.main-nav .nav-list { height: 48px; gap: 0; }
.main-nav .nav-link { color: #e4e4e7; border-radius: 0; height: 48px; padding: 0 16px; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { background: var(--steel-2); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.main-nav .nav-dropdown { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.main-nav .nav-service { margin-left: auto; }
.main-nav .nav-service .nav-link { background: var(--accent); color: #fff; }
.main-nav .nav-service .nav-link:hover { background: var(--accent-hover); box-shadow: none; }

/* Hazard şerit dekoru */
.hazard { height: 6px; background: repeating-linear-gradient(-45deg, var(--spark) 0 14px, #16181d 14px 28px); }

/* Hero ile yan servis kartı */
.hero-wrap { display: grid; gap: 16px; margin-top: 16px; }
.hero-wrap .hero, .hero-wrap .hero-fallback { margin-top: 0; }
@media (min-width: 1100px) {
    .hero-wrap { grid-template-columns: minmax(0, 1fr) 320px; }
    .hero-wrap .hero-track { aspect-ratio: 16 / 8; }
}
.hero-side { display: none; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--steel); color: #fff; padding: 28px 24px; flex-direction: column; }
@media (min-width: 1100px) { .hero-side { display: flex; } }
.hero-side::before { content: ''; position: absolute; width: 240px; height: 240px; right: -90px; bottom: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(250, 204, 21, .55), rgba(234, 88, 12, .25) 45%, transparent 70%); }
.hero-side .tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--spark); color: #16181d; padding: 3px 8px; border-radius: 3px; margin-bottom: 14px; }
.hero-side h2 { color: #fff; font-size: 30px; font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-bottom: 14px; }
.hero-side ul { display: grid; gap: 8px; margin-bottom: 20px; position: relative; }
.hero-side li { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #d4d4d8; }
.hero-side li i { color: var(--accent); }
.hero-side .btn { margin-top: auto; position: relative; }

/* Teknik servis bölümü */
.service-section { position: relative; background: var(--steel); color: #d4d4d8; padding: 56px 0; overflow: hidden; }
.service-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 100% 0%, rgba(234, 88, 12, .28), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(250, 204, 21, .12), transparent 70%); pointer-events: none; }
.service-section .container { position: relative; }
.service-section .section-head h2 { color: #fff; }
.service-section .section-head p { color: #a1a1aa; max-width: 560px; }
.service-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border-radius: var(--radius); background: var(--steel-2); border: 1px solid rgba(255, 255, 255, .06); transition: transform .3s var(--ease), border-color .3s; }
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-card .num { position: absolute; top: 16px; right: 18px; font-family: 'Barlow Condensed', sans-serif; font-size: 42px; font-weight: 800; color: rgba(255, 255, 255, .06); line-height: 1; }
.service-icon { width: 54px; height: 54px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 26px; background: var(--accent); color: #fff; }
.service-card h3 { color: #fff; font-size: 21px; font-weight: 700; text-transform: uppercase; }
.service-card p { font-size: 14px; color: #a1a1aa; }
.service-card ul { display: grid; gap: 6px; font-size: 13px; }
.service-card li { display: flex; gap: 8px; }
.service-card li i { color: var(--spark); }
.service-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.service-card .actions .btn { flex: 1; height: 40px; padding: 0 12px; font-size: 13px; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.service-steps { display: grid; gap: 12px; margin-top: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 992px) { .service-steps { grid-template-columns: repeat(4, 1fr); } }
.service-step { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); font-size: 14px; }
.service-step b { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--spark); color: #16181d; font-size: 14px; }
.service-step strong { display: block; color: #fff; font-size: 14px; }
.service-step span { font-size: 12px; color: #a1a1aa; }

/* Geniş servis CTA bandı */
.service-cta { position: relative; overflow: hidden; display: grid; gap: 20px; align-items: center; padding: 32px 24px; border-radius: var(--radius-lg); background: linear-gradient(110deg, var(--accent) 0%, #f59e0b 100%); color: #fff; }
@media (min-width: 768px) { .service-cta { grid-template-columns: auto 1fr auto; padding: 36px 40px; } }
.service-cta::after { content: ''; position: absolute; right: -40px; top: 0; bottom: 0; width: 220px; background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .08) 0 14px, transparent 14px 28px); }
.service-cta > * { position: relative; z-index: 1; }
.service-cta .big-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: rgba(0, 0, 0, .18); }
.service-cta h3 { color: #fff; font-size: clamp(22px, 3vw, 32px); font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.service-cta p { opacity: .92; margin-top: 6px; }
.service-cta .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.service-cta .btn-light { background: #fff; color: #16181d; }
.service-cta .btn-light:hover { background: #16181d; color: #fff; }
.service-cta .btn-outline-light { border: 2px solid #fff; color: #fff; }
.service-cta .btn-outline-light:hover { background: rgba(255, 255, 255, .15); }

/* Ürün detayındaki servis kutusu */
.service-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin-bottom: 20px; border-radius: var(--radius); border: 1px dashed var(--accent); background: var(--accent-soft); }
.service-box > i { font-size: 26px; color: var(--accent); line-height: 1; }
.service-box strong { display: block; color: var(--ink); font-size: 15px; }
.service-box p { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.service-box a { font-size: 13px; font-weight: 700; color: var(--accent); margin-right: 14px; }

/* Ürün listesi servis şeridi */
.service-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; margin: 8px 0 24px; border-radius: var(--radius); background: var(--steel); color: #d4d4d8; font-size: 14px; }
.service-strip strong { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; text-transform: uppercase; }
.service-strip .chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.service-strip .chip { padding: 4px 10px; border-radius: 3px; background: var(--steel-2); font-size: 12px; font-weight: 600; }
.service-strip .chip i { color: var(--accent); margin-right: 4px; }
.service-strip a { color: var(--spark); font-weight: 700; white-space: nowrap; }

/* Markalar */
.brand-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .brand-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .brand-row { grid-template-columns: repeat(6, 1fr); } }
.brand-tile { height: 84px; display: grid; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; text-transform: uppercase; color: var(--muted); transition: all .2s; }
.brand-tile img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .75; transition: all .2s; }
.brand-tile:hover { border-color: var(--accent); color: var(--ink); }
.brand-tile:hover img { filter: none; opacity: 1; }

/* Kategori kutuları (kare) */
.cat-tile .thumb { border-radius: var(--radius); }

/* Ürün kartı */
.p-card { border: 1px solid var(--line); padding: 8px; }
.p-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.p-media { border-radius: var(--radius-sm); background: #fff; }
.p-media img { object-fit: contain; padding: 8px; }
.p-body { padding: 10px 4px 4px; }
.p-price .now { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; }

/* Footer */
.footer-service { background: var(--steel); }
.site-footer { background: var(--steel); color: #a1a1aa; border-top: 0; margin-top: 48px; }
.site-footer .logo, .site-footer h4 { color: #fff; }
.site-footer h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; text-transform: uppercase; letter-spacing: .05em; }
.site-footer .footer-about p, .site-footer .footer-links a, .site-footer .footer-contact li, .site-footer .footer-contact a { color: #a1a1aa; }
.site-footer .footer-links a:hover, .site-footer .footer-contact a:hover { color: var(--accent); }
.site-footer .footer-bottom { border-top-color: rgba(255, 255, 255, .08); color: #71717a; }
@media (min-width: 992px) { .site-footer .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr; } }
.footer-links .svc i { color: var(--accent); margin-right: 6px; }

/* WhatsApp sabit butonu */
.wa-float { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 28px; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
@media (min-width: 992px) { .wa-float { bottom: 24px; right: 24px; } }
.to-top { bottom: calc(140px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { .to-top { bottom: 90px; right: 29px; } }
@media (max-width: 639px) { .hide-mobile-sm { display: none; } }
