/* ============================================================
   Allparts.az — Kia & Hyundai Ehtiyat Hissələri
   Yeni template / Design System
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1,h2,h3,h4,h5 { margin: 0 0 .4em; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 3.2vw, 42px); }
h2 { font-size: clamp(22px, 2.4vw, 32px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); }
p  { margin: 0 0 .8em; }

/* ---------- Theme tokens ---------- */
:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-2: #f1f3f7;
    --ink: #0b1221;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-strong: #cbd5e1;

    /* Brand */
    --brand:   #0a1628;   /* deep navy */
    --brand-2: #142844;
    --kia:     #e4002b;   /* Kia signature red */
    --hyundai: #002c5f;   /* Hyundai navy blue */
    --accent:  #ff5134;   /* CTA warm orange (matches existing theme) */
    --accent-2:#ff3b18;

    --success: #10b981;
    --success-bg: #dcfce7;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger:  #dc2626;
    --danger-bg: #fee2e2;
    --info:    #0ea5e9;
    --info-bg: #e0f2fe;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow-1: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.04);
    --shadow-2: 0 4px 12px rgba(17,24,39,.08);
    --shadow-3: 0 10px 30px rgba(10,22,40,.15);

    --container: 1240px;
    --header-h: 72px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px){ .container { padding: 0 14px; } }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
@media (max-width: 640px){
    .section { padding: 36px 0; }
    .section-sm { padding: 24px 0; }
}
.section-dark { background: var(--brand); color: #dbe3ef; }
.section-dark h1,.section-dark h2,.section-dark h3 { color: #fff; }

.row { display: flex; flex-wrap: wrap; gap: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 992px){
    .grid-4 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px){
    .grid-4,.grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .section { padding: 40px 0; }
}
@media (max-width: 480px){
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}.mb-5{margin-bottom:48px}
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}.gap-4{gap:32px}
.flex-1{flex:1} .w-full{width:100%}
/* Visibility helpers — do NOT override native display; only hide on mobile */
@media (max-width: 768px){ .hidden-mobile { display: none !important; } }
.only-mobile { display: none !important; }
@media (max-width: 768px){ .only-mobile { display: revert !important; } }

/* ---------- Top strip / Marquee ---------- */
.topbar {
    background: var(--brand);
    color: #dbe3ef;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 38px; gap: 16px;
}
@media (max-width: 768px){
    .topbar { font-size: 11.5px; }
    .topbar-inner { height: 32px; gap: 8px; }
    .topbar .ticker { display: none; }
}
@media (max-width: 480px){
    .topbar-inner > div:last-child a span,
    .topbar-inner > div:last-child span { display: none; }
}
.topbar a { color: #fff; opacity: .85; }
.topbar a:hover { opacity: 1; }
.topbar-sep { opacity: .3; }
.topbar .ticker {
    overflow: hidden; flex: 1; white-space: nowrap; position: relative;
    -webkit-mask-image: linear-gradient(90deg,transparent, #000 40px, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg,transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.topbar .ticker span {
    display: inline-block; padding-left: 100%;
    animation: ticker 30s linear infinite;
}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-100%)} }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 80; background: #fff; box-shadow: var(--shadow-1); }
.header-main { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 38px; width: auto; display: block; }
.logo .b2b-tag {
    font-size: 11px; background: var(--kia); color: #fff;
    padding: 3px 8px; border-radius: 6px;
    font-weight: 700; letter-spacing: .05em;
    line-height: 1;
}
.site-footer .logo { margin-bottom: 12px; }
.site-footer .logo-img { filter: brightness(0) invert(1); }

.header-search { position: relative; max-width: 620px; width: 100%; }
.header-search input {
    width: 100%; height: 46px; padding: 0 120px 0 44px;
    background: var(--surface-2); border: 1px solid transparent; border-radius: 999px;
    color: var(--ink); font-size: 14px; outline: none; transition: border-color .2s, background .2s;
}
.header-search input:focus { background: #fff; border-color: var(--line-strong); }
.header-search .ico-search {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted);
}
.header-search .search-btn {
    position: absolute; right: 5px; top: 5px; bottom: 5px;
    padding: 0 18px; border: 0; border-radius: 999px;
    background: var(--kia); color: #fff; font-weight: 600; font-size: 13px;
    display: flex; align-items: center; gap: 6px;
}
.header-search .search-btn:hover { background: #c10024; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--surface-2); color: var(--ink); border: 0; position: relative;
    transition: background .2s;
}
.icon-btn:hover { background: var(--line); }
.icon-btn .badge-count {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
    padding: 0 5px; background: var(--kia); color: #fff; font-size: 11px; font-weight: 700;
    border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* Login / Register icon buttons — daha qabarıq, brend accent */
.icon-btn-login {
    background: var(--brand);
    color: #fff;
}
.icon-btn-login:hover {
    background: var(--brand-2);
    color: #fff;
}
.icon-btn-register {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,81,52,.25);
}
.icon-btn-register:hover {
    background: var(--accent-2);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255,81,52,.35);
    transform: translateY(-1px);
}
.icon-btn-register,
.icon-btn-login { transition: background-color .2s, color .2s, box-shadow .2s, transform .15s; }

/* Mobildə icon-btn-ləri bir qədər kiçild və spacing azalt */
@media (max-width: 480px){
    .icon-btn { width: 40px; height: 40px; border-radius: 10px; }
    .icon-btn i { font-size: 14px; }
    .icon-btn .badge-count { min-width: 16px; height: 16px; font-size: 9.5px; border-width: 1.5px; }
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid transparent;
    transition: transform .08s ease, background .2s, color .2s, border-color .2s, box-shadow .2s;
    text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--kia); color: #fff; }
