/* B2B Mobile-First — app.css v5 — Premium App (High Contrast, Low Noise) */
/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; font-size: 16px; }
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #F6F6F7;
    color: #0F172A;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
img { display: block; max-width: 100%; }

/* App shell — position:fixed inset:0 iOS safe area üçün ən etibarlı yanaşmadır */
#app {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,.08);
}

/* ── iPad / Tablet uyğunluğu ───────────────────
   iPad-da Apple App Store-un tələbi: tam ekran istifadəsi, oxunaqlı içərik */
@media (min-width: 768px) {
    #app {
        max-width: 100%;
        box-shadow: none;
    }
    .page-content {
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }
    .appbar {
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }
    .bottom-nav {
        max-width: 900px;
        margin: 0 auto;
    }
    .bottom-sheet {
        max-width: 600px !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, 100%);
        border-radius: 24px 24px 0 0;
    }
    .bottom-sheet.open { transform: translate(-50%, 0); }
}

@media (min-width: 1024px) {
    .page-content {
        max-width: 1100px;
        padding-left: 32px;
        padding-right: 32px;
    }
    .appbar, .bottom-nav { max-width: 1100px; }
}

/* iPad/Tablet: fixed bottom action bars (cart total, product CTA) */
@media (min-width: 768px) {
    .fixed-bottom-bar {
        max-width: 900px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }
}
.fixed-bottom-bar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    z-index: 20;
}


/* Scrollable page area */
.page-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    padding-bottom: 16px;
}

/* ── Colors ───────────────────────────────── */
:root {
    --primary:        #357AF3;
    --primary-dark:   #1E63D8;
    --primary-light:  #EEF4FE;
    --primary-mid:    #C4D9FB;
    --accent:         #6366F1;
    --success:        #059669;
    --success-light:  #ECFDF5;
    --warning:        #D97706;
    --warning-light:  #FFFBEB;
    --danger:         #DC2626;
    --danger-light:   #FEF2F2;
    --gray-50:        #F8FAFC;
    --gray-100:       #F1F5F9;
    --gray-200:       #E2E8F0;
    --gray-300:       #CBD5E1;
    --gray-400:       #94A3B8;
    --gray-500:       #64748B;
    --gray-600:       #475569;
    --gray-700:       #334155;
    --gray-900:       #0F172A;
    --bg-main:        #F6F6F7;
    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      20px;
    --radius-xl:      24px;
    --radius-2xl:     28px;
    --shadow-xs:      0 1px 2px rgba(0,0,0,.04);
    --shadow-sm:      0 2px 8px rgba(0,0,0,.06);
    --shadow-md:      0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:      0 8px 32px rgba(0,0,0,.12);
    --shadow-blue:    0 4px 16px rgba(53,122,243,.22);
    /* Font weights */
    --fw-regular:     400;
    --fw-medium:      500;
    --fw-semibold:    600;
    --fw-bold:        700;
    --fw-black:       800;
    /* Border & Stroke */
    --border-light:   1px solid var(--gray-100);
    --stroke-icon:    1.5px;
}

