:root {
    --black: #000;
    --orange: #DFAE24;
    --white: #fff;
    --grey: #C5C1BD
}

body, html {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

/* HEADER */
.gradient-bar {
    width: 100%;
    height: 48px;
    background: linear-gradient(to right, #D19F14, #C5C1BD);
    position: fixed;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-text {
    color: var(--black);
    font-size: 14px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px; /* Пространство по краям */
    position: fixed;
    width: 100%;
    top: 48px; /* Под градиентной полосой */
    height: 80px; /* Высота строки меню */
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 101;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Тень для глубины */
}

.header-content__logo {
    height: 40px; /* Размер логотипа */
    max-height: 100%;
    margin-left: 30px; /* Сдвигаем логотип правее */
}

nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Центровка пунктов меню */
    flex: 1; /* Занимает оставшееся пространство */
}

nav a {
    text-decoration: none;
    margin: 0 15px; /* Расстояние между пунктами меню */
    color: var(--black);
    font-size: 18px;
    transition: color 0.4s ease;
}

nav a:hover {
    color: var(--orange);
}

nav a.cheked {
    background: linear-gradient(45deg, #DFAE24, #000000); /* Градиент текста */
    -webkit-background-clip: text; /* Обрезка фона текстом */
    -webkit-text-fill-color: transparent; /* Прозрачный текст для отображения градиента */
    transition: all 0.4s ease; /* Добавлен плавный переход */
}

nav a.cheked:hover {
    color: var(--black); /* Текст становится чёрным при наведении */
    -webkit-text-fill-color: var(--black); /* Цвет текста плавно меняется на чёрный */
}

/* Обёртка выпадающего меню */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Кнопка PRODUCTS */
.dropdown-button {
  background: linear-gradient(85deg, #DFAE24, #000000); /* Градиент текста */
  -webkit-background-clip: text; /* Обрезка фона текстом */
  -webkit-text-fill-color: transparent; /* Прозрачный текст для отображения градиента */
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.4s ease, background-color 0.4s ease; /* Плавное изменение цвета */
  border: none; /* Убираем границу */
  outline: none; /* Убираем обводку при фокусе */
  padding: 10px 20px; /* Увеличиваем область клика */
  cursor: pointer; /* Указатель мыши */
}

/* Стили при наведении */
.dropdown-button:hover {
  color: var(--orange); /* Оранжевый текст при наведении */
  -webkit-text-fill-color: var(--orange); /* Поддержка WebKit */
}

/* Выпадающее меню */
.dropdown-menu {
  display: block; /* Меню всегда рендерится */
  position: absolute; /* Абсолютное позиционирование относительно родителя */
  top: 100%; /* Под кнопкой */
  left: 0; /* Выровнено по левому краю кнопки */
  background-color: #fff; /* Белый фон */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Тень */
  z-index: 102;
  padding: 10px 0;
  border-radius: 4px;
  opacity: 0; /* Начальная прозрачность */
  transform: translateY(-10px); /* Начальное смещение */
  pointer-events: none; /* Отключаем взаимодействие, пока меню скрыто */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Более плавное появление */
  min-width: 200px; /* Минимальная ширина меню */
}

/* Стили ссылок в меню */
.dropdown-menu a {
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #FFA500; /* Оранжевый фон при наведении */
  color: #fff;
}

/* Показ меню при наведении */
.dropdown:hover .dropdown-menu {
  opacity: 1; /* Полная видимость */
  transform: translateY(0); /* Убираем смещение */
  pointer-events: auto; /* Включаем взаимодействие */
}

.header-content_last_cart img {
    height: 25px; /* Initial size */
    width: auto;
    margin-top: 10px;
    transition: transform 0.3s ease; /* Smooth transition when hovered */
}

.header-content_last_cart img:hover {
    transform: scale(1.1); /* Slightly increase the size on hover */
}


.header-content_last_login:last-of-type {
    text-decoration: none;
    background-color: var(--orange);
    color: var(--black);
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 16px;
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.header-content_last_login:last-of-type:hover {
    background-color: var(--grey);
    color: var(--black);
}

.menu {
  display: flex;
  justify-content: center; /* Центрируем меню */
  gap: 20px; /* Расстояние между кнопками (можно настроить по желанию) */
  margin-top: 160px; /* Отступ сверху, чтобы избежать наложения на шапку (48px градиент + 80px шапка) */
}

.menu-button {
  font-size: 18px;
  color: black;
  text-decoration: none; /* Убираем подчеркивание */
  position: relative;
  font-family: "Poppins", sans-serif; /* Шрифт текста */
  padding: 10px 20px; /* Внутренний отступ для текста */
  border-radius: 20px; /* Радиус кнопки */
  transition: color 0.4s ease, background-color 0.4s ease; /* Плавные переходы для текста и фона */
}

.menu-button:hover {
  color: white; /* Цвет текста становится белым */
  background-color: #322E20; /* Фон кнопки при наведении */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Небольшая тень вокруг кнопки */
}

.menu-button.active {
    background-color: #322E20; /* Цвет фона активной кнопки */
    color: white; /* Цвет текста активной кнопки */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Тень для эффекта */
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  justify-content: center;
  padding: 20px;
  margin: 0 auto;
  margin-top: 50px;
  max-width: calc(4 * 220px + 3 * 60px);
  box-sizing: border-box;
  transition: opacity 0.5s ease; /* Плавный переход для контейнера */
}

.card {
  width: 220px; /* Фиксированная ширина карточек */
  min-height: 350px; /* Минимальная высота карточек */
  border: none; /* Убираем границу */
  border-radius: 16px; /* Увеличенный радиус углов для карточки */
  padding: 16px;
  text-align: center;
  background-color: #FBFAFA;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.5s ease; 
}

.card img {
  width: 100%;
  height: 180px; /* Фиксированная высота для единообразия */
  object-fit: cover; /* Обрезка изображения для полного заполнения */
  border-radius: 12px; /* Закругленные углы у изображения */
  margin-bottom: 16px;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Более сильная тень */
  transform: translateY(-10px); /* Поднимаем карточку при наведении */
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 1.2rem;
}

.card p {
  margin: 8px 0;
  color: #555;
}

.price-button-container {
  display: flex; /* Горизонтальная линия для цены и кнопки */
  justify-content: space-between; /* Разделяет цену и кнопку */
  align-items: center; /* Вертикальное выравнивание */
  margin-top: 16px;
  padding-top: 8px;
}

.price {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

.card button {
  background-color: #f0c14b;
  color: #333;
  border: none;
  padding: 6px 27px; /* Уменьшенные вертикальные отступы для меньшей высоты и увеличенные горизонтальные для большей длины */
  border-radius: 20px; /* Высокий радиус для округления углов */
  cursor: pointer;
  transition: background-color 0.5s ease;
  font-size: 1rem; /* Размер шрифта остаётся прежним */
}

.card button:hover {
  background-color: #e2ac3f;
}

.hidden {
  display: none;
}

.pagination {
  text-align: center;
  margin-top: 30px;
}

.page-btn {
  padding: 10px 20px;
  margin: 15px;
  border: none;
  background-color: #ddd;
  cursor: pointer;
  border-radius: 5px;
  font-size: 18px;
}

.page-btn.active {
  background-color: #f0c14b;
  color: #333;
}

.page-btn:hover {
  background-color: #e2ac3f;
}

.footer {
  width: 100%; /* Ширина футера на 100% */
  background-color: #000; /* Черный фон */
  display: flex; /* Используем flexbox для размещения содержимого */
  justify-content: center; /* Центрируем содержимое */
  padding: 30px 0; /* Отступы сверху и снизу */
}

.footer-content {
  display: flex; /* Flexbox для содержимого футера */
  justify-content: space-between; /* Распределяем колонки равномерно */
  max-width: 1200px; /* Ограничиваем максимальную ширину футера */
  width: 100%; /* Устанавливаем ширину на 100% */
}

/* Колонки футера */
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 80px; /* Увеличиваем отступы между колонками */
}

/* Заголовки h10 */
.footer-column h10 {
  margin-bottom: 10px;
  font-size: 18px;
  text-transform: uppercase;
  color: #fff; /* Белый цвет для заголовков */
}

/* Стиль кнопок */
.footer-column button {
  background: none;
  border: none;
  color: #C5C1BD; /* Серый цвет текста кнопок */
  margin: 5px 0;
  cursor: pointer;
  font-size: 14px; /* Размер шрифта для кнопок */
}

.footer-column button:hover {
  text-decoration: underline;
  color: #AFAFAF; /* Более светлый серый цвет при наведении */
}

/* Подзаголовки h12 */
.footer-column h12 {
  font-size: 14px;
  margin-left: 10px;
  color: #C5C1BD; /* Серый цвет для подзаголовков */
}

/* Описание с иконками */
.footer-column .description {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.footer-column .description img {
  width: 25px; /* Уменьшенный размер иконок */
  height: 25px;
  margin-right: 10px;
}

/* Изображения социальных сетей */
.footer-column .images img {
  width: 40px; /* Уменьшенные изображения социальных сетей */
  height: 40px;
  margin: 5px;
}

.footer-column .images a {
  text-decoration: none; /* Убираем подчеркивание */
}

/* Фон затемнения */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Когда корзина открыта */
.cart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Основной контейнер корзины */
.cart-popup {
    background: white;
    width: 420px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    position: relative;
}

/* Кнопка закрытия (крестик) */
.cart-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.cart-close-btn:hover {
    color: #DFAE24;
}

/* Заголовок корзины */
.cart-popup h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Блок товаров */
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Карточка товара */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Фото товара */
.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

/* Контейнер для названия и характеристик */
.cart-item-details {
    flex-grow: 1;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Название товара по центру */
.cart-item-name {
    font-weight: bold;
    font-size: 15px;
    text-align: left;
}

/* Цена и объем */
.cart-item-volume {
    font-size: 14px;
    color: #666;
}

/* Количество */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-input {
    width: 35px;
    text-align: center;
    font-size: 14px;
}

/* Кнопка удаления товара */
.remove-item {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* Размер иконки мусорки */
.remove-item img {
    width: 24px; /* Уменьшаем размер */
    height: 24px;
    object-fit: contain;
}

/* Эффект увеличения при наведении */
.remove-item:hover {
    transform: scale(1.1); /* Немного увеличиваем */
    transition: transform 0.3s;
}

/* Список товаров в корзине (с прокруткой) */
.cart-items {
    flex-grow: 1;
    max-height: 60vh; /* Ограничиваем высоту корзины */
    overflow-y: auto; /* Добавляем прокрутку */
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Улучшаем скролл (для современных браузеров) */
.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}


/* Футер корзины (фиксируем внизу) */
.cart-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* Размещаем элементы по краям */
    padding: 15px;
    background: white;
    border-top: 1px solid #ddd;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 420px; /* Должно совпадать с шириной корзины */
    z-index: 1000;
}

/* Тотал суммы (слева) */
.cart-total {
    font-size: 18px;
    font-weight: bold;
    margin-left: 15px;
}

/* Кнопка Checkout (справа) */
.checkout-btn {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    background: #DFAE24;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    margin-right: 15px;
    min-width: 120px; /* Устанавливаем минимальную ширину кнопки */
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: #c89f20;
}

/* Фото товара (увеличенное) */
.cart-item-image {
    width: 120px; /* Увеличено с 60px */
    height: 120px; /* Увеличено с 60px */
    border-radius: 8px;
    object-fit: cover;
}

/* === КНОПКА КОРЗИНЫ (СДВИГ ВЛЕВО) === */
.header-content_last_cart {
    position: relative;
    margin-right: 90px; /* Еще больше сдвигаем левее */
}

.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Показываем затемнение */
.form-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Окно формы */
.form-popup {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: "Poppins", sans-serif;
    position: relative;
    width: 100%;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Показываем форму */
.form-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Заголовок */
.form-popup h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Поля ввода */
.form-popup input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.2s ease-in-out;
}

.form-popup input:focus {
    border-color: #DFAE24;
    outline: none;
    box-shadow: 0 0 5px rgba(223, 174, 36, 0.5);
}

/* Кнопки */
.form-popup .form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.form-popup button {
    background: #DFAE24;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    width: 48%;
    font-size: 16px;
    transition: 0.2s;
}

.form-popup button:hover {
    background: #c89f20;
}

/* Кнопка закрытия */
.form-close-btn {
    background: #e74c3c;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px !important;  /* Фиксированная ширина */
    height: 24px !important; /* Фиксированная высота */
    min-width: unset !important; /* Сбрасываем min-width */
    min-height: unset !important; /* Сбрасываем min-height */
    background: rgba(0, 0, 0, 0.1); /* Легкий фон */
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 16px; /* Размер крестика */
    font-weight: bold;
    padding: 0 !important; /* Убираем любые внутренние отступы */
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;

}

/* Эффект наведения */
.form-popup .close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.form-close-btn:hover {
    background: #c0392b;
}


/* === БУРГЕР-МЕНЮ (☰) === */
.mobile-menu-btn {
    display: none; /* Скрыто на ПК */
    font-size: 30px;
    cursor: pointer;
    position: fixed;
    top: 58px;
    right: 20px;
    z-index: 200;
    background: none;
    border: none;
    color: var(--black);
}

/* === МОБИЛЬНОЕ МЕНЮ === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Прячем за экраном */
    width: 280px; /* Увеличенная ширина */
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    z-index: 201;
}

/* Кнопка закрытия (×) */
.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Ссылки в мобильном меню */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Расстояние между кнопками */
    width: 100%;
    text-align: center;
    margin-top: -100px;
}

/* Кнопки мобильного меню (без подсветки) */
.mobile-nav a {
    text-decoration: none;
    font-size: 20px;
    font-weight: lighter;
    color: var(--black);
    padding: 15px 25px;
    width: 70%;
    transition: transform 0.2s ease-in-out;
}


/* Убираем фон при наведении */
.mobile-nav a:hover {
    transform: scale(1.05); /* Легкое увеличение */
}

/* Когда меню открыто */
.mobile-menu.open {
    right: 0;
}

/* Адаптация под мобильные устройства */

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }
    
   .header-content_last_cart {
        top: 4px;
        position: relative;
        margin-right: 90px; /* Еще больше сдвигаем левее */
    }

    .mobile-menu-btn {
        display: block; /* Теперь оно видно! */
        right: 1px;
    }
    
    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Расстояние между кнопками */
        width: 100%;
        text-align: center;
        margin-top: -220px;
    }

    nav {
        display: none; /* Прячем обычное меню */
    }

    nav a {
        margin: 10px 0;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 120px;
    }

    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
     body, html {
        font-size: 16px; /* Уменьшаем размер шрифта */
    }
    
    .header-content {
        padding: 0 20px;
        height: 60px;
        top: 48px;
    }

    .header-content__logo {
        height: 28px;
        margin-left: 15px;
    }

    nav {
        display: none; /* Скрываем меню навигации */
    }
    
    .header-content_last_login {
        display: none;
    }
    
   .menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Три столбца */
        gap: 10px;
        justify-content: center;
        align-items: center;
        margin-top: 120px;
        margin-left: 10px;
    }

    .menu-button {
        font-size: 16px;
        padding: 8px 5px;
        text-align: center;
    }

    .card-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .card {
        width: 90%;
        margin: 0 auto;
    }
    
    .card img {
        height: 400px;
    }


    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        margin: 10px 0;
        align-items: center;
    }
    
    .cart-total {
        margin-right: 50px !important;
    }
    
    .checkout-btn {
        padding: 5px 10px !important;
        font-size: 14px !important;
        width: 100px !important;
        height: 40px !important;
        margin-right: 50px !important;
    }
    
    .form-close-btn {
        margin-top: 35px;
    }

    .cart-popup {
        width: 100%;
        height: 100%;
    }

    .cart-footer {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .cart-total {
        margin: 10px 0;
    }

    .checkout-btn {
        width: 100%;
    }

}


