/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f0f4f8;
    color: #1a2233;
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f4f8; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #c5d0e0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1a6bff; }

/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
    --blue:           #1a6bff;
    --blue-dark:      #1558d6;
    --blue-light:     #2979ff;
    --blue-pale:      #eef4ff;
    --blue-pale2:     #dbeafe;

    --text-primary:   #1a2233;
    --text-secondary: #4a5568;
    --text-muted:     #6b7a8d;
    --text-hint:      #9aa5b4;

    --bg-page:        #f0f4f8;
    --bg-card:        #ffffff;
    --bg-muted:       #f8fafc;
    --bg-input:       #ffffff;

    --border:         #e2e8f0;
    --border-light:   #f0f2f5;

    --radius-xs:      6px;
    --radius-sm:      8px;
    --radius-md:      10px;
    --radius-lg:      12px;
    --radius-xl:      16px;
    --radius-full:    9999px;

    --shadow-xs:      0 1px 4px rgba(0,0,0,0.05);
    --shadow-sm:      0 2px 12px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.09);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
    --shadow-blue:    0 4px 16px rgba(26,107,255,0.22);
    --shadow-blue-sm: 0 2px 8px  rgba(26,107,255,0.15);

    --transition:     0.18s ease;
    --transition-md:  0.28s ease;

    --sidebar-w:      260px;
    --header-h:       60px;
}

/* ===========================
   LAYOUT — DASHBOARD WRAPPER
=========================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: flex-start;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 18px;
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--border-light);
}

.logo__img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-blue-sm);
}

.logo__img svg { color: #fff; }

.logo__text {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.logo__sub {
    font-size: 11px;
    color: var(--text-hint);
    font-weight: 500;
}

/* Sidebar section label */
.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-hint);
    margin-bottom: 8px;
    padding-left: 4px;
}

/* Navigation */
.main-nav {}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.main-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background var(--transition), color var(--transition);
    position: relative;
}

.main-nav li a .nav-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-muted);
    flex-shrink: 0;
    transition: background var(--transition);
}

.main-nav li a .nav-icon svg {
    color: var(--text-hint);
    transition: color var(--transition);
}

.main-nav li a:hover,
.main-nav li a.active {
    background: var(--blue-pale);
    color: var(--blue);
}

.main-nav li a:hover .nav-icon,
.main-nav li a.active .nav-icon {
    background: var(--blue-pale2);
}

.main-nav li a:hover .nav-icon svg,
.main-nav li a.active .nav-icon svg {
    color: var(--blue);
}

.main-nav li a .nav-badge {
    margin-left: auto;
    background: var(--blue);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    min-width: 20px;
    text-align: center;
}

/* Filters */
.filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-val {
    color: var(--blue);
    font-weight: 700;
    font-size: 12px;
}

.range-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-top: 4px;
}

.range-fill {
    position: absolute;
    left: 0;
    height: 100%;
    background: var(--blue);
    border-radius: var(--radius-full);
    pointer-events: none;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--border);
    outline: none;
    cursor: pointer;
    transition: background var(--transition);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(26,107,255,0.35);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(26,107,255,0.45);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(26,107,255,0.35);
    cursor: pointer;
}

input[type="range"]::-moz-range-progress { background: var(--blue); height: 4px; border-radius: var(--radius-full); }

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}

.range-input-box {
    background: var(--bg-muted);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    outline: none;
    width: 100%;
    transition: border-color var(--transition);
}

.range-input-box:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,107,255,0.1);
}

/* Sidebar actions */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.sidebar-actions .btn { width: 100%; justify-content: center; }

.btn-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--bg-muted);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.btn-phone:hover {
    border-color: var(--blue);
    background: var(--blue-pale);
    color: var(--blue);
}

.btn-phone svg { color: inherit; flex-shrink: 0; }

/* Sidebar stats strip */
.sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-tile {
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    padding: 12px 10px;
    text-align: center;
    border: 1.5px solid var(--border-light);
}

.stat-tile__value {
    font-size: 18px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.1;
}

.stat-tile__label {
    font-size: 10px;
    color: var(--text-hint);
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.3;
}

/* ===========================
   MAIN CONTENT
=========================== */
.main-content {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    min-width: 0;
}