.btn-primary:hover { background: #c10024; box-shadow: 0 6px 18px rgba(228,0,43,.25); }
.btn-secondary { background: var(--brand); color: #fff; }
.btn-secondary:hover { background: #091423; }
.btn-ghost {
    background: var(--surface-2); color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover {
    background: #fff; color: var(--brand);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-1);
}
.btn-ghost:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
/* Tünd fonlar üçün (hero, cta-panel) */
.btn-outline.btn-on-dark { color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline.btn-on-dark:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-sm {
    padding: 0 18px; height: 40px; font-size: 13.5px;
    border-radius: 10px; line-height: 1; gap: 10px;
    white-space: nowrap; flex-shrink: 0;
}
.btn-sm i { font-size: 13px; }

/* Trash/delete variantı — danger ton */
.btn-ghost.btn-sm:has(.fa-trash, .fa-trash-can) { color: var(--kia); }
.btn-ghost.btn-sm:has(.fa-trash, .fa-trash-can):hover {
    background: rgba(228, 0, 43, .08);
    border-color: rgba(228, 0, 43, .28);
    color: var(--kia);
}

/* Icon-only halında kvadrat kompakt görünüş
   Qeyd: :only-child CSS-də text node-ları saymır, ona görə :empty istifadə edirik ki,
   yanında mətn olan iconlar səhvən icon-only kimi render olmasın. */
.btn-ghost.btn-sm:empty,
.btn-ghost.btn-sm.icon-only {
    padding: 0; width: 40px; height: 40px; gap: 0;
    justify-content: center;
}
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Main nav ---------- */
.main-nav { border-top: 1px solid var(--line); background: #fff; }
.nav-inner { display: flex; align-items: center; gap: 10px; justify-content: space-between; height: 54px; }
.nav-list { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 10px; color: var(--ink);
    font-weight: 600; font-size: 14px;
}
.nav-list > li > a:hover,
.nav-list > li > a.active { background: var(--surface-2); color: var(--brand); }
.nav-list .pill {
    background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px;
    font-weight: 700; font-size: 13px; display: inline-flex; gap: 8px; align-items: center;
}
.nav-list .pill:hover { background: #091423; color: #fff; }

/* Mobile nav toggler — animated hamburger → X */
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--surface-2);
    align-items: center; justify-content: center;
    border: 0; cursor: pointer; padding: 0;
    position: relative;
    transition: background-color .15s ease;
}
.nav-toggle:hover { background: var(--line); }
.nav-toggle .bars { position: relative; width: 20px; height: 14px; pointer-events: none; }
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
    content: ''; position: absolute; left: 0; right: 0; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform .28s ease, opacity .18s ease, top .28s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 6px; display: block; }
.nav-toggle .bars::after { top: 12px; }
.mobile-menu-open .nav-toggle .bars::before { top: 6px; transform: rotate(45deg); }
.mobile-menu-open .nav-toggle .bars::after  { top: 6px; transform: rotate(-45deg); }
.mobile-menu-open .nav-toggle .bars span    { opacity: 0; transform: translateX(-10px); }

@media (max-width: 992px){
    .nav-inner .nav-list { display: none; }
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; }
}
@media (max-width: 768px){
    :root { --header-h: 64px; }
    .header-main { grid-template-columns: auto 1fr auto; gap: 10px; height: auto; padding: 10px 0; }
    .header-search { display: none; }
    .header-actions { gap: 6px; }
}
/* Inline mobile search bar below header */
.mobile-search {
    display: none;
    padding: 10px 14px 12px;
    background: #fff;
    border-top: 1px solid var(--line);
    position: relative;
}
.mobile-search input {
    width: 100%; height: 44px; padding: 0 44px 0 42px;
    border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface-2); font-size: 14px; font-family: inherit;
    outline: none; transition: border-color .15s, background .15s;
}
.mobile-search input:focus { border-color: var(--brand); background: #fff; }
.mobile-search i { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); color: var(--muted); }
@media (max-width: 768px){ .mobile-search { display: block; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1000px 500px at 10% -10%, rgba(228,0,43,.15), transparent 60%),
                radial-gradient(900px 500px at 110% 10%, rgba(0,44,95,.28), transparent 60%),
                linear-gradient(180deg, #0b1628 0%, #0a1628 100%);
    color: #fff; padding: 64px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero-grid > :only-child { grid-column: 1 / -1; max-width: 820px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08);
    padding: 7px 14px; border-radius: 999px; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase;
    color: #c6d2e6; border: 1px solid rgba(255,255,255,.1);
}
.hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; margin: 18px 0 16px; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero h1 .accent { color: var(--accent); }
.hero h2, .hero h3, .hero h4 { color: #fff; }
.hero p { color: #c6d2e6; font-size: 16px; max-width: 560px; }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; max-width: 520px; }
.hero-stats .stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px; }
.hero-stats .stat b { display: block; font-size: 22px; color: #fff; }
.hero-stats .stat span { color: #9fb0ca; font-size: 12.5px; }

.hero-card {
    position: relative; background: #fff; color: var(--ink); border-radius: 20px; padding: 22px;
    box-shadow: var(--shadow-3);
}
.hero-card h3 { margin-bottom: 6px; color: var(--ink); }
.hero-card .muted { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.vin-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vin-form .select, .vin-form .input {
    height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
    color: var(--ink); font-size: 14px; outline: none; font-family: inherit;
}
.vin-form button { grid-column: 1 / -1; }
.vin-or {
    display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 12px 0;
}
.vin-or::before, .vin-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.vin-input {
    display: flex; gap: 8px;
}
.vin-input .input { flex: 1; }
@media (max-width: 900px){
    .hero { padding: 48px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px){
    .hero { padding: 32px 0 40px; }
    .hero h1 { font-size: clamp(26px, 7vw, 36px); margin: 14px 0 12px; }
    .hero p { font-size: 14.5px; }
    .hero-actions { margin-top: 18px; }
    .hero-actions .btn-lg { flex: 1; min-width: 0; justify-content: center; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
    .hero-stats .stat { padding: 10px 8px; text-align: center; }
    .hero-stats .stat b { font-size: 17px; }
    .hero-stats .stat span { font-size: 11px; }
    .hero-card { padding: 16px; border-radius: 16px; }
    .vin-form { grid-template-columns: 1fr 1fr; }
    .vin-form button { grid-column: 1 / -1; }
}
@media (max-width: 420px){
    .vin-form { grid-template-columns: 1fr; }
}

/* ---------- Section headers ---------- */
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head .eyebrow {
    display: inline-block; color: var(--kia); font-size: 12px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px;
}
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; }
.section-head.section-head-tools { justify-content: flex-end; margin-bottom: 16px; }
.link-all {
    color: var(--brand); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
}
.link-all:hover { color: var(--kia); }

/* ---------- Tabs / Chips ---------- */
.tabs {
    display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2); padding: 6px; border-radius: 999px; width: fit-content;
}
.tab {
    border: 0; background: transparent; padding: 8px 16px; border-radius: 999px;
    font-weight: 600; font-size: 13px; color: var(--muted); transition: background .2s, color .2s;
}
.tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.tab:hover { color: var(--ink); }
.chip {
    display: inline-flex; align-items: center; gap: 8px; background: #fff;
    color: var(--ink); padding: 8px 14px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
    white-space: nowrap;
    line-height: 1;
}
.chip:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: #f8fafc;
}
.chip:active { transform: translateY(1px); }
.chip > strong {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 20px; padding: 0 6px;
    background: var(--surface-2); color: var(--muted);
    border-radius: 999px; font-size: 11px; font-weight: 700;
    letter-spacing: .02em;
    margin-left: 2px !important;
}
.chip.active,
.chip[data-active="true"],
.chip.is-active {
    background: var(--brand); color: #fff; border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(10,22,40,.14);
}
.chip.active > strong,
.chip[data-active="true"] > strong,
.chip.is-active > strong { background: rgba(255,255,255,.2); color: #fff; }
.chip.muted { background: var(--surface-2); border-color: transparent; color: var(--muted); }

/* Filter chips cluster — orders, products, vs. */
.chip-bar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px;
}

/* ---------- Search bar (product filtrasiyası üçün) ---------- */
.search-bar {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.search-bar .search-field { flex: 1; min-width: 240px; }
.search-bar .search-btn { height: 42px; padding: 0 22px; flex-shrink: 0; }
.search-bar .view-toggle { flex-shrink: 0; height: 42px; }
.search-bar .view-toggle button { height: 36px; padding: 0 12px; }
.search-field {
    position: relative; display: flex; align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    height: 42px;
}
.search-field:hover { border-color: var(--line-strong); background: #fff; }
.search-field:focus-within {
    border-color: var(--brand); background: #fff;
    box-shadow: 0 0 0 4px rgba(10,22,40,.08);
}
.search-field > i {
    padding: 0 12px; color: var(--muted); font-size: 13px;
}
.search-field:focus-within > i { color: var(--brand); }
.search-field input {
    flex: 1; border: 0; background: transparent; height: 100%; padding: 0 12px 0 0;
    font-size: 13px; color: var(--ink); outline: none; min-width: 0;
    font-family: inherit;
}
.search-field input::placeholder { color: var(--muted); }
@media (max-width: 640px){
    .search-bar { gap: 8px; }
    .search-bar .search-field { min-width: 100%; }
    .search-bar .search-btn { width: 100%; justify-content: center; }
    .search-bar .view-toggle { width: 100%; justify-content: center; }
}

/* ---------- Product cards ---------- */
.p-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.p-card .p-media {
    position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden;
}
.p-card .p-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
    padding: 10px;
    transition: none;
}
.p-card:hover .p-media img { transform: none; }
.p-card .p-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; }

.p-card .p-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.p-card .p-brand { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.p-card h3.p-title { font-size: 14px; line-height: 1.35; margin: 0; min-height: 2.7em; }
.p-card .p-sku {
    display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px; color: var(--muted); background: var(--surface-2); padding: 3px 8px; border-radius: 6px; width: fit-content;
}
.p-card .p-stock {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
    padding: 3px 0; width: fit-content;
}
.p-card .p-stock.in { color: #047857; }
.p-card .p-stock.in i { color: #10b981; }
.p-card .p-stock.out { color: var(--kia); }

.p-card .p-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.p-card .price { font-size: 16px; font-weight: 800; color: var(--ink); }
.p-card .price small { color: var(--muted); font-size: 11px; font-weight: 500; }
.p-card .price-old { color: var(--muted); text-decoration: line-through; font-size: 12.5px; margin-left: 6px; }
.p-card .btn-cart {
    width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.p-card .p-card-cart-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}
.p-card .p-card-cart-form .btn-cart {
    cursor: pointer;
}
.p-card .p-card-notify-form {
    margin: 0;
    padding: 0;
    width: 100%;
}
.p-card .p-card-notify-form .btn-notify {
    width: 100%;
    cursor: pointer;
    font: inherit;
}
.p-card .p-card-notify-form .btn-notify:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.p-card .btn-cart:hover { background: var(--kia); }
.p-card .btn-cart:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

/* "Gələndə xəbər ver" — stokda yoxdur kartı + məhsul detalı + B2B panel üçün notify düyməsi */
.p-card .btn-notify,
.section .panel .btn-notify,
.shop-b2b-page .panel .btn-notify {
    width: 100%;
    margin-top: 10px;
    height: 40px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(245, 158, 11, .08);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 10px;
    font-weight: 700; font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.p-card .btn-notify i,
.section .panel .btn-notify i,
.shop-b2b-page .panel .btn-notify i { font-size: 13px; color: #d97706; transition: color .15s ease; }
.p-card .btn-notify:hover,
.section .panel .btn-notify:hover,
.shop-b2b-page .panel .btn-notify:hover {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
    box-shadow: 0 6px 14px rgba(245, 158, 11, .25);
}
.p-card .btn-notify:hover i,
.section .panel .btn-notify:hover i,
.shop-b2b-page .panel .btn-notify:hover i { color: #fff; }
.p-card .btn-notify:disabled,
.section .panel .btn-notify:disabled,
.shop-b2b-page .panel .btn-notify:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.p-card .btn-notify:disabled:hover,
.section .panel .btn-notify:disabled:hover,
.shop-b2b-page .panel .btn-notify:disabled:hover {
    background: rgba(245, 158, 11, .08);
    color: #b45309;
    border-color: rgba(245, 158, 11, .28);
    box-shadow: none;
}
.p-card .btn-notify:disabled:hover i,
.section .panel .btn-notify:disabled:hover i,
.shop-b2b-page .panel .btn-notify:disabled:hover i { color: #d97706; }

/* Stok bildirişi gözləmədə — uğur (warning düyməsi əvəzi) */
.stock-alert-subscribed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid #bbf7d0;
    box-sizing: border-box;
}
.stock-alert-subscribed__label {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.stock-alert-subscribed__check {
    flex-shrink: 0;
    font-size: 18px;
    color: #059669;
    line-height: 1;
}
.stock-alert-subscribed--compact {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
}
.stock-alert-subscribed--compact .stock-alert-subscribed__check {
    font-size: 16px;
}
.stock-alert-subscribed.mt-3 {
    margin-top: 24px;
}
[data-catalog-grid][data-view="list"] .p-card .stock-alert-subscribed {
    width: auto;
    align-self: flex-start;
    min-width: min(100%, 280px);
}

@media (max-width: 380px){
    .p-card .p-foot { flex-wrap: wrap; }
    .p-card .p-foot .btn-ghost.btn-sm { flex-basis: 100%; justify-content: center; }
}

@media (max-width: 640px){
    .p-card .p-body { padding: 12px 12px 14px; gap: 5px; }
    .p-card h3.p-title { font-size: 13px; line-height: 1.3; min-height: 2.6em; }
    .p-card .p-tags { top: 8px; left: 8px; gap: 4px; }
    .p-card .price { font-size: 15px; }
    .p-card .price small { font-size: 10.5px; }
    .p-card .price-old { font-size: 11.5px; margin-left: 4px; }
    .p-card .btn-cart { width: 36px; height: 36px; border-radius: 9px; }
    .p-card .p-foot { padding-top: 8px; gap: 6px; }
    .p-card .badge-pill { padding: 3px 7px; font-size: 10.5px; }
}
@media (max-width: 380px){
    .p-card h3.p-title { font-size: 12.5px; }
    .p-card .p-body { padding: 10px 10px 12px; }
}

.badge-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 11.5px;
    font-weight: 700; border-radius: 999px; letter-spacing: .02em;
}
.badge-pill.ok     { background: var(--success-bg); color: #065f46; }
.badge-pill.warn   { background: var(--warning-bg); color: #92400e; }
.badge-pill.bad    { background: var(--danger-bg); color: #991b1b; }
.badge-pill.neutral{ background: var(--surface-2); color: var(--ink); }
/* ---------- Feature blocks ---------- */
.features {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    background: #fff; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.features .f {
    display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 10px;
}
.features .f .ico {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--surface-2);
    display: inline-flex; align-items: center; justify-content: center; color: var(--kia); font-size: 18px;
}
.features .f b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.features .f span { color: var(--muted); font-size: 12.5px; }
@media (max-width:900px){ .features { grid-template-columns: 1fr 1fr; } }
@media (max-width:560px){ .features { grid-template-columns: 1fr; } }

/* ---------- Category tiles ---------- */
.cat-tile {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    aspect-ratio: 1 / 1.15; padding: 18px; border-radius: 16px; overflow: hidden; color: #fff;
    background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,.75) 100%), var(--brand);
    transition: transform .2s;
}
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile.t2 { background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,.7) 100%), linear-gradient(135deg, #28384e, #0a1628); }
.cat-tile.t3 { background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(228,0,43,.75) 100%), #280a12; }
.cat-tile .sup { font-size: 12px; color: #a2b1c9; }
.cat-tile h3 { color: #fff; margin: 0; }
.cat-tile .cnt { font-size: 13px; color: #c9d4e5; }
.cat-tile .arr {
    align-self: flex-start; margin-top: 12px; width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Brand strip ---------- */
.brand-strip {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1);
    padding: 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
    align-items: center;
}
.brand-strip a {
    display: flex; align-items: center; justify-content: center; height: 66px; border-radius: 10px;
    background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 14px;
    transition: color .2s, background .2s; letter-spacing: .02em;
}
.brand-strip a:hover { color: var(--ink); background: #e9ecf2; }
@media (max-width:900px){ .brand-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Ana səhifə — Brendlər şəbəkəsi ---------- */
.home-brands-section .section-head { align-items: flex-start; }
.home-brands-intro {
    margin: 8px 0 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.home-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .home-brands-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
    .home-brands-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.home-brand-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.home-brand-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: var(--line-strong);
}
.home-brand-tile:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}
.home-brand-tile:active { transform: translateY(-1px); }
.home-brand-tile__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 108px;
    padding: 20px 18px;
    background: linear-gradient(165deg, #f8fafc 0%, #fff 55%, #f1f5f9 100%);
    border-bottom: 1px solid var(--line);
}
.home-brand-tile__logo img {
    max-height: 52px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.08);
    opacity: 0.95;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.home-brand-tile:hover .home-brand-tile__logo img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.03);
}
.home-brand-tile__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 14px;
    background: #fff;
}
.home-brand-tile__name {
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
    letter-spacing: .01em;
    line-height: 1.3;
    text-align: left;
}
.home-brand-tile__hint {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 14px;
    transition: background .2s ease, color .2s ease;
}
.home-brand-tile:hover .home-brand-tile__hint {
    background: rgba(10, 22, 40, 0.08);
    color: var(--brand);
}

/* ---------- /brands — Brendlər səhifəsi ---------- */
.brands-page-section { padding-top: 48px; }
.brands-page-header {
    max-width: 720px;
    margin-bottom: 32px;
}
.brands-page-header .eyebrow {
    display: inline-block;
    color: var(--kia);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.brands-page-title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.2vw, 30px);
    letter-spacing: -0.02em;
}
.brands-page-lead {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}
.brands-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}
@media (max-width: 960px) {
    .brands-page-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
    .brands-page-section { padding-top: 32px; }
    .brands-page-header { margin-bottom: 24px; }
    .brands-page-grid { grid-template-columns: 1fr; gap: 16px; }
}
.brand-page-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.brand-page-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: var(--line-strong);
}
.brand-page-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 24px 20px;
    background: linear-gradient(165deg, #f8fafc 0%, #fff 50%, #eef2f7 100%);
    border-bottom: 1px solid var(--line);
}
.brand-page-card__logo img {
    max-height: 72px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.06);
    opacity: 0.96;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.brand-page-card:hover .brand-page-card__logo img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}
.brand-page-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 20px 20px 22px;
}
.brand-page-card__name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.brand-page-card__desc {
    margin: 0;
    flex: 1;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-page-card__foot {
    margin-top: 4px;
    padding-top: 4px;
}
.btn-brand-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--brand);
    font: inherit;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-brand-modal i {
    font-size: 12px;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-brand-modal:hover {
    background: #fff;
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 2px 8px rgba(10, 22, 40, 0.08);
}
.btn-brand-modal:hover i {
    opacity: 1;
    transform: translateX(3px);
}
.btn-brand-modal:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ---------- Brend modal (brandModal / brandModalContent) ---------- */
.brand-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(16px, 5vh, 48px) 16px;
    background: rgba(10, 22, 40, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.brand-modal[hidden] {
    display: none !important;
}
.brand-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.brand-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin-top: clamp(8px, 4vh, 40px);
    margin-bottom: 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-3);
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.brand-modal.is-open .brand-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.brand-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.brand-modal__close:hover {
    background: var(--line);
    color: var(--ink);
}
.brand-modal__close:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.brand-modal__content {
    padding: 28px 24px 8px;
}
@media (min-width: 561px) {
    .brand-modal__content {
        padding: 32px 32px 12px;
    }
}
.brand-modal-body__title {
    margin: 0 48px 20px 0;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.brand-modal-body__grid {
    display: grid;
    grid-template-columns: minmax(100px, 200px) 1fr;
    gap: 24px 28px;
    align-items: start;
}
.brand-modal-body__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 120px;
    border-radius: 14px;
    background: linear-gradient(165deg, #f8fafc 0%, #fff 55%, #eef2f7 100%);
    border: 1px solid var(--line);
}
.brand-modal-body__img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}
.brand-modal-body__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}
.brand-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.6) 0%, var(--surface) 100%);
    border-radius: 0 0 20px 20px;
}
@media (min-width: 561px) {
    .brand-modal__footer {
        padding: 18px 32px 24px;
    }
}
.brand-modal__btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.brand-modal__btn-close:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.2);
}
.brand-modal__btn-close:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
@media (max-width: 560px) {
    .brand-modal-body__title {
        margin-right: 0;
        padding-right: 44px;
    }
    .brand-modal-body__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .brand-modal-body__logo {
        min-height: 100px;
        max-width: 220px;
        margin: 0 auto;
    }
}

/* ---------- CTA panel ---------- */
.cta-panel {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; overflow: hidden;
    border-radius: 20px; background: var(--brand); color: #fff; position: relative;
}
.cta-panel::before {
    content: ''; position: absolute; inset: 0; background:
        radial-gradient(500px 220px at 100% 0%, rgba(228,0,43,.35), transparent 60%),
        radial-gradient(500px 220px at 0% 100%, rgba(0,44,95,.45), transparent 60%);
    pointer-events: none;
}
.cta-panel .cta-body { padding: 36px; position: relative; z-index: 1; }
.cta-panel .cta-body h2 { color: #fff; font-size: clamp(22px, 2.5vw, 32px); }
.cta-panel .cta-body p { color: #c6d2e6; max-width: 420px; }
.cta-panel .cta-body .row-btn { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cta-panel .cta-list { position: relative; padding: 36px; background: rgba(255,255,255,.04); }
.cta-panel .cta-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cta-panel .cta-list ul li { display: flex; gap: 10px; align-items: flex-start; color: #dbe3ef; font-size: 14.5px; }
.cta-panel .cta-list ul li i { color: var(--accent); margin-top: 3px; }
@media (max-width:900px){ .cta-panel { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial {
    background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1);
    display: flex; flex-direction: column; gap: 16px; height: 100%;
}
.testimonial .quote { color: var(--kia); font-size: 28px; line-height: 1; }
.testimonial .who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.testimonial .who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial .who b { font-size: 14px; color: var(--ink); display: block; }
.testimonial .who span { font-size: 12.5px; color: var(--muted); }

/* ---------- Blog card ---------- */
.blog-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    display: flex; flex-direction: column; transition: transform .15s, box-shadow .2s, border-color .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.blog-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.blog-card .media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.blog-card .meta { display: flex; gap: 12px; color: var(--muted); font-size: 12.5px; }
.blog-card h3 { font-size: 16px; line-height: 1.35; margin: 0; }
.blog-card a.more { color: var(--kia); font-weight: 600; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #06101f; color: #b8c2d6; padding: 64px 0 20px; margin-top: 72px; }
@media (max-width: 640px){
    .site-footer { padding: 40px 0 16px; margin-top: 48px; }
}
.site-footer a { color: #c6d2e6; opacity: .85; }
.site-footer a:hover { opacity: 1; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .02em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-grid .about { max-width: 320px; }
.footer-grid .about p { color: #9fb0ca; font-size: 14px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07); margin-top: 40px; padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: #94a3b8; gap: 10px; flex-wrap: wrap;
}
@media (max-width: 640px){
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
}
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.socials a:hover { background: var(--kia); }
@media (max-width:640px){ .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Page banner ---------- */
.page-banner {
    background: linear-gradient(180deg, #0a1628 0%, #10233f 100%);
    color: #fff; padding: 48px 0 44px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-banner h1 { margin: 0; color: #fff; }
.crumbs { margin-top: 8px; font-size: 13px; color: #9fb0ca; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { color: #4a5a75; }

/* ---------- Catalog layout (shop) ---------- */
.catalog { display: block; }

.catalog-toolbar {
    display: flex; justify-content: flex-end; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 14px; box-shadow: var(--shadow-1); flex-wrap: wrap;
    margin-bottom: 16px;
}
.catalog-toolbar .view-toggle { height: 40px; }
.catalog-toolbar .view-toggle button { height: 34px; padding: 0 12px; }
@media (max-width: 640px){
    .catalog-toolbar { padding: 8px; }
}

/* Catalog grid view switcher — list mode: 1 sütun, kart horizontal */
[data-catalog-grid][data-view="list"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}
[data-catalog-grid][data-view="list"] .p-card {
    display: grid !important;
    flex-direction: initial;
    grid-template-columns: 220px 1fr;
    align-items: stretch;
}
[data-catalog-grid][data-view="list"] .p-card .p-media {
    aspect-ratio: auto;
    height: 100%; min-height: 180px;
}
[data-catalog-grid][data-view="list"] .p-card .p-body {
    padding: 16px 20px;
}
[data-catalog-grid][data-view="list"] .p-card h3.p-title {
    font-size: 15px; min-height: auto;
}
[data-catalog-grid][data-view="list"] .p-card .p-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
[data-catalog-grid][data-view="list"] .p-card .p-foot .price {
    font-size: 17px;
    line-height: 1.2;
}
[data-catalog-grid][data-view="list"] .p-card .p-foot .btn-ghost.btn-sm {
    margin-left: auto;
    min-width: 104px;
    justify-content: center;
}
[data-catalog-grid][data-view="list"] .p-card .btn-notify {
    width: auto;
    align-self: flex-start;
    padding: 0 14px;
    border-radius: 12px;
}
@media (max-width: 640px){
    [data-catalog-grid][data-view="list"] .p-card {
        grid-template-columns: 110px 1fr;
    }
    [data-catalog-grid][data-view="list"] .p-card .p-media { min-height: 110px; }
    [data-catalog-grid][data-view="list"] .p-card .p-body { padding: 12px 14px; }
    [data-catalog-grid][data-view="list"] .p-card .p-foot {
        margin-top: 10px;
        padding-top: 10px;
        gap: 8px;
    }
    [data-catalog-grid][data-view="list"] .p-card .p-foot .btn-ghost.btn-sm {
        margin-left: 0;
        width: 100%;
    }
}

/* Section-head daxilində input/sel uniform h\u00fcnd\u00fcrl\u00fck */
.section-head input[type="search"],
.section-head input[type="text"],
.section-head .sel {
    height: 40px; border-radius: 10px; font-size: 13px;
    border: 1px solid var(--line); background: #fff; padding: 0 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit; color: var(--ink);
}
.section-head input[type="search"]:focus,
.section-head input[type="text"]:focus,
.section-head .sel:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10,22,40,.08);
}
.section-head .sel { padding-right: 36px; }

/* Order link (sifariş nömrəsi) */
.order-link { color: var(--brand); font-weight: 700; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.order-link:hover { color: var(--kia); text-decoration: underline; }

/* Mobil-də section-head-dəki alət qrupu stack olsun */
@media (max-width: 640px){
    .section-head { align-items: stretch; }
    .section-head > .flex { width: 100%; flex-wrap: wrap; }
    .section-head > .flex > * { flex: 1 1 140px; min-width: 0; }
    .section-head input[type="search"],
    .section-head input[type="text"],
    .section-head .sel { width: 100%; }
}
/* Modern select */
.sel {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    height: 42px;
    padding: 0 40px 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(17,24,39,.04);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.sel:hover {
    border-color: var(--line-strong);
    background-color: #fafbfc;
}
.sel:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(10,22,40,.08);
    background-color: #fff;
}
.sel:disabled {
    background-color: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
    opacity: .7;
}
.sel option { color: var(--ink); background: #fff; font-weight: 500; }
.sel.sel-sm { height: 36px; padding: 0 34px 0 12px; font-size: 12.5px; background-size: 12px; }
.sel.sel-lg { height: 48px; padding: 0 44px 0 16px; font-size: 14.5px; }

/* Modern custom checkbox — universal (bütün checkbox-lar eyni qaydada) */
input[type="checkbox"] {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    border: 1.5px solid var(--line-strong);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .1s ease;
    box-shadow: 0 1px 2px rgba(17,24,39,.04);
    flex-shrink: 0;
}
input[type="checkbox"]:hover {
    border-color: var(--brand);
    background-color: #f7f8fb;
}
input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,81,52,.18);
    border-color: var(--accent);
}
input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
    box-shadow: 0 2px 6px rgba(255,81,52,.35);
}
input[type="checkbox"]:checked:hover {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
}
input[type="checkbox"]:active { transform: scale(0.92); }
input[type="checkbox"]:indeterminate {
    background-color: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'><line x1='5' y1='12' x2='19' y2='12'></line></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}
input[type="checkbox"]:disabled {
    opacity: .45;
    cursor: not-allowed;
}
/* Səbət sıraları üçün bir az böyük */
[data-cart-row] input[type="checkbox"],
input[type="checkbox"][data-select-all],
input[type="checkbox"][data-select-row] {
    width: 20px; height: 20px; min-width: 20px; border-radius: 6px;
    background-size: 12px;
}
input[type="checkbox"][data-select-all]:indeterminate,
input[type="checkbox"][data-select-all]:checked { background-size: 12px; }
.view-toggle { display: flex; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.view-toggle button { border: 0; background: transparent; padding: 6px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; }
.view-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex; gap: 6px; justify-content: center; align-items: center;
    list-style: none; padding: 0; margin: 28px 0 10px;
}
.pagination a, .pagination span {
    min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active span { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled span { color: var(--muted); background: var(--surface-2); cursor: not-allowed; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
@media (max-width: 900px){ .pd { grid-template-columns: 1fr; } }
.pd-gallery {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.pd-gallery .main {
    aspect-ratio: 1 / 1; background: var(--surface-2); border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.pd-gallery .main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.pd-thumbs .t { aspect-ratio: 1 / 1; background: var(--surface-2); border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.pd-thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs .t.active { border-color: var(--kia); }

.pd-info {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    display: flex; flex-direction: column; gap: 14px;
}
.pd-info h1 { font-size: clamp(22px, 2vw, 28px); margin: 0; line-height: 1.3; }
.pd-info .pd-artikul {
    display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
    font-size: 13.5px; font-family: 'JetBrains Mono', ui-monospace, monospace;
    background: var(--surface-2); padding: 8px 12px; border-radius: 8px; width: fit-content;
}
.pd-info .pd-artikul strong { color: var(--ink); letter-spacing: .02em; }
.pd-info .price {
    font-size: 32px; font-weight: 800; color: var(--ink); display: flex; align-items: baseline; gap: 10px;
    margin: 4px 0;
}
.pd-info .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pd-info .pd-stock {
    display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
    padding: 10px 14px; border-radius: 10px; width: fit-content;
}
.pd-info .pd-stock.in { background: rgba(16, 185, 129, .1); color: #047857; }
.pd-info .pd-stock.in i { color: #10b981; }
.pd-info .pd-stock.out { background: rgba(228, 0, 43, .08); color: var(--kia); }
.pd-info .pd-desc {
    padding-top: 6px; border-top: 1px solid var(--line); color: var(--text); line-height: 1.65;
}
.pd-info .pd-desc h4 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.pd-info .pd-desc p { margin: 0; font-size: 14px; }
.pd-actions {
    display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line);
}
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-row .pd-lbl { color: var(--text); font-weight: 600; font-size: 14px; }
.pd-row.pd-total { font-size: 18px; }
.pd-row.pd-total strong { font-size: 22px; font-weight: 800; color: var(--kia); }
.pd-qty {
    display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 4px;
}
.pd-qty button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--ink); font-size: 16px; border-radius: 8px; cursor: pointer; }
.pd-qty button:hover { background: #fff; }
.pd-qty input { width: 56px; height: 36px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button,
.pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 640px){
    .pd-info { padding: 18px; gap: 12px; }
    .pd-info h1 { font-size: 19px; }
    .pd-info .price { font-size: 26px; }
    .pd-row.pd-total strong { font-size: 19px; }
    .pd-gallery { padding: 14px; }
}

/* ---------- Cart / Orders / Tables ---------- */
.panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
    overflow: hidden;
}
.panel-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-h h2 { font-size: 16px; margin: 0; }
.panel-b { padding: 20px; }
.panel-b.pad-0 { padding: 0; }

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
    width: 100%; border-collapse: collapse; font-size: 14px;
}
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
@media (max-width: 640px){
    .table { font-size: 13px; }
    .table th, .table td { padding: 10px 10px; }
    .table th:first-child, .table td:first-child { padding-left: 12px; }
    .table th:last-child,  .table td:last-child  { padding-right: 12px; }
}
.table th { background: var(--surface-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfbfd; }

/* ---------- Cart item (B2B cart rows) ---------- */
.cart-item {
    display: flex; gap: 14px; align-items: center; min-width: 220px;
}
.cart-item-img {
    width: 60px; height: 60px; flex-shrink: 0;
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
    padding: 6px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--line);
    display: block;
}
.cart-item-info {
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.cart-item-title {
    font-size: 14px; font-weight: 700; color: var(--ink);
    line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-meta {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12px; color: var(--muted); line-height: 1.4;
}
.cart-item-meta .sep { color: var(--line-strong); user-select: none; }
.cart-item-meta code {
    background: var(--surface-2); padding: 2px 8px; border-radius: 6px;
    font-size: 11.5px; color: var(--ink); font-weight: 700;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: .02em;
}
.cart-item-meta .brand {
    font-weight: 600; color: var(--text); text-transform: uppercase;
    letter-spacing: .04em; font-size: 11px;
}
.cart-item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

@media (max-width: 640px){
    .cart-item { gap: 10px; min-width: 0; }
    .cart-item-img { width: 52px; height: 52px; }
    .cart-item-title { font-size: 13px; -webkit-line-clamp: 2; }
    .cart-item-meta { font-size: 11.5px; gap: 6px; }
}

.cart-qty {
    display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 3px;
}
.cart-qty button { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 6px; font-size: 14px; }
.cart-qty button:hover { background: #fff; }
.cart-qty input { width: 44px; height: 28px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 14px; }

.order-summary { display: grid; gap: 10px; font-size: 14px; }
.order-summary .row-l { display: flex; justify-content: space-between; color: var(--text); }
.order-summary .row-l.total { font-size: 18px; font-weight: 800; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }

/* Rezervdəki məhsul sırası (cart-da warn ton) */
.table tr.is-reserved td { background: rgba(245, 158, 11, .06); }
.table tr.is-reserved:hover td { background: rgba(245, 158, 11, .1); }

/* Table içində məhsul hüceyrəsi (thumb + title) */
.cell-media {
    display: flex; gap: 10px; align-items: center; min-width: 0;
}
.cell-thumb {
    width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
    box-sizing: border-box;
    background: var(--surface-2);
}
img.cell-thumb {
    object-fit: contain;
    object-position: center;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    display: block;
}
.cell-media strong { min-width: 0; font-size: 13.5px; color: var(--ink); }

/* Key-value table (sifariş məlumatları, faktura və s.) */
.kv-table {
    width: 100%; font-size: 13.5px; border-collapse: collapse;
}
.kv-table th {
    text-align: left; color: var(--muted); font-weight: 500;
    padding: 8px 0; width: 40%; font-size: 12.5px;
    border-bottom: 1px solid var(--line);
}
.kv-table td {
    padding: 8px 0; color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: 0; }

/* Utility classes */
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.text-success { color: var(--success); font-weight: 700; }
.text-danger { color: var(--danger); font-weight: 700; }
.text-muted { color: var(--muted); }
.inline-btn { width: fit-content; }

/* Sifariş timeline — horizontal stepper (3 sütun: DB statusları) */
.order-timeline {
    list-style: none; padding: 4px 0; margin: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    position: relative;
}
.order-timeline--3 {
    grid-template-columns: repeat(3, 1fr);
}
.order-timeline::before,
.order-timeline::after {
    content: ''; position: absolute; top: 14px; height: 2px; border-radius: 2px;
    left: 10%; right: 10%;
}
.order-timeline::before { background: var(--line); }
.order-timeline::after {
    background: linear-gradient(90deg, var(--kia), #ff5134);
    width: calc((100% - 20%) * var(--p, .4));
    transition: width .3s ease;
}
.order-timeline[data-progress="0"]   { --p: 0; }
.order-timeline[data-progress="25"]  { --p: .25; }
.order-timeline[data-progress="40"]  { --p: .5; }
.order-timeline[data-progress="50"]  { --p: .5; }
.order-timeline[data-progress="75"]  { --p: .75; }
.order-timeline[data-progress="100"] { --p: 1; }
.order-timeline li {
    text-align: center; position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.order-timeline li .dot {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--surface-2); color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--line); font-size: 12px; font-weight: 700;
    position: relative; z-index: 1;
    transition: all .2s ease;
}
.order-timeline li b { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.order-timeline li time { font-size: 11.5px; color: var(--muted); }
.order-timeline li.done .dot { background: var(--kia); color: #fff; border-color: var(--kia); }
.order-timeline li.done b { color: var(--ink); }
.order-timeline li.current .dot {
    background: var(--kia); color: #fff; border-color: var(--kia);
    box-shadow: 0 0 0 5px rgba(228,0,43,.18);
    animation: pulse-dot 1.6s ease-in-out infinite;
}
.order-timeline li.current b { color: var(--ink); font-weight: 700; }
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 5px rgba(228,0,43,.18); }
    50% { box-shadow: 0 0 0 9px rgba(228,0,43,.08); }
}
@media (max-width: 640px){
    .order-timeline { grid-template-columns: repeat(5, 1fr); gap: 2px; }
    .order-timeline--3 { grid-template-columns: repeat(3, 1fr); }
    .order-timeline li b { font-size: 10.5px; }
    .order-timeline li time { display: none; }
    .order-timeline li .dot { width: 26px; height: 26px; font-size: 10px; }
    .order-timeline::before, .order-timeline::after { top: 12px; }
}

/* Cart səhifəsi layout — list + sticky summary */
.cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 22px;
    align-items: flex-start;
}
@media (max-width: 992px){
    .cart-grid { grid-template-columns: 1fr; gap: 16px; }
    .cart-grid .cart-summary { position: static !important; }
}

/* ---------- Alerts ---------- */
.alert {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px;
    border: 1px solid transparent; font-size: 14px;
}
.alert .ico { font-size: 16px; margin-top: 2px; }
.alert.success { background: var(--success-bg); color: #065f46; border-color: #bbf7d0; }
.alert.warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.alert.danger  { background: var(--danger-bg);  color: #991b1b; border-color: #fecaca; }
.alert.info    { background: var(--info-bg);    color: #075985; border-color: #bae6fd; }

/* ---------- Auth / Forms ---------- */
.auth-wrap {
    min-height: calc(100vh - var(--header-h));
    display: grid; grid-template-columns: 1fr 1fr; background: #fff;
}
@media (max-width: 900px){ .auth-wrap { grid-template-columns: 1fr; } }
/* Solo (auth-side olmadan) — formu səhifə mərkəzində göstər */
.auth-wrap.auth-wrap-solo {
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    padding: 40px 20px;
}
.auth-wrap.auth-wrap-solo .auth-form {
    width: 100%; max-width: 480px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 40px 36px; box-shadow: var(--shadow-1);
}
@media (max-width: 560px){
    .auth-wrap.auth-wrap-solo { padding: 20px 12px; }
    .auth-wrap.auth-wrap-solo .auth-form { padding: 28px 22px; }
}

/* Password göz icon-u ilə input wrapper — input tam en alır */
.input-with-icon { position: relative; }
.input-with-icon input { width: 100%; padding-right: 42px; }
.input-with-icon .input-icon-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; background: transparent; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted); border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
.input-with-icon .input-icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.auth-side {
    background: radial-gradient(900px 500px at 120% 0%, rgba(228,0,43,.35), transparent 60%),
                radial-gradient(700px 400px at -10% 100%, rgba(0,44,95,.45), transparent 60%),
                #0a1628;
    color: #fff; padding: 60px 52px; display: flex; flex-direction: column; gap: 20px; justify-content: center;
}
.auth-side h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); }
.auth-side p { color: #c6d2e6; max-width: 420px; }
.auth-points { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 8px; color: #dbe3ef; font-size: 14.5px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; }
.auth-points li i { color: var(--accent); margin-top: 3px; }

.auth-form { padding: 60px 52px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.auth-form h3 { margin: 0 0 4px; }
.auth-form .muted { color: var(--muted); margin-bottom: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
    height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    font-size: 14px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.form-row textarea { height: auto; padding: 12px 14px; min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10,22,40,.08);
}
.form-row.inline { flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .form-grid-2 { grid-template-columns: 1fr; } .auth-form, .auth-side { padding: 40px 24px; } }

/* B2B /application — başlıq və forma */
.auth-wrap.auth-wrap-solo .auth-form:has(.auth-application-form) {
    max-width: 520px;
}
.auth-page-head {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.auth-page-head .eyebrow {
    display: inline-block;
    color: var(--kia);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.auth-page-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.auth-page-head .lead {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}
.auth-alert-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 13.5px;
    line-height: 1.45;
}
.auth-application-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-application-form .form-row input,
.auth-application-form .form-row select,
.auth-application-form .form-row textarea {
    width: 100%;
    min-width: 0;
}
.auth-application-form .label-optional {
    font-weight: 500;
    color: var(--muted);
    font-size: 12px;
}
.form-row .form-error {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--danger);
    margin-top: 2px;
}
.auth-application-form .form-actions {
    margin-top: 4px;
    padding-top: 4px;
}
.auth-application-form .btn-application-submit {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
    white-space: normal;
    border: 0;
    cursor: pointer;
}

/* ---------- B2B sidebar / layout ---------- */
.b2b-shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--header-h)); background: var(--surface-2); }
.b2b-side {
    background: #fff; border-right: 1px solid var(--line); padding: 22px 14px;
    position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.b2b-side .user {
    display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface-2); border-radius: 12px; margin-bottom: 14px;
}
.b2b-side .user .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.b2b-side .user b { display: block; font-size: 14px; color: var(--ink); }
.b2b-side .user span { font-size: 12px; color: var(--muted); }
.b2b-side .tier-badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3b2a09; letter-spacing: .04em; text-transform: uppercase; }

.b2b-nav { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.b2b-nav li a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    color: var(--text); font-weight: 500; font-size: 14px;
}
.b2b-nav li a i { width: 18px; text-align: center; color: var(--muted); }
.b2b-nav li a:hover { background: var(--surface-2); }
.b2b-nav li a.active { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.b2b-nav li a.active i { color: #fff; }
.b2b-nav li a.danger { color: var(--danger); }
.b2b-nav li a.danger i { color: var(--danger); }
.b2b-nav li a.danger:hover { background: rgba(228,0,43,.06); }
.b2b-nav .count { margin-left: auto; background: var(--kia); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.b2b-side hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }

.b2b-main { padding: 28px; }

.b2b-topcards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px;
}
.b2b-chart-cards {
    align-items: stretch;
}
.stat-card--with-chart {
    display: flex;
    flex-direction: column;
    min-height: 260px;
}
.stat-card--with-chart .lbl {
    padding-right: 0;
    margin-bottom: 6px;
}
.chart-canvas-wrap {
    position: relative;
    flex: 1;
    min-height: 200px;
    max-height: 220px;
    width: 100%;
}
.chart-bar-wrap {
    position: relative;
    height: 280px;
    width: 100%;
    padding: 4px 0 12px;
}
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
    position: relative; overflow: hidden;
}
.stat-card { transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.stat-card .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding-right: 50px; }
.stat-card .val { font-size: 24px; font-weight: 800; color: var(--ink); margin: 6px 0 4px; }
.stat-card .delta { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.stat-card .delta.up { color: var(--success); }
.stat-card .delta.down { color: var(--danger); }
.stat-card .ico {
    position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 10px;
    background: var(--surface-2); color: var(--brand); display: inline-flex; align-items: center; justify-content: center;
}
/* B2B sidebar → mobile drawer */
.b2b-side-toggle {
    display: none;
    position: sticky; top: var(--header-h); z-index: 60;
    align-items: center; gap: 10px;
    width: 100%; padding: 12px 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    font-weight: 700; color: var(--ink); font-size: 14px;
    border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.b2b-side-toggle i { color: var(--brand); }
.b2b-side-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(10,22,40,.5); z-index: 180;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}

@media (max-width: 992px){
    .b2b-topcards { grid-template-columns: repeat(2, 1fr); }
    .b2b-shell { grid-template-columns: 1fr; }
    .b2b-side {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 300px; max-width: 85vw; height: 100%;
        z-index: 185; transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        box-shadow: 8px 0 40px rgba(10,22,40,.2);
        padding-top: 16px;
    }
    .b2b-side-toggle { display: inline-flex; }
    body.b2b-side-open { overflow: hidden; }
    body.b2b-side-open .b2b-side { transform: translateX(0); }
    body.b2b-side-open .b2b-side-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .b2b-main { padding: 18px 14px; }
}
@media (max-width: 560px){
    .b2b-topcards { grid-template-columns: 1fr; }
    .b2b-main { padding: 14px 12px; }
    .quick-pad { grid-template-columns: 1fr; }
}

/* B2B top search (quick artikul pad) */
.quick-pad {
    display: grid; grid-template-columns: 1fr 320px; gap: 12px;
}
.quick-pad textarea {
    min-height: 120px; font-family: 'JetBrains Mono', ui-monospace, monospace;
    background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px;
    color: var(--ink); font-size: 13px;
}
.quick-pad .hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Horizontal line chart placeholder */
.chart-ph {
    height: 180px; background:
        linear-gradient(180deg, rgba(228,0,43,.15), rgba(228,0,43,0) 70%),
        repeating-linear-gradient(to right, transparent 0 39px, rgba(0,0,0,.05) 39px 40px),
        linear-gradient(to top, rgba(0,0,0,.04), rgba(0,0,0,0) 40%);
    border-radius: 10px; position: relative; overflow: hidden; border: 1px solid var(--line);
}
.chart-ph::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 30%; height: 2px; background: var(--kia);
    box-shadow: 0 0 18px rgba(228,0,43,.5);
}

/* Promo banner */
.promo-banner {
    background: linear-gradient(120deg, #0a1628 0%, #142844 100%);
    color: #fff; border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 20px;
    justify-content: space-between; align-items: center; box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.promo-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(500px 200px at 100% 0%, rgba(228,0,43,.4), transparent 60%);
    pointer-events: none;
}
.promo-banner > * { position: relative; z-index: 1; }
.promo-banner h3 { color: #fff; margin: 0 0 4px; font-size: 22px; }
.promo-banner p  { color: #c6d2e6; margin: 0; font-size: 14px; max-width: 600px; }
.promo-banner .btn-primary { flex-shrink: 0; }
@media (max-width: 720px){
    .promo-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
    .promo-banner h3 { font-size: 18px; }
    .promo-banner .btn-primary { width: 100%; justify-content: center; }
}

/* Debts / payments */
.debt-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.debt-hero {
    background: linear-gradient(135deg, #0a1628, #142844); color: #fff; border-radius: var(--radius);
    padding: 24px 26px; position: relative; overflow: hidden;
}
.debt-hero::before {
    content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 100% 0%, rgba(228,0,43,.35), transparent 60%);
}
.debt-hero .lbl { color: #9fb0ca; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.debt-hero .val { color: #fff; font-size: 36px; font-weight: 800; margin-top: 6px; }

.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--kia), var(--accent)); border-radius: inherit; }

/* Campaign card */
.campaign-card {
    position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9;
    background: linear-gradient(180deg, rgba(10,22,40,.3) 0%, rgba(10,22,40,.9) 100%), var(--brand);
    color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
    transition: transform .2s;
}
.campaign-card:hover { transform: translateY(-4px); }
.campaign-card .tag { align-self: flex-start; background: var(--kia); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.campaign-card h3 { color: #fff; margin: 12px 0 4px; }
.campaign-card p { color: #c6d2e6; margin: 0; font-size: 14px; }

/* Utility pills for order status */
.status {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.status::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.new     { background: var(--info-bg); color: #075985; }
.status.prep    { background: var(--warning-bg); color: #92400e; }
.status.shipped { background: #ede9fe; color: #5b21b6; }
.status.done    { background: var(--success-bg); color: #065f46; }
.status.cancel  { background: var(--danger-bg); color: #991b1b; }

/* Car silhouette decoration */
.car-deco {
    position: absolute; right: -40px; bottom: -30px; width: 340px; height: 180px; opacity: .08;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 240' fill='%23ffffff'><path d='M80 170c0-22 18-40 40-40s40 18 40 40v10H80v-10zm360 0c0-22 18-40 40-40s40 18 40 40v10h-80v-10zM40 140l60-60c10-10 24-16 38-16h130l40-24c14-8 30-10 46-6l100 20c30 6 56 24 74 50l16 24c6 10 18 16 30 16h70l30 20c6 4 10 10 10 18v18c0 10-8 18-18 18h-22c-2-28-26-50-54-50s-52 22-54 50H194c-2-28-26-50-54-50s-52 22-54 50H54c-10 0-18-8-18-18v-40c0-10 4-20 12-26z'/></svg>") no-repeat center/contain;
    pointer-events: none;
}

/* Helpers */
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.empty {
    text-align: center; padding: 40px 20px; color: var(--muted);
}
.empty i { font-size: 40px; color: var(--line-strong); display: block; margin-bottom: 10px; }

/* Mobile menu overlay */
/* ---------- Mobile Menu Drawer ---------- */
.mobile-menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,22,40,.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 190;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.mobile-menu {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 340px; max-width: 88vw;
    background: #fff; z-index: 200;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    box-shadow: -8px 0 40px rgba(10,22,40,.2);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
body.mobile-menu-open { overflow: hidden; }
body.mobile-menu-open .mobile-menu { transform: translateX(0); }
body.mobile-menu-open .mobile-menu-backdrop { opacity: 1; pointer-events: auto; }

.mm-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.mm-head .mm-logo {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.mm-head .mm-logo img { height: 32px; width: auto; display: block; }
.mm-close {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--surface-2); border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink); font-size: 16px;
    transition: background-color .15s;
}
.mm-close:hover { background: var(--line); }

.mm-search {
    padding: 14px 18px; border-bottom: 1px solid var(--line);
    flex-shrink: 0; position: relative;
}
.mm-search i {
    position: absolute; left: 32px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 14px;
}
.mm-search input {
    width: 100%; height: 44px; padding: 0 14px 0 42px;
    border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: 14px; font-family: inherit;
    outline: none; transition: border-color .15s, background .15s;
}
.mm-search input:focus { border-color: var(--brand); background: #fff; }

.mm-user {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; flex-shrink: 0;
}
.mm-user .ava {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
}
.mm-user b { display: block; font-size: 14px; }
.mm-user span { font-size: 12px; opacity: .8; }
.mm-user .tier-badge {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #3b2a09; letter-spacing: .05em; margin-top: 2px;
}

.mm-nav {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 10px 10px 10px; list-style: none; margin: 0;
}
.mm-nav li { list-style: none; }
.mm-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; border-radius: 10px;
    font-weight: 600; font-size: 15px; color: var(--ink);
    transition: background-color .15s, color .15s;
}
.mm-nav a i { width: 20px; text-align: center; color: var(--muted); font-size: 15px; }
.mm-nav a:hover, .mm-nav a.active {
    background: var(--surface-2); color: var(--brand);
}
.mm-nav a.active i { color: var(--accent); }
.mm-nav a.pill {
    background: var(--brand); color: #fff;
    margin-bottom: 6px;
}
.mm-nav a.pill i { color: #fff; }
.mm-nav a.pill:hover { background: var(--brand-2); color: #fff; }
.mm-nav .mm-section {
    padding: 14px 14px 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted);
}

.mm-actions {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line);
    flex-shrink: 0;
}
.mm-actions a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 6px; border-radius: 10px;
    background: var(--surface-2); color: var(--ink);
    font-size: 11.5px; font-weight: 600; text-align: center;
    transition: background-color .15s;
    position: relative;
}
.mm-actions a i { font-size: 18px; color: var(--brand); }
.mm-actions a:hover { background: var(--line); }
.mm-actions a .badge-count {
    position: absolute; top: 6px; right: 18px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--accent); color: #fff; border-radius: 999px;
    font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

.mm-footer {
    padding: 14px 18px; border-top: 1px solid var(--line);
    flex-shrink: 0;
}
.mm-footer .mm-contact {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    background: var(--surface-2); color: var(--ink);
    font-weight: 700; font-size: 14px;
    margin-bottom: 8px;
}
.mm-footer .mm-contact i { color: var(--accent); }
.mm-footer .mm-socials {
    display: flex; gap: 8px; justify-content: center; margin-top: 4px;
}
.mm-footer .mm-socials a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface-2); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .15s, color .15s;
}
.mm-footer .mm-socials a:hover { background: var(--brand); color: #fff; }

/* Preview index page grid */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.preview-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .15s, box-shadow .2s, border-color .2s; }
.preview-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--brand); }
.preview-card .tag { font-size: 11px; font-weight: 700; color: var(--kia); text-transform: uppercase; letter-spacing: .1em; }
.preview-card h4 { margin: 4px 0 6px; }
.preview-card p { color: var(--muted); font-size: 13.5px; margin: 0; }
