* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand-gradient: linear-gradient(90deg, #0B0752 0%, #6212C2 100%);
    --brand-dark: #0B0752;
    --brand-purple: #6212C2;
    --brand-light: #F4F4F9;
    --text-main: #1A1A1A;
    --text-muted: #8C8C8C;
    --text-green: #00A651;
    --bg-body: #FFFFFF;
    --bg-card: #D9D0FF;
    --radius-lg: 20px;
    --radius-md: 12px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Шапка */
.header {
    background: #fff;
    border-bottom: 1px solid #EAEAEA;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Логотип */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
}

.logo-icon {
    color: var(--brand-purple);
    transition: 0.3s ease;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: 0.3s ease;
}

.header__logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header__logo:hover::after {
    transform: scaleX(1);
}

.header__logo:hover .logo-icon, .header__logo:hover .logo-text {
    filter: drop-shadow(0 0 8px rgba(98, 18, 194, 0.5));
}

/* Поиск */
.header__search {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

    .header__search svg {
        position: absolute;
        left: 15px;
        color: #A0A0A0;
        transition: color 0.3s;
    }

    .header__search input {
        width: 100%;
        padding: 12px 20px 12px 45px;
        border: 1px solid #E0E0E0;
        background: #FAFAFA;
        border-radius: var(--radius-md);
        font-family: inherit;
        font-size: 15px;
        outline: none;
        transition: all 0.3s ease;
    }

        .header__search input:focus {
            background: #fff;
            border-color: var(--brand-purple);
            box-shadow: 0 0 0 3px rgba(98, 18, 194, 0.1);
        }

            .header__search input:focus + svg {
                color: var(--brand-purple);
            }

/* Навигация и Выпадающее меню */
.header__nav {
    display: flex;
    gap: 25px;
    align-items: center;
    z-index: 101;
}

.header__nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
    transition: 0.2s;
}

    .header__nav-item:hover, .header__nav-item.active {
        color: var(--brand-purple);
    }

.dropdown {
    position: relative;
}

.dropdown-btn {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    min-width: 240px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(11, 7, 82, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    border: 1px solid #EAEAEA;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 25px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

    .dropdown-item:hover {
        background: #F4F4F9;
        color: var(--brand-purple);
        padding-left: 30px;
    }

/* Main */
.main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    width: 100%;
}

/* Баннер */
.banner-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    background: #000;
    height: 400px;
}

.banner-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
}

.banner-slide__content {
    width: 50%;
    color: #fff;
    z-index: 2;
}

.banner-slide__title {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-slide__subtitle {
    color: #F6C90E;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.banner-slide__text {
    font-size: 18px;
    color: #E0E0E0;
}

.banner-slide__img-wrap {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

    .banner-slide__img-wrap img {
        width: auto;
        height: 100%;
        max-height: 320px;
        object-fit: contain;
    }

        .banner-slide__img-wrap img.img-fridge {
            max-height: 380px;
        }

.banner-wrapper .banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

    .banner-wrapper .banner-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #fff;
    }

.banner-wrapper .banner-prev {
    left: 20px;
}

.banner-wrapper .banner-next {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
}

    .banner-dot.active {
        background: #fff;
        transform: scale(1.2);
    }

/* Слайдеры */
.section__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.slider-wrapper {
    position: relative;
    margin-bottom: 50px;
}

.categories {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 10px;
    scrollbar-width: none;
    align-items: flex-start;
}

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

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    transition: transform 0.2s;
    flex-shrink: 0;
    width: 180px;
}

    .category:hover {
        transform: translateY(-5px);
    }

.category__img-wrap {
    background: var(--bg-card);
    width: 180px;
    height: 180px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
}

    .category__img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.category__name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E0E0E0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: 0.2s;
}

    .slider-btn:hover {
        background: var(--brand-purple);
        color: #fff;
        border-color: var(--brand-purple);
    }