.content-left {
    flex: 0 0 41%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ===========================
   CARD — BASE
=========================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.card--no-padding { padding: 0; overflow: hidden; }

.card--sm { padding: 18px; }

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.card__action {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    white-space: nowrap;
    transition: opacity var(--transition);
}

.card__action:hover { opacity: 0.75; }

/* ===========================
   BADGE
=========================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--blue-pale);
    color: var(--blue);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge--success { background: #ecfdf5; color: #065f46; }
.badge--warn    { background: #fffbeb; color: #92400e; }
.badge--gray    { background: #f1f5f9; color: #64748b; }

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
    white-space: nowrap;
    line-height: 1.4;
    text-decoration: none;
    user-select: none;
}

.btn:active { transform: scale(0.97); }

.btn svg { flex-shrink: 0; }

/* Primary — blue filled */
.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

/* Outline — white with blue border */
.btn-outline {
    background: #fff;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-outline:hover {
    background: var(--blue-pale);
    box-shadow: var(--shadow-blue-sm);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    color: var(--blue);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--blue-pale);
}

/* Muted */
.btn-muted {
    background: var(--bg-muted);
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-muted:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* Danger */
.btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Sizes */
.btn-xs  { padding: 5px 12px;  font-size: 12px; border-radius: var(--radius-sm); }
.btn-sm  { padding: 7px 16px;  font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 13px 30px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-xl  { padding: 15px 36px; font-size: 16px; border-radius: var(--radius-lg); }

/* Full width */
.btn-block { width: 100%; }

/* Icon only */
.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.btn-icon-lg {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

/* Round */
.btn-round { border-radius: var(--radius-full); }

/* Disabled */
.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    pointer-events: none;
    box-shadow: none;
}

/* ===========================
   HERO BLOCK
=========================== */
.hero-block {
    padding: 32px 30px 30px;
    background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 60%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.hero-block::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(26,107,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-block .badge { margin-bottom: 14px; }

.hero-block h1 {
    font-size: 2.05rem;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-block h1 span {
    color: var(--blue);
    position: relative;
}

.hero-block p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 400px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-meta-item svg { color: var(--blue); flex-shrink: 0; }

/* ===========================
   FEATURES BLOCK
=========================== */
.features-block {}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 14px 8px;
    border-radius: var(--radius-lg);
    background: var(--bg-muted);
    border: 1.5px solid var(--border-light);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.feature-item:hover {
    border-color: var(--blue);
    background: var(--blue-pale);
    box-shadow: var(--shadow-blue-sm);
}

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6ff;
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition);
}

.feature-item:hover .icon-circle {
    background: var(--blue);
    border-color: var(--blue);
}

.icon-circle svg { color: var(--blue); transition: color var(--transition); }

.feature-item:hover .icon-circle svg { color: #fff; }

.feature-item__label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* ===========================
   TRUST BLOCK
=========================== */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.review-card,
.clients-card {
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    border: 1.5px solid var(--border-light);
}

.review-card__title,
.clients-card__title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.star { font-size: 15px; color: #d1d5db; line-height: 1; }
.star.filled { color: #f59e0b; }

.review-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 8px;
}

.review-author {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-hint);
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-author::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #60a5fa);
}

.review-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 10px 0;
}

.client-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.client-logo-placeholder {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-hint);
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: border-color var(--transition);
}

.client-logo-placeholder:hover { border-color: var(--blue); }

.trust-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
}

.trust-score__value {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.trust-score__label {
    font-size: 11px;
    color: var(--text-hint);
    font-weight: 500;
    line-height: 1.35;
}

/* ===========================
   PRODUCT CARDS
=========================== */
.popular-block {}

.products-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.products-flex--4 {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border: 2px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition-md), transform var(--transition-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--blue);
    box-shadow: 0 6px 20px rgba(26,107,255,0.12);
    transform: translateY(-2px);
}

/* Product image wrapper with slider support */
.product-card__slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #fff;
    flex-shrink: 0;
}

.product-card__slides {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.product-card__slide {
    flex: 0 0 100%;
    width: 100%;
}

.product-card__slide img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    background: #fff;
}

.product-img-placeholder {
    width: 100%;
    height: 130px;
    background: #e8edf5;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-hint);
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(26,107,255,0.25);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.slider-dot.active {
    background: var(--blue);
    transform: scale(1.3);
}

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
    backdrop-filter: blur(4px);
}

