* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Verdana', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 8px 0;
    transition: all 0.3s ease;
}

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

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo span {
    color: #ff57d1;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff57d1;
    transform: translateY(-2px);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #ff57d1;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
    background: #F5F3F0;
    border-radius: 50%;
    transition: all 0.3s ease;
    
}
@media (max-width: 768px) {
    .cart-icon {
        margin-right: 20px; /* подвинет влево */
        /* или вариант с transform: translateX(-5px); если нужно сильнее */
    }
}

.cart-icon:hover {
    background: #ff57d1;
    color: white;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff57d1;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 20px;
}

.mobile-nav-link {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('background.webp') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #ff57d1;
    color: #ffffff;
}

.btn-primary:hover {
    background: #ff57d1;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ff57d1;
    border: 2px solid #ff57d1;
}

.btn-secondary:hover {
    background: #ff57d1;
    color: white;
    transform: translateY(-3px);
}

/* Marquee */
.marquee {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.1);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-size: 18px;
    font-weight: bold;
    color: white;
    letter-spacing: 3px;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: #FAFAFA;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* Greenhouses Section */
.greenhouses {
    background: white;
}

.greenhouses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.greenhouse-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.greenhouse-item:hover {
    transform: translateY(-10px);
}

.greenhouse-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.greenhouse-item h3 {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

/* Payment Methods */
.payment-methods {
    background: #F8F7F5;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.payment-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.payment-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.payment-item i {
    font-size: 3rem;
    color: #ff57d1;
    margin-bottom: 20px;
}

.payment-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.payment-item p {
    color: #666;
    font-weight: 500;
}

/* Catalog Section */
.catalog {
    background: white;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 30px;
    border: 2px solid #ff57d1;
    background: transparent;
    color: #ff57d1;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.category-btn:hover, .category-btn.active {
    background: #ff57d1;
    color: white;
    transform: translateY(-3px);
}

/* Основной стиль для блока */
.category-info {
    background: linear-gradient(135deg, #ffffff, #ffffff); /* Лёгкий градиент */
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #ff57d1; /* Яркая оранжевая обводка */
    box-shadow: 0 0 15px #ff57d1; /* Мягкая подсветка */
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    position: relative;
    animation: pulseBorder 2s infinite; /* Анимация подсветки */
}

/* Анимация обводки */
@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 15px #921d72;
    }
    50% {
        box-shadow: 0 0 25px #ff57d1;
    }
    100% {
        box-shadow: 0 0 15px #8e2471;
    }
}


/* Стиль для заголовка */
#categoryTitle {
    font-size: 1.8rem; /* Увеличиваем размер шрифта */
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Сетка для условий */
.conditions-grid {
    display: flex;
    flex-wrap: wrap; /* Разрешаем обтекание элементов */
    gap: 20px; /* Пространство между элементами */
    justify-content: space-between; /* Выравниваем элементы по бокам */
}

/* Стиль для каждого элемента */
.condition-item {
    display: flex;
    align-items: center; /* Центрируем элементы по вертикали */
    justify-content: flex-start; /* Выравнивание по левому краю */
    font-size: 1rem;
    color: #555;
    background-color: #fff; /* Белый фон для каждого элемента */
    padding: 15px 20px; /* Увеличиваем отступы */
    border-radius: 6px; /* Скругленные углы */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легкая тень */
    width: 48%; /* Каждый элемент занимает 48% от ширины родительского блока */
    min-width: 250px; /* Минимальная ширина для адаптивности */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Плавное изменение фона и анимация */
}

/* Иконка перед текстом */
.condition-icon {
    margin-right: 12px; /* Пространство между иконкой и текстом */
    font-size: 1.5rem; /* Увеличиваем размер иконок */
    color: #000000; /* Цвет иконок */
}

/* Ховер-эффект для элементов */
.condition-item:hover {
    transform: translateY(-5px); /* Легкое поднятие */
    background-color: #f0f0f0; /* Светлый фон при наведении */
}

/* Стиль для текста в элементах */
.condition-item span {
    font-weight: 500;
}

/* Адаптивность: для маленьких экранов */
@media (max-width: 600px) {
    .conditions-grid {
        flex-direction: column; /* В одну колонку */
        align-items: stretch; /* Растягиваем элементы по ширине */
    }

    .condition-item {
        width: 100%; /* Каждый элемент будет занимать всю ширину */
        margin-bottom: 15px; /* Добавляем отступы между элементами */
    }
}



.condition-icon {
    font-size: 2rem;
}

