/* Классы для разных устройств */
.device-xl-desktop .product-card {
    min-height: 380px;
}

.device-desktop .product-card {
    min-height: 360px;
}

.device-laptop .product-card {
    min-height: 340px;
}

.device-tablet .product-card {
    min-height: 320px;
}

.device-mobile .product-card {
    min-height: 300px;
}

.device-small-mobile .product-card {
    min-height: 280px;
}

/* Адаптивные отступы для разных устройств */
.device-tablet .container,
.device-mobile .container,
.device-small-mobile .container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Адаптивная типографика */
.device-mobile h1,
.device-small-mobile h1 {
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
}

.device-mobile p,
.device-small-mobile p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* Touch устройства */
.touch-device .btn,
.touch-device .category-item,
.touch-device .nav-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.touch-device .btn:hover,
.touch-device .category-item:hover,
.touch-device .nav-link:hover {
    transform: none !important;
}

.touch-device .touch-active {
    opacity: 0.8;
    transform: scale(0.98) !important;
}

/* Горизонтальная ориентация на мобильных */
.orientation-landscape.device-mobile .slide,
.orientation-landscape.device-small-mobile .slide {
    height: 250px !important;
}

.orientation-landscape.device-mobile .product-detail-image,
.orientation-landscape.device-small-mobile .product-detail-image {
    height: 250px !important;
}


:root {
    --honey-gold: #f5bf43;
    --gold: #c3821b;
    --turquoise: #40E0D0;
    --emerald: #007a66;
    --dark-emerald: #2E8B57;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --surface: #fffdf8;
    --shadow-soft: 0 8px 24px rgba(32, 25, 12, 0.08);
    --transition-med: .25s ease;

    /* Dark theme variables - will be overridden by media query */
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --dark-card: #2d2d2d;
    --dark-text: #f0f0f0;
    --dark-text-secondary: #b0b0b0;
    --dark-border: #404040;
    --dark-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Темная тема на основе data-theme атрибута */
:root[data-theme="dark"] {
    --white: #121212;
    --light-gray: #1e1e1e;
    --dark-gray: #f0f0f0;
    --surface: #2d2d2d;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Основные стили для темной темы */
:root[data-theme="dark"] body {
    background: #121212;
    color: var(--dark-text);
}

:root[data-theme="dark"] .header {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .footer {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/*:root[data-theme="dark"] .product-card,*/
:root[data-theme="dark"] .cart-container,
:root[data-theme="dark"] .cart-items,
:root[data-theme="dark"] .summary-card,
:root[data-theme="dark"] .checkout-form-section,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .feedback-card,
:root[data-theme="dark"] .map-card,
:root[data-theme="dark"] .reviews-card,
:root[data-theme="dark"] .community-card,
:root[data-theme="dark"] .club-card,
:root[data-theme="dark"] .charity-card,
:root[data-theme="dark"] .youtube-card,
:root[data-theme="dark"] .order-form-container,
:root[data-theme="dark"] .success-sidebar,
:root[data-theme="dark"] .order-details-card,
:root[data-theme="dark"] .customer-info,
:root[data-theme="dark"] .security-badge,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .alert,
:root[data-theme="dark"] .message,
:root[data-theme="dark"] .order-summary,
:root[data-theme="dark"] .ad-modal-content,
:root[data-theme="dark"] .cart-item,
:root[data-theme="dark"] .mobile-filters {
    background: #2d2d2d;
    color: #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #404040;
}

:root[data-theme="dark"] .product-card {
    border: 2px solid var(--gold);
    background: #2d2d2d;
    color: #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .product-name,
:root[data-theme="dark"] .cart-item-name a,
:root[data-theme="dark"] .page-header h1,
:root[data-theme="dark"] .product-title,
:root[data-theme="dark"] .form-section h3,
:root[data-theme="dark"] .cart-item-name,
:root[data-theme="dark"] .review-author,
:root[data-theme="dark"] .review-item,
:root[data-theme="dark"] .message-content,
:root[data-theme="dark"] .ad-title,
:root[data-theme="dark"] .footer-content {
    color: #f0f0f0;
}

:root[data-theme="dark"] .category-item {
    padding: 0.4rem 0.8rem;
    background: #333333;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .category-item:hover,
:root[data-theme="dark"] .category-item.active {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--emerald) 100%);
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

:root[data-theme="dark"] .btn-secondary {
    background: #333333;
}

:root[data-theme="dark"] .btn-secondary:hover {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--emerald) 100%);
    border-color: #ced4da;
}

:root[data-theme="dark"] .btn-outline {
    background: #333333;
}

:root[data-theme="dark"] .btn-outline:hover {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--emerald) 100%);
    border-color: #ced4da;
}

/* Темная тема для слайдера */
:root[data-theme="dark"] .slider-container {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .slide {
    background: var(--dark-card);
}

:root[data-theme="dark"] .slide img {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
}

:root[data-theme="dark"] .thumbnail-container {
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
}

:root[data-theme="dark"] .thumbnail {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--dark-border);
}

:root[data-theme="dark"] .thumbnail.active {
    border-color: var(--turquoise);
    box-shadow: 0 5px 20px rgba(64, 224, 208, 0.4);
}

:root[data-theme="dark"] .thumbnail:hover {
    border-color: var(--turquoise);
}

:root[data-theme="dark"] .thumbnail img {
    border: 1px solid var(--dark-border);
}

:root[data-theme="dark"] .image-placeholder {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-card) 100%);
    color: var(--dark-text-secondary);
    border: 1px solid var(--dark-border);
}

:root[data-theme="dark"] .slider-btn {
    background: rgba(30, 30, 30, 0.9);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

:root[data-theme="dark"] .slider-btn:hover {
    background: var(--dark-surface);
    color: var(--turquoise);
    border-color: var(--turquoise);
}

:root[data-theme="dark"] .dot {
    background: rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .dot.active {
    background: var(--turquoise);
}

:root[data-theme="dark"] .dot:hover {
    background: var(--turquoise);
}

:root[data-theme="dark"] .quantity-input {
    color: #333333;
}

:root[data-theme="dark"] .quantity-display {
    color: #333333;
}

:root[data-theme="dark"] .dropdown-menu {
    background: #333333;
}


:root[data-theme="dark"] .label {
    color: #ffffff;

}

:root[data-theme="dark"] .value {
    color: #ffffff;
}

:root[data-theme="dark"] .value.price {
    color: #007a66;
}

:root[data-theme="dark"] .status-processing {
    color: #ffc107;
}

:root[data-theme="dark"] .hero-content {
    background: #333333;
}


:root[data-theme="dark"] .cta-section {
    background: #333333;
}

:root[data-theme="dark"] .benefit-card {
    background: #333333;
}

:root[data-theme="dark"] .cooperation-card {
    background: #333333;
}

:root[data-theme="dark"] .filters {
    background: #333333;
}

:root[data-theme="dark"] .sorting-filter {
    background: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: fit-content;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 50px 50px; /* Более выраженное закругление */
    padding: 0 40px; /* Добавляем боковые отступы */
}

/* Логотип */
.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--turquoise);
}

/* Навигация */
.nav {

    display: flex;
    gap: 50rem;
}

.nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--emerald);
}

