﻿:root {
    --black: #1d1916;
    --dark-gray: #f3eee7;
    --gray: #ece4d8;
    --light-gray: #ddd2c4;
    --orange: #d78751;
    --orange-dark: #d76819;
    --orange-strong: #d17a41;
    --white: #ffffff;
    --border-color: rgba(29, 25, 22, 0.12);
    --text-muted: rgba(29, 25, 22, 0.64);
    --surface-soft: #f7f3ed;
    --surface-elevated: #f1eae0;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo-placeholder {
    flex: 0 0 auto;
    margin-left: -10px;
}

.logo {
    height: 72px;
    width: auto;
    display: block;
    max-width: 320px;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

button,
a,
img,
.product-main-image,
.product-thumb,
.product-image-container,
.banner-slide,
.slider-prev,
.slider-next,
.profile-btn,
.favorite-btn-card,
.product-gallery-arrow,
.product-lightbox-arrow,
.product-lightbox-close,
.product-lightbox-zoom {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    caret-color: transparent;
}

.favorite-btn,
.cart-btn {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--black);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-btn {
    background: var(--white);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.86);
    color: #ff4757;
}

.cart-btn:hover {
    color: var(--black);
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.86);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--orange);
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    cursor: pointer;
    padding: 11px 9px;
    width: 42px;
    height: 42px;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--black);
    transition: var(--transition);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--dark-gray);
    z-index: 2000;
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    padding-bottom: 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
}

.mobile-menu-logo {
    display: block;
    height: 55px;
    width: auto;
    max-width: 245px;
    object-fit: contain;
}

.close-menu {
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--orange);
}

.mobile-nav ul {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav-group {
    margin-bottom: 10px;
}

.mobile-nav-parent {
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.mobile-nav-parent i {
    display: none;
}

.mobile-nav-parent.active i {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    list-style: none;
    margin: 2px 0 8px;
    padding-left: 0;
    border-left: none;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li {
    margin-bottom: 6px;
}

.mobile-submenu .mobile-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    padding: 6px 0 6px 14px;
    border-bottom: none;
}

.mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.mobile-contacts {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
}

.whatsapp-btn,
.instagram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.whatsapp-btn {
    background-color: #25D366;
    color: var(--white);
}

.instagram-btn {
    background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737);
    color: var(--white);
}

.whatsapp-btn:hover,
.instagram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Десктопная навигация */
.desktop-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-right: auto;
    margin-left: 30px;
}

.nav-filter-btn {
    background: none;
    border: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    transition: var(--transition);
    border-radius: 4px;
}

.nav-filter-btn:hover,
.nav-filter-btn.active {
    color: var(--orange);
    background-color: rgba(255, 107, 0, 0.12);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .header-actions {
        gap: 12px;
    }
    .burger-menu {
        display: flex;
    }
    .user-menu {
        margin-left: 12px;
    }
}

/* Кнопки авторизации */
.auth-buttons {
    display: flex;
    align-items: center;
    margin-right: 1px;
}

.account-btn {
    text-decoration: none;
}

.login-btn {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--orange);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    background-color: var(--orange);
    color: var(--black);
}

.user-menu {
    position: relative;
    margin-left: 10px;
}

.profile-btn {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--black);
    font-size: 18px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.profile-btn:hover,