.slider-arrow--prev { left: 4px; }
.slider-arrow--next { right: 4px; }

.product-card:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.slider-arrow svg { color: inherit; pointer-events: none; }

/* Card badge (sale, new, etc) */
.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
}

.product-card__wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition), border-color var(--transition), background var(--transition);
    backdrop-filter: blur(4px);
}

.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist:hover { border-color: #ef4444; background: #fef2f2; }
.product-card__wishlist svg { color: #ef4444; }

.product-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.product-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-specs {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-card__price {
    font-size: 16px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-card__price-old {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-hint);
    text-decoration: line-through;
}

.product-card__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.product-card__footer .btn { flex: 1; }

/* Featured product card */
.product-card.featured {
    background: #fff;
    border-color: var(--border);
}

.product-card.featured .product-card__slide img {
    height: 160px;
}

/* ===========================
   QUANTITY STEPPER
=========================== */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.qty-stepper__btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    border: none;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.qty-stepper__btn:hover { background: var(--blue-pale); color: var(--blue); }

.qty-stepper__val {
    min-width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    border: none;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    padding: 0 4px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    outline: none;
}

/* ===========================
   CATALOG BLOCK
=========================== */
.catalog-block {
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.catalog-item {
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
    text-align: center;
}

.catalog-item:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-blue-sm);
    transform: translateY(-2px);
}

.catalog-item__img-wrap {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1.5px solid var(--border-light);
    flex-shrink: 0;
    transition: border-color var(--transition);
}

.catalog-item:hover .catalog-item__img-wrap { border-color: var(--blue); }

.catalog-item__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-item h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.catalog-item p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.catalog-item__count {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
}

/* ===========================
   CART WIDGET (FLOATING)
=========================== */
.cart-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
}

/* Tab trigger */
.cart-widget-tab {
    background: var(--blue);
    color: #fff;
    padding: 16px 10px;
    border-radius: 14px 0 0 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: -3px 0 16px rgba(26,107,255,0.25);
    transition: background var(--transition);
    user-select: none;
}

.cart-widget-tab:hover { background: var(--blue-dark); }

.cart-widget-tab__label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.85;
    white-space: nowrap;
}

.cart-count-badge {
    background: #ff3b3b;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid var(--blue);
    transition: background var(--transition);
}

/* Cart body panel */
.cart-widget-body {
    background: #fff;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    box-shadow: -6px 0 28px rgba(0,0,0,0.13);
    width: 310px;
    display: flex;
    flex-direction: column;
    max-height: 82vh;
    overflow: hidden;
    transition: transform var(--transition-md), opacity var(--transition-md);
}

.cart-widget-body.is-hidden {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.cart-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1.5px solid var(--border-light);
    flex-shrink: 0;
}

.cart-widget-header__title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-widget-close {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-hint);
    font-size: 18px;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

.cart-widget-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.cart-widget-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-empty {
    color: var(--text-hint);
    font-size: 13px;
    text-align: center;
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cart-empty svg { color: var(--border); }

.cart-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    transition: background var(--transition);
}

.cart-widget-item:last-child { border-bottom: none; }

.cwi-thumb {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-muted);
    border: 1.5px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cwi-thumb img { width: 100%; height: 100%; object-fit: contain; }

.cwi-info { flex: 1; min-width: 0; }
.cwi-name { font-weight: 600; color: var(--text-primary); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cwi-sub  { font-size: 11px; color: var(--text-hint); margin-top: 1px; }

.cwi-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.cwi-price { font-weight: 700; color: var(--blue); font-size: 13.5px; white-space: nowrap; }
.cwi-qty   { font-size: 11px; color: var(--text-hint); }

.cwi-remove {
    background: none;
    border: none;
    color: var(--text-hint);
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    border-radius: 50%;
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}

.cwi-remove:hover { color: #dc2626; background: #fee2e2; }

.cart-widget-footer {
    padding: 14px 20px;
    border-top: 1.5px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.cart-total__label { color: var(--text-secondary); font-weight: 600; }
.cart-total__value { font-weight: 800; color: var(--text-primary); font-size: 18px; }
.cart-total__value span { color: var(--blue); }

/* ===========================
   PRICE TABLE
=========================== */
.price-table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); }

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.price-table th {
    background: #f4f7fb;
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.price-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--blue-pale); }

.price-table .td-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-muted);
}

