/* Стильный дизайн europol — графитовый премиум */@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #C9A96E;
    --primary-dark: #B8945F;
    --primary-light: #FDF6E9;
    --black: #1A1A1A;
    --dark-gray: #2D2D2D;
    --gray: #6B7280;
    --light-gray: #F5F5F4;
    --white: #FFFFFF;
    --border-color: #E7E5E4;
    --success: #10B981;
    --warning: #F59E0B;
    
    /* Анимации */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* Контейнер */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-slow) ease forwards;
}

.animate-scale-in {
    animation: scaleIn var(--transition-normal) ease forwards;
}

/* Задержки для анимаций */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ========== HEADER ========== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border-color);
}

.header-top {
    background: var(--white);
    color: var(--black);
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.city-selector:hover {
    background: var(--light-gray);
}

.city-selector::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 100;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--black);
    font-size: 14px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.dropdown a:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.dropdown-title {
    padding: 8px 14px 12px;
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-info {
    font-size: 13px;
    color: var(--gray);
}

/* Текст города (Минск) */
.city-text {
    font-size: 14px;
    color: var(--black);
    font-weight: 500;
}

/* Жирные ссылки в верхней панели */
.top-link-bold {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    transition: color var(--transition-fast);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

.top-link-bold:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Кликовое меню (Пункты выдачи) - через чекбокс */
.click-menu-label {
    position: relative;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
}

.click-menu-label:hover {
    background: var(--light-gray);
}

.click-menu-checkbox {
    display: none;
}

.click-menu-text {
    display: flex;
    align-items: center;
}

.click-menu-label .arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform var(--transition-fast);
}

.click-menu-checkbox:checked + .click-menu-text .arrow {
    transform: rotate(180deg);
}

.click-menu-label .dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 100;
}

.click-menu-checkbox:checked ~ .dropdown {
    display: block;
}

/* Выпадающий список мессенджеров */
.messenger-dropdown {
    position: relative;
}

.dropdown-messengers {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 100;
}

.messenger-dropdown:hover .dropdown-messengers {
    display: block;
}

.messenger-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    transition: all var(--transition-fast);
}

.messenger-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.messenger-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 6px;
    font-size: 14px;
}

.header-main {
    padding: 20px 0;
}

.header-main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Левая часть с логотипом и навигацией */
.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

/* Правая часть с иконками */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Иконки в хедере */
.header-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--black);
    position: relative;
    transition: all var(--transition-fast);
}

.header-icon:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.header-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Меню пользователя */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    color: var(--black);
    cursor: pointer;
}

.user-icon:hover {
    background: var(--light-gray);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 220px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 16px;
    z-index: 1000;
    margin-top: 12px;
}

/* "Мост" для hover — заполняет зазор между иконкой и меню */
.user-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    background: transparent;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-info {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
    margin-bottom: 4px;
}

.user-email {
    font-size: 12px;
    color: var(--gray);
}

.user-dropdown a {
    display: block;
    padding: 10px 12px;
    color: var(--black);
    font-size: 14px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.user-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.logout-link {
    color: #dc3545 !important;
}

.logout-link:hover {
    background: #fff5f5 !important;
    color: #dc3545 !important;
}

.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    color: var(--black);
    position: relative;
    z-index: 1001;
}

.user-icon:hover {
    background: var(--light-gray);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 220px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 16px;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu:hover .user-dropdown {
    display: block;
}

/* Увеличиваем область hover */
.user-menu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.user-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-icon:hover {
    background: var(--primary);
    color: white;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    width: 220px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 16px;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    display: block;
}

/* Добавляем отступ чтобы меню не исчезало при наведении */
.user-menu {
    position: relative;
    padding: 10px;
    margin: -10px;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-info {
    padding: 12px;
    background: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 8px;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
}

.user-email {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
}

.user-dropdown a {
    display: block;
    padding: 10px 12px;
    color: var(--black);
    font-size: 14px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.user-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.logout-link {
    color: #dc3545 !important;
}

.logout-link:hover {
    background: #fff5f5 !important;
    color: #dc3545 !important;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.25);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
}

/* Навигация */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary);
}

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

/* Меню Купить */
.buy-menu {
    position: relative;
    padding: 16px;
    margin: -16px;
    cursor: pointer;
}

.buy-menu > span {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.buy-menu > span::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform var(--transition-fast);
}

.buy-menu:hover > span::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.buy-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    min-width: 260px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 8px;
}