.slider-btn--prev {
    left: -20px;
}

.slider-btn--next {
    right: -20px;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}

.promo-section {
    border-top: 1px solid #D0D8E8;
    border-bottom: 1px solid #D0D8E8;
    padding-top: 40px;
    padding-bottom: 50px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.promo-wrapper {
    position: relative;
}

.promo-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
}

    .promo-slider::-webkit-scrollbar {
        display: none;
    }

    .promo-slider .product-card {
        flex: 0 0 calc(25% - 15px);
        min-width: 250px;
    }

/* ==========================================
   КАРТОЧКИ ТОВАРОВ — БЕЛЫЕ
   ========================================== */
.product-card {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 8px rgba(11, 7, 82, 0.04);
}

    .product-card:hover {
        border-color: transparent;
        box-shadow: 0 15px 35px rgba(11, 7, 82, 0.15);
        transform: translateY(-8px);
    }

.product-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FFD600;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.product-card__img {
    background: #FFFFFF;
    border: 1px solid #F5F5F5;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

    .product-card__img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-card__img img {
    transform: scale(1.1);
}

/* Плейсхолдер галереи на главной (до подгрузки JS) */
.product-card__gallery-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #FAFAFA;
    border: 1px solid #F5F5F5;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.product-card__dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 12px 0;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E0E0E0;
}

    .dot.active {
        background: var(--brand-purple);
    }

.product-card__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
    min-height: 40px;
}

.product-card__prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.product-card__price {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.product-card__old-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    white-space: nowrap;
}

.product-card__stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: auto;
}

.product-card__stock {
    font-size: 12px;
    color: var(--text-green);
    white-space: nowrap;
}

    .product-card__stock.out-of-stock {
        color: var(--text-muted);
    }

/* Кнопки */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 4px 10px rgba(98, 18, 194, 0.2);
}

    .btn--primary:hover {
        opacity: 0.95;
        box-shadow: 0 6px 15px rgba(98, 18, 194, 0.3);
    }

    .btn--primary:active {
        transform: scale(0.95) translateY(2px);
        box-shadow: 0 2px 5px rgba(98, 18, 194, 0.2);
    }

.btn--outline {
    background: transparent;
    border: 1px solid var(--brand-purple);
    color: var(--brand-purple);
}

    .btn--outline:hover {
        background: var(--brand-purple);
        color: #fff;
    }

    .btn--outline:active {
        transform: scale(0.95);
        opacity: 0.8;
    }

.btn-heart {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

    .btn-heart:hover, .btn-heart.active {
        border-color: var(--brand-purple);
        color: var(--brand-purple);
    }

        .btn-heart.active svg {
            fill: var(--brand-purple);
        }

    .btn-heart:active {
        transform: scale(0.85);
    }

/* Категория (Фильтры) */
.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

    .breadcrumbs a {
        color: var(--text-muted);
        transition: 0.2s;
    }

        .breadcrumbs a:hover {
            color: var(--brand-purple);
        }

    .breadcrumbs span {
        color: var(--text-main);
        font-weight: 500;
    }

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F4F4F9;
    color: var(--text-main);
    transition: 0.2s;
}

    .btn-back:hover {
        background: var(--brand-purple);
        color: #fff;
        transform: translateX(-3px);
    }

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.topbar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sort-wrapper {
    position: relative;
    user-select: none;
}

.sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}

    .sort-trigger:hover {
        color: var(--brand-purple);
    }

    .sort-trigger svg {
        color: var(--brand-purple);
        transition: transform 0.3s;
    }

.sort-wrapper.open .sort-trigger svg {
    transform: rotate(180deg);
}

.sort-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(11, 7, 82, 0.15);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #EAEAEA;
    z-index: 20;
}

