/* header.css - Глобальные стили, шапка, меню, подвал, каталог, корзина и секции главной страницы */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Manrope:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #ffffff; /* Максимально чистый белый фон */
    --text-color: #1a1a1a; /* Мягкий черный для контраста и легкости чтения */
    --accent-color: #8a1c1c; /* Твой акцентный цвет сохранен */
    --btn-text: #ffffff;
    --font-main: 'Manrope', sans-serif; /* Воздушный шрифт для текста */
    --font-heading: 'Jost', sans-serif; /* Элегантный широкий шрифт для заголовков */
    --card-bg: #ffffff;
    --dark-bg: #f9f9f9; /* Замена глухому черному фону на светло-серый */
    --dark-text: #1a1a1a; 
    --dark-muted: #888888;
    --border-light: rgba(0, 0, 0, 0.08); /* Очень легкие линии-разделители */
}

/* Базовый сброс и структура */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Анимации применяются к интерактивным элементам для оптимизации производительности */
a, button, input, .product-card, .novelties-card, .search-tag, .pop-card, .category-card, .checkout-btn, .novelties-link, .size-btn, .p-wishlist-btn, .thumb-item {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

html {
    scrollbar-gutter: stable;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    padding-top: 60px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500; /* Сделали тоньше для воздушности (было 700/800) */
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

/* =========================================
   ШАПКА (ГРИД-СИСТЕМА)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 2%;
    border-bottom: 1px solid var(--border-light);
    background-color: rgba(255, 255, 255, 0.95); /* Легкая прозрачность для шапки */
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px; /* Добавили воздуха между буквами */
    color: var(--text-color);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-height: 25px;
    width: auto;
    object-fit: contain;
}

.header-icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.header-icon-btn svg {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-icon-btn:hover {
    color: var(--accent-color);
}

.header-icon-btn:hover svg {
    transform: scale(1.15);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background-color: var(--text-color); /* Сделали бейдж стильным черным */
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Бургер-меню */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 5px;
}

.hamburger:hover span {
    background-color: var(--accent-color);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px; /* Используем целое значение */
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
    border-radius: 2px; 
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================================
   БОКОВОЕ МЕНЮ 
   ========================================= */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 80%;
    max-width: 360px;
    bottom: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    z-index: 1050;
    padding: 100px 30px 40px 30px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.05);
    will-change: transform;
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu-header {
    position: absolute;
    top: 25px;
    left: 30px;
    right: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1060;
}

.side-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.side-logo img {
    max-height: 25px;
    width: auto;
    object-fit: contain;
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu-btn:hover {
    transform: rotate(90deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* Светлый оверлей */
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.main-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-nav-list li a {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.main-nav-list li a:hover {
    color: var(--accent-color);
}

.side-menu-main .menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 25px 0;
}

.side-menu-main ul:not(.main-nav-list):not(.dropdown-menu) {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: inherit;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0;
}

.dropdown-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--text-color);
    border-bottom: 1.5px solid var(--text-color);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.has-dropdown.open .dropdown-arrow {
    transform: rotate(-135deg);
}

.dropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    padding-left: 15px;
    margin-top: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.has-dropdown.open .dropdown-menu {
    margin-top: 15px;
    max-height: 600px;
}

.dropdown-menu li a {
    font-family: var(--font-main) !important;
    font-size: 14px !important;
    text-transform: none !important;
    font-weight: 400 !important;
    opacity: 0.8;
}

.dropdown-menu li a:hover {
    opacity: 1;
    color: var(--text-color) !important;
}

.side-menu-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-menu-footer ul li a {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--dark-muted);
    letter-spacing: 1px;
}

.side-menu-footer ul li a:hover {
    color: var(--text-color);
}

/* =========================================
   ГЛАВНАЯ СТРАНИЦА (HERO, MARQUEE, КАТЕГОРИИ)
   ========================================= */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/hero.webp') center/cover no-repeat;
    color: #ffffff; 
}

@media (max-width: 768px) {
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/hero-m.webp') center/cover no-repeat;
    }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    font-weight: 500;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.9;
}

/* Кнопка с акцентным цветом для главного экрана */
.btn-primary {
    background-color: var(--accent-color); 
    color: #ffffff; 
    padding: 16px 45px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-color); 
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent; 
    color: #ffffff; 
    border-color: #ffffff; 
}