/* Корзина */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-link {
    position: relative;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--dark-emerald) 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .header {
        width: 95%; /* На мобильных занимает почти всю ширину */
        margin: 0 auto;
        border-radius: 0 0 30px 30px;
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-container {
        padding: 0 15px;
    }

    .header-container::before {
        bottom: -20px;
        height: 20px;
        border-radius: 0 0 20px 20px;
    }

    .header-container::after {
        width: 160px;
        height: 25px;
        bottom: -25px;
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 480px) {
    .header {
        width: 100%; /* На очень маленьких экранах - полная ширина */
        border-radius: 0 0 20px 20px;
        padding: 0 15px;
    }

    .header-container::before {
        bottom: -15px;
        height: 15px;
        border-radius: 0 0 15px 15px;
    }

    .header-container::after {
        width: 140px;
        height: 20px;
        bottom: -20px;
        border-radius: 0 0 14px 14px;
    }

    .logo a {
        font-size: 1.4rem;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--gold);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 15px !important;
    display: block !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 10px !important;

    -webkit-border-radius: 15px !important;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--emerald);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--emerald) 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.4);
}

/* Cart */
.cart-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--emerald);
    font-weight: bold;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-gray);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--honey-gold);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--turquoise);
}

/* Footer */
.footer {
    flex-shrink: 0;
    background: linear-gradient(to right, var(--gold), var(--honey-gold));
    padding: 5px 0;
    text-align: center;

}

.footer-content {
    /*display: grid;*/
    /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
    gap: 1rem;
    color: var(--dark-gray);
}


/* ===== ОСНОВНЫЕ СТИЛИ ФУТЕРА ===== */
.footer-wrapper {
    color: white;
    padding: 0;
    margin-bottom: 0;
}

/* ===== КНОПКИ ===== */
.footer-buttons-container {
    display: flex;
    justify-content: center;
}

.footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.footer-btn {
    text-decoration: none;
    flex: 0 0 auto; /* Кнопки не растягиваются */
}

.footer-btn .btn {
    width: 150px;
    height: 50px;
    padding: 0.7rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    /*min-height: 50px;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-btn .btn:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
}

/* ===== ТЕКСТ ===== */
.footer-text-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.footer-text {
    max-width: 800px;
    /*width: 100%;*/
    text-align: center;
}

.footer-text p {
    font-size: 11px;
    line-height: 1.6;
    color: white;
    /*border: 2px solid var(--turquoise);*/
    text-align: center;
    border-radius: 10px;
    padding: 5px;
}

/* ===== КОПИРАЙТ ===== */
.footer-copyright {
    color: var(--dark-gray);
    text-align: center;
    padding: 0;
    margin-bottom: 0;
}


/* ===== ПЛАНШЕТЫ ===== */
@media (max-width: 900px) {
    .footer-buttons {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .footer-btn:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .footer-btn .btn {
        font-size: 12px;
        padding: 12px;
        width: 150px;
        height: 50px;
    }

    .footer-text p {
        font-size: 10px;
    }
}

/* ===== МОБИЛЬНЫЕ ===== */
@media (max-width: 576px) {
    .footer-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(160px, auto));
        gap: 15px;
        max-width: 550px;
    }

    .footer-btn {
        width: 100%;
    }

    .footer-btn .btn {
        width: 100%;
        white-space: normal;
        min-width: 0;
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Последняя кнопка (Гарантия) на две колонки */
    .footer-btn:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 50%;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ ===== */
@media (max-width: 400px) {
    .footer-text p {
        font-size: 8px;
        line-height: 1.4;
    }

    .footer-buttons {
        max-width: 240px;
    }

    .footer-btn .btn {
        font-size: 11px;
    }
}


/* Messages */
.messages {
    max-width: 800px;
    margin: 1rem auto;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message.success {
    background: var(--turquoise);
    color: white;
}

.message.error {
    background: #ff6b6b;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-container {
        margin: 1rem;
        padding: 1rem;
    }

    .logo a {
        font-size: 1.4rem;
    }
}

/* Дополнительные стили для новых шаблонов */

/* Хлебные крошки */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--turquoise);
    text-decoration: none;
}

.breadcrumb span:last-child {
    color: var(--dark-gray);
    font-weight: 500;
}

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--dark-gray);
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .subtitle {
        font-size: 0.8rem;
    }

}

@media (max-width: 480px) {
    .subtitle {
        font-size: 0.8rem;
    }
}


.category-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Общие стили для кнопок фильтрации на десктопе */
.category-item {
    /*padding: 0.6rem 0.8rem;*/
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    background: var(--light-gray);
    border: 2px solid var(--gold);
    /*border-radius: 6px;*/
    color: var(--dark-gray);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    /*padding: 0.8rem 1.5rem;*/
    background: white;
    /*border: 2px solid #f5bf43;*/
    border-radius: 25px;
    /*text-decoration: none;*/
    /*color: var(--dark-gray);*/
    font-weight: 500;
    /*transition: all 0.3s ease;*/
    padding: 0.4rem 0.8rem;
    /*font-size: 0.8rem;*/
    /*margin-bottom: 0.3rem;*/
}

.sort-options .category-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.filters h3, .sorting-filter h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--dark-text);
    font-weight: 500;
}

/* Стили для выпадающих списков на мобильных */
.mobile-filters {
    display: none;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-filter-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.mobile-filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    /*color: var(--dark-border);*/
    padding-left: 0.3rem;
}

.mobile-filter-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background-color: var(--light-gray);
    font-size: 0.95rem;
    color: var(--dark-gray);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23444' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
    transition: all 0.3s ease;
}

.mobile-filter-select:hover {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.mobile-filter-select:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.mobile-filter-select option {
    padding: 0.8rem;
    background: white;
    color: var(--dark-text);
}

.mobile-filter-select option:checked {
    background: var(--turquoise);
    color: var(--dark-emerald);
    font-weight: 500;
}

/* Показываем мобильные фильтры только на маленьких экранах */
@media (max-width: 768px) {
    .desktop-filters {
        display: none;
    }

    .mobile-filters {
        display: block;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .product-card {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* Десктопная версия */
@media (min-width: 769px) {
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        max-width: 1000px;
    }

    .sort-options {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        max-width: 800px;
    }

    .filters, .sorting-filter {
        background: white;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 1rem;
    }

    .filters h3, .sorting-filter h3 {
        border-bottom: 2px solid var(--turquoise);
        padding-bottom: 0.4rem;
        display: inline-block;
    }
}

/* Темная тема (если используется) */
@media (prefers-color-scheme: dark) {
    .mobile-filter-select {
        background-color: var(--dark-border);
        border-color: var(--dark-border);
        color: var(--dark-gray);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ccc' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    }

    .mobile-filter-select option {
        background: var(--dark-bg);
        color: var(--dark-text);
    }

    .mobile-filters {
        background: var(--light-gray);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .filters h3, .sorting-filter h3,
    .mobile-filter-label {
        /*color: var(--dark-gray);*/
    }
}

.filters, .sorting-filter {
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-item:hover,
.category-item.active {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--emerald) 100%);
    color: white;
    border-color: var(--turquoise) 0%, var(--emerald) 100%;
    transform: translateY(-2px);
}

/* Состояние пустого списка */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--honey-gold);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 2rem;
}

/* Детали товара */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.product-gallery {
    position: relative;

}

.product-detail-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-info-detail {
    padding: 1rem 0;
}

.product-title {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-badge {
    background: var(--honey-gold);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.availability {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.in-stock {
    background: var(--emerald);
    color: white;
}

.out-of-stock {
    background: #ff6b6b;
    color: white;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--emerald);
    margin: 2rem 0;
}

.product-description-full h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.product-description-full p {
    line-height: 1.8;
    color: #666;
}

/* Форма покупки */
.purchase-form {
    margin: 2rem 0;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--turquoise);
    background: white;
    color: var(--turquoise);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--turquoise);
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Особенности товара */
.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.feature i {
    color: #007a66;
}

/* Макет корзины */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.cart-items {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart-summary {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.free-shipping {
    color: var(--emerald);
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 1.5rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-gray);
}

.total-price {
    color: var(--emerald);
}

.btn-checkout {
    width: 100%;
    margin-bottom: 1rem;
}

.btn-secondary {
    background: #f8f9fa;
    color: var(--dark-gray);
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--emerald) 100%);
    border-color: #ced4da;
    color: #f8f9fa;
}

/* Кнопка удаления */
.btn-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-remove:hover {
    background: #ffeaea;
}

/* Макет оформления заказа */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.checkout-form-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.form-section h3 i {
    color: var(--turquoise);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        height: 300px;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .product-price-large {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .category-list {
        flex-direction: column;
    }

    .category-item {
        text-align: center;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Стили для поля количества в корзине */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 2px solid var(--turquoise);
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    color: var(--dark-gray);
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 1rem;
    }

    .cart-item-details {
        grid-column: 2 / 4;
    }

    .cart-item-quantity {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .cart-item-price {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        text-align: left;
    }

    .cart-item-actions {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }
}

@media (max-width: 480px) {
    .quantity-input {
        width: 50px;
        height: 35px;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Стили для ошибок формы */
.field-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: block;
}

.form-input:invalid {
    border-color: #ff6b6b;
}

.messages .error {
    background: #ff6b6b;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #ff4757;
}

.messages .success {
    background: var(--turquoise);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    /*border-left: 4px solid var(--dark-emerald);*/
}

/* Анимация для кнопки загрузки */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Подсветка невалидных полей */
.form-input:focus:invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

/* Улучшенные стили для корзины */
.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cart-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cart-item-name a:hover {
    color: var(--turquoise);
}

.cart-item-category {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.cart-item-mobile-price {
    display: none;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--emerald);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.quantity-input {
    width: 60px;
    height: 35px;
    border: 2px solid var(--turquoise);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    background: white;
}

.quantity-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--turquoise);
}

.cart-item-total .total-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--emerald);
}

.btn-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #ffeaea;
    transform: scale(1.1);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.btn-outline {
    background: white;
    color: var(--dark-gray);
    border: 2px solid var(--turquoise);
    text-decoration: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--emerald) 100%);
    color: white;
}