/* === Сетка карточек товаров === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* ✅ карточка от 220px */
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px; /* ограничение по ширине */
    padding: 10px;
}

/* === Карточка товара === */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* === Изображение товара === */
.product-image {
    width: 100%;
    min-height: 200px;       /* чтобы карточка не схлопывалась */
    max-height: 280px;       /* ограничиваем сверху */
    object-fit: contain;     /* не обрезаем фото */
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: opacity 0.3s ease;
}

/* === Информация о товаре === */
.product-info {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Название */
.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.product-name:hover {
    color: #ff57d1;
}

/* Цена */
.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.product-price:hover {
    color: #444;
    transform: scale(1.05);
    text-shadow: 1px 1px 8px rgba(0,0,0,0.2);
}

/* Скидки */
.product-discount {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Действия */
.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

/* === Адаптив === */

/* Планшеты */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    .product-price {
        font-size: 1.2rem;
    }
}

/* Смартфоны (2 колонки) */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .product-name {
        font-size: 0.95rem;
    }
    .product-price {
        font-size: 1.1rem;
    }
}

/* Очень маленькие экраны (1 колонка) */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .product-card {
        border-radius: 12px;
    }
    .product-image {
        min-height: 180px;
        max-height: 240px;
    }
}


.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

.quantity-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    color: #666;
}

.quantity-input {
    border: none;
    width: 40px;
    text-align: center;
    font-size: 14px;
}
/* Количество в модалке */
#productModal .quantity-controls {
   display: flex;
  align-items: center;  /* все элементы по вертикали по центру */
  gap: 6px;
  margin: 10px 0;
  border: none;         /* убираем серую рамку */
  background: none;     /* убираем серый фон */
  width: auto;          /* не растягиваем */
}

#productModal .quantity-input {
 width: 50px;
  height: 36px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0;
  margin: 0;
  line-height: 36px;
  box-sizing: border-box;
}

#productModal .quantity-btn {
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 6px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;   /* центрируем символ внутри */
  justify-content: center;
  padding: 0;
  line-height: 1;        /* убираем смещение текста */
}

#productModal .quantity-btn:hover {
  background: #e0e0e0;
}

/* Кнопка "В корзину" в модалке */
#productModal .add-to-cart {
  width: auto;            /* не растягиваем на всю ширину */
  padding: 10px 20px;     /* делаем компактнее */
  font-size: 1rem;
  border-radius: 8px;
  align-self: flex-start; /* выравнивание влево */
}
#productModal .modal-main-img {
  width: 100%;
  height: 400px;         /* фиксированный размер */
  object-fit: cover;
  border-radius: 10px;
}

/* Миниатюры в модалке */
#productModal .thumbs-modal img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}


.add-to-cart {
    background: #292929;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.add-to-cart:hover {
    background: #ff57d1;
    transform: scale(1.05);
}

/* Contacts Section */
.contacts {
    background: #F8F7F5;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.contact-item i {
    color: #ff57d1;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #ff57d1;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ff57d1;
    transform: translateY(-3px);
}

.callback-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.callback-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.3rem;
}

.callback-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.callback-form input:focus {
    border-color: #ff57d1;
    outline: none;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: #ff57d1;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff57d1;
}

.footer-contacts p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeInScale 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff57d1;
}

.modal-body {
    padding: 30px;
}

/* Стиль для элементов корзины */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee; /* Легкая граница между элементами */
    /* Убрали анимацию при наведении */
}

/* Убираем границу у последнего элемента */
.cart-item:last-child {
    border-bottom: none;
}

/* Стиль для информации о товаре */
.cart-item-info {
    flex: 1;
    padding-right: 20px;
}

/* Название товара */
.cart-item-name {
    font-weight: 600;
    font-size: 1.1rem; /* Увеличиваем шрифт для названия */
    margin-bottom: 5px;
    color: #333; /* Цвет текста для названия */
    line-height: 1.4; /* Увеличиваем межстрочный интервал для читаемости */
}

/* Цена товара */
.cart-item-price {
    color: #ff57d1; /* Яркий розовый цвет для цены */
    font-weight: 500;
    font-size: 1.2rem; /* Немного увеличиваем размер шрифта */
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2b2b2b; /* Цвет текста */
    margin: 30px 0; /* Отступ сверху и снизу */
    text-align: center;
}



/* Стили для кнопки очистки корзины (Удалить) */
.clear-cart-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    background-color: #141414; /* Черный фон для кнопки */
    color: #fff; /* Белый текст */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Плавные переходы */
}

