:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F9F7F4;
    --accent-beige: #F5F1EB;
    --accent-terracotta: #C76B5D;
    --accent-blue: #5D7C9E;
    --accent-olive: #8A9B6E;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-light: #E8E2D9;
    --success: #4CAF50;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: var(--text-dark);
}

/* Шапка */
.header {
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-terracotta);
    text-decoration: none;
    z-index: 1001;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 16px;
    background-color: var(--secondary-bg);
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 0 2px rgba(199, 107, 93, 0.2);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px;
    border-radius: 8px;
}

.action-btn:hover {
    color: var(--accent-terracotta);
    background-color: var(--accent-beige);
}

.action-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-terracotta);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bottom {
    padding: 15px 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-terracotta);
}

.nav-links a.active {
    color: var(--accent-terracotta);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-terracotta);
}

.promo-bar {
    background-color: var(--accent-olive);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, var(--accent-beige) 0%, var(--secondary-bg) 100%);
    padding: 60px 0;
    margin-bottom: 60px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--accent-terracotta);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #b55a4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(199, 107, 93, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-terracotta);
    color: var(--accent-terracotta);
}

.btn-outline:hover {
    background-color: var(--accent-terracotta);
    color: white;
}

/* Категории */
.section {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 28px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-terracotta);
}

.view-all {
    color: var(--accent-terracotta);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background-color: var(--primary-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-dark);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 180px;
    background-color: var(--accent-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.category-info {
    padding: 20px;
    text-align: center;
}

.category-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-count {
    color: var(--text-light);
    font-size: 14px;
}

/* Популярные товары */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background-color: var(--primary-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 200px;
    background-color: var(--accent-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-terracotta);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #FFC107;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-terracotta);
}

.old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.add-to-cart {
    background-color: var(--accent-terracotta);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
}

.add-to-cart:hover {
    background-color: #b55a4d;
}

.wishlist-btn {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.wishlist-btn:hover {
    border-color: var(--accent-terracotta);
    color: var(--accent-terracotta);
}

/* Преимущества */
.features {
    background-color: var(--secondary-bg);
    padding: 60px 0;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--accent-terracotta);
}

.feature-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-gray);
    font-size: 14px;
}

/* Акции */
.promotions {
    margin-bottom: 80px;
}

.promo-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.promo-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    color: white;
}

.promo-card-1 {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #4a6380 100%);
}

.promo-card-2 {
    background: linear-gradient(135deg, var(--accent-olive) 0%, #768a5c 100%);
}

.promo-content {
    max-width: 60%;
    z-index: 2;
}

.promo-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.promo-desc {
    margin-bottom: 20px;
    opacity: 0.9;
}

.promo-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    opacity: 0.7;
}

/* Футер */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

.footer-desc {
    color: #CCCCCC;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.social-link:hover {
    background-color: var(--accent-terracotta);
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-terracotta);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: #999999;
    font-size: 14px;
}

/* ==================== */
/* АДАПТИВНОСТЬ */
/* ==================== */

/* Планшеты (1024px и меньше) */
@media (max-width: 1024px) {
    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text {
        margin-bottom: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .search-bar {
        margin: 0 20px;
    }
}

/* Планшеты (768px и меньше) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promo-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Мобильное меню */
    .mobile-menu-toggle {
        display: block;
        order: -1;
    }
    
    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 0;
        flex: 0 0 100%;
    }
    
    .header-actions {
        margin-left: auto;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-bg);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        gap: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
    
    /* Герой секция */
    .hero {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* Карточки */
    .category-image,
    .product-image {
        height: 150px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .promo-card {
        height: 200px;
        padding: 0 25px;
    }
    
    .promo-title {
        font-size: 20px;
    }
}

/* Мобильные устройства (480px и меньше) */
@media (max-width: 480px) {
    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .view-all {
        align-self: flex-end;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .action-btn {
        padding: 6px;
        font-size: 11px;
    }
    
    .action-icon {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .search-bar input {
        padding: 10px 15px 10px 35px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 12px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 15px;
        height: auto;
        margin-bottom: 8px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .add-to-cart {
        margin-right: 0;
    }
    
    .wishlist-btn {
        width: 100%;
        height: 36px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-title {
        font-size: 16px;
    }
    
    .feature-desc {
        font-size: 13px;
    }
    
    .promo-card {
        height: 180px;
        padding: 0 20px;
    }
    
    .promo-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .promo-desc {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Очень маленькие экраны (360px и меньше) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .category-info,
    .product-info {
        padding: 12px;
    }
    
    .category-name,
    .product-name {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .header-actions .action-btn span:last-child {
        display: none;
    }
    
    .header-actions .action-btn {
        padding: 8px;
    }
}

/* Портретная ориентация */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .nav-links {
        padding-top: 60px;
    }
}

/* Высокопиксельные экраны */
@media (min-resolution: 192dpi) {
    .hero-title {
        font-weight: 700;
    }
    
    .section-title {
        font-weight: 700;
    }
}

/* Добавьте этот код в ваш существующий style.css файл */

/* Стили для изображений в карточках товаров */
.product-image {
    height: 200px;
    background-color: var(--accent-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Стили для изображений в категориях */
.category-image {
    height: 180px;
    background-color: var(--accent-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

/* Стили для изображения в герое */
.hero-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Медиа-запросы для адаптивности изображений */
@media (max-width: 1024px) {
    .product-image {
        height: 180px;
    }
    
    .category-image {
        height: 160px;
    }
    
    .hero-image img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .product-image {
        height: 160px;
    }
    
    .category-image {
        height: 140px;
    }
    
    .hero-image img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 200px;
    }
    
    .category-image {
        height: 150px;
    }
    
    .hero-image img {
        height: 200px;
    }
}



/* Стили для ссылок действий в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px;
    border-radius: 8px;
}

.action-link:hover {
    color: var(--accent-terracotta);
    background-color: var(--accent-beige);
}

.action-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-terracotta);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для ссылок на товары в карточках */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-link:hover {
    color: inherit;
    text-decoration: none;
}

.product-card .product-info {
    padding: 20px;
}

/* Медиа-запросы для ссылок */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }
    
    .action-link {
        padding: 6px;
        font-size: 11px;
    }
    
    .action-icon {
        font-size: 18px;
        margin-bottom: 3px;
    }
}

@media (max-width: 360px) {
    .header-actions .action-link span:last-child {
        display: none;
    }
    
    .header-actions .action-link {
        padding: 8px;
    }
}