.marquee {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 2px;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    will-change: transform;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.section-wrapper {
    padding: 80px 5%;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

/* =========================================
   СЕКЦИЯ "НОВИНКИ" (ИЗБАВИЛИСЬ ОТ ЧЕРНОГО)
   ========================================= */
.novelties-section {
    background-color: var(--bg-color);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.novelties-header {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 30px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.novelties-grid.favorites-grid {
    grid-template-columns: repeat(2, 1fr);
}

.novelties-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.novelties-link {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.6;
    border-bottom: 1px solid transparent;
}

.novelties-link:hover {
    opacity: 1;
    border-bottom-color: var(--text-color);
}

.novelties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--bg-color);
    width: 100%;
    gap: 0;
}

.novelties-card {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

.novelties-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.novelties-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
    will-change: transform;
}

.novelties-card:hover .novelties-img-wrapper img {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.wishlist-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.wishlist-btn.active {
    opacity: 1;
    color: var(--accent-color);
}

.wishlist-btn.active svg {
    fill: var(--accent-color);
}

.novelties-info {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.novelties-card:last-child .novelties-info {
    border-right: none;
}

.novelties-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; 
}

.novelties-price {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 400;
    opacity: 0.6;
    margin-top: auto;
}

/* =========================================
   КАТАЛОГ (МИНИМАЛИЗМ)
   ========================================= */
.catalog-page-title {
    font-size: 32px;
    font-weight: 500;
    padding: 60px 5% 30px;
    text-align: left;
    margin: 0;
    border: none;
}

.catalog-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 0 5% 80px;
}

.filter-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-sidebar ul li a {
    font-size: 13px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: opacity 0.3s, color 0.3s;
    color: var(--dark-muted);
}

.filter-sidebar ul li a:hover,
.filter-sidebar ul li a.active {
    color: var(--text-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    padding: 0;
    display: flex;          
    flex-direction: column; 
    width: 100%;
    cursor: pointer;
    height: 100%;           
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--dark-muted);
    text-align: center;
}

.product-info {
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    flex-grow: 1;           
}

.product-name {
    font-size: 14px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;  
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 13px;
    font-family: var(--font-main);
    color: var(--text-color);
    opacity: 0.6;
    margin-top: auto;       
}

.btn-add {
    display: none;
}

/* =========================================
   МОДАЛЬНОЕ ОКНО ТОВАРА
   ========================================= */
.modal-overlay-product {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay-product.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
}

.modal-overlay-product.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    z-index: 10;
    line-height: 1;
}

.modal-image-col {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.modal-info-col {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.modal-price {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--text-color);
}

.modal-spec-list {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-color);
}

.modal-spec-list p {
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.modal-spec-list p span {
    font-weight: 400;
    opacity: 0.6;
    font-family: var(--font-main);
}

.modal-desc {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--text-color);
}

.size-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.size-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.size-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-light);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 13px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s;
}

.size-btn.active,
.size-btn:hover {
    border-color: var(--text-color);
    background: var(--text-color);
    color: var(--bg-color);
}

.modal-add-btn {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 18px;
    border: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
    transition: background 0.3s;
}

.modal-add-btn:hover {
    background: var(--accent-color);
}

/* =========================================
   ВСПЛЫВАЮЩЕЕ ОКНО ПРОМОКОДА
   ========================================= */
.promo-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-color); 
    color: var(--text-color);
    border: 1px solid var(--border-light);
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 2000;
    display: flex;
    align-items: center;
    font-family: var(--font-main);
    font-size: 14px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.promo-popup.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-popup button {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 8px 18px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.promo-popup button:hover {
    opacity: 0.8;
}

/* =========================================
   ПОДВАЛ (СВЕТЛЫЙ)
   ========================================= */
footer {
    background-color: var(--bg-color); 
    color: var(--text-color);
    padding: 80px 8% 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    flex-shrink: 0;
    border-top: 1px solid var(--border-light); 
}

.footer-brand h3 {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.footer-brand p {
    font-size: 13px;
    color: var(--dark-muted);
    line-height: 1.6;
}

.footer-links-col h3 {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 500;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col ul li {
    font-size: 13px;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-col ul li a:hover {
    color: var(--text-color);
}

.contact-item {
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--dark-muted);
    line-height: 1.4;
}

.contact-item strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--text-color);
}

/* =========================================
   БОКОВАЯ КОРЗИНА И ПОИСК
   ========================================= */
.cart-overlay,
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7); 
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
}

