/* === IMPORT FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* === DESIGN TOKENS === */
:root {
    /* Palette */
    --bg: #0C0C0C;
    --bg-2: #111111;
    --surface: #181818;
    --surface-2: #202020;
    --surface-3: #282828;

    --red: #E5292A;
    --red-dim: #8B1A1A;
    --red-subtle: rgba(229, 41, 42, 0.1);

    --text: #F0EDEA;
    --text-2: #9A9A9A;
    --text-3: #505050;

    --line: rgba(255, 255, 255, 0.07);
    --line-red: rgba(229, 41, 42, 0.22);

    --success: #3D9970;
    --error: #E5292A;

    /* Typography */
    --f-display: 'Bricolage Grotesque', sans-serif;
    --f-body: 'Plus Jakarta Sans', sans-serif;
    --f-mono: 'JetBrains Mono', monospace;

    /* Shape */
    --r: 10px;
    --r-lg: 16px;

    /* Motion */
    --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
    font-family: var(--f-display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.logo {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    color: var(--text);
    text-transform: none;
    cursor: pointer;
    transition: opacity var(--ease);
    text-decoration: none;
}

.logo:hover {
    opacity: 0.7;
}

.highlight {
    color: var(--red);
}

.gradient-text {
    background: linear-gradient(120deg, var(--text) 30%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === LAYOUT === */
.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 44px;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    padding: 18px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 44px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 38px;
}

.nav-menu li {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.nav-menu li a {
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--ease);
    position: relative;
    padding-bottom: 4px;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width var(--ease);
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: var(--text);
}

.nav-menu li a:hover::after,
.nav-menu li.active a::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.cart-btn,
.profile-btn {
    position: relative;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-2);
    transition: color var(--ease);
    display: flex;
    align-items: center;
}

.cart-btn:hover,
.profile-btn:hover {
    color: var(--text);
}

#cart-count {
    position: absolute;
    top: -7px;
    right: -9px;
    background: var(--red);
    color: white;
    font-family: var(--f-mono);
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 20px;
    font-weight: 500;
    min-width: 17px;
    text-align: center;
}

.profile-btn img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-red);
    transition: border-color var(--ease);
}

.profile-btn:hover img {
    border-color: var(--red);
}

/* DROPDOWN */
.dropdown-menu {
    position: fixed;
    top: 68px;
    right: 44px;
    background: var(--surface);
    width: 230px;
    border-radius: var(--r-lg);
    padding: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
    display: none;
    z-index: 999;
}

.dropdown-menu.active {
    display: block;
    animation: dropIn 0.18s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info h4 {
    font-family: var(--f-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.user-info p {
    color: var(--text-2);
    font-size: 0.75rem;
}

.dropdown-menu hr {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 12px 0;
}

.dropdown-menu ul {
    list-style: none;
}

.dropdown-menu li {
    padding: 9px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--text-2);
    transition: all var(--ease);
    border-radius: 7px;
}

.dropdown-menu li:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-menu li.logout {
    color: var(--red);
}

.dropdown-menu li.logout:hover {
    background: var(--red-subtle);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    padding-top: 90px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
            rgba(12, 12, 12, 1) 0%,
            rgba(12, 12, 12, 0.96) 35%,
            rgba(12, 12, 12, 0.72) 65%,
            rgba(12, 12, 12, 0.35) 100%);
}

.hero-particles,
.particle {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 44px;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--red);
    border: 1px solid var(--line-red);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-family: var(--f-mono);
}

.hero-title {
    font-family: var(--f-display);
    font-size: 7rem;
    line-height: 0.93;
    margin-bottom: 28px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    font-size: 1.02rem;
    color: var(--text-2);
    margin-bottom: 44px;
    max-width: 500px;
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 72px;
}

.hero-stats {
    display: flex;
    gap: 52px;
    padding-top: 44px;
    border-top: 1px solid var(--line);
    max-width: 540px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--f-display);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.04em;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--f-mono);
}

.stat-divider {
    width: 1px;
    background: var(--line);
    align-self: stretch;
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-3);
    cursor: pointer;
    z-index: 3;
    font-size: 0.9rem;
    animation: nudge 2.5s ease-in-out infinite;
}

@keyframes nudge {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-50%) translateY(5px);
        opacity: 0.65;
    }
}