.profile-btn:focus-visible {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
    transform: translateY(-1px);
    outline: none;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(16, 16, 16, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    min-width: 190px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    z-index: 80;
    box-shadow: 0 18px 40px rgba(0,0,0,0.36);
    backdrop-filter: blur(12px);
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-menu.guest-mode:hover .user-dropdown,
.user-menu.guest-mode:focus-within .user-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.user-dropdown a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    transform: translateX(2px);
}

/* Каталог */
.catalog-page {
    padding: 120px 0 60px;
}

.catalog-header {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.catalog-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.catalog-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    text-align: center;
}

.catalog-subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.catalog-subcategory-pill {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(29, 25, 22, 0.12);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.catalog-subcategory-pill:hover,
.catalog-subcategory-pill:focus-visible {
    border-color: rgba(207, 132, 81, 0.3);
    background: rgba(228, 160, 111, 0.12);
    color: var(--orange-dark);
}

.catalog-subcategory-pill.active {
    background: rgba(228, 160, 111, 0.2);
    color: var(--black);
    border-color: rgba(207, 132, 81, 0.34);
    box-shadow: 0 10px 20px rgba(29, 25, 22, 0.06);
}

.catalog-filter-group {
    min-width: 220px;
}

.catalog-filter-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.mobile-filter-btn {
    display: none;
    background-color: var(--dark-gray);
    color: var(--black);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.mobile-filter-btn i {
    font-size: 14px;
}

.mobile-filter-btn:hover {
    background-color: var(--orange);
    color: var(--black);
    border-color: var(--orange);
}

@media (max-width: 768px) {
    .mobile-filter-btn {
        display: inline-flex;
    }

    .catalog-header {
        align-items: flex-start;
        margin-bottom: 26px;
    }

    .catalog-title {
        text-align: left;
        font-size: 28px;
        font-weight: 600;
        letter-spacing: -0.04em;
        margin-bottom: 14px;
    }

    .catalog-heading,
    .catalog-subcategory-pills {
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .mobile-filters-panel {
        width: 100%;
        text-align: left;
    }

    .mobile-filters-panel .filter-content {
        padding: 8px 0 14px;
    }

    .mobile-filters-panel .filter-select,
    .mobile-filters-panel .price-input,
    .mobile-filters-panel .price-ok-btn {
        font-size: 12px;
    }

    .mobile-filters-panel .size-filter {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mobile-filters-panel .size-checkbox {
        width: 100%;
        justify-content: flex-start;
        font-size: 10px;
    }

    .mobile-filters-panel .size-checkbox span {
        white-space: nowrap;
    }
}

.mobile-filters-panel {
    background-color: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 30px;
}

.filter-section {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.filter-header i {
    transition: transform 0.3s ease;
}

.filter-header.active i {
    transform: rotate(180deg);
}

.filter-content {
    display: none;
    padding: 10px 0 15px 0;
}

.filter-content.active {
    display: block;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-input {
    background-color: var(--gray);
    border: 1px solid var(--border-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    width: 100px;
}

.price-input:focus {
    outline: none;
    border-color: var(--orange);
}

.price-separator {
    color: var(--white);
    font-weight: 600;
}

.price-ok-btn {
    background-color: var(--orange);
    color: var(--black);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.price-ok-btn:hover {
    background-color: var(--white);
}

.filter-select {
    background-color: var(--gray);
    color: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--orange);
    outline: none;
}

.size-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 4px 8px;
    align-items: start;
}

.size-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--white);
    color: var(--black);
    border: 1px solid rgba(29, 25, 22, 0.14);
    padding: 4px 6px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.2;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.size-checkbox span {
    color: var(--black);
    font-weight: 600;
}

.size-checkbox input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    background-color: var(--white);
    border: 1px solid rgba(29, 25, 22, 0.18);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.size-checkbox input[type="checkbox"]:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

.size-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--black);
    font-size: 10px;
    font-weight: bold;
}

.size-checkbox.is-selected {
    background: rgba(228, 160, 111, 0.16);
    border-color: rgba(207, 132, 81, 0.34);
}

.size-checkbox:hover {
    border-color: var(--orange);
    background: rgba(228, 160, 111, 0.1);
}

.desktop-filters-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 8px auto 0;
    position: relative;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .desktop-filters-row {
        display: none;
    }
}

.filter-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border-radius: 999px;
    min-width: 104px;
    justify-content: center;
}

.filter-item:hover {
    color: var(--orange);
    border-color: rgba(255,107,0,0.45);
    background-color: rgba(255,107,0,0.06);
}

.filter-item i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.filter-item.active {
    color: var(--orange);
    border-color: rgba(255,107,0,0.45);
    background-color: rgba(255,107,0,0.08);
}

.filter-item.active i {
    transform: rotate(180deg);
}

.desktop-filters-dropdowns {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    min-width: 280px;
    z-index: 100;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.filter-dropdown.active {
    display: block;
}

.filter-dropdown .catalog-filter-group {
    min-width: 0;
}

.filter-dropdown .catalog-filter-label {
    display: none;
}

/* Главная страница */
.home-page {
    padding-top: 96px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: var(--black);
    margin-top: 82px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.banner-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.banner-link {
    pointer-events: auto;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: none !important;
}

.banner-link:hover,
.banner-link:focus,
.banner-link:active {
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.46);
    color: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(22, 22, 22, 0.68);
    border-color: rgba(255,255,255,0.22);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

#home-banners .slider-dots {
    display: none;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: var(--orange);
}

@media (max-width: 992px) {
    .hero-slider {
        height: 420px;
        margin-top: 82px;
    }
}

@media (max-width: 768px) {
    .home-page {
        padding-top: 92px;
    }

    .hero-slider {
        height: 440px;
        margin-top: 84px;
    }
    .banner-slide {
        background-size: cover;
        background-position: center center;
    }
    .banner-content {
        bottom: 20px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 18px;
        transform: none;
    }
    .banner-link {
        margin: 0 auto;
        padding: 10px 18px;
        font-size: 12px;
        border-radius: 999px;
    }
    .slider-prev,
    .slider-next {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    #home-new-arrivals {
        padding-top: 42px;
        padding-bottom: 10px;
    }

    .homepage-products {
        padding-top: 8px;
    }
}

@media (max-width: 480px) {
    .home-page {
        padding-top: 88px;
    }

    .hero-slider {
        height: 420px;
        margin-top: 84px;
    }
    .banner-slide {
        background-size: cover;
        background-position: center center;
    }
    .banner-content {
        bottom: 16px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 14px;
        transform: none;
    }
    .banner-link {
        margin: 0 auto;
        padding: 8px 14px;
        font-size: 12px;
    }
}

.new-arrivals {
    padding: 60px 0;
}

#home-new-arrivals {
    padding-top: 68px;
    padding-bottom: 12px;
}

.homepage-products {
    padding-top: 10px;
}

.home-page {
    background-color: #ffffff;
}

.home-page .homepage-mobile-sections {
    display: none;
}

.new-arrivals h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.home-page .section-header {
    display: none;
}

.home-page .products-grid {
    margin-top: 0;
}

@media (max-width: 767px) {
    .home-page .homepage-mobile-sections {
        --home-mobile-accent: #e7a06e;
        --home-mobile-card-surface: #f1f1ed;
        --home-mobile-image-surface: #e7e4dd;
        display: block;
        padding: 32px 0 52px;
        background: #ffffff;
    }

    .home-page #home-new-arrivals,
    .home-page .homepage-products {
        display: none;
    }

    .home-page .homepage-mobile-sections .container {
        padding: 0 16px;
    }

    .home-page .homepage-mobile-section + .homepage-mobile-section {
        margin-top: 36px;
    }

    .home-page .homepage-mobile-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .home-page .homepage-mobile-section-header h2 {
        margin: 0;
        color: #171717;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 20px;
        font-weight: 600;
        letter-spacing: -0.04em;
    }

    .home-page .homepage-mobile-section-link {
        color: var(--orange-dark);
        text-decoration: none;
        font-size: 13px;
        font-weight: 650;
        white-space: nowrap;
    }

    .home-page .homepage-mobile-track {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: clamp(196px, 76vw, 236px);
        gap: 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: 4px 2px 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-page .homepage-mobile-track::-webkit-scrollbar {
        display: none;
    }

    .home-page .homepage-mobile-track > * {
        width: 100%;
        min-width: 0;
    }

    .home-page .homepage-mobile-card {
        scroll-snap-align: start;
        background: var(--home-mobile-card-surface);
        border-radius: 18px;
        box-shadow: none;
        transform: none;
        overflow: hidden;
        width: 100%;
        min-width: 0;
    }

    .home-page .homepage-mobile-card:hover {
        transform: none;
        box-shadow: none;
    }

    .home-page .homepage-mobile-card .product-image-container {
        background: var(--home-mobile-image-surface);
    }

    .home-page .homepage-mobile-card .product-info {
        padding: 12px 12px 14px;
    }

    .home-page .homepage-mobile-card .product-name {
        color: #171717;
        font-size: 13px;
        font-weight: 600;
    }

    .home-page .homepage-mobile-card .product-price,
    .home-page .homepage-mobile-card .discount-price {
        color: #cf6f2d;
    }

    .home-page .homepage-mobile-card .old-price {
        color: rgba(23, 23, 23, 0.42);
    }

    .home-page .homepage-mobile-card .product-badge {
        background: rgba(223, 147, 95, 0.2);
        border-color: rgba(203, 123, 67, 0.28);
        color: #8f4f22;
        box-shadow: none;
        backdrop-filter: none;
    }

    .home-page .homepage-mobile-card .favorite-btn-card {
        background: rgba(255, 255, 255, 0.82);
        border-color: rgba(23, 23, 23, 0.08);
        color: #1c1c1c;
    }

    .home-page .homepage-mobile-card .favorite-btn-card.active {
        color: #de6b5d;
    }

    .home-page .homepage-mobile-card .product-preview-line {
        background: rgba(23, 23, 23, 0.12);
    }

    .home-page .homepage-mobile-card .product-preview-line.active .product-preview-line-fill {
        background: var(--home-mobile-accent);
    }

    .home-page .homepage-mobile-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 110px;
        padding: 20px;
        background: var(--home-mobile-card-surface);
        border-radius: 18px;
        color: rgba(23, 23, 23, 0.56);
        font-size: 14px;
        text-align: center;
    }
}

.new-arrivals .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .new-arrivals .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Товары */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* ===== РОВНЫЕ КАРТОЧКИ ТОВАРОВ ===== */
.product-card {
    background-color: var(--dark-gray);
    border: none;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Card height tuning point: reduce/increase perceived card height via image aspect ratio and info spacing below before setting a fixed height. */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.homepage-card .product-brand,
.homepage-card .product-category,
.homepage-card .product-header,
.homepage-card .add-to-cart-card,
.compact-card .product-brand,
.compact-card .product-category,
.compact-card .product-header,
.compact-card .add-to-cart-card {
    display: none !important;
}

.homepage-card .product-info,
.compact-card .product-info {
    padding: 10px 10px 12px;
    gap: 6px;
    justify-content: space-between;
}

.homepage-card .product-name,
.compact-card .product-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    min-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.homepage-card .product-price-container,
.compact-card .product-price-container {
    margin-top: auto;
    min-height: 22px;
}

.product-card-media {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #111;
    border-bottom: 0;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.22s ease;
    filter: brightness(0.9);
    position: absolute;
    top: 0;
    left: 0;
}

.product-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 60, 0.52);
    color: var(--white);
    text-align: center;
    padding: 16px;
    pointer-events: none;
}

.product-image-overlay[hidden] {
    display: none;
}

.product-image-overlay-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.product-preview-lines {
    display: flex;
    gap: 6px;
    padding: 0 10px 10px;
}

.product-preview-line {
    flex: 1 1 0;
    position: relative;
    height: 3px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

.product-preview-line-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255,255,255,0.78);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-preview-line.active {
    background: rgba(255,255,255,0.24);
}

.product-preview-line.active .product-preview-line-fill {
    opacity: 1;
}

.product-preview-line:hover .product-preview-line-fill {
    opacity: 0.82;
}

@media (hover: none) {
    .product-preview-line {
        cursor: default;
    }
}

.product-card {
    touch-action: pan-y;
}

.product-card:hover .product-image-container img {
    filter: brightness(1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(18, 18, 18, 0.76);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 6px 10px;
    border-radius: 999px;
    z-index: 5;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    backdrop-filter: blur(6px);
}

@media (max-width: 767px) {
    .product-badge {
        top: 10px;
        right: 10px;
        font-size: 8px;
        padding: 4px 7px;
        letter-spacing: 0.08em;
    }
}

.favorite-btn-card {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 6;
}

@media (max-width: 767px) {
    .favorite-btn-card {
        width: 32px;
        height: 32px;
        top: 10px;
        left: 10px;
        font-size: 13px;
    }
}

.favorite-btn-card:hover {
    background: rgba(0, 0, 0, 0.84);
    border-color: rgba(255,107,0,0.45);
    transform: scale(1.06);
}

.favorite-btn-card.active {
    color: #ff4757;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 8px 10px 6px;
    justify-content: space-between;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.25;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 17px;
}

.product-price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 22px;
    margin-top: auto;
}

.product-price,
.discount-price,
.price {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.old-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px !important;
    line-height: 1;
}

/* Точки переключения изображений */
.product-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 5;
    background: rgba(0,0,0,0.5);
    padding: 6px 0;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
    backdrop-filter: blur(2px);
}