.cart-overlay.active,
.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    transform: translateX(100%);
    background: var(--bg-color);
    z-index: 2501;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    border-left: 1px solid var(--border-light);
    will-change: transform;
}

.cart-panel.active {
    transform: translateX(0);
}

.cart-header {
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-color);
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 2px;
}

.close-cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.2s;
}

.close-cart-btn:hover {
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px 5%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-empty-msg {
    text-align: center;
    color: #888888;
    font-size: 14px;
    margin-top: 50px;
}

.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--bg-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.cart-item-img {
    width: 70px;
    height: 95px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #aaaaaa;
    text-align: center;
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.cart-item-size {
    font-size: 12px;
    color: var(--dark-muted);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--dark-muted);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom: 15px;
    transition: color 0.3s;
}
.cart-item-remove:hover {
    color: var(--text-color);
}

.cart-footer {
    padding: 25px 5%;
    border-top: 1px solid var(--border-light);
    background: var(--bg-color);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-total-label {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-total-price {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
}

.checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 18px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    font-family: var(--font-heading);
}

.checkout-btn:hover {
    opacity: 0.8;
}

.search-modal {
    position: absolute;
    top: 70px;
    right: 2%;
    width: 90%;
    max-width: 450px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-light);
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 2501;
    transform-origin: top right; 
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.search-overlay.active .search-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.search-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

.search-header-row svg {
    color: var(--text-color);
    opacity: 0.6;
}

.search-header-row input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 20px;
    color: var(--text-color);
    outline: none;
}

.search-header-row input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.close-modal-btn {
    background: none;
    border: 1px solid var(--border-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: background 0.2s, transform 0.2s;
}

.close-modal-btn:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
}

.search-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tag {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    padding: 8px 18px;
    font-size: 12px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-tag:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.search-section-title {
    font-size: 12px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--dark-muted);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.pop-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    text-decoration: none;
    color: var(--text-color);
}

.pop-card:hover {
    transform: translateY(-5px);
}

.pop-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #aaaaaa;
}

.pop-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pop-price {
    font-family: var(--font-main);
    font-size: 13px;
    opacity: 0.6;
}

/* ==========================================================================
   СТРАНИЦА ТОВАРА
   ========================================================================== */
.product-page-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 4% 80px;
    width: 100%;
}

.breadcrumbs {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-muted);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-heading);
}
.breadcrumbs a:hover { color: var(--text-color); }
.breadcrumbs span { color: var(--text-color); font-weight: 500; }

.product-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    display: flex;
    gap: 20px;
    position: relative; /* Ставим обычное позиционирование */
}

