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

body {
    font-family: 'Archivo', sans-serif;
    background-color: #fff;
    color: #1a1a1a;
}

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


/* Зеленая полоса */
.green-stripe {
    height: 4px;
    background-color: #00a651;
    width: 100%;
}

/* Шапка */
.header {
    background-color: #fff;
    padding: 20px 0;
    position: relative;
}

/* Логотип */
.logo-img {
    width: 237px;
    height: 160px;
    display: flex;
    /*align-items: center;
    justify-content: center;*/
}

/* Верхняя надпись с зеленым квадратом */
.top-text-wrapper {
    display: flex;
    /*align-items: center;*/
    justify-content: flex-end;
    height: 80px; /* Высота логотипа /2 */
}

.shop-tagline {
    font-weight: 700;
    font-size: 32px;
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-right: 12px;
}

.green-square {
    width: 24px;
    height: 24px;
    background-color: #00a651;
    display: inline-block;
    margin-top: 13px;
}

.red-square {
    width: 15px;
    height: 15px;
    background-color: red;
    display: inline-block;
    margin-right: 6px;
}

/* Поисковая строка */
.search-wrapper {
    display: flex;
    align-items: center;
}

.search-input-group {
    display: flex;
    border: 2px solid darkgray;
    width: 300px;
}

.search-input {
    border: none;
    padding: 8px 15px;
    font-weight: 500;
    background: #fff;
    flex-grow: 1;
}

.search-input:focus {
    outline: none;
    background: #f8f8f8;
}

.search-btn {
    background: darkgray;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* Кнопки навигации */
.nav-buttons {
    display: flex;
    gap: 50px;
    margin-right: 50px;
}

.nav-btn {
    background: none;
    border: none;
    /*font-weight: 700;*/
    font-size: 20px;
    text-transform: uppercase;
    padding: 7px 0;
    cursor: pointer;
    position: relative;
    color: #1a1a1a;
}

.nav-btn.active {
    color: #d00000;
}



/* Кнопка бургер (мобильная) */
.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #333;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Для мобильных устройств */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }
}

.mobile-menu-btn:hover {
    color: #007bff;
}

/* Мобильная поисковая строка */
.mobile-search {
    display: none;
    margin-top: 20px;
    width: 100%;
}

.mobile-search .search-input-group {
    width: 100%;
}

/* Футер */
.footer {
    padding: 40px 0;
    background-color: #fff;
}

.contact-info {
    font-weight: 500;
    line-height: 1.8;
}

.contact-info i {
    color: #00a651;
    width: 24px;
    margin-right: 10px;
}

.tg-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #1a1a1a;
    transition: 0.2s;
}

.tg-footer-btn:hover {
    background: #00a651;
    border-color: #00a651;
    color: #fff;
}

/* Модальное окно каталога */
.modal-content {
    border: 2px solid #1a1a1a;
    border-radius: 0;
    padding: 20px;
}

.modal-header {
    border-bottom: 2px solid #00a651;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.catalog-item {
    padding: 20px;
    border: 2px solid #1a1a1a;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
}

.catalog-item:hover {
    background: #f0f0f0;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .nav-buttons {
        gap: 15px;
        margin-left: 20px;
    }

    .search-input-group {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-search {
        display: block;
    }

    .top-text-wrapper {
        display: none;
    }

    .header .row {
        align-items: center;
    }


}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer .row {
        gap: 30px;
    }
}

.age-warning {
    background: #fff3e0;
    border-left: 4px solid #b87c4f;
}

/* Модальное окно (будет показано если не подтвержден возраст) */
.age-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Если контент скрыт - блокируем скролл */
body.modal-open {
    overflow: hidden;
}


/* каталог товаров */

.product-card {
    overflow: hidden;
    background: #fff;
}


.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 15px;
}

.product-image {
    overflow: hidden;
    min-height: 345px;
    width: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.product-icons {
    padding: 20px 12px;
    z-index: 1;
}

.category-icon {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 6px;
    padding: 4px;
    box-sizing: content-box;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.product-price {
    font-size: 1.25rem;
    color: #ff1d00;
}

/* модальное окно - меню каталога */
/* Дополнительные стили для модального окна */
.modal-content {
    border: 2px solid #1a1a1a;
    border-radius: 0;
    padding: 20px;
}

.modal-header {
    border-bottom: 8px solid #00a651;
    padding: 0 0 10px 0;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    letter-spacing: 1px;
    color: #1a1a1a;
}

.btn-close {
    opacity: 1;
    background-size: 1em;
}

/* Зеленый квадрат для заголовков */
.green-square-sm {
    width: 12px;
    height: 12px;
    background-color: #00a651;
    display: inline-block;
}

/* Сетка производителей */
.manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    background: #f9f9f9;
}

.manufacturer-item {
    padding: 8px 12px;
    background: #fff;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    display: block;
}

.manufacturer-item:hover {
    background: #00a651;
    color: #fff;
    border-color: #00a651;
}

/* Сетка фильтров */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.filter-column {
    min-width: 0;
}

.filter-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    position: relative;
    padding-left: 15px;
}

.filter-item::before {
    content: '...';
    position: absolute;
    left: 0;
    color: #d00000;
    font-weight: bold;
}

.filter-tag {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-tag:hover {
    color: #d00000;
}

/* Адаптивность */
@media (max-width: 992px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .manufacturers-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-title {
        font-size: 20px;
    }

    .manufacturers-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 300px;
    }

    .filter-item::before {
        content: '•';
    }
}

/* Стилизация скролла для производителей */
.manufacturers-grid::-webkit-scrollbar {
    width: 6px;
}

.manufacturers-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.manufacturers-grid::-webkit-scrollbar-thumb {
    background: #00a651;
}

.manufacturers-grid::-webkit-scrollbar-thumb:hover {
    background: #d00000;
}

/* Дополнительные акценты Баухауз */
.show-all-link {
    position: relative;
    display: inline-block;
}

/*.show-all-link:hover {
    color: #00a651 !important;
}*/

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

.show-all-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d00000;
    transition: width 0.3s;
}

.green-triangle-right {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 14px solid #00a651;
    display: inline-block;
    margin-left: 0.5rem;
}

.header-rgw {
    border-left: 10px solid #ff1d00;
    background: #00a651;
    color: white;
    padding: 8px 30px 8px 20px;
    width: fit-content;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-nav-btn:active {
    background: #e9ecef;
    transform: scale(0.98);
}

.mobile-nav-btn .red-square {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: red;
    border-radius: 2px;
}