/* "Мост" для hover — заполняет зазор между Купить и меню */
.buy-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.buy-menu:hover .buy-dropdown {
    display: block;
}

.buy-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.buy-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

/* Правая часть хедера */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.auth-links {
    display: flex;
    gap: 16px;
}

.auth-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: color var(--transition-fast);
}

.auth-link:hover {
    color: var(--primary);
}

.contacts-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
}

.contacts-link:hover {
    color: var(--primary);
}

/* ========== HERO SECTION ========== */
.hero {
    background: var(--white);
    color: var(--black);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
}

/* Текст по центру */
.hero-text-center {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    margin-bottom: 60px;
}

.hero-text-center h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--black);
}

.hero-text-center p {
    font-size: 18px;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* Категории в ряд */
.hero-categories-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточки категорий на главной — стиль в tasty-theme.css (.hero-category-card--tasty) */

/* ========== КАТЕГОРИИ ========== */
.categories-section {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
}

.section-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-link::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.section-link:hover::after {
    transform: translateX(4px);
}

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

.category-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.15s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.25s; }
.category-card:nth-child(5) { animation-delay: 0.3s; }
.category-card:nth-child(6) { animation-delay: 0.35s; }
.category-card:nth-child(7) { animation-delay: 0.4s; }
.category-card:nth-child(8) { animation-delay: 0.45s; }
.category-card:nth-child(9) { animation-delay: 0.5s; }
.category-card:nth-child(10) { animation-delay: 0.55s; }

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.3);
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
}

/* ========== PRODUCTS SECTION ========== */
.section {
    padding: 80px 0;
}

.products-section {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
    border: 1px solid var(--primary);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 16px;
    margin: 12px 12px 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform var(--transition-slow);
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
}

.product-image-placeholder span {
    font-size: 48px;
    margin-bottom: 8px;
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--primary);
    color: var(--white);
}

.badge-popular {
    background: var(--black);
    color: var(--white);
}