/* ── Typography ───────────────────────────── */
.text-xs   { font-size: .6875rem; line-height: 1.4; }   /* 11px — tarix, stok, köməkçi */
.text-sm   { font-size: .75rem;   line-height: 1.4; }   /* 12px — brend, kateqoriya */
.text-base { font-size: .9375rem; line-height: 1.5rem; } /* 15px — əsas mətn */
.text-lg   { font-size: 1.125rem; line-height: 1.5; }   /* 18px — seksiya başlığı */
.text-xl   { font-size: 1.375rem; line-height: 1.3; }   /* 22px — səhifə başlığı */
.text-2xl  { font-size: 1.5rem;   line-height: 1.25; }
.font-regular  { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 800; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted   { color: var(--gray-400); }
.text-dark    { color: var(--gray-700); }
.text-center  { text-align: center; }
.truncate     { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tabular-nums { font-variant-numeric: tabular-nums; } /* qiymət titrəməsinin qarşısını alır */

/* ── Spacing ─────────────────────────────── */
.p-0  { padding: 0; }      .p-1 { padding: .25rem; } .p-2 { padding: .5rem; }
.p-3  { padding: .75rem; } .p-4 { padding: 1rem; }   .p-5 { padding: 1.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }

/* ── Flex / Grid ─────────────────────────── */
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-1  { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.grid    { display: grid; }
.grid-2  { grid-template-columns: repeat(2,1fr); }

/* ── Top AppBar ──────────────────────────── */
.appbar {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 8px 0 4px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 4px;
    flex-shrink: 0;
}
.appbar-title {
    font-size: 1.0625rem;    /* 17px — iOS tərzi */
    font-weight: 700;
    flex: 1;
    padding: 0 8px;
    color: var(--gray-900);
}
.appbar-action {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    transition: background .12s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.appbar-action:active { background: var(--gray-100); }

/* ── Bottom Navigation ───────────────────── */
.bottom-nav {
    display: flex;
    flex-shrink: 0;
    min-height: 60px;
    height: calc(60px + var(--sab, env(safe-area-inset-bottom)));
    border-top: 1px solid var(--gray-200);
    background: #fff;
    padding-bottom: var(--sab, env(safe-area-inset-bottom));
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--gray-400);
    font-size: .625rem;
    font-weight: 500;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active svg { stroke: var(--primary); }
.bottom-nav-badge {
    position: absolute;
    top: 5px; right: calc(50% - 20px);
    background: var(--danger);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
}

/* ── Cards ───────────────────────────────── */
.card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-body { padding: 1rem; }
.return-item-active { background: #FFF5F5; }

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 0 1.25rem;
    height: 48px;
    border-radius: var(--radius-md);
    font-size: .9375rem;
    font-weight: 600;
    transition: transform .1s, opacity .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border: none;
    outline: none;
    white-space: nowrap;
    letter-spacing: .01em;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-ghost { background: var(--gray-100); color: var(--gray-700); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { height: 36px; padding: 0 .875rem; font-size: .8125rem; border-radius: var(--radius-sm); }
.btn-lg { height: 56px; font-size: 1rem; border-radius: var(--radius-xl); font-weight: 700; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

/* ── Inputs ──────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label { font-size: .8125rem; font-weight: 600; color: var(--gray-700); }
.input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: .9375rem;
    color: var(--gray-900);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(53,122,243,.12); }
.input.error  { border-color: var(--danger); }
textarea.input { height: auto; padding: 12px 14px; resize: none; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 44px; }
.input-icon-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }

/* ── Product Card ────────────────────────── */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s;
    border: 1px solid rgba(0,0,0,.05);
    height: 100%;
}
.product-card:active { transform: scale(.97); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F8FAFC;
    overflow: hidden;
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: url('/assets/img/no-image.png') center/cover no-repeat, var(--gray-100);
    color: var(--gray-300);
}
.product-body { padding: 8px 8px 6px; flex: 1; display: flex; flex-direction: column; gap: 2px; overflow: hidden; min-width: 0; }
.product-name {
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1F2937;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-cat {
    font-size: .5rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}
.product-price {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 4px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.product-old-price {
    font-size: .7rem;
    color: var(--gray-400);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.product-badge-wrap {
    position: absolute;
    top: 8px; left: 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.product-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--danger);
    color: #fff;
}
.product-badge.new { background: var(--success); }
.product-fav-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 34px; height: 34px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    -webkit-tap-highlight-color: transparent;
}
.product-add-btn {
    margin: 6px 10px 10px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    gap: 5px;
    transition: background .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: .01em;
    box-shadow: 0 3px 10px rgba(53,122,243,.3);
}
.product-add-btn:active { transform: scale(.97); background: var(--primary-dark); }
.product-add-btn:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; box-shadow: none; }

/* ── Badges ──────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.badge-blue    { background: #EEF4FE; color: #357AF3; }
.badge-green   { background: #DCFCE7; color: #15803D; }
.badge-yellow  { background: #FEF9C3; color: #92400E; }
.badge-red     { background: #FEE2E2; color: #B91C1C; }
.badge-purple  { background: #EDE9FE; color: #6D28D9; }
.badge-gray    { background: var(--gray-100); color: var(--gray-500); }
.badge-primary { background: var(--primary-mid); color: var(--primary); }

/* ── Skeleton ────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #EDEDED 25%, #F7F7F7 50%, #EDEDED 75%);
    background-size: 200% 100%;
    animation: skel 1.4s ease-in-out infinite;
    border-radius: var(--radius-md);
}
@keyframes skel {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Section header ──────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 10px;
}
.section-title {
    font-size: 1.125rem;     /* 18px — "bağırır" */
    font-weight: 700;
    color: var(--gray-900);
}
.section-link {
    font-size: .8125rem;
    color: var(--primary);
    font-weight: 600;
}

/* ── Divider ─────────────────────────────── */
.divider {
    height: 10px;
    background: var(--bg-main);   /* border yox, fon bloku — Temu stili */
    border: none;
}

/* ── Empty state ─────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    gap: 10px;
    color: var(--gray-400);
}
.empty-state-icon { font-size: 3rem; opacity: .7; }
.empty-state-title { font-size: 1rem; font-weight: 700; color: var(--gray-700); }
.empty-state-desc  { font-size: .875rem; color: var(--gray-400); }

/* ── Search bar ──────────────────────────── */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 0 14px;
    height: 44px;
    gap: 10px;
    color: var(--gray-400);
    border: 1.5px solid transparent;
    transition: border-color .2s, background .2s;
}
.search-bar:focus-within {
    background: #fff;
    border-color: var(--primary);
}
.search-bar input {
    background: none;
    border: none;
    outline: none;
    flex: 1;
    font-size: .9375rem;
    color: var(--gray-900);
}
.search-bar input::placeholder { color: var(--gray-400); }

/* ── Category Chips ──────────────────────── */
.chips {
    display: flex;
    gap: 8px;
    padding: 8px 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 24px;
    font-size: .8125rem;
    font-weight: 600;
    background: #fff;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}
.chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}

/* ── Timeline ────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.timeline-item { display: flex; gap: 12px; position: relative; }
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px; top: 24px;
    width: 2px;
    height: calc(100% - 8px);
    background: var(--gray-200);
}
.timeline-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.timeline-dot.active { background: var(--primary); }
.timeline-dot.done   { background: var(--success); }
.timeline-body { flex: 1; padding-bottom: 16px; }
.timeline-label { font-size: .875rem; font-weight: 600; }
.timeline-time  { font-size: .75rem; color: var(--gray-400); margin-top: 2px; }

/* ── Summary row ─────────────────────────── */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: .9375rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 700; font-size: 1rem; color: var(--gray-900); }

/* ── Progress bar ────────────────────────── */
.progress-bar { height: 6px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #fff; border-radius: 3px; transition: width .5s ease; }
.progress-fill.danger  { background: #FCA5A5; }
.progress-fill.warning { background: #FDE68A; }

/* ── Avatar ──────────────────────────────── */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: var(--gray-500);
    flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: .875rem; }
.avatar-md { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }

/* ── Bottom sheet ────────────────────────── */
.bottom-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.32,.72,0,1);
    z-index: 100;
    max-height: 92vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
    max-width: 430px;
    margin: 0 auto;
}
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet-handle {
    width: 40px; height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 14px auto 8px;
}

/* ── Toast ───────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 398px;
}
.toast {
    background: #1E293B;
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: .875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.show    { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); }

/* ── Payment type cards ──────────────────── */
.pay-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    background: #fff;
    cursor: pointer;
    transition: all .18s;
    -webkit-tap-highlight-color: transparent;
}
.pay-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(53,122,243,.1);
}
.pay-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem;
}
.pay-card-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--gray-700);
    text-align: center;
}
.pay-card.selected .pay-card-label { color: var(--primary); }