.product-dot {
    width: 28px;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    opacity: 0.9;
    transition: background 0.2s;
}

.product-dot.active {
    background: rgba(255, 255, 255, 1);
}

.product-dot.more::after {
    content: attr(data-more);
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
    display: none;
    z-index: 8;
}

.product-dot.more:hover::after {
    display: block;
}

@media (max-width: 480px) {
    .product-dot {
        width: 20px;
        height: 5px;
    }
}

/* Стили для кнопки "Найти свой размер" */
.size-calc-btn {
    background-color: rgba(255,255,255,0.02);
    color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255,255,255,0.24);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    background: rgba(255,255,255,0.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.size-calc-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-color: rgba(255,255,255,0.42);
}

.calc-submit {
    background-color: var(--white);
    color: var(--white);    
    border: none;
    padding: 10px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
}

.calc-submit:hover {
    background-color: var(--black);
}

.calc-result {
    margin-top: 15px;
    text-align: center;
    font-size: 16px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination-btn {
    background-color: var(--dark-gray);
    color: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--black);
}

.pagination-pages {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-page {
    background-color: var(--dark-gray);
    color: var(--white);
    border: 1px solid var(--border-color);
    min-width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-page:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--black);
}

.pagination-page.active {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--black);
    font-weight: 600;
}

.pagination-dots {
    color: var(--white);
    padding: 0 5px;
}