.sort-wrapper.open .sort-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-options li {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

    .sort-options li:hover {
        background: #F4F4F9;
        color: var(--brand-purple);
    }

    .sort-options li.active {
        color: var(--brand-purple);
        font-weight: 600;
    }

.view-toggles {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .view-btn:hover {
        color: var(--brand-purple);
    }

    .view-btn.active {
        color: var(--brand-purple);
    }

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

    .product-grid.grid-view {
        display: grid;
    }

    .product-grid.list-view {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

        .product-grid.list-view .product-card {
            flex-direction: row;
            padding: 15px;
            align-items: center;
            gap: 20px;
            height: auto;
        }

        .product-grid.list-view .product-card__img {
            width: 180px;
            height: 180px;
            flex-shrink: 0;
            margin-bottom: 0;
        }

        .product-grid.list-view .product-card__dots {
            display: none;
        }

        .product-grid.list-view .product-card__title {
            min-height: auto;
            margin-bottom: 8px;
            font-size: 16px;
            flex: 1;
        }

        .product-grid.list-view .product-card__stock-row {
            margin-bottom: 0;
            justify-content: flex-start;
            gap: 15px;
        }

        .product-grid.list-view .btn {
            width: auto;
            padding: 10px 30px;
        }

        .product-grid.list-view .btn-heart {
            width: 40px;
            height: 40px;
        }

/* Сайдбар */
.catalog-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(11, 7, 82, 0.08);
    border: 1px solid #F0F0F0;
}

.filter-block {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.filter-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: #E8E5FF;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    transition: 0.2s;
    -moz-appearance: textfield;
}

    .filter-input::placeholder {
        color: #7A7A9D;
    }

.filter-input-full {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: #E8E5FF;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    margin-bottom: 15px;
}

    .filter-input-full::placeholder {
        color: #7A7A9D;
    }

    .filter-input:focus, .filter-input-full:focus {
        box-shadow: 0 0 0 2px var(--brand-purple);
    }

    .filter-input::-webkit-outer-spin-button, .filter-input::-webkit-inner-spin-button,
    .filter-input-full::-webkit-outer-spin-button, .filter-input-full::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

/* Чекбоксы */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

    .checkbox-label input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #D0D0D0;
        border-radius: 4px;
        background-color: #fff;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .checkbox-label:hover input[type="checkbox"] {
        border-color: var(--brand-purple);
    }

    .checkbox-label input[type="checkbox"]:checked {
        border-color: var(--brand-purple);
    }

        .checkbox-label input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            top: 45%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(45deg);
            width: 5px;
            height: 10px;
            border: solid var(--brand-purple);
            border-width: 0 2px 2px 0;
        }

    .checkbox-label:active {
        transform: scale(0.98);
    }

    .checkbox-label.hidden-filter {
        display: none;
    }

.filter-more-link {
    display: inline-block;
    color: var(--brand-purple);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

    .filter-more-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--brand-purple);
        transition: width 0.3s ease;
        border-radius: 2px;
    }

    .filter-more-link:hover::after {
        width: 100%;
    }

    .filter-more-link:hover {
        color: #4A0E99;
    }

.show-all-filters {
    display: block;
    color: var(--brand-purple);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #F4F4F9;
}

    .show-all-filters:hover {
        background: #E8E5FF;
        color: #4A0E99;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(98, 18, 194, 0.1);
    }

/* API Валют */
.api-widgets {
    margin-bottom: 30px;
}

.currency-widget {
    background: var(--brand-gradient);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(98, 18, 194, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
}

    .currency-widget:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 25px rgba(98, 18, 194, 0.3);
    }

    .currency-widget::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: 0.5s;
        pointer-events: none;
    }

    .currency-widget:hover::before {
        left: 100%;
    }

.currency-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
}

.currency-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.currency-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.currency-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    animation: fadeIn 0.5s ease;
}

.currency-toggle {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 8px;
}