.summary-line.discount {
    color: var(--emerald);
    font-weight: 600;
}

.summary-note {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
    border-left: 4px solid var(--honey-gold);
}

.payment-methods {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.payment-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: #666;
}

.security-badge {
    margin-top: 2rem;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.security-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.security-item i {
    font-size: 1.5rem;
    color: var(--turquoise);
    width: 40px;
    text-align: center;
}

.security-text strong {
    display: block;
    color: var(--dark-gray);
    margin-bottom: 0.2rem;
}

.security-text span {
    font-size: 0.9rem;
    color: #666;
}

/* Состояние пустой корзины */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    color: var(--honey-gold);
    margin-bottom: 1rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.recommendations {
    margin-top: 3rem;
}

.recommendations h4 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.recommended-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.recommended-product {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.recommended-product:hover {
    transform: translateY(-5px);
}

.recommended-product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recommended-product .product-info {
    padding: 1rem;
}

.recommended-product h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.recommended-product .price {
    color: var(--emerald);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* Алерты */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.alert-success {
    background: var(--turquoise);
    color: white;
}

.alert-error {
    background: #ff6b6b;
    color: white;
}

.alert-info {
    background: var(--turquoise);
    color: white;
}

.alert .close {
    background: none;
    border: none;
    color: inherit;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: slideIn 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        position: relative;
    }

    .cart-item-product {
        flex-direction: column;
        text-align: center;
    }

    .desktop-only {
        display: none;
    }

    .cart-item-mobile-price {
        display: block;
    }

    .cart-item-actions {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .cart-actions {
        flex-direction: column;
    }

    .empty-actions {
        flex-direction: column;
    }

    .recommended-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .recommended-products {
        grid-template-columns: 1fr;
    }

    .payment-icons {
        font-size: 1.2rem;
    }
}

/* Стили для placeholder изображений */
.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
    color: white;
    border-radius: 15px;
    text-align: center;
    padding: 2rem;
}

.image-placeholder.fallback {
    display: none; /* Скрыт по умолчанию, показывается только при ошибке загрузки */
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.image-placeholder span {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Для пустой корзины - рекомендованные товары */
.recommended-product .image-placeholder {
    height: 150px;
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--emerald) 100%);
}

.recommended-product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Стили для исправленной корзины */
.quantity-form {
    margin: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-display {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--turquoise);
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-gray);
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-price-mobile {
    display: none;
    margin-top: 0.5rem;
    color: var(--emerald);
    font-weight: 600;
}

.cart-item-total .total-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--emerald);
}

.cart-item-total .item-price {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.messages .message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.messages .success {
    background: var(--turquoise);
    color: white;
}

.messages .error {
    background: #ff6b6b;
    color: white;
}

.messages .info {
    background: var(--turquoise);
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .cart-item-product {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-price-mobile {
        display: block;
    }

    .cart-item-total .item-price {
        display: none;
    }
}

/* Стили для страницы контактов */
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card,
.feedback-card,
.map-card,
.reviews-card,
.community-card,
.club-card,
.charity-card,
.youtube-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-card h2,
.feedback-card h2,
.map-card h2,
.reviews-card h2,
.community-card h2,
.club-card h2,
.charity-card h2,
.youtube-card h2 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    /*display: flex;*/
    /*align-items: center;*/
    gap: 0.5rem;

    font-size: 1.5rem;
    /*margin-bottom: 15px;*/
    /*color: #333;*/
    display: flex;
    align-items: center;
    /*gap: 10px;*/
}

.contact-card h2 i,
.feedback-card h2 i,
.map-card h2 i,
.reviews-card h2 i,
.community-card h2 i,
.club-card h2 i,
.charity-card h2 i,
.youtube-card h2 i {
    color: #40E0D0;
}

.contact-details {
    display: flex;
    /*flex-direction: column;*/
    /*gap: 1.5rem;*/

    /*display: flex;*/
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: var(--honey-gold);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--dark-gray);
}

.contact-item p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.5;
}

.contact-item a {
    color: #40E0D0;
    text-decoration: none;
}

.contact-item a:hover {
    color: #40E0D0;
}

/* Форма обратной связи */
.feedback-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.feedback-form .form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.feedback-form .form-input:focus {
    outline: none;
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
}

.feedback-form textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Карта */
.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 8px;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--honey-gold);
}

/* Отзывы */
.reviews-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.reviews-list {
    max-height: 456px;
    overflow-y: auto;
}

.review-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--dark-gray);
}

.review-rating {
    color: var(--gold);
}

.review-rating .far {
    color: #ddd;
}

.review-text {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #999;
}