@media (min-width: 769px) {
    .product-gallery {
        display: block; /* Отключаем flex на десктопе */
        padding-left: 100px; /* Оставляем место под миниатюры: 80px (ширина) + 20px (gap) */
    }
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80px;
    flex-shrink: 0;
    overflow-y: auto;
    padding-right: 0; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

@media (min-width: 769px) {
    .gallery-thumbs {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0; /* Привязывает низ миниатюр строго к низу главного фото */
        max-height: none; /* Убиваем старый кривой лимит */
    }
}

/* Прячем скроллбар только на мобилках */
@media (max-width: 768px) {
    .gallery-thumbs::-webkit-scrollbar { 
        display: none; 
    }
}

/* Делаем красивый тонкий скроллбар для ПК */
@media (min-width: 769px) {
    .gallery-thumbs {
        scrollbar-width: thin; /* Для Firefox */
        scrollbar-color: #d1d1d1 transparent;
    }
    
    .gallery-thumbs::-webkit-scrollbar { 
        display: block; 
        width: 4px; 
    }
    
    .gallery-thumbs::-webkit-scrollbar-track { 
        background: transparent; 
    }
    
    .gallery-thumbs::-webkit-scrollbar-thumb { 
        background-color: #e0e0e0; 
        border-radius: 4px; 
        transition: background-color 0.3s;
    }
    
    .gallery-thumbs:hover::-webkit-scrollbar-thumb { 
        background-color: #b0b0b0; /* Темнеет при наведении */
    }
}

.thumb-item {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #f5f5f5;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Не дает миниатюрам сплющиваться, если их 20 штук */
    transition: border-color 0.2s;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active { border-color: var(--text-color); }
.thumb-item:hover { opacity: 0.8; }

.gallery-main {
    flex-grow: 1;
    width: 100%;
    aspect-ratio: 3 / 4; /* КРИТИЧНО: Жесткая фиксация пропорций. Никаких белых пустот! */
    background-color: #f5f5f5;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-details {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.p-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.p-price {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 25px;
    opacity: 0.8;
}

.p-option-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--dark-muted);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.p-option-title span { color: var(--text-color); }

.product-details .size-selector { 
    margin-bottom: 25px; 
    flex-wrap: wrap; 
}
.product-details .size-btn { 
    width: auto;
    min-width: 60px; 
    height: 45px; 
    padding: 0 15px;
}

.p-info-box {
    border: 1px solid var(--border-light);
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-heading);
    margin-bottom: 25px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}
.add-to-cart-btn {
    flex-grow: 1;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 18px 24px;
    border: none;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}
.add-to-cart-btn:hover { opacity: 0.8; }

.p-wishlist-btn {
    width: 56px;
    height: 56px;
    border: 1px solid var(--border-light);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    flex-shrink: 0;
}
.p-wishlist-btn:hover { border-color: var(--text-color); }
.p-wishlist-btn.active { color: var(--accent-color); border-color: var(--accent-color); }
.p-wishlist-btn.active svg { fill: var(--accent-color); }

.accordion { border-top: 1px solid var(--border-light); }
.accordion-item { border-bottom: 1px solid var(--border-light); }
.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
}
.accordion-icon {
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--dark-muted);
    font-size: 14px;
    line-height: 1.6;
}
.accordion-item.active .accordion-body { 
    max-height: 500px;
    padding-bottom: 20px; 
}
.accordion-body ul { list-style: none; padding-left: 0; }
.accordion-body ul li { margin-bottom: 8px; display: flex; justify-content: space-between; }
.accordion-body ul li span:last-child { font-weight: 500; color: var(--text-color); }

/* =========================================
   ИЗБРАННЫЕ КАТЕГОРИИ (СВЕТЛАЯ ПЛАШКА)
   ========================================= */
.favorites-grid .novelties-card {
    display: block;
    position: relative;
    overflow: hidden;
}

.favorites-grid .novelties-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 70%, transparent 100%);
    border: none;
    padding: 20px 15px 15px 15px;
    align-items: flex-start;
    z-index: 5;
    pointer-events: none;
    display: block;
}

.favorites-grid .novelties-name {
    color: var(--text-color); 
    white-space: normal; 
    word-wrap: break-word;
    hyphens: auto; 
    font-size: 15px; 
    line-height: 1.2;
    text-shadow: none; 
}

/* =========================================
   СТРАНИЦЫ АВТОРИЗАЦИИ (BREEZE)
   ========================================= */
.auth-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 40px 5%;
}
.auth-card {
    background: var(--bg-color);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-light);
}
.auth-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
}
.form-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border-light);
    background: transparent;
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.form-input:focus {
    border-color: var(--text-color);
}
.auth-btn {
    width: 100%;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 16px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}
.auth-btn:hover {
    opacity: 0.8;
}
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 12px;
}
.auth-links a {
    color: var(--dark-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.auth-links a:hover {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}
.auth-error {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 8px;
    display: block;
}

/* =========================================
   МОДАЛЬНОЕ ОКНО ПОДПИСКИ (СВЕТЛОЕ)
   ========================================= */
.newsletter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); 
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(5px);
}

.newsletter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    width: 90%;
    max-width: 420px;
    padding: 50px 40px 40px;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.newsletter-overlay.active .newsletter-modal {
    transform: translateY(0);
}

