﻿.header2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #1a1a1a;
    border-bottom: 2px solid #d4af37;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
    border-radius: 50%;
}

.brand-name-img {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.2));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    background: transparent;
    color: #d4af37;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
    background: #1a1a1a;
}

    .header-btn:hover {
        background: #d4af37;
        color: #0d0d0d;
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
        transform: scale(1.05);
    }
/* Хедер — относительный контейнер для абсолютных элементов */
.header {
    position: relative;
    width: 100%;
    background: #ffffff;
    /* Небольшая тень для красоты */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ---------- Логотип (круглый) ---------- */
.logo {
    position: absolute;
    top: 20px;
    left: 1%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    /* Тень только от видимых частей */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 1));
    z-index: 10;
}

/* ---------- Картинка с названием ---------- */
.brand-name {
    position: absolute;
    top: 20px;
    left: calc(20px + 60px + 15px); /* 20px (отступ слева) + 60px (ширина лого) + 15px */
    height: 60px; /* подбираем под свой логотип */
    width: auto;
    /* Тень только от видимых частей */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 1));
    z-index: 10;
}

/* ---------- Контейнер слайдера ---------- */
.slider-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-top: 70px; /* отступ, чтобы не перекрывать логотип (60px + 20px) */
    background: #e9e9e9;
    touch-action: pan-y; /* улучшение для свайпов */
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    cursor: pointer;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        user-select: none;
        -webkit-user-drag: none;
    }

@media (max-width: 768px) {
    .logo {
        width: 50px;
        height: 50px;
        top: 15px;
        left: 15px;
    }

    .brand-name {
        left: calc(15px + 50px + 12px);
        height: 50px;
        top: 15px;
    }

    .slider-container {
        height: 300px;
        margin-top: 65px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
    }

    .brand-name {
        left: calc(10px + 40px + 10px);
        height: 40px;
        top: 10px;
    }

    .slider-container {
        height: 250px;
        margin-top: 52px;
    }
}

/* Контейнер всей поисковой панели */
.search-container {
    width: 100%;
    height: 100px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #d4af37;
}

/* Форма */
    .search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1200px;
    gap: 20px;
    flex-wrap: nowrap;
}

/* Блок с кнопками объёма */
.volume-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.volume-label {
    color: #d4af37;
    font-weight: bold;
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
}

.volume-buttons {
    display: flex;
    gap: 8px;
}

/* Базовая стилизация кнопок объёма */
.vol-btn {
    padding: 6px 16px;
    border: 2px solid #c4b08a; /* молочно-золотистый */
    border-radius: 10px;
    background: transparent;
    color: #c4b08a; /* молочно-золотистый текст */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    font-family: 'Segoe UI', sans-serif;
    min-width: 60px;
    text-align: center;
}

    /* Состояние при наведении (неактивная кнопка) */
    .vol-btn:not(.active):hover {
        border-color: #d4af37;
        color: #d4af37;
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
        transform: scale(1.02);
    }

    /* Активная кнопка (выбранная) */
    .vol-btn.active {
        background: #d4af37;
        border-color: #d4af37;
        color: #1e1e1e;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
        transform: scale(1.05);
    }

        /* При наведении на активную — оставляем её золотой, но можно добавить лёгкое свечение */
        .vol-btn.active:hover {
            box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
        }

/* Поле ввода текста */
.search-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 18px;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    background: #2a2a2a;
    color: #f0f0f0;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    height: 46px;
    box-sizing: border-box;
}

    .search-input::placeholder {
        color: #888;
        font-style: italic;
    }

    .search-input:focus {
        border-color: #d4af37;
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
    }

/* Кнопка "Найти" */
.search-btn {
    padding: 10px 30px;
    background: #d4af37;
    border: none;
    border-radius: 10px;
    color: #1e1e1e;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    height: 46px;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

    .search-btn:hover {
        background: #e6c35c;
        transform: scale(1.02);
    }

    .search-btn:active {
        transform: scale(0.97);
    }

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .search-form {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .search-container {
        width: 100%;
        height: 200px;
        background: #1e1e1e;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
        border-bottom: 2px solid #d4af37;
    }

    .volume-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .volume-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-input {
        min-width: 100%;
        flex-basis: 100%;
    }

    .search-btn {
        width: 100%;
    }
}

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

/* ----- Общие стили ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif, Arial;
    background: linear-gradient(to bottom, #171611, #594d11);
}

.products-section {
    max-width: 1400px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 24px;
    padding: 30px 20px 40px;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ----- Кнопки категорий (табы) ----- */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

    .category-tabs button {
        padding: 6px 16px;
        border: 2px solid #c4b08a; /* молочно-золотистый */
        border-radius: 10px;
        background: transparent;
        color: #c4b08a; /* молочно-золотистый текст */
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s ease;
        outline: none;
        font-family: 'Segoe UI', sans-serif;
        min-width: 60px;
        text-align: center;
    }

        .category-tabs button:hover {
            border-color: #d4af37;
            color: #d4af37;
            box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
            transform: scale(1.02);
        }

        .category-tabs button.active {
            background: #d4af37;
            border-color: #d4af37;
            color: #1e1e1e;
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
            transform: scale(1.05);
        }

            .category-tabs button.active:hover {
                box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
            }

/* ----- Сетка товаров ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

/* ----- Карточка товара ----- */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0ede8;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
    }