/* Страница товара (product.html) */
.product-page {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.product-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .product-main {
        flex-direction: row;
        gap: 40px;
    }
}

.product-images {
    flex: 1;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: var(--gray);
    position: relative;
    cursor: zoom-in;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-arrow,
.product-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(12,12,12,0.56);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.product-gallery-arrow.prev,
.product-lightbox-arrow.prev {
    left: 12px;
}

.product-gallery-arrow.next,
.product-lightbox-arrow.next {
    right: 12px;
}

.product-gallery-arrow:hover,
.product-lightbox-arrow:hover {
    background: rgba(20,20,20,0.88);
    border-color: rgba(255,255,255,0.26);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-thumb.active {
    border-color: var(--orange);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-price-block {
    margin-bottom: 20px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--orange);
}

.product-old-price {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
    margin-left: 10px;
}

.product-meta-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.product-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.product-meta-label,
.product-section-label,
.size-selector h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.58);
}

.product-meta-value {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.94);
    text-align: right;
}

.size-selector {
    margin-bottom: 20px;
}

.product-section-label,
.size-selector h3 {
    margin-bottom: 10px;
}

.sizes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size {
    background-color: var(--gray);
    border: 1px solid var(--border-color);
    width: auto;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    white-space: nowrap;
    padding: 0 14px;
}

.size:hover {
    border-color: var(--orange);
}

.size.selected {
    background-color: var(--orange);
    color: var(--black);
    border-color: var(--orange);
}

.size.recommended {
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.size.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.shoe-size-helper {
    margin: 14px 0 6px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.08);
}

.shoe-size-trigger-wrap {
    margin: 6px 0 6px;
    position: relative;
    z-index: 2;
}

.shoe-size-open-btn {
    min-width: 168px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.shoe-size-open-btn:hover {
    color: var(--white);
}

.shoe-size-modal {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.shoe-size-modal[hidden] {
    display: none !important;
}

#size-calculator-modal[hidden] {
    display: none !important;
}

.shoe-size-modal.active {
    opacity: 1;
}

.shoe-size-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(4px);
}

.shoe-size-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.shoe-size-modal.active .shoe-size-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.shoe-size-modal .shoe-size-helper {
    margin: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.98), rgba(12,12,12,0.98));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.clothing-size-helper-form .shoe-size-helper-field {
    flex: 1 1 calc(50% - 6px);
}

.clothing-size-helper .calc-submit {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    margin-top: 0;
}

.clothing-size-helper .calc-submit:hover {
    background: rgba(255,255,255,0.04);
    color: var(--white);
    border-color: rgba(255,255,255,0.28);
}

.calc-submit,
.calc-submit:hover,
.calc-submit:active,
.calc-submit:focus {
    color: var(--white) !important;
}

.clothing-size-helper .calc-result {
    margin-top: 14px;
}

.shoe-size-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.shoe-size-close:hover {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.08);
}

.shoe-size-helper-header {
    margin-bottom: 8px;
}

.shoe-size-helper-header h4 {
    margin-bottom: 4px;
    font-size: 16px;
    color: var(--white);
}

.shoe-size-helper-header p {
    font-size: 12px;
    color: rgba(255,255,255,0.68);
    line-height: 2;
}

.shoe-size-helper-form {
    display: flex;
    gap: 2x;
    align-items: flex-end;
    flex-wrap: wrap;
}

.shoe-size-helper-field {
    flex: 1 1 100px;
    margin-top: 0;
}

.shoe-size-helper-field label {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    color: rgba(255,255,255,0.76);
}

.shoe-size-helper-field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background-color: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--white);
    font-size: 15px;
}

.shoe-size-helper-field input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.32);
}

.shoe-size-helper-submit {
    height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background-color: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.shoe-size-helper-submit:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
    background: rgba(255,255,255,0.04);
}

.shoe-size-helper-result {
    margin-top: 10px;
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 12px;
    background-color: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    color: var(--white);
}

.shoe-size-helper-result strong {
    font-size: 17px;
}

.shoe-size-helper-result.error {
    color: #ffb8b8;
    border-color: rgba(255, 125, 125, 0.24);
}

.shoe-size-helper-hint,
.shoe-size-helper-note {
    font-size: 13px;
    color: rgba(255,255,255,0.68);
    line-height: 1.5;
}

@media (max-width: 767px) {
    .shoe-size-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .shoe-size-dialog {
        width: 100%;
    }

    .shoe-size-helper {
        padding: 14px;
    }

    .shoe-size-helper-form {
        flex-direction: column;
        align-items: stretch;
    }

    .shoe-size-helper-submit {
        width: 100%;
    }

    .clothing-size-helper-form .shoe-size-helper-field {
        flex-basis: 100%;
    }
}

.product-description {
    margin-bottom: 20px;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--orange);
}

.product-description p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

/* Кнопки на странице товара */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

@media (max-width: 767px) {
    .product-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--dark-gray);
        padding: 15px 20px;
        border-top: 1px solid var(--border-color);
        z-index: 100;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
        margin-top: 0;
    }
    body {
        padding-bottom: 80px;
    }
}

.btn-add-to-cart {
    flex: 2;
    background-color: var(--orange);
    color: var(--black);
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart:hover {
    background-color: var(--white);
}

.btn-add-to-favorite {
    flex: 0 0 60px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--white);
    font-size: 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-to-favorite.active {
    color: #ff4757;
    border-color: #ff4757;
}

.btn-add-to-favorite:hover {
    border-color: var(--orange);
}

/* Смотрите также */
.also-like {
    margin-top: 60px;
}

.also-like h2 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}

.also-like-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .also-like-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

.also-like-card {
    background-color: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.also-like-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

.also-like-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.also-like-info {
    padding: 12px;
}

.also-like-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.also-like-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--orange);
}

/* Страница профиля */
.profile-page {
    padding: 120px 0 60px;
    min-height: 70vh;
    background-color: var(--black);
}

.profile-page .profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    background-color: var(--dark-gray);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--black);
}

.profile-info h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-info p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--orange);
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.profile-card {
    background-color: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.profile-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: rgba(255,255,255,0.6);
}

.info-value {
    font-weight: 500;
}

