/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0f0f1a;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header {
    background: #141425;
    border-bottom: 1px solid #1e1e35;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    border-radius: 8px;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
}
.logo-text { color: #f1f5f9; }

.nav { display: flex; gap: 8px; }
.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s;
}
.nav-link:hover { color: #DC2626; background: rgba(220,38,38,0.08); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Search */
.search-form { position: relative; }
.search-input {
    width: 220px;
    padding: 8px 14px;
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    transition: border-color 0.2s;
}
.search-input:focus { outline: none; border-color: #DC2626; }
.search-input::placeholder { color: #64748b; }
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 8px;
    margin-top: 4px;
    display: none;
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
}
.search-dropdown.active { display: block; }
.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    transition: background 0.15s;
}
.search-item:hover { background: rgba(220,38,38,0.08); }
.search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-item-info { flex: 1; }
.search-item-name { font-size: 13px; font-weight: 500; }
.search-item-article { font-size: 11px; color: #64748b; font-family: monospace; }
.search-item-price { font-size: 12px; color: #DC2626; }

/* Cart button */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #94a3b8;
    transition: all 0.2s;
}
.cart-btn:hover { color: #DC2626; background: rgba(220,38,38,0.08); }
.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #DC2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* User menu */
.user-menu { position: relative; }
.user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #94a3b8;
    transition: all 0.2s;
}
.user-btn:hover { color: #DC2626; background: rgba(220,38,38,0.08); }
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 10px;
    margin-top: 8px;
    min-width: 200px;
    display: none;
    z-index: 200;
    overflow: hidden;
}
.user-dropdown.active { display: block; }
.dropdown-header {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #2d2d4a;
    color: #f1f5f9;
}
.dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.15s;
}
.dropdown-link:hover { background: rgba(220,38,38,0.08); color: #DC2626; }
.dropdown-link--danger:hover { background: rgba(239,68,68,0.08); color: #ef4444; }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.burger span {
    display: block;
    height: 2px;
    background: #94a3b8;
    border-radius: 2px;
    transition: all 0.3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 20px 20px;
    background: #141425;
    border-top: 1px solid #1e1e35;
    position: relative;
    z-index: 101;
}
.mobile-nav.active { display: flex; }
.mobile-nav-link {
    padding: 12px 0;
    font-size: 15px;
    color: #94a3b8;
    border-bottom: 1px solid #1e1e35;
}
.mobile-nav-link:hover { color: #DC2626; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-primary { background: #DC2626; color: #fff; }
.btn-primary:hover { background: #B91C1C; }
.btn-outline { border: 1px solid #2d2d4a; color: #94a3b8; }
.btn-outline:hover { border-color: #DC2626; color: #DC2626; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== HERO ===== */
.hero {
    padding: 0;
    background: #0f0f1a;
    position: relative;
}
.hero-content { position: relative; z-index: 1; }
.hero-banner { width: 100%; height: auto; display: block; }

/* ===== FEATURES ===== */
.features {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    transition: border-color 0.3s;
}
.feature-card:hover { border-color: #DC2626; }
.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: rgba(220,38,38,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 8px; color: #f1f5f9; }
.feature-card p { font-size: 14px; color: #64748b; }
.feature-card--compact {
    padding: 16px;
    display: block;
    color: inherit;
    text-decoration: none;
}
.feature-card--compact .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-bottom: 10px;
}
.feature-card--compact h3 { font-size: 14px; margin-bottom: 4px; }
.feature-card--compact p { font-size: 12px; margin-bottom: 0; }
.product-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
    .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== SECTION ===== */
.section { padding: 60px 0; }
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #f1f5f9;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { border-color: #DC2626; transform: translateY(-2px); }
.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #DC2626;
    margin-bottom: 6px;
}
.product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
    line-height: 1.4;
}
.product-card-title a:hover { color: #DC2626; }
.product-card-article {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    font-family: monospace;
}
.product-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.spec-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #1e1e35;
    color: #94a3b8;
    font-weight: 500;
}
.spec-badge--viscosity {
    background: rgba(220,38,38,0.12);
    color: #DC2626;
}
.product-card-approvals {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}
.approval-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(59,130,246,0.1);
    color: #60a5fa;
    font-weight: 500;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #1e1e35;
}
.product-price { font-size: 18px; font-weight: 700; color: #DC2626; min-width: 0; }
.product-old-price {
    font-size: 13px;
    color: #64748b;
    text-decoration: line-through;
    margin-left: 8px;
}
.product-card-actions { display: flex; gap: 8px; }
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px;
    background: #DC2626;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.add-to-cart-btn:hover { background: #B91C1C; }
.add-to-cart-btn:active { transform: scale(0.97); }

/* ===== CATALOG LAYOUT ===== */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 40px 0;
}
.catalog-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.catalog-content { min-width: 0; }
.filter-overlay { display: none; }
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.catalog-count { font-size: 14px; color: #64748b; }
.catalog-sort select {
    background: #141425;
    border: 1px solid #2d2d4a;
    border-radius: 8px;
    padding: 8px 12px;
    color: #e2e8f0;
    font-size: 13px;
}

/* ===== FILTERS ===== */
.filter-panel {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 20px;
}
.filter-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-clear {
    font-size: 12px;
    color: #ef4444;
    cursor: pointer;
    font-weight: 500;
}
.filter-clear:hover { text-decoration: underline; }
.filter-group { margin-bottom: 20px; }
.filter-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-group-title::after {
    content: '▾';
    font-size: 12px;
    transition: transform 0.2s;
}
.filter-group.collapsed .filter-group-title::after { transform: rotate(-90deg); }
.filter-group.collapsed .filter-options { display: none; }
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 0;
}
.filter-checkbox:hover { color: #e2e8f0; }
.filter-checkbox input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #2d2d4a;
    border-radius: 4px;
    background: #1a1a2e;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.filter-checkbox input[type="checkbox"]:checked {
    background: #DC2626;
    border-color: #DC2626;
}
.filter-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.filter-count {
    margin-left: auto;
    font-size: 11px;
    color: #475569;
}
.filter-apply-btn {
    display: none;
    width: 100%;
    margin-top: 16px;
}

/* Price range */
.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}
.price-input {
    width: 100%;
    padding: 8px 10px;
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 13px;
}
.price-input:focus { outline: none; border-color: #DC2626; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    background: #141425;
    border: 1px solid #1e1e35;
    transition: all 0.2s;
}
.pagination a:hover { border-color: #DC2626; color: #DC2626; }
.pagination .active { background: #DC2626; color: #fff; border-color: #DC2626; }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}
.product-detail-image {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail-image > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-gallery {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
    flex-shrink: 0;
    background: #fff;
    padding: 2px;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: #DC2626; opacity: 1; }
.product-detail-info { display: flex; flex-direction: column; }
.product-detail-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #DC2626;
    margin-bottom: 8px;
}
.product-detail-title { font-size: 28px; font-weight: 700; color: #f1f5f9; margin-bottom: 16px; }
.product-detail-price { font-size: 32px; font-weight: 800; color: #DC2626; margin-bottom: 24px; }
.product-detail-old-price { font-size: 18px; color: #64748b; text-decoration: line-through; margin-left: 12px; }
.product-detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.spec-item {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 8px;
    padding: 12px;
}
.spec-item-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.spec-item-value { font-size: 15px; font-weight: 600; color: #f1f5f9; margin-top: 4px; }
.product-detail-approvals { margin-bottom: 24px; }
.product-detail-approvals h3 { font-size: 14px; color: #94a3b8; margin-bottom: 10px; }
.approval-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.approval-badge-lg {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(59,130,246,0.1);
    color: #60a5fa;
    font-weight: 500;
    border: 1px solid rgba(59,130,246,0.2);
}
.approval-section { margin-bottom: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.approval-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #DC2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 40px;
}
.product-detail-desc { margin-bottom: 24px; color: #94a3b8; font-size: 14px; line-height: 1.7; }
.product-detail-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
}
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #2d2d4a;
    border-radius: 8px;
    overflow: hidden;
}
.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #94a3b8;
    transition: all 0.2s;
}
.quantity-btn:hover { background: #1e1e35; color: #DC2626; }
.quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    background: #1a1a2e;
    border: none;
    border-left: 1px solid #2d2d4a;
    border-right: 1px solid #2d2d4a;
    color: #e2e8f0;
    font-weight: 600;
}
.stock-status { font-size: 13px; margin-bottom: 16px; }
.stock-in { color: #DC2626; }
.stock-out { color: #ef4444; }

/* ===== CART ===== */
.cart-page { padding: 40px 0; }
.cart-empty {
    text-align: center;
    padding: 80px 20px;
}
.cart-empty h2 { font-size: 24px; color: #f1f5f9; margin-bottom: 12px; }
.cart-empty p { color: #64748b; margin-bottom: 24px; }
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 1px solid #1e1e35;
}
.cart-table td {
    padding: 16px;
    border-bottom: 1px solid #1e1e35;
    vertical-align: middle;
}
.cart-item-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-name { font-weight: 500; color: #f1f5f9; font-size: 14px; }
.cart-item-spec { font-size: 12px; color: #64748b; margin-top: 4px; }
.cart-item-price { font-weight: 600; color: #DC2626; }
.cart-item-total { font-weight: 700; color: #f1f5f9; }
.cart-remove {
    color: #64748b;
    transition: color 0.2s;
    padding: 8px;
}
.cart-remove:hover { color: #ef4444; }
.cart-summary {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    max-width: 400px;
    margin-left: auto;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #94a3b8;
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 1px solid #1e1e35;
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
}

/* ===== FORMS ===== */
.form-page {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 20px;
}
.form-card {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 32px;
}
.form-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 24px;
    text-align: center;
}
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 10px 14px;
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: #DC2626; }
.form-input::placeholder { color: #475569; }
textarea.form-input { min-height: 100px; resize: vertical; }
.form-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
}
.form-success {
    font-size: 14px;
    color: #DC2626;
    text-align: center;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(220,38,38,0.08);
    border-radius: 8px;
}
.form-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #64748b;
}
.form-link a { color: #DC2626; }
.form-link a:hover { text-decoration: underline; }

/* ===== ACCOUNT ===== */
.account-page { padding: 40px 0; }
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}
.account-sidebar {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 20px;
}
.account-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.2s;
    margin-bottom: 4px;
}
.account-nav-link:hover, .account-nav-link.active {
    background: rgba(220,38,38,0.08);
    color: #DC2626;
}
.account-content {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 24px;
}
.account-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 20px;
}

/* Orders table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}
.orders-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 1px solid #1e1e35;
}
.orders-table td {
    padding: 14px;
    border-bottom: 1px solid #1e1e35;
    font-size: 14px;
}
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.status-new { background: rgba(234,179,8,0.12); color: #eab308; }
.status-confirmed { background: rgba(59,130,246,0.12); color: #60a5fa; }
.status-shipped { background: rgba(168,85,247,0.12); color: #a855f7; }
.status-delivered { background: rgba(220,38,38,0.12); color: #DC2626; }
.status-cancelled { background: rgba(239,68,68,0.12); color: #ef4444; }

/* ===== CHECKOUT ===== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    padding: 40px 0;
}
.checkout-items {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 20px;
}
.checkout-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #1e1e35;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-item-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ===== ADMIN ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 64px);
}
.admin-sidebar {
    background: #141425;
    border-right: 1px solid #1e1e35;
    padding: 20px 0;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.2s;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(220,38,38,0.08);
    color: #DC2626;
}
.admin-content { padding: 24px; }
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.admin-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    overflow: hidden;
}
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: #1a1a2e;
    border-bottom: 1px solid #1e1e35;
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1e1e35;
    font-size: 14px;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: rgba(220,38,38,0.03); }
.admin-actions { display: flex; gap: 8px; }
.admin-actions a, .admin-actions button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}
.admin-edit { background: rgba(59,130,246,0.1); color: #60a5fa; }
.admin-edit:hover { background: rgba(59,130,246,0.2); }
.admin-delete { background: rgba(239,68,68,0.1); color: #ef4444; }
.admin-delete:hover { background: rgba(239,68,68,0.2); }

/* Admin form */
.admin-form {
    max-width: 700px;
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 24px;
}
.admin-form .form-group { margin-bottom: 16px; }
.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.checkbox-group label:has(input:checked) {
    border-color: #DC2626;
    background: rgba(220,38,38,0.08);
}
.checkbox-group input { accent-color: #DC2626; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 20px;
}
.stat-card-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card-value { font-size: 28px; font-weight: 700; color: #f1f5f9; margin-top: 4px; }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-success { background: rgba(220,38,38,0.1); color: #DC2626; border: 1px solid rgba(220,38,38,0.2); }
.alert-error { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 13px;
    color: #64748b;
}
.breadcrumbs a { color: #94a3b8; }
.breadcrumbs a:hover { color: #DC2626; }
.breadcrumbs span { color: #475569; }

/* ===== FOOTER ===== */
.footer {
    background: #141425;
    border-top: 1px solid #1e1e35;
    padding: 48px 0 0;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-desc { font-size: 14px; color: #64748b; margin-top: 12px; line-height: 1.6; }
.footer-title { font-size: 14px; font-weight: 600; color: #f1f5f9; margin-bottom: 12px; }
.footer-link {
    display: block;
    font-size: 14px;
    color: #64748b;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-link:hover { color: #DC2626; }
.footer-contact { font-size: 14px; color: #64748b; margin-bottom: 6px; }
.footer-bottom {
    border-top: 1px solid #1e1e35;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #475569;
}

/* ===== MOBILE FILTER TOGGLE ===== */
.filter-toggle-btn {
    display: none;
    width: 100%;
    margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 240px 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-sidebar.active { display: block; position: fixed; top: 64px; left: 0; bottom: 0; width: 220px; z-index: 50; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .burger { display: flex; }
    .header-inner {
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 8px;
        align-items: center;
        position: relative;
    }
    .logo { gap: 6px; font-size: 14px; flex-shrink: 0; }
    .logo img { height: 28px !important; }
    .header-actions {
        gap: 6px;
        margin-left: auto;
        flex-shrink: 0;
    }
    .header-actions .cart-btn,
    .header-actions .user-btn,
    .header-actions .btn { padding: 4px; }
    .header-actions .cart-btn svg,
    .header-actions .user-btn svg { width: 18px; height: 18px; }
    .search-form {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 8px 20px;
        background: #141425;
        border-top: 1px solid #1e1e35;
        z-index: 99;
    }
    .search-input { width: 100%; box-sizing: border-box; }
    .search-dropdown {
        z-index: 300;
    }
    .main { padding-top: 52px; }
    .hero { padding: 0; }

    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        max-height: 100vh;
        z-index: 200;
        background: #0f0f1a;
        padding: 20px;
        transition: left 0.3s;
        overflow-y: auto;
    }
    .catalog-sidebar.active { left: 0; }
    .filter-toggle-btn { display: flex; }
    .filter-apply-btn { display: block; }
    .filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 199;
        display: none;
    }
    .filter-overlay.active { display: block; }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .product-card-body { padding: 12px; }
    .product-card-title { font-size: 13px; }

    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { display: none; }

    .cart-table { font-size: 13px; }
    .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-card-specs { display: none; }
    .product-card-approvals { display: none; }
}

/* ===== LOADING ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #1e1e35;
    border-top-color: #DC2626;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== VOLUME SELECTOR (compact, on cards) ===== */
.volume-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
}
.volume-btn {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #2d2d4a;
    border-radius: 4px;
    background: #141425;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}
.volume-btn:hover {
    border-color: #DC2626;
    color: #e2e8f0;
}
.volume-btn.active {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
}

/* ===== VOLUME SWITCHER (larger, on product page) ===== */
.volume-switcher {
    margin: 16px 0;
}
.volume-switcher-label {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}
.volume-switcher-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.volume-btn-lg {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #2d2d4a;
    border-radius: 8px;
    background: #141425;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}
.volume-btn-lg:hover {
    border-color: #DC2626;
    color: #e2e8f0;
}
.volume-btn-lg.active {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
}

/* ===== CHECKOUT WIZARD ===== */
.checkout-wizard {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Step indicators */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 20px;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
}
.checkout-step.active {
    color: #DC2626;
}
.checkout-step.done {
    color: #94a3b8;
}
.checkout-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #2d2d4a;
    background: transparent;
    color: #64748b;
    flex-shrink: 0;
}
.checkout-step.active .checkout-step-num {
    border-color: #DC2626;
    background: #DC2626;
    color: #fff;
}
.checkout-step.done .checkout-step-num {
    border-color: #DC2626;
    background: rgba(220,38,38,0.15);
    color: #DC2626;
}
.checkout-step-line {
    width: 40px;
    height: 2px;
    background: #2d2d4a;
    margin: 0 8px;
    flex-shrink: 0;
}
.checkout-step-line.done {
    background: #DC2626;
}

/* Step content */
.checkout-step-content {
    display: none;
}
.checkout-step-content.active {
    display: block;
}

/* Delivery method cards */
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.delivery-card {
    background: #141425;
    border: 2px solid #2d2d4a;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.delivery-card:hover {
    border-color: #3d3d5a;
}
.delivery-card.selected {
    border-color: #DC2626;
    background: rgba(220,38,38,0.05);
}
.delivery-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.delivery-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 6px;
}
.delivery-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.delivery-card-price {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #DC2626;
}

/* PVZ selector */
.pvz-section {
    display: none;
    margin-top: 20px;
}
.pvz-section.visible {
    display: block;
}
.pvz-select {
    width: 100%;
    padding: 12px 14px;
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 12px;
}
.pvz-select:focus {
    outline: none;
    border-color: #DC2626;
}
.pvz-info {
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 8px;
    padding: 14px;
    display: none;
}
.pvz-info.visible {
    display: block;
}
.pvz-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}
.pvz-info-label {
    color: #64748b;
}
.pvz-info-value {
    color: #e2e8f0;
    font-weight: 500;
}
.delivery-cost-result {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.2);
    border-radius: 8px;
    font-size: 14px;
    color: #DC2626;
    display: none;
}
.delivery-cost-result.visible {
    display: block;
}

/* Payment options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #141425;
    border: 2px solid #2d2d4a;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.payment-option:hover {
    border-color: #3d3d5a;
}
.payment-option.selected {
    border-color: #DC2626;
    background: rgba(220,38,38,0.05);
}
.payment-option input[type="radio"] {
    display: none;
}
.payment-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #2d2d4a;
    flex-shrink: 0;
    position: relative;
}
.payment-option.selected .payment-radio {
    border-color: #DC2626;
}
.payment-option.selected .payment-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #DC2626;
}
.payment-label {
    font-size: 14px;
    color: #e2e8f0;
}

/* Order summary in checkout */
.checkout-summary {
    background: #141425;
    border: 1px solid #1e1e35;
    border-radius: 12px;
    padding: 20px;
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    color: #94a3b8;
}
.checkout-summary-row.total {
    border-top: 1px solid #2d2d4a;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
}
.checkout-summary-row .delivery-cost-label {
    color: #DC2626;
}

/* Wizard navigation buttons */
.checkout-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.checkout-nav .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .delivery-options {
        grid-template-columns: 1fr;
    }
    .checkout-steps {
        padding: 0;
    }
    .checkout-step span {
        display: none;
    }
    .checkout-step-line {
        width: 24px;
    }
}
