/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
    --primary: #1a1a1a;
    --secondary: #8B4513;
    --light: #f5f5f5;
    --gray: #e0e0e0;
    --text: #333;
    --text-light: #666;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f9f9f9;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Компактная шапка сайта */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--secondary);
}

.logo-img {
    height: 30px;
    width: auto;
}

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

/* Поиск */
.search-container {
    position: relative;
}

.search-icon {
    cursor: pointer;
    font-size: 18px;
    color: var(--secondary);
    transition: color 0.3s;
    padding: 5px;
}

.search-icon:hover {
    color: var(--primary);
}

.search-box {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 10px;
    width: 250px;
    z-index: 10;
    margin-top: 8px;
}

.search-box.show {
    display: block;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--secondary);
}

.search-results {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.search-result-item:hover {
    background-color: #f9f9f9;
    color: var(--secondary);
}

/* Телефон */
.phone-icon {
    position: relative;
    cursor: pointer;
}

.phone-icon i {
    font-size: 18px;
    color: var(--secondary);
    transition: all 0.3s;
    padding: 5px;
}

.phone-icon:hover i {
    color: var(--primary);
}

.phone-numbers {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 12px;
    width: 190px;
    z-index: 10;
    margin-top: 8px;
}

.phone-numbers.show {
    display: block;
}

.phone-numbers a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.3s;
}

.phone-numbers a:hover {
    color: var(--secondary);
}

/* Меню */
.hamburger-menu {
    position: relative;
    cursor: pointer;
}

.hamburger-icon {
    font-size: 20px;
    color: var(--primary);
    padding: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    width: 200px;
    z-index: 10;
    margin-top: 8px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
    color: var(--secondary);
}

/* Слайдер на всю ширину */
.main-slider-section {
    padding: 0 0 40px;
    width: 100%;
}

.main-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.main-slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 8px;
    max-width: 80%;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 18px;
}

.main-slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.main-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.main-slider-dot.active {
    background-color: var(--secondary);
}



/* Разделы товаров */
.products-section {
    padding: 40px 0 60px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.categories {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.category-btn {
    padding: 8px 20px;
    background-color: white;
    border: 1px solid var(--gray);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.category-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-btn:hover:not(.active) {
    border-color: var(--secondary);
    color: var(--secondary);
}

.products-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px 25px;
    scroll-behavior: smooth;
}

.products-container::-webkit-scrollbar {
    height: 6px;
}

.products-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.products-container::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.product-card {
    flex: 0 0 280px;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary);
    line-height: 1.3;
}

.product-description {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

/* Футер */
footer {
    background-color: var(--primary);
    color: white;
    padding: 35px 0;
    margin-top: 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 4px;
    font-size: 13px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 8px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-img {
        height: 25px;
    }
    
    .header-right {
        gap: 18px;
    }
    
    .search-box {
        width: 220px;
        right: -80px;
    }
    
    .phone-icon i,
    .hamburger-icon,
    .search-icon {
        font-size: 17px;
    }
    
    .main-slider {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
	

    
    .section-title {
        font-size: 20px;
    }
    
    .product-card {
        flex: 0 0 260px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-img {
        height: 22px;
    }
    
    .phone-icon i,
    .hamburger-icon,
    .search-icon {
        font-size: 16px;
    }
    
    .search-box {
        width: 200px;
        right: -60px;
    }
    
    .main-slider {
        height: 280px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 22px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .category-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .product-card {
        flex: 0 0 240px;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .product-description {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .footer-logo {
        font-size: 18px;
    }
    
    .footer-logo-img {
        height: 25px;
    }
}