/* === BUTTONS === */
.btn {
    padding: 13px 30px;
    border-radius: var(--r);
    font-weight: 600;
    font-family: var(--f-display);
    cursor: pointer;
    border: none;
    transition: all var(--ease);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    background: #F03435;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(229, 41, 42, 0.35);
}

.btn-glow {
    /* no pulse */
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 38px;
    font-size: 0.87rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.77rem;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* === SECTIONS === */
.section {
    padding: 96px 0;
}

.section.bg-dark {
    background: var(--bg-2);
}

.section-header {
    text-align: center;
    margin-bottom: 58px;
}

.section-badge {
    display: inline-block;
    background: transparent;
    color: var(--red);
    border: 1px solid var(--line-red);
    padding: 5px 13px;
    border-radius: 4px;
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-family: var(--f-mono);
}

.section-title {
    font-size: 2.85rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.page-header {
    padding: 156px 0 68px;
    background: var(--bg-2);
    text-align: center;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--red);
}

.page-title {
    font-size: 3.7rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 11px;
}

.page-subtitle {
    font-size: 0.92rem;
    color: var(--text-2);
    font-weight: 400;
}

/* === CATALOG === */
.catalog-layout {
    display: grid;
    grid-template-columns: 262px 1fr;
    gap: 44px;
}

.filters-sidebar {
    background: var(--surface);
    padding: 26px;
    border-radius: var(--r-lg);
    height: fit-content;
    border: 1px solid var(--line);
    position: sticky;
    top: 88px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.filter-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.btn-reset {
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 5px;
    font-family: var(--f-mono);
    transition: color var(--ease);
}

.btn-reset:hover {
    color: var(--text-2);
}

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

.filter-group h3 {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 13px;
    font-family: var(--f-mono);
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 0.77rem;
}

.search-box input {
    padding-left: 38px !important;
}

.filter-group input[type="text"],
.filter-group input[type="number"] {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--r);
    font-size: 0.82rem;
    font-family: var(--f-body);
    transition: border-color var(--ease);
}

.filter-group input:focus {
    outline: none;
    border-color: rgba(229, 41, 42, 0.4);
}

.filter-group input::placeholder {
    color: var(--text-3);
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.radio-container,
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 27px;
    margin-bottom: 11px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-2);
    transition: color var(--ease);
    user-select: none;
}

.radio-container:hover,
.checkbox-container:hover {
    color: var(--text);
}

.radio-container input,
.checkbox-container input {
    position: absolute;
    opacity: 0;
}

.radio-mark,
.checkmark {
    position: absolute;
    top: 1px;
    left: 0;
    height: 17px;
    width: 17px;
    background: var(--bg);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    transition: all var(--ease);
}

.radio-mark {
    border-radius: 50%;
}

.radio-container input:checked~.radio-mark,
.checkbox-container input:checked~.checkmark {
    background: var(--red);
    border-color: var(--red);
}

.radio-mark::after,
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked~.radio-mark::after,
.checkbox-container input:checked~.checkmark::after {
    display: block;
}

.radio-mark::after {
    top: 4px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
}

.checkmark::after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-label,
.checkbox-label {
    margin-left: 3px;
}

/* Products */
.products-section {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-count {
    font-family: var(--f-mono);
    font-size: 0.73rem;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

.view-toggle {
    display: flex;
    gap: 6px;
}

.view-btn {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-2);
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.77rem;
    transition: all var(--ease);
}

.view-btn:hover,
.view-btn.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 72px 20px;
    color: var(--text-2);
}

.no-results i {
    font-size: 2.4rem;
    margin-bottom: 14px;
    opacity: 0.2;
    display: block;
}

/* === PRODUCT CARDS === */
.product-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    border-color: var(--line-red);
}

.card-img-container {
    height: 228px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-2);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.82) saturate(0.8);
}

.product-card:hover .card-img-container img {
    transform: scale(1.07);
    filter: brightness(1) saturate(1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 12, 0.76);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--ease);
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
}

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

.card-overlay i {
    font-size: 1.4rem;
    color: var(--red);
}

.card-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    background: rgba(12, 12, 12, 0.88);
    border: 1px solid var(--line);
    color: var(--text-2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--f-mono);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 11px;
    letter-spacing: -0.025em;
}

.card-specs {
    color: var(--text-3);
    font-size: 0.73rem;
    margin-bottom: 17px;
    flex-grow: 1;
    font-family: var(--f-mono);
    line-height: 2;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.spec-item i {
    color: var(--text-3);
    width: 12px;
    font-size: 0.67rem;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.card-price {
    font-family: var(--f-display);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.btn-add-cart {
    width: 37px;
    height: 37px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--red-subtle);
    border: 1px solid var(--line-red);
    color: var(--red);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--ease);
}

.btn-add-cart:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
    transform: scale(1.08);
}

/* === FEATURES === */
.features-preview {
    background: var(--bg-2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.features-grid.large {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background: var(--surface);
    padding: 34px 26px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    transition: all var(--ease);
}

.feature-card:hover {
    border-color: var(--line-red);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    background: var(--red-subtle);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-red);
    transition: background var(--ease);
}

.feature-card:hover .feature-icon {
    background: rgba(229, 41, 42, 0.17);
}

.feature-icon i {
    font-size: 1.15rem;
    color: var(--red);
}

.feature-card h3 {
    font-size: 1.03rem;
    font-weight: 700;
    margin-bottom: 9px;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-2);
    line-height: 1.68;
    font-size: 0.82rem;
}

/* === ABOUT === */
.about-intro {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.88;
    margin-bottom: 17px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 42px;
}

.stat-box {
    text-align: center;
    padding: 24px 14px;
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
}

.stat-box .stat-number {
    font-size: 2rem;
}

.stat-box .stat-label {
    font-size: 0.67rem;
}

.about-image {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    border-radius: var(--r-lg);
    filter: brightness(0.78) saturate(0.7);
    transition: filter var(--ease);
    display: block;
}

.about-image:hover img {
    filter: brightness(0.9) saturate(0.85);
}

.image-badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    padding: 10px 16px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.78rem;
}

.image-badge i {
    font-size: 0.9rem;
    color: var(--red);
}

/* Team */
.team-section {
    background: var(--bg-2);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.team-grid-two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 740px;
    margin: 0 auto;
}

.team-card {
    background: var(--surface);
    padding: 34px 26px;
    border-radius: var(--r-lg);
    text-align: center;
    border: 1px solid var(--line);
    transition: all var(--ease);
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-red);
}

.team-avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--line);
    transition: border-color var(--ease);
}

.team-card:hover .team-avatar {
    border-color: var(--line-red);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(25%);
}

.team-card h3 {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.team-role {
    color: var(--red);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.66rem;
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.team-desc {
    color: var(--text-2);
    font-size: 0.8rem;
}

/* === CTA === */
.cta-section {
    padding: 44px 0;
}

.cta-box {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 50px 60px;
    border-radius: var(--r-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--red);
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 7px;
    letter-spacing: -0.04em;
}

.cta-content p {
    font-size: 0.88rem;
    color: var(--text-2);
}

/* === FOOTER === */
.footer {
    background: var(--bg-2);
    padding: 56px 0 26px;
    margin-top: 96px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 52px;
    margin-bottom: 42px;
}

.footer-col h4 {
    font-size: 0.61rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 18px;
    font-family: var(--f-mono);
}

.footer-col p {
    color: var(--text-2);
    line-height: 1.7;
    font-size: 0.8rem;
}

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

.footer-col ul li {
    margin-bottom: 9px;
    color: var(--text-2);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a {
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--ease);
}

.footer-col ul li a:hover {
    color: var(--text);
}

.footer-col i {
    color: var(--text-3);
    width: 14px;
    font-size: 0.73rem;
}

.copyright {
    text-align: center;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 0.7rem;
    font-family: var(--f-mono);
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--surface);
    width: 940px;
    max-width: 95%;
    border-radius: var(--r-lg);
    padding: 44px;
    position: relative;
    border: 1px solid var(--line);
    box-shadow: 0 48px 96px rgba(0, 0, 0, 0.8);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 1.25rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease);
    line-height: 1;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
}

.modal-img {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-2);
}

.modal-img img {
    width: 100%;
    border-radius: var(--r-lg);
    display: block;
}

.modal-badge {
    display: inline-block;
    background: var(--red-subtle);
    color: var(--red);
    border: 1px solid var(--line-red);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.61rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--f-mono);
    margin-bottom: 13px;
}