.newsletter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: 1px solid transparent;
    font-size: 16px;
    cursor: pointer;
    color: var(--dark-muted);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.newsletter-close:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: 2px;
}

.newsletter-digits {
    font-family: var(--font-main);
    font-weight: 500;
    letter-spacing: 0;
}

.newsletter-subtitle {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--dark-muted);
    letter-spacing: 1px;
}

.newsletter-desc {
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newsletter-input {
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
    color: var(--text-color);
    text-align: center;
}

.newsletter-input:focus {
    border-bottom-color: var(--text-color);
}

.newsletter-input::placeholder {
    color: #999;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 12px;
}

.newsletter-btn {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    opacity: 0.8;
}

.newsletter-disclaimer {
    font-family: var(--font-main);
    font-size: 10px;
    color: var(--dark-muted);
    margin-top: 25px;
    line-height: 1.5;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 1024px) {
    .novelties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .novelties-info {
        border-right: none;
    }
    footer {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
        padding: 60px 5%;
    }
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-wrapper { padding: 50px 15px; }
    .hero h1 { font-size: 2.5rem; }
    .catalog-container { grid-template-columns: 1fr; padding-bottom: 40px; }
    .filter-sidebar { margin-bottom: 20px; }
    .filter-sidebar ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0 5%;
    }
    .filter-sidebar ul li a {
        padding: 8px 18px;
        border: 1px solid var(--border-light);
        font-size: 11px;
    }
    .filter-sidebar ul li a:hover,
    .filter-sidebar ul li a.active {
        border-color: var(--text-color);
        color: var(--text-color);
    }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-info { padding: 12px 0; }
    .product-name, .product-price { font-size: 12px; }
    footer { grid-template-columns: 1fr 1fr; gap: 40px 15px; padding: 50px 20px; }
    .footer-brand h3, .footer-links-col h3 { font-size: 15px; margin-bottom: 20px; }
    footer > div:nth-child(2) { display: none; }
    .modal-content { flex-direction: column; max-height: 95vh; }
    .modal-image-col { min-height: 300px; }
    .modal-info-col { padding: 30px 20px; }
    
    .search-modal {
        position: fixed; 
        top: 70px;
        left: 50%; 
        right: auto;
        width: 95%;
        max-width: none;
        margin-top: 0;
        padding: 25px 20px;
        max-height: 85vh;
        overflow-y: auto;
        transform-origin: top center;
        transform: translateX(-50%) scale(0.95) translateY(-10px);
    }
    .search-overlay.active .search-modal { transform: translateX(-50%) scale(1) translateY(0); }
    .search-header-row input { font-size: 18px; }
    
    .popular-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-page-container { padding: 20px 4% 60px; }
    
   .product-layout { grid-template-columns: 1fr; gap: 30px; }
    
  @media (max-width: 768px) {
    .product-gallery { 
        position: relative; 
        top: 0; 
        flex-direction: column-reverse; 
        gap: 15px;
        width: 100%; /* Жесткий лимит ширины */
        max-width: 100vw;
        overflow: hidden; /* Запрещаем ломать сайт по горизонтали */
    }
    .gallery-thumbs { 
        display: flex;
        flex-direction: row; 
        width: 100%; 
        max-height: none; 
        overflow-x: auto;
        overflow-y: hidden; 
        scroll-snap-type: x mandatory; 
        padding-bottom: 0;
        flex-wrap: nowrap; /* Гарантируем, что они в один ряд */
        -webkit-overflow-scrolling: touch; /* Плавный свайп на iPhone */
        scrollbar-width: none; /* Убираем страшную полосу прокрутки */
    }
    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }
    .thumb-item { 
        width: 22%; /* Показываем ровно 4.5 фото, намекая на свайп */
        min-width: 70px; 
        aspect-ratio: 3 / 4;
        flex-shrink: 0; 
        scroll-snap-align: start; /* Картинка будет "прилипать" к левому краю */
    }
}
    .gallery-main { 
        width: 100%;
        aspect-ratio: 3 / 4; /* 100% защита от вытягивания на мобилках */
    }
    
    .p-title { font-size: 22px; }
}