.address-edit {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.address-edit input {
    flex: 1;
    background-color: var(--gray);
    border: 1px solid var(--border-color);
    color: var(--white);
    padding: 10px;
    border-radius: 4px;
}

.btn-submit.small {
    padding: 10px 20px;
    font-size: 14px;
    background-color: var(--orange);
    color: var(--black);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.order-history .order-item {
    background-color: var(--gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
}

.favorites-profile .favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.favorite-item-profile {
    background-color: var(--gray);
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    padding: 8px;
}

.favorite-item-profile img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.favorite-item-profile h4 {
    font-size: 11px;
    margin: 6px 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-item-profile .product-price-container {
    justify-content: center;
    margin: 4px 0;
}

.remove-fav {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--white);
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-fav:hover {
    background-color: #ff4757;
    border-color: #ff4757;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.logout-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background-color: #ff4757;
    border-color: #ff4757;
}

.back-to-catalog-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.back-to-catalog-btn:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--black);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background-color: var(--black);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-info,
.footer-contacts {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 0;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.footer-left h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-logo {
    max-width: 210px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .logo-placeholder {
        margin-left: -6px;
    }

    .logo {
        height: 58px;
        max-width: 240px;
    }

    .mobile-menu-logo {
        height: 46px;
        max-width: 215px;
    }

    .footer-logo {
        max-width: 180px;
    }
}

.footer-info h4,
.footer-contacts h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--orange);
    min-height: 20px;
    line-height: 1.2;
}

.footer-info,
.footer-contacts {
    align-self: start;
}

.footer-info ul {
    list-style: none;
}

.footer-info li {
    margin-bottom: 10px;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: var(--orange);
}

.footer-contacts p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Модальное окно товара */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3001;
}

.product-modal .modal-content {
    position: relative;
    background-color: var(--dark-gray);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 3002;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--white);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: var(--orange);
    color: var(--black);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

.product-gallery {
    padding: 30px;
    background-color: var(--black);
    border-right: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .product-gallery {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.main-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--orange);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.product-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.product-category {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-lightbox[hidden] {
    display: none !important;
}

.product-lightbox.active {
    opacity: 1;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
}

.product-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox-dialog img {
    width: 100%;
    max-height: 86vh;
    object-fit: contain;
    transform: translate(0, 0) scale(1);
    transition: transform 0.12s ease-out;
    transform-origin: center center;
    will-change: transform;
    touch-action: none;
    cursor: zoom-in;
}

.product-lightbox.is-zoomed .product-lightbox-dialog img {
    cursor: grab;
}

.product-lightbox.is-panning .product-lightbox-dialog img {
    cursor: grabbing;
}

.product-lightbox-toolbar {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-lightbox-close,
.product-lightbox-zoom {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(16,16,16,0.82);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-lightbox-close:hover,
.product-lightbox-zoom:hover {
    background: rgba(28,28,28,0.96);
    border-color: rgba(255,255,255,0.26);
}

@media (max-width: 768px) {
    .product-meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 11px 12px;
    }

    .product-meta-value {
        text-align: left;
        font-size: 14px;
    }

    .user-dropdown {
        min-width: 176px;
        right: -6px;
    }

    .product-gallery-arrow {
        width: 32px;
        height: 32px;
        top: auto;
        bottom: 12px;
        transform: none;
    }

    .product-lightbox {
        padding: 10px;
    }

    .product-lightbox-toolbar {
        top: 12px;
        right: 12px;
        gap: 8px;
    }

    .product-lightbox-dialog {
        width: 100%;
    }

    .product-lightbox-arrow {
        width: 34px;
        height: 34px;
    }

    .product-lightbox-close,
    .product-lightbox-zoom {
        width: 38px;
        height: 38px;
    }
}

.modal-price-container {
    font-size: 24px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 25px;
}

.modal-price-container .product-price,
.modal-price-container .discount-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--orange);
}
.modal-price-container .old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 8px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.add-to-cart-btn {
    flex: 1;
    background-color: var(--orange);
    color: var(--black);
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.add-to-cart-btn:hover {
    background-color: var(--white);
}

.add-to-favorite-btn {
    width: 60px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-favorite-btn.active {
    color: #ff4757;
    border-color: #ff4757;
}

.add-to-favorite-btn:hover {
    border-color: #ff4757;
}

/* Адаптация модального окна для мобильных устройств */
@media (max-width: 768px) {
    .product-modal .modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .product-gallery {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .product-details {
        flex: 1;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .modal-actions {
        margin-top: auto;
        margin-bottom: 0;
        position: sticky;
        bottom: 0;
        background-color: var(--dark-gray);
        padding: 15px 0 0 0;
        border-top: 1px solid var(--border-color);
        gap: 12px;
    }

    .add-to-cart-btn {
        padding: 14px;
        font-size: 16px;
    }

    .add-to-favorite-btn {
        width: 56px;
        font-size: 24px;
    }

    .product-description {
        margin-bottom: 20px;
    }
}

/* Боковые панели корзины и избранного */
.cart-sidebar,
.favorites-sidebar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--dark-gray);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
}

.cart-sidebar {
    right: -100%;
}

.favorites-sidebar {
    left: -100%;
    border-right: 1px solid var(--border-color);
}

.cart-sidebar.active {
    right: 0;
}

.favorites-sidebar.active {
    left: 0;
}

.cart-header,
.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.cart-header h3,
.favorites-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
}

.close-cart,
.close-favorites {
    background: none;
    border: none;
    color: var(--black);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover,
.close-favorites:hover {
    color: var(--orange);
}

.cart-items,
.favorites-items {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
}

.empty-cart,
.empty-favorites {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.empty-cart i,
.empty-favorites i {
    font-size: 48px;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    margin-bottom: 12px;
}

.cart-item-image {
    width: 84px;
    height: 104px;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    flex: 0 0 auto;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.cart-item-brand {
    font-size: 9px;
    color: var(--orange);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.cart-item-size {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cart-item-price {
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 12px;
    font-size: 15px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--gray);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    font-size: 14px;
}

.quantity-btn:hover {
    background-color: var(--orange);
    color: var(--black);
}

.cart-item-quantity {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
}

.remove-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 999px;
}

.remove-item:hover {
    color: var(--orange);
    border-color: rgba(255,107,0,0.45);
}

.cart-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}

.delivery-info {
    background: rgba(255, 107, 0, 0.06);
    border: 1px solid rgba(255, 107, 0, 0.12);
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.delivery-info h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--orange);
}

.delivery-info p {
    font-size: 12px;
    margin-bottom: 3px;
    color: rgba(29, 25, 22, 0.88);
}

.delivery-info .small {
    font-size: 11px;
    color: rgba(29, 25, 22, 0.7);
}

.payment-methods {
    display: none !important;
}

.payment-methods h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.payment-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    background: #000;
    padding: 10px 12px;
    border-radius: 12px;
    flex: 1;
    min-width: 88px;
    min-height: 74px;
    border: 1px solid rgba(255,255,255,0.08);
}

.payment-icon i {
    font-size: 18px;
    color: var(--orange);
}

.payment-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.checkout-btn {
    width: 100%;
    background-color: #25D366;
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    .cart-items,
    .favorites-items {
        padding: 16px;
    }

    .cart-footer {
        padding: 12px 14px;
    }

    .cart-total {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .delivery-info {
        padding: 9px 10px;
        margin-bottom: 10px;
    }

    .delivery-info h4 {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .delivery-info p {
        font-size: 11px;
        margin-bottom: 2px;
    }
}

/* Избранное */
.favorites-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.favorite-item {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: var(--transition);
}

.favorite-item:hover {
    border-color: rgba(211, 93, 43, 0.45);
    transform: translateY(-2px);
}

.favorite-item-media {
    flex: 0 0 96px;
    width: 96px;
    display: flex;
}

.favorite-item-image-wrap {
    width: 100%;
    height: 100%;
    min-height: 116px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.favorite-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.favorite-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.favorite-item-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.favorite-item-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.favorite-item-size {
    margin: 0 0 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.02em;
}

.favorite-item-price {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--orange);
}

.favorite-item-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.favorite-item-btn {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 999px;
    white-space: nowrap;
}

.favorite-item-btn:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--black);
}

.remove-favorite-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    background: var(--white);
    color: rgba(29, 25, 22, 0.84);
    border: 1px solid rgba(29, 25, 22, 0.14);
    padding: 0;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-favorite-btn:hover {
    color: var(--orange-dark);
    border-color: rgba(207, 132, 81, 0.34);
    background: rgba(228, 160, 111, 0.14);
}

@media (max-width: 480px) {
    .favorite-item {
        gap: 10px;
        padding: 10px;
        border-radius: 16px;
    }

    .favorite-item-media {
        flex-basis: 82px;
        width: 82px;
    }

    .favorite-item-image-wrap {
        min-height: 98px;
        padding: 8px;
        border-radius: 12px;
    }

    .favorite-item-content {
        gap: 10px;
    }

    .favorite-item-name {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .favorite-item-size {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .favorite-item-price {
        font-size: 14px;
    }

    .favorite-item-btn {
        padding: 7px 10px;
        font-size: 9px;
    }

    .remove-favorite-btn {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }
}

/* Скелетон */
.skeleton {
    background: linear-gradient(90deg, var(--dark-gray) 25%, var(--gray) 50%, var(--dark-gray) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border: none;
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    height: 250px;
    background-color: var(--gray);
}

.skeleton-line {
    background-color: var(--gray);
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Стили для страницы checkout */
.checkout-page {
    padding-top: 120px;
    background-color: var(--black);
    min-height: 100vh;
}

.checkout-main {
    padding: 40px 0 80px;
}

.checkout-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .checkout-page {
        padding-top: 100px;
    }
    .checkout-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .checkout-delivery-note {
        margin-top: 14px;
        padding: 12px;
    }
    .checkout-main .submit-order-btn {
        padding: 14px;
        font-size: 14px;
    }
}

.checkout-cart {
    background-color: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.checkout-cart h2,
.checkout-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--orange);
}

.checkout-cart-items {
    max-height: 520px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.checkout-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.checkout-cart-item .cart-item-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.cart-item-brand {
    font-size: 12px;
    color: var(--orange);
    margin-bottom: 5px;
}

.cart-item-size,
.cart-item-quantity {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--orange);
    margin-top: 5px;
    font-size: 16px;
}

.remove-item-checkout {
    position: absolute;
    top: 15px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.remove-item-checkout:hover {
    color: #ff4757;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 0;
    color: rgba(255,255,255,0.5);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    padding-top: 15px;
    border-top: 2px solid var(--orange);
    margin-top: 10px;
}

.checkout-delivery-note {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background-color: rgba(255,255,255,0.03);
}

.checkout-delivery-note h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--white);
}

.checkout-delivery-note p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.72);
}

.checkout-form {
    background-color: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 120px;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--gray);
    border: 1px solid var(--border-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.checkout-confirm-note {
    margin: 6px 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.68);
}

.checkout-main .submit-order-btn {
    width: 100%;
    background-color: var(--orange);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    letter-spacing: 0.03em;
}

.checkout-main .submit-order-btn:hover {
    background-color: var(--orange-dark);
    transform: translateY(-2px);
}

.back-to-catalog {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: var(--orange);
}

@media (max-width: 992px) {
    .checkout-form {
        position: static;
    }
}

/* Модальное окно оформления заказа */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3001;
}

.checkout-modal-content {
    position: relative;
    background-color: var(--dark-gray);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 3002;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0;
    animation: modalFadeIn 0.3s ease;
}

.close-checkout-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--white);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-checkout-modal:hover {
    background-color: var(--orange);
    color: var(--black);
}

.checkout-modal-body {
    padding: 30px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 25px;
}

.checkout-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--orange);
}

.checkout-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.form-section {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--orange);
}

.order-summary {
    background-color: var(--gray);
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.order-summary-items {
    margin-bottom: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
    padding-top: 10px;
    margin-top: 5px;
    border-top: 2px solid var(--orange);
}

.checkout-terms {
    margin: 15px 0;
    font-size: 11px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

.checkout-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.submit-order-btn {
    flex: 2;
    background-color: #25D366;
    color: var(--white);
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-order-btn:hover {
    background-color: #1da851;
}

.back-to-cart-btn {
    flex: 1;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--white);
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.back-to-cart-btn:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--black);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Адаптивность для таблиц в админ-панели */
@media (max-width: 768px) {
    .products-table {
        table-layout: fixed;
    }

    .products-table th,
    .products-table td {
        padding: 10px 8px;
        vertical-align: middle;
    }

    .products-table .product-thumb {
        width: 44px;
        height: 44px;
    }

    .products-table .action-btn {
        padding: 6px 8px;
        margin-right: 4px;
        font-size: 12px;
    }

    .banner-item {
        gap: 12px;
        justify-content: space-between;
    }

    .banner-item img {
        width: 72px;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Мобильный футер – две колонки */
@media (max-width: 768px) {
    .footer .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer .footer-left {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .footer .footer-info {
        grid-column: 1 / 2;
        grid-row: 2;
    }
    .footer .footer-contacts {
        grid-column: 2 / 3;
        grid-row: 2;
        align-self: start;
    }
    .footer .footer-left {
        margin-bottom: 0;
    }
    .footer .footer-info ul {
        margin-top: 0;
    }
    .footer .footer-info h4,
    .footer .footer-contacts h4 {
        margin-bottom: 10px;
        font-size: 14px;
        min-height: unset;
    }
    .footer .footer-info li,
    .footer .footer-contacts p {
        font-size: 12px;
    }
    .footer .footer-logo {
        max-width: 100px;
        margin-bottom: 5px;
    }
.footer .footer-left p {
        font-size: 12px;
        margin-bottom: 0;
    }
}

/* ===== Final Palette + Catalog Cleanup ===== */
.home-page {
    padding-top: 74px;
}

.hero-slider {
    margin-top: 0;
    background-color: var(--surface-soft);
}

body,
.catalog-page,
.product-page,
.profile-page,
.checkout-page,
.login-page,
.auth-page {
    background-color: var(--white);
    color: var(--black);
}

.hero-slide::before,
.banner-slide::before {
    background: linear-gradient(180deg, rgba(29, 25, 22, 0.08), rgba(29, 25, 22, 0.22));
}

.mobile-menu,
.user-dropdown,
.filter-dropdown,
.mobile-filters-panel,
.cart-sidebar,
.favorites-sidebar,
.product-modal .modal-content,
.checkout-form,
.checkout-cart,
.profile-card,
.profile-orders,
.order-card,
.footer {
    background-color: var(--surface-soft);
    color: var(--black);
    border-color: var(--border-color);
}

.mobile-menu,
.footer,
.cart-sidebar,
.favorites-sidebar,
.product-modal .modal-content {
    box-shadow: 0 16px 40px rgba(29, 25, 22, 0.08);
}

.mobile-menu-header h2,
.mobile-nav-parent,
.mobile-nav-link,
.user-dropdown a,
.close-menu,
.nav-links a,
.footer,
.footer a,
.footer p,
.footer li,
.footer h4,
.catalog-header h1,
.catalog-description,
.product-title,
.product-meta-label,
.product-meta-value,
.checkout-title,
.checkout-label,
.checkout-subtitle,
.checkout-confirm-note,
.profile-title,
.profile-card h2,
.profile-card p,
.order-card,
.cart-header h3,
.favorites-header h3,
.cart-item-name,
.favorite-item-name,
.favorite-item-brand,
.cart-item-brand,
.cart-item-size,
.profile-link-card,
.empty-state,
.no-products {
    color: var(--black);
}

.footer-bottom,
.catalog-description,
.product-short-description,
.profile-card .muted,
.cart-item-brand,
.cart-item-size,
.favorite-item-brand,
.checkout-confirm-note,
.checkout-delivery-note,
.register-link,
.back-link,
.auth-subtitle {
    color: var(--text-muted);
}

.mobile-nav-parent:hover,
.mobile-nav-link:hover,
.close-menu:hover,
.footer a:hover,
.nav-links a:hover,
.user-dropdown a:hover {
    color: var(--orange-dark);
}

.filter-item,
.filter-select,
.price-input,
.checkout-input,
.checkout-textarea,
.profile-card input,
.profile-card textarea,
.product-modal input,
.product-modal select,
.product-modal textarea {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--border-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.new-arrivals .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-grid > *,
.product-card,
.product-card-media,
.product-info,
.product-name {
    min-width: 0;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(29, 25, 22, 0.05);
}

.product-card:hover {
    box-shadow: 0 16px 38px rgba(29, 25, 22, 0.08);
}

.product-image-container {
    background-color: var(--surface-elevated);
}

.product-image-overlay {
    background: rgba(29, 25, 22, 0.32);
}

.product-preview-line {
    background: rgba(29, 25, 22, 0.12);
}

.product-preview-line.active .product-preview-line-fill {
    background: var(--orange);
}

.product-info {
    color: var(--black);
}

.product-name,
.product-brand,
.product-category {
    color: var(--black);
}

.product-price,
.discount-price,
.price,
.cart-item-price,
.favorite-item-price,
.product-price-large,
.product-detail-price {
    color: #cb6623;
}

.old-price {
    color: rgba(29, 25, 22, 0.42);
}

.favorite-btn-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(29, 25, 22, 0.08);
    color: var(--black);
}

.favorite-btn-card.active {
    color: #da6d61;
}

.product-badge {
    background: rgba(223, 147, 95, 0.18);
    border: 1px solid rgba(203, 123, 67, 0.24);
    color: #985222;
}

.catalog-page .product-card.compact-card {
    background-color: var(--surface-soft);
    border: 1px solid rgba(29, 25, 22, 0.08);
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(29, 25, 22, 0.04);
}

.catalog-page .product-card.compact-card .product-image-container {
    background-color: var(--gray);
}

.catalog-page .product-card.compact-card .product-info {
    padding: 12px 12px 14px;
}

.catalog-page .product-card.compact-card .product-name {
    color: var(--black);
}

.checkout-page,
.profile-page,
.catalog-page,
.product-page {
    background-color: var(--white);
}

.checkout-page {
    padding-top: 98px;
}

.checkout-form,
.checkout-cart,
.profile-card,
.profile-orders,
.order-card,
.product-details,
.cart-footer,
.favorites-footer {
    border: 1px solid var(--border-color);
}

.checkout-form,
.checkout-cart,
.profile-card,
.product-details {
    background-color: var(--surface-soft);
}

.submit-order-btn,
.checkout-btn,
.add-to-cart-btn,
.back-to-cart-btn,
.pagination-btn:hover:not(:disabled),
.pagination-page.active,
.pagination-page:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--black);
}

.product-page .size,
.size-option,
.quantity-btn,
.pagination-btn,
.pagination-page,
.profile-action-btn {
    background-color: var(--surface-soft);
    color: var(--black);
    border-color: var(--border-color);
}

.footer {
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    border-top: 1px solid rgba(29, 25, 22, 0.08);
}

.home-page .homepage-mobile-track {
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 2px;
}

@media (max-width: 767px) and (pointer: fine) {
    .home-page .homepage-mobile-track {
        cursor: grab;
    }

    .home-page .homepage-mobile-track.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
    }
}

@media (min-width: 768px) {
    .products-grid,
    .new-arrivals .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .products-grid,
    .new-arrivals .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .home-page {
        padding-top: 70px;
    }

    .hero-slider {
        margin-top: 0;
    }

    .checkout-page {
        padding-top: 88px;
    }
}

@media (max-width: 480px) {
    .home-page {
        padding-top: 68px;
    }

    .hero-slider {
        margin-top: 0;
    }

    .logo {
        height: 55px;
        max-width: 230px;
    }

    .mobile-menu-logo {
        height: 42px;
        max-width: 200px;
    }

    .footer-logo {
        max-width: 172px;
    }
}

/* ===== Targeted UI/UX fixes ===== */
.account-btn {
    appearance: none;
    padding: 0;
}

.user-dropdown {
    background: var(--white);
    border: 1px solid rgba(29, 25, 22, 0.12);
    box-shadow: 0 18px 38px rgba(29, 25, 22, 0.14);
    backdrop-filter: none;
}

.user-menu:focus-within .user-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
}

.user-menu.is-open .user-dropdown,
.user-menu:not(.guest-mode):hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown a {
    color: var(--black);
}

.user-dropdown a:hover {
    background: rgba(228, 160, 111, 0.14);
    color: var(--orange-dark);
    transform: none;
}

.close-menu,
.mobile-nav-parent,
.mobile-submenu .mobile-nav-link {
    color: var(--black);
}

.mobile-submenu .mobile-nav-link {
    color: rgba(29, 25, 22, 0.92);
}

.mobile-submenu .mobile-nav-link:hover,
.mobile-submenu .mobile-nav-link:focus-visible {
    color: var(--orange-dark);
}

.slider-prev,
.slider-next {
    display: none !important;
}

.home-page .homepage-mobile-track,
.home-page .homepage-mobile-track .product-card,
.home-page .homepage-mobile-track .product-info,
.home-page .homepage-mobile-track .product-info * {
    touch-action: auto;
}

.home-page .homepage-mobile-track .product-card-media {
    touch-action: pan-y;
}

.size-calc-btn {
    background: var(--surface-soft);
    color: var(--black);
    border: 1px solid rgba(29, 25, 22, 0.14);
    box-shadow: none;
}

.size-calc-btn:hover,
.size-calc-btn:active,
.size-calc-btn:focus-visible {
    background: rgba(228, 160, 111, 0.16);
    color: var(--black);
    border-color: rgba(207, 132, 81, 0.28);
}

.calc-submit {
    background-color: var(--orange);
    color: var(--black);
}

.calc-submit:hover {
    background-color: var(--orange-dark);
    color: var(--black);
}

.product-meta-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 237, 0.96));
    border: 1px solid rgba(29, 25, 22, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(29, 25, 22, 0.05);
}