.modal-details h2 {
    font-size: 2.1rem;
    margin-bottom: 11px;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.modal-price {
    font-family: var(--f-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 19px;
    display: block;
    letter-spacing: -0.04em;
}

.modal-desc {
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 22px;
    font-size: 0.83rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 26px;
}

.spec-card {
    background: var(--bg-2);
    padding: 13px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--line);
}

.spec-card i {
    font-size: 0.95rem;
    color: var(--red);
    opacity: 0.75;
}

.spec-label {
    font-size: 0.6rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
    font-family: var(--f-mono);
}

.spec-value {
    font-weight: 500;
    color: var(--text);
    font-size: 0.78rem;
    font-family: var(--f-mono);
}

/* === CART DRAWER === */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: 390px;
    height: 100%;
    background: var(--surface);
    z-index: 2001;
    padding: 26px;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.cart-header h3 {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.cart-header button {
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 1.4rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--ease);
    line-height: 1;
}

.cart-header button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.empty-cart {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-2);
}

.empty-cart i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.18;
    display: block;
}

.empty-cart p {
    font-size: 0.83rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 11px;
    padding: 13px;
    background: var(--bg-2);
    border-radius: var(--r);
    border: 1px solid var(--line);
    transition: border-color var(--ease);
}

.cart-item:hover {
    border-color: var(--line-red);
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--r);
    object-fit: cover;
    filter: brightness(0.82);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-family: var(--f-display);
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 0.83rem;
    letter-spacing: -0.01em;
}

.cart-item-price {
    color: var(--text-2);
    font-family: var(--f-mono);
    font-size: 0.75rem;
}

.remove-item {
    background: rgba(229, 41, 42, 0.08);
    border: none;
    color: var(--red);
    width: 27px;
    height: 27px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0.65;
}

.remove-item:hover {
    background: var(--red);
    color: white;
    opacity: 1;
}

.cart-footer {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.total {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    letter-spacing: -0.025em;
}

.total span {
    color: var(--text);
}

/* === AUTH PAGES === */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1040px;
    width: 95%;
    min-height: 640px;
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 40px 96px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--line);
    margin: 40px auto;
    /* Чтобы форма была по центру экрана */
}

.auth-left {
    background: var(--bg-2);
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--red);
}

.auth-brand .logo {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.auth-brand p {
    font-size: 0.85rem;
    color: var(--text-2);
}

.auth-visual {
    position: relative;
    height: 160px;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(229, 41, 42, 0.04);
    border: 1px solid rgba(229, 41, 42, 0.06);
    animation: none;
}

.visual-circle:nth-child(1) {
    width: 210px;
    height: 210px;
    bottom: -75px;
    right: -75px;
}

.visual-circle:nth-child(2) {
    width: 140px;
    height: 140px;
    top: 8px;
    right: -35px;
}

.visual-circle:nth-child(3) {
    width: 86px;
    height: 86px;
    bottom: 46px;
    left: -26px;
}

.auth-right {
    padding: 60px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 370px;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-2);
    font-size: 0.85rem;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.66rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--f-mono);
}

/* Полное обновление полей ввода */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Иконки слева (юзер, замок и т.д.) */
.input-wrapper i:first-of-type {
    position: absolute;
    left: 14px;
    color: var(--text-3);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

/* Само поле ввода */
.input-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 40px !important;
    /* Отступы под обе иконки */
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--r);
    font-size: 0.87rem;
    transition: all var(--ease);
}

/* Кнопка-глазик справа */
.toggle-password {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--text-3);
    z-index: 5;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: var(--red);
}

.toggle-password:focus {
    outline: none;
}

.input-hint {
    display: block;
    margin-top: 5px;
    color: var(--text-3);
    font-size: 0.68rem;
    font-family: var(--f-mono);
}

.form-options {
    margin-bottom: 24px;
}

.auth-divider {
    text-align: center;
    margin: 22px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.auth-divider span {
    background: var(--surface);
    padding: 0 12px;
    position: relative;
    color: var(--text-3);
    font-size: 0.7rem;
    font-family: var(--f-mono);
}

.auth-links {
    text-align: center;
}

.auth-links p {
    color: var(--text-2);
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.auth-links a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--ease);
}

.auth-links a:hover {
    opacity: 0.72;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-3) !important;
    font-size: 0.77rem;
    transition: color var(--ease) !important;
    font-weight: 400 !important;
}

.back-link:hover {
    color: var(--text-2) !important;
}

/* === MESSAGES === */
.error-message,
.success-message {
    padding: 11px 15px;
    border-radius: var(--r);
    margin-top: 12px;
    display: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.error-message {
    background: rgba(229, 41, 42, 0.08);
    border: 1px solid rgba(229, 41, 42, 0.22);
    color: var(--red);
}

.success-message {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(-14px);
    background: rgba(18, 18, 18, 0.96);
    border: 1px solid rgba(61, 153, 112, 0.35);
    color: #3D9970;
    padding: 13px 26px;
    border-radius: var(--r);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--f-mono);
}