/* ── Cart item ───────────────────────────── */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: var(--shadow-sm);
}
.cart-item-img {
    width: 72px; height: 72px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-qty-ctrl {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}
.cart-qty-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-700);
    -webkit-tap-highlight-color: transparent;
    transition: background .1s;
}
.cart-qty-btn:active { background: var(--gray-200); }
.cart-qty-btn.plus { color: var(--primary); }
.cart-qty-num {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: .9375rem;
    color: var(--gray-900);
}

/* ── Image gallery ───────────────────────── */
.img-gallery-main {
    width: 100%;
    height: 300px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.img-gallery-main img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity .2s;
}
.img-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px 0 4px;
}
.img-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all .2s;
}
.img-dot.active { background: var(--primary); width: 18px; border-radius: 3px; }
.img-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.img-thumbs::-webkit-scrollbar { display: none; }
.img-thumb {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: border-color .15s;
    background: var(--gray-100);
}
.img-thumb.active { border-color: var(--primary); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── List Items ──────────────────────────── */
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
    min-height: 64px;
    -webkit-tap-highlight-color: transparent;
    transition: background .1s;
}
.list-item:active { background: var(--gray-50); }
.list-item:last-child { border-bottom: none; }
.list-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

/* ── Page transitions ────────────────────── */
.page-enter {
    animation: page-slide-in .22s ease forwards;
}
@keyframes page-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Login page ──────────────────────────── */
.login-wrap {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 48px 24px 24px;
    background: #fff;
}
.login-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 40px;
}
.login-logo-icon {
    width: 52px; height: 52px;
    background: var(--primary);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.login-logo-text { font-size: 1.375rem; font-weight: 800; }
.login-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.login-sub   { font-size: .9375rem; color: var(--gray-500); margin-bottom: 32px; }

/* ── FAB ─────────────────────────────────── */
.fab {
    position: fixed;
    bottom: 76px; right: 20px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    z-index: 20;
    transition: transform .15s;
}
.fab:active { transform: scale(.93); }

/* ── Utilities ───────────────────────────── */
.hidden    { display: none !important; }
.w-full    { width: 100%; }
.rounded   { border-radius: var(--radius-md); }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.bg-white  { background: #fff; }
.relative  { position: relative; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer  { cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }
