@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 0;
}

:root {
    --primary: #d4af37;
    --primary-dark: #8b7325;
    --primary-light: rgba(212, 175, 55, 0.14);
    --accent: #00e5ff;
    --accent-light: rgba(0, 229, 255, 0.12);
    --success: #00e676;
    --danger: #ff3d3d;
    --brand-red: #e31e24;

    --text: #e8e6e0;
    --text-light: #9b978e;
    --text-muted: #5c5a54;
    --text-heading: #f5f0e0;
    --bg: #06060c;
    --bg-gray: #04040a;
    --bg-light: #0c0e1a;
    --bg-elevated: rgba(8, 10, 20, 0.88);
    --bg-solid: #0c0e1a;
    --border: rgba(212, 175, 55, 0.14);
    --border-strong: rgba(212, 175, 55, 0.4);
    --border-cyan: rgba(0, 229, 255, 0.26);

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.48), inset 0 1px rgba(212, 175, 55, 0.05);
    --shadow-md: 0 12px 38px rgba(0, 0, 0, 0.58), 0 0 22px rgba(212, 175, 55, 0.06);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.68), 0 0 30px rgba(0, 229, 255, 0.06);

    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-hud: "JetBrains Mono", "Courier New", monospace;
}

html {
    background: var(--bg-gray);
}

body {
    position: relative;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(12, 14, 26, 0.78) 0%, rgba(4, 4, 10, 0.98) 36%, #04040a 100%),
        var(--bg-gray);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.16) 1px, transparent 1px);
    background-size: 54px 54px;
}

body::after {
    z-index: 0;
    opacity: 0.08;
    background-image: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(245, 240, 224, 0.5) 4px);
    mix-blend-mode: soft-light;
}

body > * {
    position: relative;
    z-index: 1;
}

button,
input,
select {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ===== LOADING ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 14, 26, 0.96), rgba(4, 4, 10, 1)),
        var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition);
}

.loading-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.18) 1px, transparent 1px);
    background-size: 42px 42px;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.loading-content {
    position: relative;
    text-align: center;
    color: var(--text-heading);
}

.loading-logo {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 18px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 26px;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.12), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.loading-logo::before,
.loading-logo::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.loading-logo::before {
    inset: 10px;
    border-color: rgba(0, 229, 255, 0.18);
    animation: spin 4s linear infinite;
}

.loading-logo::after {
    inset: -9px;
    border-top-color: var(--primary);
    animation: spin 2.8s linear infinite reverse;
}

.loading-text {
    margin-bottom: 14px;
    font-family: var(--font-hud);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
}

.loading-spinner {
    width: 220px;
    height: 2px;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(212, 175, 55, 0.11);
    border-radius: var(--radius-sm);
}

.loading-spinner::before {
    content: "";
    display: block;
    width: 46%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    animation: scanX 1.2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes scanX {
    from {
        transform: translateX(-110%);
    }
    to {
        transform: translateX(230%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseDot {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 7px currentColor;
    }
    50% {
        opacity: 0.42;
        box-shadow: 0 0 2px currentColor;
    }
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(180deg, rgba(12, 14, 26, 0.98), rgba(6, 6, 12, 0.96));
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 120;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px) saturate(1.25);
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-dark), var(--primary), var(--primary-dark), transparent);
    opacity: 0.55;
}

.header-content {
    height: 52px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(212, 175, 55, 0.08);
    font-size: 14px;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.09), inset 0 1px rgba(212, 175, 55, 0.08);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    border-color: var(--primary);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.18), inset 0 1px rgba(212, 175, 55, 0.1);
}

.logo-text {
    min-width: 0;
}

.logo-text h1 {
    font-family: var(--font-hud);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-text span {
    display: inline-flex;
    margin-top: 4px;
    font-family: var(--font-hud);
    font-size: 9px;
    line-height: 1;
    color: var(--text-muted);
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition);
}

.header-btn:hover {
    background: var(--primary-light);
    border-color: var(--border-strong);
    color: var(--primary);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.12);
}

.favorites-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(4, 4, 10, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: #fff;
    font-family: var(--font-hud);
    font-size: 9px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.65);
    transition: var(--transition);
}

.favorites-count.show {
    opacity: 1;
    transform: scale(1);
}

/* ===== SEARCH ===== */
.search-section {
    position: sticky;
    top: 52px;
    z-index: 105;
    background: rgba(4, 4, 10, 0.9);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    backdrop-filter: blur(18px) saturate(1.2);
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 12px;
    opacity: 0.86;
}

#search-input {
    width: 100%;
    height: 38px;
    padding: 0 40px 0 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(8, 10, 20, 0.9);
    color: var(--text-heading);
    font-family: var(--font-hud);
    font-size: 12px;
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 1px rgba(212, 175, 55, 0.05);
}

#search-input::placeholder {
    color: var(--text-muted);
}

#search-input:focus {
    border-color: var(--border-strong);
    background: rgba(12, 14, 26, 0.96);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.08), inset 0 1px rgba(212, 175, 55, 0.08);
}

.clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.clear-search:hover {
    color: var(--primary);
    border-color: var(--border-strong);
}

.clear-search.show {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 12px 0 10px;
}

.hero-banner {
    position: relative;
    min-height: 136px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, rgba(8, 10, 20, 0.96), rgba(12, 14, 26, 0.88)),
        var(--bg-elevated);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.12) 1px, transparent 1px);
    background-size: 34px 34px;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(212, 175, 55, 0.06);
}

.hero-scanline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20%;
    width: 22%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.12), transparent);
    animation: scanX 4.6s linear infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 18px 16px 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    padding: 4px 8px;
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(0, 230, 118, 0.07);
    color: var(--success);
    font-family: var(--font-hud);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseDot 1.6s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-hud);
    font-size: 22px;
    line-height: 1.08;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-heading);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.14);
}

.hero-subtitle {
    margin-top: 9px;
    color: var(--text-light);
    font-family: var(--font-hud);
    font-size: 10px;
    text-transform: uppercase;
}

.hero-image {
    display: none;
}

.hero-metrics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px 16px 16px;
}

.hero-metric {
    min-width: 0;
    border: 1px solid var(--border);
    border-left: 2px solid var(--primary-dark);
    border-radius: var(--radius);
    background: rgba(4, 4, 10, 0.48);
    padding: 9px;
}

.hero-metric span {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-hud);
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero-metric strong {
    display: block;
    overflow: hidden;
    color: var(--primary);
    font-family: var(--font-hud);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: 0 0 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.benefit-card {
    min-height: 54px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(8, 10, 20, 0.74);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.benefit-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--accent-light);
    font-size: 12px;
    flex-shrink: 0;
}

.benefit-info {
    min-width: 0;
}

.benefit-info h4 {
    color: var(--text-heading);
    font-family: var(--font-hud);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.benefit-info p {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== CATEGORIES ===== */
.categories-section {
    position: sticky;
    top: 106px;
    z-index: 95;
    background: rgba(4, 4, 10, 0.9);
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px) saturate(1.2);
}

.categories-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.categories-list {
    display: flex;
    gap: 8px;
    min-width: max-content;
    padding: 8px 0;
}

.category-chip {
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    background: rgba(8, 10, 20, 0.78);
    color: var(--text-light);
    font-family: var(--font-hud);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.category-chip:hover {
    border-color: var(--border-strong);
    color: var(--primary);
    background: var(--primary-light);
}

.category-chip.active {
    border-color: var(--border-strong);
    background: rgba(212, 175, 55, 0.16);
    color: var(--primary);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.08);
}

.category-chip i {
    font-size: 11px;
}

.category-chip small {
    min-width: 18px;
    height: 16px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.category-chip.active small {
    border-color: rgba(212, 175, 55, 0.32);
    color: var(--primary);
    background: rgba(212, 175, 55, 0.09);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 14px 0 34px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(8, 10, 20, 0.82);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent 40%);
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image-container {
    position: relative;
    height: 116px;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
        rgba(255, 255, 255, 0.02);
}

.product-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.16) 1px, transparent 1px);
    background-size: 24px 24px;
}

.product-image {
    position: relative;
    z-index: 1;
    width: 86%;
    height: 86%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.36));
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.035);
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.discount-badge,
.product-code {
    width: max-content;
    max-width: 92px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    font-family: var(--font-hud);
    font-weight: 800;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discount-badge {
    padding: 4px 7px;
    background: rgba(255, 61, 61, 0.16);
    border: 1px solid rgba(255, 61, 61, 0.36);
    color: #ff6568;
    font-size: 10px;
    box-shadow: 0 0 10px rgba(255, 61, 61, 0.08);
}

.product-code {
    padding: 3px 6px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--accent);
    font-size: 8px;
}

.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 4, 10, 0.76);
    color: var(--text-light);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.favorite-btn:hover {
    border-color: rgba(255, 61, 61, 0.4);
    color: #ff6568;
    background: rgba(255, 61, 61, 0.1);
}

.favorite-btn.active {
    border-color: rgba(255, 61, 61, 0.45);
    background: rgba(255, 61, 61, 0.16);
    color: #ff6568;
}

.product-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-family: var(--font-hud);
    font-size: 8px;
    text-transform: uppercase;
}

.product-meta-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-brand {
    margin-bottom: 5px;
    color: var(--accent);
    font-family: var(--font-hud);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-name {
    min-height: 34px;
    margin-bottom: 9px;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover .product-name {
    color: var(--text-heading);
}

.product-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 7px;
}

.current-price {
    color: var(--primary);
    font-family: var(--font-hud);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.original-price {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: line-through;
}

.savings {
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    padding: 3px 6px;
    border: 1px solid rgba(0, 230, 118, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(0, 230, 118, 0.08);
    color: var(--success);
    font-family: var(--font-hud);
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== PANELS ===== */
.panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.panel-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.filters-panel,
.favorites-panel {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 200;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    border-left: 1px solid var(--border-strong);
    background: rgba(6, 6, 12, 0.97);
    box-shadow: var(--shadow-lg);
    transition: right 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.filters-panel.open,
.favorites-panel.open {
    right: 0;
}

.filters-content,
.favorites-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.filters-header,
.favorites-header {
    min-height: 56px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-light);
}

.filters-header h3,
.favorites-header h3 {
    color: var(--primary);
    font-family: var(--font-hud);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.close-filters,
.close-favorites,
.close-modal {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-filters:hover,
.close-favorites:hover,
.close-modal:hover {
    border-color: var(--border-strong);
    color: var(--primary);
    background: var(--primary-light);
}

.filters-body,
.favorites-body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.28) transparent;
}

.filters-body::-webkit-scrollbar,
.favorites-body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.filters-body::-webkit-scrollbar-thumb,
.favorites-body::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.28);
    border-radius: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-light);
    font-family: var(--font-hud);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.discount-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.discount-filter {
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(8, 10, 20, 0.78);
    color: var(--text-light);
    cursor: pointer;
    font-family: var(--font-hud);
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition);
}

.discount-filter:hover,
.discount-filter.active {
    border-color: var(--border-strong);
    background: var(--primary-light);
    color: var(--primary);
}

#sort-select {
    width: 100%;
    height: 40px;
    padding: 0 34px 0 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(45deg, transparent 50%, var(--primary) 50%) calc(100% - 17px) 17px / 6px 6px no-repeat,
        linear-gradient(135deg, var(--primary) 50%, transparent 50%) calc(100% - 12px) 17px / 6px 6px no-repeat,
        rgba(8, 10, 20, 0.82);
    color: var(--text);
    cursor: pointer;
    appearance: none;
    font-size: 12px;
}

#sort-select:focus {
    outline: none;
    border-color: var(--border-strong);
}

/* ===== STATES ===== */
.empty-state,
.error-state {
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: rgba(8, 10, 20, 0.7);
    color: var(--text-muted);
    text-align: center;
    padding: 46px 18px;
}

.empty-icon,
.error-icon {
    margin-bottom: 16px;
    color: var(--primary-dark);
    font-size: 42px;
}

.empty-state h3,
.error-state h3 {
    margin-bottom: 6px;
    color: var(--text-heading);
    font-family: var(--font-hud);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.retry-btn,
.load-more-btn {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(8, 10, 20, 0.82);
    color: var(--primary);
    cursor: pointer;
    font-family: var(--font-hud);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition);
}

.retry-btn {
    margin-top: 18px;
    min-height: 38px;
    padding: 0 18px;
}

.load-more-section {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    min-height: 40px;
    padding: 0 22px;
}

.retry-btn:hover,
.load-more-btn:hover {
    border-color: var(--border-strong);
    background: var(--primary-light);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.08);
}

/* ===== FAVORITES ===== */
.favorites-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.favorites-empty i {
    display: block;
    margin-bottom: 14px;
    color: rgba(255, 61, 61, 0.34);
    font-size: 38px;
}

.favorite-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    gap: 10px;
    margin-bottom: 9px;
    padding: 9px;
    background: rgba(8, 10, 20, 0.78);
    cursor: pointer;
    transition: var(--transition);
}

.favorite-item:hover {
    border-color: var(--border-strong);
    background: rgba(12, 14, 26, 0.92);
}

.favorite-item-image {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--radius);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    flex-shrink: 0;
}

.favorite-item-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.favorite-item-name {
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-item-price {
    margin-top: auto;
    color: var(--primary);
    font-family: var(--font-hud);
    font-size: 13px;
    font-weight: 800;
}

.remove-favorite {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 61, 61, 0.26);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 61, 61, 0.08);
    color: #ff6568;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.remove-favorite:hover {
    background: rgba(255, 61, 61, 0.15);
    border-color: rgba(255, 61, 61, 0.42);
}

/* ===== PRODUCT MODAL ===== */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 470px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: rgba(6, 6, 12, 0.98);
    box-shadow: var(--shadow-lg);
    transform: translateY(12px) scale(0.98);
    transition: var(--transition);
}

.product-modal.open .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.modal-body {
    padding: 14px;
}

.modal-product-image {
    width: 100%;
    height: 230px;
    object-fit: contain;
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.035);
    padding: 22px;
}

.modal-product-info h2 {
    color: var(--text-heading);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.modal-product-brand {
    margin: 8px 0 14px;
    color: var(--accent);
    font-family: var(--font-hud);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-product-prices {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(8, 10, 20, 0.82);
}

.modal-current-price {
    color: var(--primary);
    font-family: var(--font-hud);
    font-size: 24px;
    font-weight: 800;
}

.modal-original-price {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: line-through;
}

.modal-discount-badge {
    border: 1px solid rgba(255, 61, 61, 0.36);
    border-radius: var(--radius-sm);
    padding: 5px 8px;
    background: rgba(255, 61, 61, 0.14);
    color: #ff6568;
    font-family: var(--font-hud);
    font-size: 12px;
    font-weight: 800;
}

.modal-product-details {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.modal-product-details h4 {
    margin-bottom: 10px;
    color: var(--primary);
    font-family: var(--font-hud);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    padding: 8px 0;
    font-size: 12px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: var(--text);
    font-weight: 700;
    text-align: right;
}

/* ===== FOOTER ===== */
.footer-advanced {
    margin-top: 26px;
    border-top: 1px solid var(--border);
    background: rgba(4, 4, 10, 0.86);
    color: var(--text-light);
    padding: 22px 0 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 16px;
}

.footer-brand h2 {
    margin-bottom: 6px;
    color: var(--primary);
    font-family: var(--font-hud);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-brand p {
    color: var(--text-muted);
    font-family: var(--font-hud);
    font-size: 10px;
    text-transform: uppercase;
}

.social-links,
.payment-methods {
    display: none;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.footer-col h4 {
    margin-bottom: 8px;
    color: var(--text-heading);
    font-family: var(--font-hud);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 5px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    padding-top: 12px;
    color: var(--text-muted);
    font-family: var(--font-hud);
    font-size: 9px;
    text-transform: uppercase;
}

/* ===== UTILITY CLASSES ===== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.fade-in-up {
    animation: fadeInUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