.currency-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

    .currency-btn:hover {
        color: #fff;
    }

    .currency-btn.active {
        background: #fff;
        color: var(--brand-purple);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.currency-widget.error {
    background: #ffebee;
    color: #d32f2f;
    max-width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Подвал */
.site-footer {
    background-color: #0B0752;
    color: #ffffff;
    padding: 60px 20px 20px;
    margin-top: auto;
}

.footer__container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.footer__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__contacts p {
    font-size: 16px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.footer__contacts a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

    .footer__contacts a:hover {
        color: #E6C200;
    }

.footer__socials {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: 0.2s;
}

    .social-btn:hover {
        background: #E6C200;
        color: #0B0752;
        transform: translateY(-3px);
    }

.footer__map {
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.05);
}

.footer__bottom {
    max-width: 1300px;
    margin: 50px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__logo-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.footer__privacy {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

    .footer__privacy:hover {
        color: #fff;
        text-decoration: underline;
    }

.footer__corp-link {
    color: #ffffff;
    font-size: 16px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 4px;
    transition: 0.2s;
}

    .footer__corp-link:hover {
        color: #E6C200;
        text-decoration-color: #E6C200;
    }

/* Мобильная версия */
.mobile-nav {
    display: none;
}

@media (max-width: 1024px) {
    .product-grid.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-slider .product-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .header__container {
        flex-direction: column;
        padding: 10px 15px;
        gap: 12px;
    }

    .header__nav {
        display: none;
    }

    .dropdown-menu {
        display: none;
    }

    .header__logo {
        width: 100%;
        justify-content: center;
        padding-bottom: 0;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .header__logo::after {
        display: none;
    }

    .header__search {
        width: 100%;
        max-width: 100%;
    }

    .main {
        padding: 15px;
    }

    .category-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 24px;
    }

    .topbar-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .sort-trigger {
        font-size: 14px;
    }

    .catalog-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .product-grid.grid-view {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-grid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }

    .product-grid.list-view .product-card__img {
        width: 100%;
        height: auto;
    }

    .product-grid.list-view .product-card__stock-row {
        justify-content: center;
    }

    .banner-wrapper {
        height: 400px;
    }

    .banner-slide {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        text-align: center;
    }

    .banner-slide__content {
        width: 100%;
        margin-bottom: 20px;
    }

    .banner-slide__title {
        font-size: 28px;
    }

    .banner-slide__subtitle {
        font-size: 18px;
    }

    .banner-slide__img-wrap {
        width: 100%;
        justify-content: center;
        height: 50%;
    }

        .banner-slide__img-wrap img {
            max-height: 100%;
        }

    .banner-wrapper .banner-btn {
        display: none;
    }

    .slider-btn {
        display: none;
    }

    .category {
        width: 130px;
    }

    .category__img-wrap {
        width: 130px;
        height: 130px;
        padding: 15px;
    }

    .category__name {
        font-size: 13px;
    }

    .promo-slider .product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 200px;
    }

    .product-card {
        padding: 10px;
    }

    .product-card__title {
        font-size: 13px;
        min-height: 34px;
    }

    .product-card__price {
        font-size: 16px;
    }

    .btn {
        padding: 10px;
        font-size: 13px;
    }

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

    .footer__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .footer__map {
        min-height: 250px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #EAEAEA;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 100;
    }

    .mobile-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-muted);
        font-size: 10px;
    }

    .mobile-nav__item--active {
        color: var(--brand-purple);
    }

    .mobile-nav__item svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================
   НОВЫЕ СТИЛИ (Корзина, Сравнение, Контакты)
   ========================================== */

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details p {
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-details a {
    color: var(--brand-purple);
    font-weight: 600;
}

.feedback-form {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(11, 7, 82, 0.08);
    border: 1px solid #F0F0F0;
    margin-top: 20px;
}

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

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .form-group textarea.filter-input-full {
        resize: vertical;
        min-height: 100px;
    }

.error-message {
    display: block;
    color: #e53935;
    font-size: 12px;
    margin-top: 5px;
    min-height: 15px;
}

.filter-input-full.invalid {
    border: 1px solid #e53935;
    background: #FFEBEE;
}

.map-placeholder {
    background: #E8E5FF;
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--brand-purple);
    border: 1px solid #D0D0F0;
    margin-top: 20px;
}

/* --- Корзина --- */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.cart-item__img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #F4F4F9;
    border-radius: 8px;
    padding: 10px;
    flex-shrink: 0;
}

.cart-item__info {
    flex: 1;
    min-width: 200px;
}

.cart-item__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

.cart-item__price {
    font-size: 14px;
    color: var(--text-muted);
}

.cart-item__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F4F4F9;
    padding: 5px;
    border-radius: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-purple);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: 0.2s;
}

    .qty-btn:hover {
        background: var(--brand-purple);
        color: #fff;
    }