.product-meta-label {
    color: var(--text-muted);
}

.product-meta-value {
    color: var(--black);
}

.size.selected {
    background-color: rgba(228, 160, 111, 0.22);
    color: var(--black);
    border-color: var(--orange-dark);
    box-shadow: 0 0 0 2px rgba(207, 132, 81, 0.18), 0 10px 22px rgba(29, 25, 22, 0.08);
}

.size.disabled {
    background-color: #f0ebe4;
    color: rgba(29, 25, 22, 0.42);
    border-style: dashed;
}

.btn-add-to-favorite {
    background-color: var(--white);
    color: var(--black);
}

.btn-add-to-favorite:hover {
    background-color: rgba(228, 160, 111, 0.16);
    color: var(--orange-dark);
}

.favorite-item {
    background: var(--surface-soft);
    border: 1px solid rgba(29, 25, 22, 0.08);
}

.favorite-item-image-wrap {
    background: var(--gray);
}

.favorite-item-size,
.cart-item-size,
.cart-item-quantity,
.checkout-confirm-note,
.checkout-delivery-note,
.profile-info p,
.stat-label,
.info-label,
.empty-cart-message {
    color: var(--text-muted);
}

.favorite-item-btn,
.logout-btn,
.remove-fav,
.back-to-catalog-btn {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(29, 25, 22, 0.12);
}

.favorite-item-btn:hover,
.logout-btn:hover,
.remove-fav:hover,
.back-to-catalog-btn:hover {
    color: var(--black);
}

.checkout-form label,
.checkout-form input,
.checkout-form textarea,
.back-link,
.product-description p {
    color: var(--black);
}

.checkout-form input,
.checkout-form textarea,
.address-edit input {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid rgba(29, 25, 22, 0.12);
}

@media (max-width: 767px) {
    .home-page .homepage-mobile-section + .homepage-mobile-section {
        margin-top: 42px;
    }

    .home-page .homepage-mobile-track {
        grid-auto-columns: clamp(212px, 80vw, 248px);
        gap: 18px;
    }

    .home-page .homepage-mobile-track .product-preview-lines {
        pointer-events: none;
    }
}