.no-reviews {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.reviews-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.btn.btn-outline {
    border-color: var(--emerald); /* Цвет контура */
    /*color: #007bff; !* Цвет текста *!*/
    background-color: transparent; /* Прозрачный фон */
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /*.contacts-info {*/
    /*    order: -1;*/
    /*}*/
}

@media (max-width: 768px) {
    .contact-card,
    .feedback-card,
    .map-card,
    .reviews-card,
    .community-card,
    .club-card,
    .charity-card,
    .youtube-card {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
    }

    .contact-item i {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .contacts-layout {
        gap: 1rem;
    }

    .contact-card,
    .feedback-card,
    .map-card,
    .reviews-card,
    .community-card,
    .club-card,
    .charity-card,
    .youtube-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Стили для сообщений */
.messages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.messages {
    margin: 1rem 0;
}

.message {
    position: relative;
    padding: 1rem 2.5rem 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message.success {
    background: var(--turquoise);
    color: white;
    /*border-left: 4px solid var(--dark-emerald);*/
}

.message.error {
    background: #ff6b6b;
    color: white;
    border-left: 4px solid #ff4757;
}

.message.info {
    background: var(--turquoise);
    color: white;
    border-left: 4px solid #20b2aa;
}

.message.warning {
    background: var(--honey-gold);
    color: white;
    border-left: 4px solid #ff9500;
}

.message-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    right: 0.75rem;
    padding: 0.35rem;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.7;
    color: #000;
    transition: opacity 0.3s ease;
}

.message-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Автоматическое скрытие сообщений через 5 секунд */
.message {
    position: relative;
    padding: 1rem 3rem 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
        overflow: hidden;
    }
}

/* Стили для сообщений - только одно сообщение */
.messages-container {
    max-width: 1200px;
    margin: 0 auto 1rem auto;
    padding: 0 20px;
    position: relative;
    z-index: 1000;
}


.message:not(:first-child) {
    display: none !important; /* Скрываем все кроме первого */
}

.message.success {
    background: var(--turquoise);
    color: white;
    /*border-left: 4px solid #1e7d5e;*/
}

.message.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    border-left: 4px solid #ff2e43;
}

.message.info {
    background: linear-gradient(135deg, var(--turquoise) 0%, #20b2aa 100%);
    color: white;
    /*border-left: 4px solid #1ba8a0;*/
}

.message.warning {
    background: linear-gradient(135deg, var(--honey-gold) 0%, #ff9500 100%);
    color: white;
    border-left: 4px solid #e68600;
}

.message-content {
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Автоматическое скрытие сообщения через 5 секунд */
.message.auto-hide {
    animation: slideIn 0.5s ease, slideOut 0.5s ease 4.5s forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
        overflow: hidden;
        transform: translateY(-20px);
    }
}


/* Анимация пульсации для привлечения внимания */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}


/* Адаптивность для значка корзины */
@media (max-width: 768px) {
    .cart-link {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -3px;
        right: -3px;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 0.5rem;
    }

    .cart-link {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* Анимация для добавления товара в корзину */
@keyframes addToCart {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Анимация пульсации при обновлении */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.alert {
    position: fixed;
    top: 80px;
    z-index: 1050;
    transition: opacity 0.5s ease;
}


/* Стили для системных сообщений Django */
.messages-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    max-width: 500px;
    width: 90%;
}

.message {
    background: #d4edda;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
}

.message.error {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.message.info {
    background: #d1ecf1;
    border-color: #bee5eb;
}

/* Стили для прижатого футера */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1 0 auto;
}


/* Остальные существующие стили */
.pulse {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.alert {
    position: fixed;
    top: 80px;
    z-index: 1050;
    transition: opacity 0.5s ease;
}

/* Стили для системных сообщений Django */
.messages-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    max-width: 500px;
    width: 90%;
}

.message {
    background: #40E0D0;
    padding: 15px;
    border-radius: 5px;
    /*border: 1px solid #007a66;*/
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message.error {
    background: #ff0017;
    border-color: #ff0017;
}

.message.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.message.info {
    background: #d1ecf1;
    border-color: #bee5eb;
}

/*CHECKOUT*/
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.order-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    height: fit-content;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.item-price {
    font-weight: bold;
    color: #28a745;
    margin: 5px 0 0 0;
}

.order-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
    text-align: right;
    font-size: 18px;
}

.order-form-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-control.error {
    border-color: #dc3545;
}

.error-list {
    margin-top: 5px;
}

.error {
    color: #dc3545;
    font-size: 14px;
    display: block;
}

.form-text {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/*ORDER_SUCCESS*/
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.order-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    height: fit-content;
}

.success-sidebar {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.success-message p {
    color: #6c757d;
    line-height: 1.6;
}

.order-details-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #007bff;
}

.customer-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.total-item {
    border-top: 2px solid #dee2e6;
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
    font-weight: bold;
}

.label {
    color: #6c757d;
    font-weight: 500;
}

.value {
    color: #212529;
    font-weight: 500;
    text-align: right;
}

.value.price {
    color: #28a745;
    font-size: 18px;
    font-weight: bold;
}

.status-processing {
    color: #ffc107;
    font-weight: 600;
}

.action-buttons {
    margin: 25px 0;
}

.btn-full {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.support-info {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.support-info h4 {
    margin-bottom: 10px;
    color: #495057;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #f8f9fa;
    color: #0056b3;
    text-decoration: none;
}

.customer-info h4,
.order-details-card h3 {
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .value {
        text-align: left;
    }

    .contact-methods {
        flex-direction: column;
    }
}

@media print {
    .action-buttons,
    .support-info {
        display: none;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    .success-sidebar {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}


/* Header - ограничиваем ширину как у container */
.header {
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 1200px;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

/* Центрированная навигация БЕЗ РАМКИ */
.nav-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 0.2rem;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--emerald);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: var(--dark-gray);
}

/* Логотип */
.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--turquoise);
}

/* Корзина */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-link {
    position: relative;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--dark-emerald) 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

/* Выпадающее меню для мобильной версии */
.mobile-dropdown {
    position: relative;
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid #eee;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: var(--light-gray);
    color: var(--emerald);
    padding-left: 1.25rem;
}

.dropdown-link i {
    width: 16px;
    text-align: center;
    font-size: 1rem;
    color: var(--turquoise);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-centered {
        display: none; /* Скрываем обычную навигацию на мобильных */
    }

    .mobile-dropdown {
        display: block; /* Показываем выпадающее меню */
    }

    .header-content {
        flex-wrap: nowrap;
    }

    .logo {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.4rem;
    }

    .dropdown-menu {
        min-width: 180px;
        right: -10px;
    }

    .dropdown-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Основной контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Увеличиваем отступ для основного контента */
.main {
    padding-top: 20px;
}

/* Стили для слайдера */
.slider-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 500px;
    display: flex;
    align-items: center; /* Вертикальное центрирование */
    justify-content: center; /* Горизонтальное центрирование */
    background: var(--surface);
    padding: 20px;
    position: relative;
}

.slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Центрируем по вертикали */
    justify-content: center; /* Центрируем по горизонтали */
    overflow: hidden;
    border-radius: 15px;
}

.slide-inner img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
}

.slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    position: static;
    margin: auto;
    border-radius: 15px;
}

.slide img:hover {
    transform: scale(1.01);
}


.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--emerald);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 15px;
    flex-wrap: wrap;
    background: var(--surface);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
    border-color: var(--turquoise);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.3);
}