.qty-value {
    font-weight: 600;
    font-size: 15px;
    min-width: 25px;
    text-align: center;
}

.cart-item__total {
    font-weight: 700;
    font-size: 16px;
    min-width: 100px;
    text-align: right;
}

.btn-remove {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: 0.2s;
}

    .btn-remove:hover {
        background: #ffebee;
    }

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F4F4F9;
    padding: 20px 25px;
    border-radius: var(--radius-lg);
    border: 1px solid #EAEAEA;
}

.cart-summary__total {
    font-size: 18px;
    color: var(--text-main);
}

    .cart-summary__total strong {
        font-size: 24px;
        color: var(--brand-purple);
        margin-left: 10px;
    }

.cart-summary .btn {
    width: auto;
    padding: 12px 40px;
    font-size: 16px;
}

/* --- Таблица сравнения --- */
.table-responsive {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(11, 7, 82, 0.08);
    border: 1px solid #F0F0F0;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

    .compare-table th,
    .compare-table td {
        padding: 20px;
        text-align: left;
        border-bottom: 1px solid #EAEAEA;
        vertical-align: middle;
    }

    .compare-table th {
        background: #F4F4F9;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
    }

.compare-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .compare-product img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        background: #F4F4F9;
        border-radius: var(--radius-md);
        padding: 10px;
    }

    .compare-product span {
        font-weight: 500;
        font-size: 14px;
    }

@media (max-width: 1024px) {
    .contacts-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .cart-item__info {
        width: 100%;
    }

    .cart-item__total {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .cart-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

        .cart-summary .btn {
            width: 100%;
        }

    .map-placeholder {
        height: 250px;
    }
}

/* Счетчик внутри карточки товара */
.product-card__btn-container {
    width: 100%;
    margin-top: auto;
}

.card-cart-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F4F4F9;
    border-radius: var(--radius-md);
    padding: 5px;
    height: 42px;
    width: 100%;
}

.card-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

    .card-qty-btn.minus {
        background: #fff;
        color: var(--brand-purple);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .card-qty-btn.plus {
        background: var(--brand-purple);
        color: #fff;
        box-shadow: 0 2px 5px rgba(98, 18, 194, 0.2);
    }

    .card-qty-btn:hover {
        opacity: 0.8;
        transform: scale(0.95);
    }

.card-qty-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    min-width: 20px;
    text-align: center;
}