/* Обёртка для формы (чтобы клик по карточке отправлял форму) */
.product-form {
    display: contents;
    /* форма не влияет на отображение */
}

/* ----- Мини-слайдер (3 квадратные картинки) ----- */
.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* квадрат */
    background: #f0ede8;
    overflow: hidden;
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    height: 100%;
}

    .slider-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        user-select: none;
        -webkit-user-drag: none;
    }

/* Индикаторы (точки) */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}

    .slider-dots span {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        transition: background 0.3s ease, transform 0.2s ease;
        pointer-events: auto;
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

        .slider-dots span.active {
            background: #1e1e1e;
            transform: scale(1.2);
        }

/* ----- Информация о товаре ----- */
.product-info {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e1e1e;
    line-height: 1.3;
    margin-bottom: 2px;
}

.product-description {
    font-size: 0.9rem;
    color: #5a5a5a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    /* ~3 строки */
    margin-bottom: 4px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.85rem;
    color: #444;
    margin: 4px 0 6px;
}

    .product-meta span {
        background: #f5f3ef;
        padding: 2px 12px;
        border-radius: 30px;
    }

.product-status {
    font-weight: 600;
}

    .product-status.in-stock {
        color: #2b7a4b;
    }

    .product-status.out-of-stock {
        color: #b33c3c;
    }

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e1e1e;
    margin: 8px 0 6px;
}

    .product-price::after {
        content: " ₽";
        font-weight: 400;
        font-size: 1rem;
        color: #5a5a5a;
    }

.buy-button {
    align-self: flex-start;
    background: #1e1e1e;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

    .buy-button:hover {
        background: #333;
    }

    .buy-button:active {
        transform: scale(0.96);
    }

/* ----- Адаптивность ----- */
@media (max-width: 768px) {
    .products-section {
        padding: 20px 12px 30px;
    }

    .category-tabs button {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }

    .product-info {
        padding: 14px 14px 18px;
    }

    .product-name {
        font-size: 1.05rem;
    }

    .product-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-info {
        padding: 10px 10px 14px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        max-height: 3em;
    }

    .buy-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .slider-dots span {
        width: 8px;
        height: 8px;
    }
}

/* Сообщение "нет товаров" */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #888;
}

.home-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #d4af37;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: 0.3s ease;
    z-index: 1000; /* Поверх всех элементов */
    cursor: pointer;
}

    .home-button:hover {
        background: #d4af37;
        color: #0d0d0d;
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }

    .home-button:active {
        transform: scale(0.95);
    }

/* Адаптивность */
@media (max-width: 768px) {
    .home-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .home-button {
        bottom: 15px;
        right: 15px;
        width: 46px;
        height: 46px;
    }
}

/* ----- Плашка cookies (тёмно-золотая) ----- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border-top: 2px solid #d4af37;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8);
    padding: 18px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    opacity: 1;
}

    .cookie-banner.hidden {
        transform: translateY(120%);
        opacity: 0;
        pointer-events: none;
    }

.cookie-text {
    flex: 1 1 80px;
    color: #e6e6e6;
    font-size: 0.95rem;
    line-height: 1.5;
}

    .cookie-text strong {
        color: #d4af37;
    }

    .cookie-text a {
        color: #d4af37;
        text-decoration: underline;
        transition: 0.2s;
    }

        .cookie-text a:hover {
            color: #f0d060;
        }

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cookie-btn-accept {
    background: #d4af37;
    color: #0d0d0d;
}

    .cookie-btn-accept:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    }

.cookie-btn-details {
    background: transparent;
    color: #c0c0c0;
    border: 1px solid #555;
    box-shadow: none;
}

    .cookie-btn-details:hover {
        border-color: #d4af37;
        color: #d4af37;
        background: rgba(212, 175, 55, 0.08);
    }

/* ----- Адаптивность ----- */
@media (max-width: 600px) {
    .cookie-banner {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cookie-text {
        font-size: 0.9rem;
    }

    .cookie-actions {
        justify-content: flex-end;
        gap: 10px;
    }

    .cookie-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        text-align: center;
    }
}

/* ----- Футер (тёмно-золотая палитра) ----- */
.footer {
    width: 100%;
    flex-shrink: 0;
    background: #0d0d0d;
    border-top: 2px solid #d4af37;
    padding: 40px 30px 20px;
    margin-top: 40px;
    color: #c0c0c0;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 6px;
}

.brand-name {
    letter-spacing: 1px;
}

.footer-inn,
.footer-company {
    font-size: 0.95rem;
    color: #aaa;
}

.footer-heading {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.footer-phone,
.footer-contact,
.footer-email{
    font-size: 0.95rem;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .footer-phone::before {
        content: "📞";
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.2));
    }

    .footer-email::before {
        content: "📧";
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.2));
    }

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* ----- Адаптивность ----- */
@media (max-width: 768px) {
    .footer {
        padding: 30px 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-phone,
    .footer-email,
    .footer-contact{
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #1a1a1a;
    border: 1px solid #d4af37;
    border-radius: 16px;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
    z-index: 1000;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

    .dropdown-menu.open {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #e6e6e6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s ease;
    border-bottom: 1px solid #2a2a2a;
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: #d4af37;
        color: #0d0d0d;
    }

    .dropdown-item .dropdown-icon {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }

/* Адаптивность */
@media (max-width: 480px) {
    .dropdown-menu {
        right: -10px;
        min-width: 200px;
    }

    .dropdown-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}