.thumbnail:hover {
    opacity: 1;
    border-color: var(--turquoise);
    transform: translateY(-3px);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
    .slider-container {
        max-width: 100%;
        border-radius: 15px;
    }

    .slide {
        height: 400px;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .slide-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .slide img {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }


    .image-placeholder i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .slide {
        height: 350px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slide-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .slide img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        max-height: 90%;
        width: auto;
        height: auto;
    }

    .thumbnail-container {
        padding: 10px;
        gap: 8px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .image-placeholder {
        width: 85%;
        height: 85%;
        padding: 1.5rem;
    }

    .image-placeholder i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .image-placeholder span {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .slide {
        height: 300px;
    }

    .slide img {
        max-width: 85%;
        max-height: 85%;
    }

    .thumbnail {
        width: 40px;
        height: 40px;
    }

    .image-placeholder {
        width: 80%;
        height: 80%;
        padding: 1rem;
    }

    .image-placeholder i {
        font-size: 1.8rem;
    }
}


/* Lightbox стили */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    /*border: none;*/
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    /*border: none;*/
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-counter {
    position: fixed;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для больших изображений в слайдере */
.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*padding: 20px;*/
    transition: transform 0.3s ease;
}

.slide:hover .main-image {
    transform: scale(1.02);
}

.zoom-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.slide:hover .zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Миниатюры */
.thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--turquoise);
    box-shadow: 0 8px 20px rgba(64, 224, 208, 0.3);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Адаптивность */
@media (max-width: 768px) {
    .slide {
        height: 400px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .lightbox-counter {
        bottom: 80px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .slide {
        height: 300px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .zoom-hint {
        display: none;
    }
}


/*ДОП для слайдера*/
/* Улучшенная структура слайдера */
.slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    cursor: pointer;
    z-index: 2;
    border-radius: 15px;
}

.zoom-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.zoom-icon {
    opacity: 0;
    color: white;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    transform: scale(0.8);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.zoom-overlay:hover .zoom-icon {
    opacity: 0.8;
    transform: scale(1);
}

.thumbnail-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* Плавный переход для всех элементов галереи */
.slide-inner,
.zoom-overlay,
.thumbnail-inner {
    transition: all 0.3s ease;
}

/* Анимация при переключении слайдов */
@keyframes fadeIn {
    from {
        opacity: 0.5;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide.active {
    animation: fadeIn 0.5s ease;
}

/* Адаптивность для touch устройств */
@media (max-width: 768px) {
    .zoom-overlay {
        background: rgba(0, 0, 0, 0.1);
    }

    .zoom-icon {
        opacity: 0.8;
    }

    .slide:hover .zoom-overlay {
        background: rgba(0, 0, 0, 0.1);
    }
}


/* Стили для рекламного модального окна */
.ad-modal-overlay {
    display: none; /* По умолчанию скрыто! */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-modal-overlay.active {
    opacity: 1;
}

.ad-modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-modal-overlay.active .ad-modal-content {
    transform: translateY(0);
}

/* Контейнер для изображения */
.ad-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.ad-image:hover {
    transform: scale(1.05);
}

/* Наложение на изображение */
.ad-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

/* Бейдж скидки */
.ad-badge {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b6b 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 30px rgba(255, 107, 107, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    }
}

.ad-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;

    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ad-close-btn:hover {
    /*color: #ff0000;*/

    background: rgba(0, 0, 0, 0.9);
    color: var(--turquoise);
    transform: rotate(90deg);
}

.ad-icon {
    font-size: 50px;
    border: 2px solid var(--turquoise);
    /*color: #007a66;*/
    /*margin-bottom: 20px;*/
    color: var(--honey-gold);
    margin: -30px auto 20px;
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.ad-title {
    font-size: 28px;
    margin-bottom: 15px;
    /*color: #c3821b;*/


    color: var(--dark-gray);
    padding: 0 20px;
}

.ad-promo-code {
    /*background: #f0f9ff;*/
    /*border: 2px dashed #c3821b;*/
    /*padding: 15px;*/
    /*border-radius: 8px;*/
    font-size: 18px;
    font-weight: bold;
    /*color: #007a66;*/
    /*margin: 20px 0;*/

    background: var(--turquoise);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 80%;
    /*box-shadow: 0 5px 15px rgba(0, 122, 102, 0.3);*/
    /*border: 2px dashed rgba(255, 255, 255, 0.3);*/
}

.ad-cta-button {
    /*background: #007a66;*/
    color: white;
    border: none;
    /*padding: 15px 30px;*/
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    /*margin-top: 20px;*/
    /*transition: all 0.3s;*/
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
    padding: 15px 40px;
    margin: 20px auto 30px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(245, 191, 67, 0.4);
}

.ad-cta-button:hover {
    /*transform: translateY(-2px);*/
    /*box-shadow: 0 5px 20px rgba(0, 122, 102, 0.4);*/

    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 191, 67, 0.6);
}

.ad-cta-button:active {
    transform: translateY(-1px);
}

.ad-footer {
    padding: 15px;
    background: var(--light-gray);
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
    border-radius: 0 0 20px 20px;
}

/* Адаптивность для баннера */
@media (max-width: 768px) {
    .ad-modal-content {
        max-width: 90%;
        width: 95%;
    }

    .ad-image-container {
        height: 180px;
    }

    .ad-title {
        font-size: 24px;
        padding: 0 15px;
    }

    .ad-promo-code {
        font-size: 16px;
        padding: 12px 20px;
        max-width: 90%;
    }

    .ad-cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .ad-badge {
        font-size: 1.2rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .ad-image-container {
        height: 150px;
    }

    .ad-title {
        font-size: 20px;
    }

    .ad-promo-code {
        font-size: 14px;
        padding: 10px 15px;
    }

    .ad-cta-button {
        padding: 10px 25px;
        font-size: 15px;
    }

    .ad-icon {
        width: 70px;
        height: 70px;
        font-size: 50px;
        margin-top: -25px;
    }
}

/* Стили для переключателя темы */
.theme-switcher {
    margin-right: 15px;
}

.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 29px;
    background: var(--dark-surface);
    border: 2px solid var(--dark-border);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 5px;
    overflow: hidden;
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 2;
}

.theme-icon-light {
    left: 7px;
    color: var(--honey-gold);
}

.theme-icon-dark {
    right: 7px;
    color: var(--dark-text-secondary);
}

.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--honey-gold);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
    /* Дефолт — светлая тема (ползунок слева) */
    transform: translateX(0);
}

/* Скрываем иконки по умолчанию до установки темы */
.theme-icon-light {
    opacity: 1;
}

.theme-icon-dark {
    opacity: 0.5;
}

/* Для светлой темы */
[data-theme="light"] .theme-toggle-slider {
    transform: translateX(0);
    background: var(--honey-gold);
}

[data-theme="light"] .theme-icon-light {
    opacity: 1;
    color: var(--honey-gold);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 0.5;
}

/* Для темной темы */
[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(30px);
    background: var(--honey-gold);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 0.5;
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    color: var(--honey-gold);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(245, 191, 67, 0.3);
}

/* Анимация перехода темы */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-card,
.cart-container,
.header,
.footer,
.contact-card,
.feedback-card,
.map-card,
.reviews-card,
.community-card,
.club-card,
.charity-card,
.youtube-card {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Скрываем переключатель темы в хедере на мобильных устройствах */
@media (max-width: 768px) {
    .theme-switcher {
        display: none;
    }
}

/* ============================================= */
/* КОМПЛЕКСНАЯ АДАПТАЦИЯ ПРОЕКТА */
/* ============================================= */

/* 1. ОЧЕНЬ БОЛЬШИЕ ЭКРАНЫ (от 1920px) */
@media (min-width: 1920px) {
    .container {
        max-width: 1200px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .product-detail {
        grid-template-columns: 1.2fr 1fr;
        gap: 5rem;
    }

    .product-detail-image {
        height: 600px;
    }

    .checkout-content,
    .checkout-layout,
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* 2. БОЛЬШИЕ ЭКРАНЫ (1200px - 1919px) - текущие стили */

/* 3. СРЕДНИЕ ЭКРАНЫ (992px - 1199px) - Планшеты горизонтально */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .product-detail-image {
        height: 450px;
    }

    .cart-layout {
        grid-template-columns: 1.5fr 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1.5fr 1fr;
    }

    .contacts-layout {
        grid-template-columns: 1fr 1fr;
    }

    /* Хедер для средних экранов */
    .header {
        width: 100%;
        border-radius: 0 0 30px 30px;
        padding: 0 20px;
    }

    .nav-links {
        gap: 0.2rem;
    }
}

/* 4. ПЛАНШЕТЫ (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Карточка товара на планшетах */
    .product-card {
        margin-bottom: 1rem;
    }

    .product-image {
        height: 180px;
        border-radius: 15px;
    }

    .product-info {
        padding: 1.2rem;
    }

    /* Детальная страница товара */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-image {
        height: 400px;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .product-price-large {
        font-size: 2rem;
    }

    /* Корзина */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    /* Формы */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Контакты */
    .contacts-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Слайдер */
    .slider-container {
        max-width: 100%;
    }

    .slide {
        height: 400px;
    }

    .thumbnail {
        width: 70px;
        height: 70px;
    }

    /* Хедер */
    .header {
        width: 100%;
        border-radius: 0 0 25px 25px;
        padding: 0 15px;
    }

    .nav-centered {
        display: none;
    }

    .header-actions {
        gap: 1rem;
    }

    /* Футер */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

/* 5. МОБИЛЬНЫЕ УСТРОЙСТВА (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    .product-image {
        height: 160px;
        border-radius: 15px;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    /* Детальная страница */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-image {
        height: 350px;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .product-price-large {
        font-size: 1.8rem;
    }

    /* Корзина */
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .cart-item-product {
        flex-direction: column;
    }

    /* Формы */
    .form-group {
        margin-bottom: 1rem;
    }

    /* Слайдер */
    .slide {
        height: 350px;
    }

    .thumbnail-container {
        padding: 10px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    /* Хедер */
    .header {
        width: 100%;
        border-radius: 0 0 20px 20px;
        padding: 0 10px;
    }

    .logo a {
        font-size: 1.4rem;
    }

    .logo img {
        height: 40px;
        width: 40px;
    }

    /* Кнопки */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Текст */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

/* 6. МАЛЕНЬКИЕ МОБИЛЬНЫЕ (375px - 575px) */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        margin-bottom: 0.8rem;
    }

    .product-image {
        height: 180px;
        border-radius: 15px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    /* Детальная страница */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .product-detail-image {
        height: 300px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-price-large {
        font-size: 1.6rem;
    }

    /* Корзина */
    .cart-container {
        margin: 1rem;
        padding: 1rem;
    }

    .cart-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    /* Формы */
    .checkout-form-section,
    .order-form-container,
    .contact-card,
    .feedback-card,
    .community-card,
    .club-card,
    .charity-card,
    .youtube-card {
        padding: 1.2rem;
    }

    .form-input,
    .form-control {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    /* Слайдер */
    .slider-container {
        border-radius: 15px;
    }

    .slide {
        height: 280px;
        padding: 10px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .prev-btn {
        left: 8px;
    }

    .next-btn {
        right: 8px;
    }

    .thumbnail-container {
        padding: 8px;
        gap: 6px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    /* Хедер */
    .header {
        width: 100%;
        border-radius: 0 0 15px 15px;
        padding: 0 8px;
    }

    .header-content {
        padding: 0.8rem 0;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .logo img {
        height: 35px;
        width: 35px;
    }

    .cart-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }

    /* Кнопки */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Текст */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    body {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Сообщения */
    .messages-container {
        padding: 0 10px;
    }

    .message {
        padding: 0.8rem 2.5rem 0.8rem 1rem;
        font-size: 0.85rem;
    }

    /* Категории */
    .category-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-item {
        width: 100%;
        text-align: center;
    }

    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer {
        padding: 1rem 0;
    }

    /* Рекламное окно */
    .ad-modal-content {
        padding: 1.5rem;
    }

    .ad-title {
        font-size: 1.3rem;
    }

    .ad-promo-code {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .ad-cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 7. ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 374px) */
@media (max-width: 374px) {
    .container {
        padding: 0 8px;
    }

    .products-grid {
        gap: 0.8rem;
    }

    .product-image {
        height: 160px;
        border-radius: 15px;
    }

    /* Детальная страница */
    .product-detail-image {
        height: 250px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-price-large {
        font-size: 1.4rem;
    }

    /* Корзина */
    .cart-item {
        padding: 0.7rem;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .quantity-input {
        width: 50px;
        height: 35px;
    }

    .quantity-btn {
        width: 35px;
        height: 35px;
    }

    /* Слайдер */
    .slide {
        height: 240px;
    }

    .thumbnail {
        width: 45px;
        height: 45px;
    }

    /* Хедер */
    .logo a {
        font-size: 1.1rem;
    }

    .logo img {
        height: 30px;
        width: 30px;
    }

    .mobile-menu-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    /* Кнопки */
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Текст */
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.1rem;
    }
}

/* 8. ОРИЕНТАЦИЯ УСТРОЙСТВ */
/* Горизонтальная ориентация на мобильных */
@media (max-height: 600px) and (orientation: landscape) {
    .slide {
        height: 250px;
    }

    .product-detail-image {
        height: 250px;
    }

    .header {
        padding: 0 10px;
    }

    .header-content {
        padding: 0.5rem 0;
    }
}

/* 9. ВЫСОКОПЛОТНЫЕ ЭКРАНЫ (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Улучшаем качество изображений для Retina экранов */
    .logo img,
    .product-image,
    .cart-item-image img,
    .thumbnail-img {
        image-rendering: crisp-edges;
    }
}

/* 10. СЕНСОРНЫЕ УСТРОЙСТВА */
@media (hover: none) and (pointer: coarse) {
    /* Увеличиваем размер кликабельных элементов для touch устройств */
    .btn,
    .category-item,
    .nav-link,
    .dropdown-link,
    .thumbnail,
    .slider-btn {
        min-height: 44px; /* Apple рекомендует минимум 44px */
        min-width: 44px;
    }

    /* Убираем hover эффекты на touch устройствах */
    .product-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .category-item:hover {
        transform: none;
    }

    /* Включаем touch-friendly скролл */
    .reviews-list {
        -webkit-overflow-scrolling: touch;
    }
}

/* 11. ТЕМНАЯ ТЕМА АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    :root[data-theme="dark"] .header {
        background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-card) 100%);
    }

    :root[data-theme="dark"] .mobile-menu-btn {
        color: var(--dark-text);
    }

    :root[data-theme="dark"] .dropdown-menu {
        background: var(--dark-card);
        border: 1px solid var(--dark-border);
    }
}

/* 12. ОБЩИЕ УЛУЧШЕНИЯ АДАПТИВНОСТИ */
/* Плавные переходы для всех элементов */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Предотвращаем горизонтальный скролл */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Адаптивные изображения */
img {
    max-width: 100%;
    height: auto;
}

/* Адаптивные iframe и video */
iframe, video {
    max-width: 100%;
}

/* Адаптивные таблицы */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Улучшаем читаемость текста на мобильных */
@media (max-width: 767px) {
    p, li, td, th {
        font-size: 16px; /* Минимальный размер для комфортного чтения */
        line-height: 1.6;
    }

    /* Увеличиваем расстояние между элементами форм */
    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-input, .form-control {
        font-size: 16px; /* Предотвращаем масштабирование в iOS */
        padding: 12px;
    }
}

/* Анимации для мобильных устройств */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Поддержка различных режимов отображения */
@media (display-mode: standalone) {
    /* Стили для PWA приложения */
    .header {
        padding-top: env(safe-area-inset-top);
    }

    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Безопасные зоны для современных телефонов с вырезами */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .main {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
}

/* 13. ПРИНТЕРНЫЕ СТИЛИ */
@media print {
    .header,
    .footer,
    .mobile-dropdown,
    .theme-switcher,
    .cart-link,
    .btn-remove,
    .ad-modal-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .product-card,
    .cart-container,
    .checkout-form-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


.floating-social {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

/*-- Социальные иконки (можно разместить в любом месте страницы) --*/
.floating-social-icon i {
    font-size: 1.2rem;
}

.floating-social-icon.telegram i {
    color: #0088cc;
}

.floating-social-icon.viber i {
    color: #7360f2;
}

.floating-social-icon.instagram i {
    color: #E1306C;
}

.floating-social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.floating-social-icon.telegram:hover {
    background: #0088cc;
}

.floating-social-icon.telegram:hover i {
    color: white;
}

.floating-social-icon.viber:hover {
    background: #7360f2;
}

.floating-social-icon.viber:hover i {
    color: white;
}

.floating-social-icon.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.floating-social-icon.instagram:hover i {
    color: white;
}

/*cooperation*/

.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.cooperation-content {
    margin-top: 2rem;
}

.cooperation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cooperation-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cooperation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cooperation-icon {
    font-size: 3rem;
    color: var(--emerald);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cooperation-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    text-align: center;
}

.benefits-list {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.benefits-list li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.partnership-form-section {
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.partnership-form-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.partnership-form-section > p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-gray)
}

.partnership-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.partnership-contacts {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partnership-contacts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}


@media (max-width: 768px) {
    .cooperation-options {
        grid-template-columns: 1fr;
    }

    .partnership-form-section {
        padding: 1.5rem;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }
}

/* Стили для активной вкладки навигации */
.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: var(--dark-gray);
    position: relative;
}

/* Стили для мобильного выпадающего меню */
.dropdown-link.active {
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
    color: white;
}

.dropdown-link.active i {
    color: white;
}

/*index.html*/
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr !important;
    }

    /*.advantages {*/
    /*    grid-template-columns: 1fr 1fr !important;*/
    /*}*/
    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    /*.benefits-grid {*/
    /*    grid-template-columns: 1fr !important;*/
    /*}*/
}

@media (max-width: 480px) {
    /*.advantages {*/
    /*    grid-template-columns: 1fr !important;*/
    /*}*/
    .cta-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* ============================================= */
/* УЛУЧШЕННАЯ АДАПТИВНОСТЬ ДЛЯ ВСЕХ УСТРОЙСТВ */
/* ============================================= */

/* 1. Базовые настройки для всех устройств */
:root {
    /* Переменные для отступов */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Переменные для типографики */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;

    /* Переменные для скруглений */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Переменные для теней */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Z-index слои */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* 2. Контейнеры и сетки */
.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 320px) {
    .container {
        max-width: 100%;
        padding-right: var(--space-sm);
        padding-left: var(--space-sm);
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    /* Адаптивные сетки */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* 3. Адаптивная типографика */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

/* Адаптивные заголовки */
h1 {
    font-size: var(--text-4xl);
    line-height: 1.2;
}

h2 {
    font-size: var(--text-3xl);
    line-height: 1.3;
}

h3 {
    font-size: var(--text-2xl);
    line-height: 1.4;
}

@media (max-width: 768px) {
    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--text-2xl);
    }

    h2 {
        font-size: var(--text-xl);
    }

    h3 {
        font-size: var(--text-lg);
    }
}

/* 4. Улучшенная навигация для всех устройств */
.nav-centered {
    display: none; /* Скрываем на мобильных по умолчанию */
}

.nav-links {
    display: none;
}

/* Мобильная навигация всегда видна */
.mobile-dropdown {
    display: block;
}

@media (min-width: 1024px) {
    .nav-centered {
        display: flex;
    }

    .nav-links {
        display: flex;
    }

    .mobile-dropdown {
        display: none;
    }
}

/* Улучшенное мобильное меню */
.dropdown-menu {
    position: fixed !important;
    top: 70px;
    right: 15px;
    left: 15px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
}

.dropdown-link {
    padding: 1rem 1.5rem;
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--light-gray);
}

.dropdown-link:last-child {
    border-bottom: none;
}

/* 5. Адаптивные карточки товаров */
.products-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .product-card {
        display: flex;
        flex-direction: column;
    }

    .product-image {
        height: 200px;
        object-fit: contain;
    }
}

/* 6. Адаптивные формы */
.form-group {
    margin-bottom: var(--space-md);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: var(--text-md);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .form-row {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .form-row > * {
        width: 100%;
    }
}

/* 7. Адаптивные кнопки */
.btn {
    min-height: 44px; /* Минимальная высота для касания */
    min-width: 44px; /* Минимальная ширина для касания */
    padding: 0.75rem 1.5rem;
    font-size: var(--text-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 8. Адаптивные таблицы */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 9. Безопасные зоны для современных устройств */
@supports (padding: max(0px)) {
    .header,
    .main,
    .footer {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
    }

    .header {
        padding-top: max(var(--space-sm), env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
    }
}

/* 10. Улучшенные изображения */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ленивая загрузка изображений */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 11. Адаптивные иконки */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.icon-small {
    width: 16px;
    height: 16px;
}

.icon-large {
    width: 32px;
    height: 32px;
}

/* 12. Улучшенные отступы для контента */
.section {
    padding: var(--space-xl) 0;
}

.section-sm {
    padding: var(--space-md) 0;
}

.section-lg {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-lg) 0;
    }

    .section-lg {
        padding: var(--space-xl) 0;
    }
}

/* 13. Скрытие/показ элементов по размеру экрана */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 1023px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* 14. Плавные переходы для всех интерактивных элементов */
a, button, input, select, textarea {
    transition: all 0.2s ease;
}

/* 15. Улучшенный скроллбар */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 16. Оптимизация для слабых устройств */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 17. Поддержка различных режимов просмотра */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: var(--z-fixed);
    }

    .main {
        padding-top: 70px; /* Высота хедера */
    }
}

/* 18. Ориентация экрана */
@media (orientation: portrait) {
    .slider-container {
        max-height: 60vh;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .header {
        padding: 0.5rem 0;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .main {
        padding-top: 60px;
    }
}

/* 19. Высокая плотность пикселей (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .product-image,
    .cart-item-image img {
        image-rendering: crisp-edges;
    }
}

/* 20. Принудительный темный режим в системах */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --white: #121212;
        --light-gray: #1e1e1e;
        --dark-gray: #f0f0f0;
        --surface: #2d2d2d;
        --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

/* 21. Адаптивные отступы в модальных окнах */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-height: 600px) {
    .modal-content {
        max-height: 80vh;
    }
}

/* 22. Улучшенные анимации для мобильных */
@media (max-width: 768px) {
    .fade-in {
        animation: fadeInMobile 0.3s ease;
    }

    @keyframes fadeInMobile {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 23. Отключение hover-эффектов на сенсорных устройствах */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .btn:hover,
    .category-item:hover {
        transform: none;
        box-shadow: none;
    }

    /* Увеличиваем область клика для touch устройств */
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 24. Принтерные стили */
@media print {
    .header,
    .footer,
    .mobile-dropdown,
    .theme-switcher,
    .cart-link,
    .btn-remove,
    .ad-modal-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .product-card,
    .cart-container,
    .checkout-form-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Улучшение для устройств с курсором */
@media (hover: hover) and (pointer: fine) {
    .btn:hover,
    .nav-link:hover,
    .dropdown-link:hover {
        transform: translateY(-1px);
    }
}

/* Улучшение для устройств без курсора */
@media (hover: none) and (pointer: coarse) {
    .btn:active,
    .nav-link:active,
    .dropdown-link:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}

/* Оптимизация для Retina дисплеев */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .product-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Улучшение для старых браузеров */
@supports not (display: grid) {
    .products-grid {
        display: flex;
        flex-wrap: wrap;
        margin: -10px;
    }

    .product-card {
        width: calc(33.333% - 20px);
        margin: 10px;
    }
}

.hero-content {
    text-align: center;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
    border-radius: 20px;
    color: var(--dark-gray);
}

.cta-section {
    text-align: center;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--gold) 100%);
    border-radius: 20px;
    color: var(--dark-gray);
    margin-top: 2rem;
}

/* Audit improvements: shared utility classes */
.subtitle-strong {
    font-weight: bold;
}

.product-card-relative {
    position: relative;
}

.product-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--emerald);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pagination-wrap {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-current {
    background: var(--emerald);
}

.events-page-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

.events-page-title {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.events-page-subtitle {
    color: var(--dark-gray);
    opacity: 0.7;
}

.events-section {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
}

.events-section-title {
    text-align: center;
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
}

.events-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.event-card {
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-gray);
    border: 2px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

:root[data-theme="dark"] .event-card {
    background: #2d2d2d;
}

.event-card-image {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: var(--dark-surface);
}

.event-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-no-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text-secondary);
    font-size: 2.5rem;
}

.event-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.event-card:hover .event-card-overlay {
    opacity: 1;
}

.event-card-info {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.event-card-title {
    color: var(--dark-gray);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.event-card-date {
    color: var(--gold);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .events-mosaic {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .events-mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Только для кнопки просмотра в карточке товара (глаз)*/
.product-overlay .btn-view {
    display: inline-flex;
    justify-content: flex-start;
    /*justify-content: flex-start;*/
    /*align-items: center;*/
    color: #c3821b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-overlay .btn-view:hover {
    color: #474a51;
    /*text-shadow: 0 0 10px rgba(64, 224, 208, 0.3);*/

}

.product-overlay .btn-view:active {
    color: #474a51;
    /*transform: scale(0.9);*/
    transition: transform 0.6s ease;
}

/*.product-overlay .btn-view i {*/
/*    transition: transform 0.2s ease;*/
/*}*/

.product-overlay .btn-view:hover i {
    transform: scale(1.2);
}

.product-overlay .btn-view:active i {
    transform: scale(0.9);
}

/* Для touch-устройств (мобильных) */
@media (max-width: 768px) {
    .product-overlay {
        top: 8px;
        left: 8px;
    }

    .btn-view {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .btn-view i {
        font-size: 1.6rem !important;
    }
}

/* ============================================= */
/* ФИКС ДЛЯ СООТНОШЕНИЯ 16:10 */
/* ============================================= */
/* 1. Специальные медиазапросы для 16:10 */
@media (min-width: 1024px) and (max-width: 1400px) and (min-height: 600px) and (max-height: 1023px) {
    /* Уменьшаем отступы и размеры в header */
    .header-content {
        padding: 0.5rem 0;
    }

    .logo a {
        font-size: 1.4rem !important;
    }

    /* Уменьшаем навигацию */
    .nav-links {
        gap: 0.2rem !important;
    }

    .nav-link {
        font-size: 1rem !important;
        padding: 0.4rem 0.7rem !important;
    }

    /* Уменьшаем иконки */
    .cart-link {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.1rem !important;
    }

    .cart-count {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.65rem !important;
    }

    /* Уменьшаем переключатель темы */
    .theme-toggle {
        width: 50px !important;
        height: 26px !important;
    }

    .theme-icon-light,
    .theme-icon-dark {
        font-size: 12px !important;
    }

    .theme-toggle-slider {
        width: 20px !important;
        height: 20px !important;
    }

    [data-theme="dark"] .theme-toggle-slider {
        transform: translateX(24px) !important;
    }
}

/* Для экранов с шириной примерно 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        padding: 0.8rem 1rem !important;
    }

    .logo {
        flex: 0 0 150px !important;
        max-width: 150px !important;
    }

    .logo a {
        font-size: 1.4rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .nav-links {
        order: 3 !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        justify-content: center !important;
        gap: 0.2rem !important;
        flex-wrap: wrap !important;
    }

    .nav-link {
        font-size: 0.9rem !important;
        padding: 0.4rem 0.6rem !important;
        margin: 0.1rem !important;
        white-space: nowrap !important;
    }

    .header-actions {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .cart-link {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.1rem !important;
    }

    .cart-count {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.65rem !important;
    }

    .theme-toggle {
        width: 50px !important;
        height: 26px !important;
    }

    .theme-icon-light,
    .theme-icon-dark {
        font-size: 12px !important;
    }

    .theme-toggle-slider {
        width: 20px !important;
        height: 20px !important;
    }

    [data-theme="dark"] .theme-toggle-slider {
        transform: translateX(24px) !important;
    }
}


/* Общие стили для блока "О компании" */
.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Адаптивные стили */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Мобильные устройства (576px - 768px) */
@media (max-width: 768px) {
    .advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

/* Маленькие мобильные устройства (до 576px) */
@media (max-width: 576px) {
    .advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 350px;
        margin: 1.5rem auto 0;
    }
}

/* Очень маленькие экраны (до 400px) */
@media (max-width: 400px) {
    .advantages {
        max-width: 300px;
        gap: 0.8rem;
    }
}


/* Стили для загрузки файлов */
.custom-file-upload {
    position: relative;
    /*margin-top: 0.5rem;*/
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-area {
    border: 2px dashed var(--dark-gray);
    border-radius: 8px;
    padding: 0.9rem;
    text-align: center;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--emerald);
    background: var(--turquoise);
}

.file-upload-area.dragover {
    border-color: var(--emerald);
    background: var(--turquoise);
    transform: scale(1.02);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--emerald);
    /*margin-bottom: 1rem;*/
}

.file-upload-text {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.file-browse-link {
    color: var(--emerald);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: var(--light-gray);
}

.file-hint {
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: normal;
    display: block;
    margin-top: 0.3rem;
}

.file-preview-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: var(--dark-gray);
    border-radius: 6px;
    border: 1px solid var(--dark-gray);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: var(--emerald);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.file-size {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.3rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.file-remove:hover {
    background: rgba(220, 53, 69, 0.1);
}

.file-info {
    margin-top: 0.5rem;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .file-upload-area {
        padding: 1.5rem;
    }

    .file-upload-area i {
        font-size: 2.5rem;
    }

    .file-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .file-preview-info {
        width: 100%;
    }

    .file-remove {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .file-upload-area {
        padding: 1rem;
    }

    .file-upload-text {
        font-size: 0.9rem;
    }

    .file-upload-hint {
        font-size: 0.8rem;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .file-upload-area {
        background: var(--dark-bg);
        border-color: var(--dark-border);
    }

    .file-upload-area:hover,
    .file-upload-area.dragover {
        background: var(--dark-card);
        border-color: var(--emerald);
    }

    .file-upload-text {
        color: var(--dark-text);
    }

    .file-preview {
        background: var(--dark-card);
        border-color: var(--dark-border);
    }

    .file-name {
        color: var(--dark-text);
    }

    .file-upload-hint {
        color: var(--dark-text);
    }

    .file-hint {
        color: var(--dark-text);
    }
}

.file-remove {
    cursor: pointer;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
    z-index: 20;
    position: relative;
}

.file-remove:hover {
    background: rgba(220, 53, 69, 0.1);
}

.file-remove:active {
    background: rgba(220, 53, 69, 0.2);
}

/* Убираем стандартное поведение кнопок в формах */
.file-remove {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Улучшаем визуальную обратную связь для кнопки удаления */
.file-remove i {
    pointer-events: none;
}