/* ==========================================
   СТРАНИЦА ТОВАРА (product.html)
   ========================================== */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-detail__img-wrap {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 1px solid #EAEAEA;
}

    .product-detail__img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.product-detail__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-detail__prices {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.product-detail__price {
    font-size: 36px;
    font-weight: 800;
    color: var(--brand-dark);
}

.product-detail__desc {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EAEAEA;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

    .specs-table td {
        padding: 12px 0;
        border-bottom: 1px dashed #EAEAEA;
        font-size: 15px;
    }

        .specs-table td:first-child {
            color: var(--text-muted);
            width: 40%;
        }

        .specs-table td:last-child {
            font-weight: 500;
        }

.product-detail__actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

    .product-detail__actions .btn-heart {
        flex-shrink: 0;
    }

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-detail__title {
        font-size: 24px;
    }

    .product-detail__price {
        font-size: 28px;
    }

    .product-detail__img-wrap {
        padding: 20px;
    }
}

/* ==========================================
   ГАЛЕРЕЯ ИЗОБРАЖЕНИЙ В КАРТОЧКЕ — БЕЛАЯ
   ========================================== */
.product-card__gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #FFFFFF;
    border: 1px solid #F5F5F5;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

    .product-card__gallery .gallery-img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

        .product-card__gallery .gallery-img.active {
            opacity: 1;
            pointer-events: auto;
        }

.product-card__dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    margin: 0;
}

    .product-card__dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(160, 160, 160, 0.5);
        border: 1px solid rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }

        .product-card__dots .dot.active {
            background: var(--brand-purple);
            transform: scale(1.3);
            border-color: var(--brand-purple);
        }

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: auto;
}

.product-card__gallery:hover .gallery-btn,
.product-detail__img-wrap:hover .gallery-btn {
    opacity: 1;
}

.gallery-btn:hover {
    background: #fff;
    color: var(--brand-purple);
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn--prev {
    left: 10px;
}

.gallery-btn--next {
    right: 10px;
}

.product-detail__img-wrap .product-card__gallery {
    height: 100%;
    min-height: 400px;
    background: transparent;
    border: none;
    margin-bottom: 0;
}

    .product-detail__img-wrap .product-card__gallery .gallery-img {
        max-width: 100%;
        max-height: 100%;
    }

@media (max-width: 768px) {
    .gallery-btn {
        opacity: 1;
        width: 30px;
        height: 30px;
    }
}
/* ==========================================
   ПОДСКАЗКИ ПОИСКА (Автодополнение)
   ========================================== */
.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(11, 7, 82, 0.18);
    border: 1px solid #EAEAEA;
    z-index: 200;
    max-height: 480px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    pointer-events: none;
}

    .search-suggestions.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

.suggestion-item {
    display: flex;
    gap: 12px;
    padding: 10px 15px;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid #F5F5F5;
    transition: background 0.15s ease;
    cursor: pointer;
}

    .suggestion-item:hover,
    .suggestion-item.active {
        background: #F4F4F9;
    }

    .suggestion-item.active {
        box-shadow: inset 3px 0 0 var(--brand-purple);
    }

.suggestion-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #FAFAFA;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
    border: 1px solid #F0F0F0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    color: var(--text-main);
}

    .suggestion-name mark {
        background: transparent;
        color: var(--brand-purple);
        font-weight: 700;
    }

.suggestion-meta {
    font-size: 11px;
    color: var(--text-muted);
}

    .suggestion-meta strong {
        color: var(--brand-dark);
        font-weight: 600;
    }

.suggestion-footer {
    padding: 12px 15px;
    background: #FAFAFA;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-purple);
    cursor: pointer;
    transition: background 0.15s ease;
}

    .suggestion-footer:hover {
        background: #F0EDFF;
    }

.suggestion-empty {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .search-suggestions {
        max-height: 60vh;
    }

    .suggestion-img {
        width: 38px;
        height: 38px;
    }

    .suggestion-name {
        font-size: 12px;
    }
}
/* ==========================================
   ПАСХАЛКИ И МОДАЛЬНОЕ ОКНО (ПОДВАЛ)
   ========================================== */

/* Шуточная политика конфиденциальности */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 7, 82, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

    .privacy-modal-overlay.open {
        opacity: 1;
    }

.privacy-modal {
    background: #fff;
    color: var(--text-main);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.privacy-modal-overlay.open .privacy-modal {
    transform: translateY(0);
}

.privacy-modal h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--brand-dark);
}