@media (max-width: 480px) {
    .novelties-header { padding: 20px 15px; }
    .novelties-title { font-size: 15px; letter-spacing: 2px; }
    .novelties-link { font-size: 11px; }
    .novelties-info { padding: 15px 12px; }
    .novelties-name, .novelties-price { font-size: 12px; }
    footer { gap: 30px 10px; }
    .footer-brand { grid-column: 1 / -1; margin-bottom: -10px; }
    .promo-popup { bottom: 0; right: 0; width: 100%; justify-content: center; padding: 15px; border: none; border-top: 1px solid var(--border-light); }
    .p-actions { flex-direction: row; }
    .favorites-grid .novelties-name { font-size: 13px; letter-spacing: 0.5px; }
    .favorites-grid .novelties-info { padding: 15px 10px 10px 10px; }
}
/* =========================================
   ПЛАВАЮЩИЕ КНОПКИ МЕССЕНДЖЕРОВ
   ========================================= */
.floating-messengers {
    position: fixed;
    bottom: 30px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2400; /* Держим поверх контента, но под модалками */
}

.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.floating-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Фирменные цвета мессенджеров */
.floating-tg {
    background-color: #0088cc;
}

.floating-wa {
    background-color: #25D366;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .floating-messengers {
        bottom: 25px;
        right: 20px;
        gap: 10px;
    }
    .floating-btn {
        width: 48px;
        height: 48px;
    }
    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
}
/* =========================================
   СЕКЦИЯ РЕКОМЕНДАЦИЙ (СТРАНИЦА ТОВАРА)
   ========================================= */
.recommended-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-light);
}

.recommended-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: left;
}

/* Обертка для позиционирования стрелок */
.recommended-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Стили самих кнопок навигации */
.scroll-btn {
    position: absolute;
    top: 40%; /* Немного выше центра, чтобы компенсировать текст под фото */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    border-color: var(--text-color);
    color: var(--text-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Разносим кнопки по краям (немного вылезая за контент) */
.scroll-btn.left-btn { left: -22px; }
.scroll-btn.right-btn { right: -22px; }

.recommended-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* Плавная прокрутка по клику на кнопки */
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    -webkit-overflow-scrolling: touch; 
}

.recommended-scroll::-webkit-scrollbar {
    display: none; 
}

.recommended-card {
    flex: 0 0 auto;
    width: 260px; 
    scroll-snap-align: start; 
    border: 1px solid var(--border-light); 
}

.recommended-card .novelties-info {
    border-right: none;
    border-bottom: none;
}

/* Скрываем кнопки на телефонах и планшетах (там удобнее свайпать) */
@media (max-width: 1024px) {
    .scroll-btn { display: none; }
    .recommended-wrapper { display: block; }
}

@media (max-width: 768px) {
    .recommended-section { margin-top: 50px; padding-top: 40px; }
    .recommended-title { font-size: 18px; margin-bottom: 20px; }
    .recommended-scroll { gap: 15px; }
    .recommended-card { width: 200px; }
}
/* =========================================
   ПРАВОВАЯ ИНФОРМАЦИЯ (ФУТЕР)
   ========================================= */
.footer-legal-bottom {
    grid-column: 1 / -1; /* Растягиваем на всю ширину футера */
    margin-top: 20px;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 15px 35px;
    font-size: 11px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    color: var(--dark-muted);
}

.footer-legal-bottom a {
    transition: color 0.3s ease;
}

.footer-legal-bottom a:hover {
    color: var(--text-color);
}

/* =========================================
   БАННЕР COOKIE
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-light);
    padding: 18px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    z-index: 3500; /* Должен быть поверх всего */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    font-family: var(--font-main);
    font-size: 13px;
    width: 90%;
    max-width: 750px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-text {
    flex: 1;
    line-height: 1.5;
}

.cookie-text a {
    text-decoration: underline;
    font-weight: 600;
}

.cookie-text a:hover {
    color: var(--accent-color);
}

.cookie-btn {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: var(--accent-color);
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .footer-legal-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
        bottom: 15px;
    }
    .cookie-btn {
        width: 100%;
    }
}