/* === NOTIFICATIONS === */
.notification {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: var(--surface);
    padding: 13px 18px;
    border-radius: var(--r);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    transform: translateX(400px);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 0.82rem;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 2px solid var(--success);
}

.notification-error {
    border-left: 2px solid var(--red);
}

.notification i {
    font-size: 0.95rem;
}

.notification-success i {
    color: var(--success);
}

.notification-error i {
    color: var(--red);
}

/* === ANIMATIONS === */
.animate-slide-up {
    animation: slideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: slideUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.animate-float {
    animation: none;
}

.animate-bounce {
    animation: nudge 2.5s ease-in-out infinite;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.12s;
}

.delay-2 {
    animation-delay: 0.24s;
}

.delay-3 {
    animation-delay: 0.36s;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 5.4rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .page-title {
        font-size: 3.1rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .features-grid.large {
        grid-template-columns: 1fr 1fr;
    }

    /* Эта магия сработает только если ширина экрана меньше 992px */
    @media (max-width: 992px) {
        .auth-container {
            grid-template-columns: 1fr;
            /* На телефонах — в одну колонку */
            min-height: auto;
            margin: 20px auto;
        }

        .auth-left {
            display: none;
            /* Прячем левую картинку на мобилках */
        }
    }

    .auth-left {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .team-grid,
    .team-grid-two {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-box {
        flex-direction: column;
        gap: 26px;
        text-align: center;
    }

    .cta-box::before {
        width: 100%;
        height: 2px;
    }
}

@media (max-width: 768px) {

    .container,
    .nav-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 0.93rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .team-grid,
    .team-grid-two {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .features-grid.large {
        grid-template-columns: 1fr;
    }

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

    .dropdown-menu {
        right: 20px;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .auth-right {
        padding: 40px 22px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    /* Правильное позиционирование глазика */
    .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .input-wrapper input {
        width: 100%;
        /* Даем место справа, чтобы текст не заходил под глаз */
        padding-right: 45px !important;
    }

    .toggle-password {
        position: absolute;
        right: 8px;
        /* Отступ от правого края */
        background: none;
        border: none;
        color: var(--text-3);
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .toggle-password:hover {
        color: var(--red);
    }

    /* Убираем синюю обводку при клике */
    .toggle-password:focus {
        outline: none;
    }
}/* ============================================
   LIGHT THEME + THEME TOGGLE BUTTON
   Добавить в конец style.css
   ============================================ */

/* Кнопка переключения темы */
.theme-toggle {
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-2);
    transition: color var(--ease), transform var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
}
.theme-toggle:hover {
    color: var(--red);
    transform: rotate(22deg);
}
/* Иконки: по умолчанию тёмная тема — показываем луну */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none;  }
/* Светлая тема — показываем солнце */
body.light .theme-toggle .icon-moon { display: none;  }
body.light .theme-toggle .icon-sun  { display: block; }

/* ============================================
   LIGHT THEME VARIABLES
   ============================================ */
body.light {
    --bg:       #F4F3F0;
    --bg-2:     #EDECEA;
    --surface:  #E4E2DE;
    --surface-2:#D8D5D0;
    --surface-3:#CCCAC5;

    --red:      #D42021;
    --red-dim:  #9E1414;
    --red-subtle: rgba(212, 32, 33, 0.1);

    --text:     #111111;
    --text-2:   #555555;
    --text-3:   #888888;

    --line:     rgba(0,0,0,0.09);
    --line-red: rgba(212,32,33,0.2);
}

/* Navbar */
body.light .navbar {
    background: rgba(244,243,240,0.92);
}

/* Hero светлая тема — горизонтальный градиент, текст всегда читаем */
body.light .hero-bg {
    background: linear-gradient(to right,
        rgba(12,12,12,0.97) 0%,
        rgba(12,12,12,0.97) 42%,
        rgba(12,12,12,0.65) 62%,
        rgba(12,12,12,0.0) 100%);
}
body.light .hero::after {
    display: none;
}
/* Текст героя в светлой теме — белый как в тёмной */
body.light .hero-title,
body.light .hero-subtitle,
body.light .badge-hero,
body.light .stat-number,
body.light .stat-label {
    color: #F0EDEA;
}
body.light .hero .stat-divider {
    background: rgba(255,255,255,0.15);
}
body.light .hero .hero-stats {
    border-top-color: rgba(255,255,255,0.12);
}
body.light .hero .btn-glass {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #F0EDEA;
}
body.light .hero .btn-glass:hover {
    background: rgba(255,255,255,0.22);
}

/* Gradient text внутри hero в светлой теме — белый → красный */
body.light .hero .gradient-text {
    background: linear-gradient(120deg, #FFFFFF 30%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards and surfaces */
body.light .product-card,
body.light .feature-card {
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

/* Inputs */
body.light .filter-group input[type="text"],
body.light .filter-group input[type="number"],
body.light .input-wrapper input,
body.light select {
    background: #FAFAF8 !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #111 !important;
}
body.light input::placeholder,
body.light .filter-group input::placeholder {
    color: var(--text-3) !important;
}
body.light .input-wrapper input:focus,
body.light .filter-group input:focus {
    border-color: rgba(212,32,33,0.45) !important;
}

/* Auth */
body.light.auth-page {
    background: var(--bg);
}
body.light .auth-left {
    background: var(--bg-2);
}
body.light .auth-divider span {
    background: var(--surface);
}

/* Modal */
body.light .modal-overlay {
    background: rgba(0,0,0,0.55);
}
body.light .spec-card {
    background: #FAFAF8;
}

/* Cart */
body.light .cart-item {
    background: #FAFAF8;
}

/* Notifications */
body.light .notification {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* Footer */
body.light .footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

/* Dropdown */
body.light .dropdown-menu {
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 0 1px var(--line);
}

/* Admin form selects */
body.light .auth-right select {
    background: #FAFAF8 !important;
    color: #111 !important;
}

/* Card badge */
body.light .card-badge {
    background: rgba(244,243,240,0.92);
    color: var(--text-2);
}

/* View toggle */
body.light .view-btn {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text-2);
}

/* Page header */
body.light .page-header {
    background: var(--bg-2);
    border-bottom-color: var(--line);
}

/* Section bg-dark override */
body.light .section.bg-dark,
body.light .features-preview,
body.light .team-section {
    background: var(--bg-2);
}

/* Scrollbar */
body.light ::-webkit-scrollbar-track { background: var(--bg-2); }
body.light ::-webkit-scrollbar-thumb { background: var(--surface-3); }

/* === AI CONSULTANT === */
.ai-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 58px;
    height: 58px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 8px 32px rgba(229,41,42,0.45);
    transition: transform var(--ease), box-shadow var(--ease);
    border: none;
}
.ai-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(229,41,42,0.6);
}
.ai-fab i { color: #fff; font-size: 1.3rem; }
.ai-fab .ai-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--red);
    animation: pulse-ring 2s ease-out infinite;
    opacity: 0;
}
@keyframes pulse-ring {
    0%   { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.ai-chat-window {
    position: fixed;
    bottom: 104px;
    right: 32px;
    width: 370px;
    height: 520px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    z-index: 1999;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}
.ai-chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}
.ai-chat-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--red-subtle);
    border: 1px solid var(--line-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.ai-chat-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.ai-chat-info p {
    font-size: 0.72rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ai-online-dot {
    width: 6px;
    height: 6px;
    background: #3D9970;
    border-radius: 50%;
    display: inline-block;
}
.ai-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color var(--ease);
}
.ai-close-btn:hover { color: var(--text); }

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }

.ai-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.ai-msg.user { flex-direction: row-reverse; }
.ai-msg-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--text);
}
.ai-msg.bot .ai-msg-bubble {
    background: var(--surface-2);
    border-bottom-left-radius: 4px;
}
.ai-msg.user .ai-msg-bubble {
    background: var(--red);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.ai-msg-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--red);
    flex-shrink: 0;
}
.ai-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface-2);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}
.ai-typing span {
    width: 6px; height: 6px;
    background: var(--text-3);
    border-radius: 50%;
    animation: typing-dot 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.ai-suggestions {
    padding: 0 16px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ai-suggestion-chip {
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--ease);
    font-family: var(--f-body);
    white-space: nowrap;
}
.ai-suggestion-chip:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-subtle);
}