.privacy-modal p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.privacy-modal ul {
    margin-bottom: 15px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.privacy-modal li {
    margin-bottom: 8px;
}

.privacy-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #F4F4F9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

    .privacy-close:hover {
        background: #E0E0E0;
        color: #d32f2f;
    }

/* Пасхалка для корпоративных клиентов (на весь экран) */
.corp-easter-egg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease; /* Быстрое появление для эффекта скримера */
    background: #000; /* Черный фон на случай, если картинка не идеально квадратная */
}

    .corp-easter-egg.show {
        opacity: 1;
    }

    /* Картинка на весь экран */
    .corp-easter-egg img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Растягивает картинку, заполняя весь экран без пустых полос */
        display: block;
    }
/* ==========================================
   ОКНО АВТОРИЗАЦИИ (Вход/Регистрация)
   ========================================== */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 7, 82, 0.7);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

    .auth-modal.active {
        display: flex;
    }

.auth-modal-content {
    background: #fff;
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
}

    .auth-close:hover {
        color: #d32f2f;
    }

.auth-modal h2 {
    margin-bottom: 20px;
    color: var(--brand-dark);
    font-size: 24px;
}

.auth-switch {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: var(--text-muted);
}

    .auth-switch a {
        color: var(--brand-purple);
        font-weight: 600;
        margin-left: 5px;
        transition: 0.2s;
    }

        .auth-switch a:hover {
            color: #4A0E99;
            text-decoration: underline;
        }

/* Оформление заказа и личный кабинет */
[hidden] {
    display: none !important;
}

.auth-error,
.checkout-error {
    color: #C62828;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 0;
}

.checkout-section {
    margin-top: 32px;
    padding: 28px;
    background: #F4F4F9;
    border-radius: var(--radius-lg);
}

.checkout-section h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.checkout-note {
    color: var(--text-muted);
    margin: 0 0 20px;
}

.checkout-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.checkout-form .form-group {
    min-width: 0;
}

.checkout-form__address,
.checkout-form__footer,
.checkout-form > .checkout-error {
    grid-column: 1 / -1;
}

.checkout-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.checkout-form__footer .btn {
    width: auto;
}

.order-success,
.account-guest,
.account-empty {
    padding: 32px;
    background: #F4F4F9;
    border-radius: var(--radius-lg);
    text-align: center;
}

.order-success h2,
.account-guest h2 {
    margin-top: 0;
}

.order-success .btn,
.account-guest .btn,
.account-empty .btn {
    display: inline-flex;
    width: auto;
    margin-top: 16px;
}

.account-heading {
    justify-content: space-between;
    gap: 16px;
}

.account-heading .btn {
    width: auto;
}

.account-email {
    color: var(--text-muted);
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.account-section {
    margin-bottom: 48px;
}

.account-orders {
    display: grid;
    gap: 20px;
}

.order-card {
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: var(--radius-lg);
}

.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.order-card__header > div {
    display: grid;
    gap: 4px;
}

.order-card__header > div > span {
    color: var(--text-muted);
    font-size: 13px;
}

.order-status {
    padding: 6px 12px;
    color: var(--brand-dark);
    background: #FFD600;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.order-card__items {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    gap: 10px;
}

.order-card__items li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    line-height: 1.5;
}

.order-card__items li a {
    min-width: 0;
}

.order-card__items li span {
    flex-shrink: 0;
    white-space: nowrap;
}

.order-card__delivery {
    display: grid;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid #EAEAEA;
    color: var(--text-muted);
}

.order-card__total {
    margin-top: 16px;
    text-align: right;
    font-size: 18px;
}

#account-favorites {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.account-loading {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 20px;
    }

    .checkout-form,
    #account-favorites {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-form__footer,
    .checkout-form__footer .btn,
    .account-heading .btn {
        width: 100%;
    }

    .checkout-form__footer .btn {
        justify-content: center;
    }

    .order-card {
        padding: 18px;
    }

    .order-card__items li {
        flex-direction: column;
        gap: 4px;
    }

    .order-card__items li span {
        white-space: normal;
    }
}