.price-table .td-name { font-weight: 600; }
.price-table .td-price { font-weight: 800; color: var(--blue); white-space: nowrap; }
.price-table .td-stock { white-space: nowrap; }

/* ===========================
   SECTION HEADER / PAGE TITLE
=========================== */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-header__left {}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-hint);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--blue);
    transition: opacity var(--transition);
}

.breadcrumb a:hover { opacity: 0.75; }

.breadcrumb__sep {
    color: var(--border);
    user-select: none;
    font-size: 12px;
}

.breadcrumb__current { color: var(--text-secondary); font-weight: 500; }

/* ===========================
   TABS
=========================== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover { color: var(--blue); }

.tab-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
    background: var(--blue-pale);
}

/* ===========================
   FORMS
=========================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group:last-child { margin-bottom: 0; }

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-label .required { color: #ef4444; margin-left: 2px; }

.form-control {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg-input);
    width: 100%;
    line-height: 1.5;
}

.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,107,255,0.12);
}

.form-control::placeholder { color: var(--text-hint); }

.form-control:disabled {
    opacity: 0.55;
    background: var(--bg-muted);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

select.form-control { cursor: pointer; }

.form-hint {
    font-size: 11.5px;
    color: var(--text-hint);
    margin-top: 2px;
    line-height: 1.4;
}

.form-error {
    font-size: 11.5px;
    color: #dc2626;
    margin-top: 2px;
    line-height: 1.4;
}

.form-control.is-error { border-color: #ef4444; }
.form-control.is-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.form-control.is-success { border-color: #22c55e; }

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.form-check-label {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

/* ===========================
   ALERTS
=========================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1.5px solid transparent;
    line-height: 1.5;
}

.alert svg { flex-shrink: 0; margin-top: 1px; }

.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warn    { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* ===========================
   STATS ROW
=========================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.stat-card {
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    border: 1.5px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-blue-sm);
}

.stat-card__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.stat-card__icon svg { color: var(--blue); }

.stat-card__value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-card__label {
    font-size: 11.5px;
    color: var(--text-hint);
    font-weight: 500;
}

.stat-card__delta {
    font-size: 11.5px;
    font-weight: 700;
    margin-top: 2px;
}

.stat-card__delta.up   { color: #16a34a; }
.stat-card__delta.down { color: #dc2626; }

/* ===========================
   DIVIDER
=========================== */
.divider {
    border: none;
    border-top: 1.5px solid var(--border-light);
    margin: 20px 0;
}

.divider--dashed { border-style: dashed; }

/* ===========================
   SEARCH BAR
=========================== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 14px;
    height: 40px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,107,255,0.1);
}

.search-bar svg { color: var(--text-hint); flex-shrink: 0; }

.search-bar input {
    border: none;
    outline: none;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
    flex: 1;
    min-width: 0;
}

.search-bar input::placeholder { color: var(--text-hint); }

/* ===========================
   TOP BAR (optional)
=========================== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.top-bar__left  { display: flex; align-items: center; gap: 16px; }
.top-bar__right { display: flex; align-items: center; gap: 10px; }

/* Avatar */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--lg { width: 48px; height: 48px; font-size: 16px; }

/* ===========================
   TAG / CHIP
=========================== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-muted);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    white-space: nowrap;
    user-select: none;
}

.chip:hover,
.chip.active {
    border-color: var(--blue);
    background: var(--blue-pale);
    color: var(--blue);
}

.chip__remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.chip__remove:hover { opacity: 1; }

/* ===========================
   TOOLTIP
=========================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a2233;
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 9999;
    font-family: inherit;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ===========================
   SKELETON / LOADING
=========================== */
.skeleton {
    background: linear-gradient(90deg, #e8edf5 25%, #f0f4f8 50%, #e8edf5 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===========================
   EMPTY STATE
=========================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--text-hint);
}

.empty-state svg { color: var(--border); }

.empty-state__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
}

.empty-state__text {
    font-size: 13px;
    color: var(--text-hint);
    line-height: 1.5;
    max-width: 260px;
}

/* ===========================
   UTILITY CLASSES
=========================== */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }

.text-primary  { color: var(--text-primary) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-hint     { color: var(--text-hint) !important; }
.text-blue     { color: var(--blue) !important; }
.text-success  { color: #16a34a !important; }
.text-danger   { color: #dc2626 !important; }
.text-warn     { color: #d97706 !important; }

.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.text-xs   { font-size: 11px; }
.text-sm   { font-size: 12.5px; }
.text-base { font-size: 14px; }
.text-lg   { font-size: 16px; }
.text-xl   { font-size: 18px; }

.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-block { display: block; }
.d-none  { display: none; }

.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.flex-1  { flex: 1; }

.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-auto { margin-top: auto; }

.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

.p-0  { padding: 0; }
.p-8  { padding: 8px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }

.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.cursor-pointer { cursor: pointer; }
.select-none    { user-select: none; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whitespace-nowrap { white-space: nowrap; }

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease both;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease both;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 0.8s linear infinite;
}

/* ===========================
   RESPONSIVE — 1100px
=========================== */
@media (max-width: 1100px) {
    .main-content { flex-direction: column; }
    .content-left,
    .content-right { flex: none; width: 100%; }

    .products-flex      { grid-template-columns: repeat(3, 1fr); }
    .products-flex--4   { grid-template-columns: repeat(3, 1fr); }
    .catalog-grid       { grid-template-columns: repeat(3, 1fr); }
    .features-grid      { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================
   RESPONSIVE — 900px
=========================== */
@media (max-width: 900px) {
    :root { --sidebar-w: 100%; }

    .dashboard-wrapper {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px;
        max-height: none;
        overflow: visible;
    }

    .sidebar .logo          { flex: 0 0 auto; border-bottom: none; padding-bottom: 0; }
    .sidebar .main-nav      { flex: 1; min-width: 180px; }
    .sidebar .main-nav ul   { flex-direction: row; flex-wrap: wrap; }
    .sidebar .filters       { display: none; }
    .sidebar .sidebar-stats { display: none; }
    .sidebar .sidebar-actions { flex-direction: row; flex: 1; min-width: 160px; }
    .sidebar .sidebar-actions .btn { flex: 1; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid    { grid-template-columns: 1fr; }

    .products-flex    { grid-template-columns: repeat(2, 1fr); }
    .products-flex--4 { grid-template-columns: repeat(2, 1fr); }
    .catalog-grid     { grid-template-columns: repeat(2, 1fr); }

    .hero-block h1 { font-size: 1.65rem; }

    .cart-widget-body { width: 280px; }
}

/* ===========================
   RESPONSIVE — 600px
=========================== */
@media (max-width: 600px) {
    html { font-size: 14px; }

    .hero-block { padding: 22px 18px; }
    .hero-block h1 { font-size: 1.45rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }

    .products-flex    { grid-template-columns: 1fr 1fr; }
    .products-flex--4 { grid-template-columns: 1fr 1fr; }
    .catalog-grid     { grid-template-columns: 1fr 1fr; }
    .features-grid    { grid-template-columns: 1fr 1fr; }

    .card { padding: 16px; }
    .catalog-block { padding: 16px; }

    .cart-widget-tab { padding: 12px 8px; }
    .cart-widget-tab__label { display: none; }
    .cart-widget-body { width: calc(100vw - 56px); max-width: 300px; }

    .trust-grid { grid-template-columns: 1fr; }

    .stats-row { grid-template-columns: 1fr 1fr; }

    .top-bar { padding: 10px 14px; }

    .tabs { gap: 0; }
    .tab-btn { padding: 8px 12px; font-size: 13px; }
}

/* ===========================
   RESPONSIVE — 420px
=========================== */
@media (max-width: 420px) {
    .products-flex,
    .products-flex--4 { grid-template-columns: 1fr; }

    .catalog-grid   { grid-template-columns: 1fr 1fr; }
    .features-grid  { grid-template-columns: 1fr 1fr; }
    .stats-row      { grid-template-columns: 1fr; }
    .client-logos   { grid-template-columns: 1fr 1fr; }

    .hero-block h1  { font-size: 1.3rem; }
    .hero-meta      { flex-direction: column; gap: 8px; }
}

/* ===========================
   PRINT
=========================== */
@media print {
    .sidebar,
    .cart-widget,
    .top-bar { display: none !important; }

    .dashboard-wrapper { padding: 0; gap: 0; }
    .main-content { flex-direction: column; gap: 16px; }
    .content-left, .content-right { width: 100%; }
    .card { box-shadow: none; border: 1px solid var(--border); }
}