.badge-sale {
    background: #e53935;
    color: var(--white);
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-link {
    display: block;
    text-decoration: none;
    flex: 1;
}

.product-link:hover .product-name {
    color: var(--primary);
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Характеристики в карточке */
.product-quick-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.quick-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.quick-spec-label {
    color: #999;
}

.quick-spec-value {
    color: #333;
    font-weight: 500;
}

.quick-spec-bar {
    width: 60px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.quick-spec-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

/* Варианты фасовки в карточке */
.product-variants-preview {
    margin-bottom: 14px;
}

.variants-preview-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    display: block;
}

.variants-preview-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-preview-btn {
    padding: 8px 14px;
    border: 2px solid #e8e8e8;
    background: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 70px;
}

.variant-preview-btn:hover {
    border-color: var(--primary);
}

.variant-preview-btn.active {
    border-color: var(--primary);
    background: #fff3e0;
    color: #e65100;
}

.variant-preview-size {
    font-size: 12px;
}

.variant-preview-price {
    font-size: 13px;
    font-weight: 600;
}

.variant-preview-old-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.variant-preview-discount {
    font-size: 10px;
    color: #e53935;
    font-weight: 600;
}

/* Цена и кнопки */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 6px;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action.btn-cart {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    width: auto;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
}

.btn-action.btn-cart:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Кнопка быстрой покупки */
.btn-buy-now {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy-now:hover {
    background: var(--primary-dark);
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    background: var(--light-gray);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
}

.tab {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-radius: 10px;
    transition: all var(--transition-fast);
    border: none;
    background: transparent;
}

.tab.active {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab:hover:not(.active) {
    color: var(--black);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* ========== REVIEWS SECTION ========== */
.reviews-section {
    background: var(--light-gray);
}

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

.review-card {
    background: var(--white);
    padding: 28px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

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

.review-author {
    font-weight: 600;
    font-size: 15px;
}

.review-rating {
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.review-product {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ========== CONTENT SECTION ========== */
.content-section {
    background: var(--white);
}

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

.content-card {
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--primary);
}

.content-image {
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-image__placeholder {
    font-size: 48px;
    opacity: 0.35;
}

.content-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.review-product {
    display: block;
    text-decoration: none;
}

.review-product:hover {
    text-decoration: underline;
}

.home-section-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
    font-size: 15px;
}

.home-section-empty a {
    color: var(--primary);
    font-weight: 600;
}

.content-info {
    padding: 24px;
}

.content-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--black);
}

.content-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.content-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray);
}

/* ========== BANNER SECTION ========== */
.banner-section {
    padding: 0;
    background: var(--black);
}

.banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
}

.banner-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.banner h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.banner p {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 24px;
    line-height: 1.6;
}

.banner-image {
    background: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    border-left: 1px solid rgba(201, 169, 110, 0.15);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer-about {
    max-width: 320px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(201, 169, 110, 0.2);
}

.footer-desc {
    font-size: 14px;
    opacity: 0.6;
    line-height: 1.7;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.6;
    color: var(--white);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(4px);
    text-shadow: 0 0 8px rgba(201, 169, 110, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.5;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--black);
}

.btn-white:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-image {
        order: -1;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid,
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .banner {
        grid-template-columns: 1fr;
    }
    
    .banner-image {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-main .container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-item {
        padding: 16px 12px;
    }
    
    .feature-item h3 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        white-space: nowrap;
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ========== НОВАЯ КАРТОЧКА ТОВАРА V2 ========== */
.product-card-v2 {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

/* Верхний ряд: purpose + рейтинг */
.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 16px 0;
    gap: 12px;
    min-height: 100px;
    flex-shrink: 0;
}

.product-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.product-purpose {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
    min-height: 1.2em;
}

.product-short-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    margin: 0;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.product-type {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    line-height: 1.3;
    min-height: 1.3em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-card-spacer {
    flex: 1 1 auto;
    min-height: 4px;
}

.product-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.product-rating:hover {
    transform: scale(1.05);
}

.rating-stars {
    display: flex;
    gap: 1px;
}

.rating-stars .star {
    font-size: 14px;
    color: #ddd;
    line-height: 1;
}

.rating-stars .star.filled {
    color: #FFB800;
}

.rating-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

.product-reviews-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.product-reviews-count:hover {
    color: var(--primary);
}

/* Фото товара */
.product-image-v2 {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 12px;
    margin: 12px 12px 0;
    display: block;
}

.product-image-v2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform var(--transition-slow);
}

.product-card-v2:hover .product-image-v2 img {
    transform: scale(1.05);
}

.product-image-placeholder-v2 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
}

.product-image-placeholder-v2 span {
    font-size: 48px;
    margin-bottom: 8px;
}

/* Бейджи */
.product-badges-v2 {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.badge-v2 {
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new-v2 {
    background: var(--primary);
    color: var(--white);
}

.badge-popular-v2 {
    background: var(--black);
    color: var(--white);
}

.badge-sale-v2 {
    background: #e53935;
    color: var(--white);
}

/* Описание */
.product-desc-v2 {
    padding: 12px 16px 0;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
    max-height: 3em;
    flex-shrink: 0;
}

/* Фасовка + упаковка */
.product-variants-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px 0;
    min-height: 52px;
    flex-shrink: 0;
}

.product-variants-v2 {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.variant-btn-v2 {
    padding: 6px 12px;
    border: 1.5px solid #e8e8e8;
    background: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

.variant-btn-v2:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.variant-btn-v2.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.product-packaging-v2 {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

/* Футер карточки: цена + hover-действия */
.product-footer-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 16px;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
}

.product-price-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: transform var(--transition-fast);
}

.product-price-btn:hover {
    transform: scale(1.03);
}

.price-label {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-price-v2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.5px;
}

/* Hover-действия (избранное, сравнение) */
.product-hover-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.product-card-v2:hover .product-hover-actions {
    opacity: 1;
    transform: translateX(0);
}

.hover-action-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--white);
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
}

.hover-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Адаптив для карточки v2 */
@media (max-width: 768px) {
    .product-hover-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .product-card-header {
        padding: 12px 12px 0;
    }
    
    .product-short-name {
        font-size: 14px;
    }
    
    .current-price-v2 {
        font-size: 18px;
    }
}