.ai-input-area {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    align-items: center;
}
.ai-input-area input {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 24px;
    font-family: var(--f-body);
    font-size: 0.83rem;
    outline: none;
    transition: border-color var(--ease);
}
.ai-input-area input:focus { border-color: var(--line-red); }
.ai-input-area input::placeholder { color: var(--text-3); }
.ai-send-btn {
    width: 38px; height: 38px;
    background: var(--red);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--ease), opacity var(--ease);
    flex-shrink: 0;
}
.ai-send-btn:hover { transform: scale(1.08); }
.ai-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

body.light .ai-chat-window {
    background: #FAFAF8;
    box-shadow: 0 32px 80px rgba(0,0,0,0.18);
}
body.light .ai-msg.bot .ai-msg-bubble { background: #EDECEA; }
body.light .ai-input-area input { background: #EDECEA; }
body.light .ai-suggestion-chip { background: #EDECEA; }

/* ============================================
   BUILDER PROMO — nav link + section + pill
   ============================================ */

/* Nav builder link */
.nav-builder-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: var(--red) !important;
    font-weight: 600;
    padding: 5px 12px !important;
    border: 1px solid var(--line-red, rgba(229,41,42,.25));
    border-radius: 6px;
    transition: background var(--ease), border-color var(--ease);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}
.nav-builder-link:hover {
    background: var(--red-subtle, rgba(229,41,42,.07));
    border-color: var(--red);
}
.nav-builder-link i { font-size: 0.75rem; }

/* Builder promo section */
.builder-promo-section {
    padding-top: 0;
    padding-bottom: 40px;
}
.builder-promo {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    background: var(--surface, rgba(255,255,255,.03));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 52px 56px;
    position: relative;
    overflow: hidden;
}
.builder-promo::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(229,41,42,.07) 0%, transparent 70%);
    pointer-events: none;
}
.builder-promo-title {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.0;
    margin: 8px 0 18px;
    letter-spacing: -.02em;
}
.builder-promo-desc {
    color: var(--text-2, #999);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 440px;
}
.builder-promo-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}
.bpf-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-2, #aaa);
}
.bpf-item i {
    color: var(--red);
    width: 16px;
    font-size: 0.8rem;
}
.builder-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* PC Builder visual widget */
.builder-promo-visual {
    background: var(--bg-2, #111);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    font-family: var(--f-body);
}
.bpv-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
}
.bpv-slot.active {
    background: var(--red-subtle, rgba(229,41,42,.05));
}
.bpv-type {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3, #555);
    font-weight: 600;
    width: 38px;
    flex-shrink: 0;
}
.bpv-val {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
}
.bpv-empty {
    color: var(--text-3, #555) !important;
    font-weight: 400 !important;
    font-style: italic;
}
.bpv-cursor { position: relative; }
.bpv-blink {
    color: var(--red);
    animation: blink 1s step-end infinite;
    margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.bpv-check {
    color: #3D9970;
    font-size: 0.72rem;
    flex-shrink: 0;
}
.bpv-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 0.82rem;
    color: var(--text-2, #aaa);
}
.bpv-price {
    font-weight: 700;
    color: var(--red);
    font-size: 0.95rem;
}

/* Floating builder pill (catalog page) */
.builder-pill {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 400;
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
}
.builder-pill.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.builder-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-2, #111);
    border: 1px solid var(--line);
    color: var(--text) !important;
    text-decoration: none !important;
    padding: 11px 18px 11px 16px;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(12px);
    white-space: nowrap;
}
.builder-pill-link:hover {
    border-color: var(--red);
    background: var(--surface, rgba(255,255,255,.04));
    box-shadow: 0 8px 32px rgba(229,41,42,0.18);
}
.builder-pill-link i:first-child {
    color: var(--red);
    font-size: 0.85rem;
}
.builder-pill-arrow {
    font-size: 0.7rem;
    color: var(--text-3, #666);
    transition: transform 0.2s, color 0.2s;
}
.builder-pill-link:hover .builder-pill-arrow {
    transform: translateX(3px);
    color: var(--red);
}

/* Responsive */
@media (max-width: 900px) {
    .builder-promo {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 28px;
    }
    .builder-promo-right { display: none; }
}
@media (max-width: 600px) {
    .builder-pill { bottom: 80px; right: 16px; }
    .nav-builder-link span { display: none; }
}

/* Light mode overrides */
body.light .builder-promo { background: rgba(0,0,0,.02); }
body.light .builder-promo-visual { background: #f5f5f5; }
body.light .builder-pill-link { background: rgba(255,255,255,0.95); }