/* Эффект нажатия для кнопки очистки */
.clear-cart-button:active {
    transform: scale(0.98); /* Легкое уменьшение при нажатии */
}

/* Адаптивность для маленьких экранов */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column; /* Располагаем элементы вертикально на маленьких экранах */
        align-items: flex-start;
    }

    .cart-item-name, .cart-item-price {
        font-size: 1rem; /* Уменьшаем размер текста на мобильных */
    }

    .cart-total {
        font-size: 1.2rem; /* Уменьшаем шрифт для общей суммы */
    }
}




.data-usage-info {
    background: #F8F7F5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.data-usage-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.data-usage-info p {
    color: #555;
    line-height: 1.6;
}

.modal-body input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.modal-body input:focus {
    border-color: #ff57d1;
    outline: none;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #ff57d1;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 2001;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Scroll animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text center utility */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info .section-title {
        text-align: center;
    }
    
    .category-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .conditions-grid {
        grid-template-columns: 5fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .marquee-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .modal-body {
        padding: 20px;
    }
}

.product-image-wrapper {
    position: relative;
    text-align: center;
}

.product-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
    transition: opacity 0.3s ease;
}

/* Стрелки */
.slider-btn {
    position: absolute;
    top: 70%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 30%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.slider-btn:hover {
    background: #ff57d1; /* красный в стиле скидок */
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 10px #ff57d1;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}


.thumbnails {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: -4px;
    margin-bottom: 8px;
}

.thumbnail {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border 0.2s;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #c13939;
}

/* Search desktop */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5F3F0;
  padding: 6px 10px;
  border-radius: 24px;
  margin: 0 12px;
}

.search input {
  border: none;
  outline: none;
  background: transparent;
  width: 220px;
  font-size: 14px;
}

.search-btn,
.clear-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
}

.clear-btn { display: none; }
.search.has-value .clear-btn { display: inline; }

/* Mobile search */
.mobile-search {
  display: none;
}

@media (max-width: 768px) {
  .search { display: none; }
  .mobile-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #F5F3F0;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .mobile-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
  }
}

/* Highlight for found product */
.product-card.highlight {
  outline: 3px solid #ff5e99;
  border-radius: 12px;
  transition: outline 0.3s ease;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Обёртка */
.search-wrapper {
  position: relative;
}

/* Кнопка-лупа */
/* Кнопка-лупа */
.search-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Всплывающее окно */
.search-popup {
  display: none;
  position: absolute;
  top: 40px; /* ниже иконки */
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  padding: 12px;
  z-index: 1000;
}

/* При активации */
.search-popup.active {
  display: block;
}

.search-popup input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 8px;
}

.clear-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Превью товаров */
.search-preview {
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid #eee;
  padding-top: 6px;
}

.search-preview .preview-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.search-preview .preview-card:hover {
  background: #f5f5f5;
}

.search-preview img {
  width: 35px;
  height: 35px;
  border-radius: 6px;
  object-fit: cover;
}

.search-preview .preview-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Кнопка "Показать" */
.search-preview .show-btn {
  padding: 4px 8px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  background: #ff5e99;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.search-preview .show-btn:hover {
  background: #ff3181;
  transform: scale(1.05);
}

.search-preview .show-btn:active {
  transform: scale(0.95);

}

/* Контейнер модалки товара */
.modal-product-content {
  display: flex;
  flex-direction: column; /* по умолчанию для телефонов */
  gap: 20px;
}

/* Левая колонка (галерея) */
.modal-product-gallery {
  flex: 1 1 50%;
  text-align: center;
}

/* Большое фото */
.modal-main-img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Миниатюры */
.thumbs-modal {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.thumbs-modal img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s ease;
}
.thumbs-modal img.active {
  border-color: #c13939;
}

/* Правая колонка (описание и кнопки) */
.modal-product-info {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  text-align: left;
}

.modal-description {
  font-size: 1rem;
  color: #444;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: bold;
  color: #000;
}

/* Делаем модалку шире на ПК */
@media (min-width: 768px) {
  .modal-content {
    max-width: 900px; /* шире, чем обычные */
    width: 90%;
  }

  .modal-product-content {
    flex-direction: row; /* две колонки */
    align-items: flex-start;
  }

  .modal-product-gallery {
    text-align: left;
  }
}

.product-card .product-image {
  width: 100%;
  height: 220px;         /* фиксированная высота */
  object-fit: cover;     /* картинка обрезается красиво */
  border-radius: 8px;
  display: block;
}

/* Миниатюры в карточках */
.product-card .thumbnail img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
