/*
Theme Name: Масло из бочонка
Theme URI: https://maslo-barrel-oil.base44.app
Description: Тема для интернет-магазина масел холодного отжима
Version: 1.0
Author: Your Name
*/

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

:root {
    --primary-brown: #8B6F47;
    --light-beige: #F5F1EB;
    --dark-brown: #5C4A37;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --white: #FFFFFF;
    --accent-green: #6B8E5A;
    --border-color: #E8E3DB;
}

html {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    min-height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

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

/* Main Banner */
.main-banner {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.65) 0%, rgba(92, 74, 55, 0.8) 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23F5F1EB" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 0;
}

.main-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
}

.main-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 4rem 2rem;
}

.main-banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
}

.main-banner-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    opacity: 0.95;
}

.main-banner-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-banner-primary {
    background: var(--primary-brown);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-banner-primary:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

.btn-banner-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-banner-outline:hover {
    background: var(--white);
    color: var(--primary-brown);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Ensure no white strip at bottom */
body {
    min-height: 100vh;
}

.site-footer {
    margin-top: auto;
}

.site-footer .footer-about-text {
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger animation delay for grid items */
.products-grid .fade-in:nth-child(1) { transition-delay: 0.1s; }
.products-grid .fade-in:nth-child(2) { transition-delay: 0.2s; }
.products-grid .fade-in:nth-child(3) { transition-delay: 0.3s; }
.products-grid .fade-in:nth-child(4) { transition-delay: 0.4s; }
.products-grid .fade-in:nth-child(5) { transition-delay: 0.5s; }
.products-grid .fade-in:nth-child(6) { transition-delay: 0.6s; }

.reviews-grid .fade-in:nth-child(1) { transition-delay: 0.1s; }
.reviews-grid .fade-in:nth-child(2) { transition-delay: 0.2s; }
.reviews-grid .fade-in:nth-child(3) { transition-delay: 0.3s; }
.reviews-grid .fade-in:nth-child(4) { transition-delay: 0.4s; }
.reviews-grid .fade-in:nth-child(5) { transition-delay: 0.5s; }

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100px;
}

.logo-image {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-brown);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-brown);
}

/* Активный пункт меню (текущая страница) — только цвет текста */
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a,
.main-nav li.current-menu-ancestor > a,
.main-nav li.current-page-ancestor > a {
    color: var(--primary-brown);
}

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--light-beige);
    color: var(--primary-brown);
    text-decoration: none;
    font-size: 1.35rem;
    transition: background 0.25s, color 0.25s;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 32px;
    height: 24px;
    margin-left: 1.5rem;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px;
    background-color: var(--dark-brown);
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle-line:nth-child(1) {
    top: 0;
}

.nav-toggle-line:nth-child(2) {
    top: 10px;
}

.nav-toggle-line:nth-child(3) {
    top: 20px;
}

.nav-toggle.is-open .nav-toggle-line:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-line:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

.cart-icon:hover {
    background: var(--primary-brown);
    color: var(--white);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
}

.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--light-beige);
    color: var(--primary-brown);
    text-decoration: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
}

.header-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.header-icon-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.header-icon:hover,
.header-icon:focus-visible {
    background: var(--primary-brown);
    color: var(--white);
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.header-icon-instagram .header-icon-inner {
    border-radius: 50%;
    overflow: hidden;
}

.header-icon-search .header-icon-svg {
    stroke-width: 1.8;
}

.site-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1200;
    padding: 5rem 1rem 2rem;
}

.site-search-overlay.is-open {
    display: flex;
}

.site-search-inner {
    width: 100%;
    max-width: 720px;
}

.site-search-form {
    display: flex;
    background: var(--white);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    overflow: hidden;
}

.site-search-input {
    flex: 1;
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.btn-search-submit {
    border: none;
    background: var(--primary-brown);
    color: var(--white);
    padding: 0 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search-submit:hover {
    background: var(--dark-brown);
}

body.search-open {
    overflow: hidden;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.search-result-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Ограничим размер карточек товаров в результатах поиска,
   чтобы товар не растягивался на всю ширину экрана */
.search-results-grid .product-card {
    max-width: 360px;
    margin: 0 auto;
}

.search-result-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.search-result-title a {
    color: var(--dark-brown);
    text-decoration: none;
}

.search-result-title a:hover {
    color: var(--primary-brown);
}

.search-result-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.search-result-excerpt {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.no-results-text {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    background: var(--light-beige);
    padding: 4rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-brown);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-brown);
    border-color: var(--primary-brown);
}

.btn-outline:hover {
    background-color: var(--primary-brown);
    color: var(--white);
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.feature-icon {
    font-size: 1.2rem;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #F5F1EB 0%, #E8E3DB 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

.floating-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-green);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.badge-icon {
    font-size: 1.2rem;
}

/* Page Content - увеличенные отступы */
.page-content {
    padding: 4rem 0 5rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 2rem;
}

.page-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Блоки «Новые акции» на странице Акции */
.promo-news-section {
    margin-bottom: 3rem;
}
.promotions-page-content {
    margin-bottom: 2.5rem;
}
.promo-news-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
.promo-news-block-media {
    flex: 0 0 280px;
}
.promo-news-block-media img.promo-news-block-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.promo-news-block-body {
    flex: 1;
    min-width: 0;
}
.promo-news-block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin: 0 0 0.75rem 0;
}
.promo-news-block-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dark);
}
.promo-news-block-text p {
    margin: 0 0 0.75rem 0;
}
.promo-news-block-text p:last-child {
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .promo-news-block-media {
        flex: 0 0 100%;
    }
}

.page-content-text {
    line-height: 1.8;
}

/* О нас / Доставка — шаги и блоки */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.process-step {
    background: var(--light-beige);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}
.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-brown);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}
.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}
.step-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}
.about-history-text { margin-bottom: 2rem; line-height: 1.7; }
.about-benefits-list {
    margin: 2rem 0;
    padding-left: 2rem;
    line-height: 2;
    color: var(--text-dark);
}
.about-notice {
    background: #fff3cd;
    padding: 1rem;
    border-left: 4px solid #ffc107;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.delivery-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.delivery-card { background: var(--light-beige); padding: 1.5rem; border-radius: 12px; text-align: center; }
.delivery-title { font-size: 1.15rem; font-weight: 600; color: var(--dark-brown); margin-bottom: 0.5rem; }
.delivery-info { color: var(--text-dark); margin: 0.25rem 0; font-size: 0.95rem; }
.delivery-price { font-weight: 600; color: var(--primary-brown); margin-top: 0.5rem; }
.delivery-free-notice {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    background: #e8f5e9;
    border-radius: 16px;
    font-weight: 600;
    text-align: center;
}
.delivery-faq { max-width: 800px; margin: 2rem auto; }
.delivery-faq-item { margin-bottom: 2rem; }
.delivery-faq-q { margin-bottom: 0.5rem; color: var(--primary-brown); font-size: 1.05rem; }
.delivery-cta-block { text-align: center; margin-top: 3rem; padding: 2rem; background: var(--light-beige); border-radius: 12px; }
.delivery-cta-block h3 { margin-bottom: 1rem; }
.delivery-cta-phone { font-size: 1.2rem; font-weight: 600; color: var(--primary-brown); text-decoration: none; }
.delivery-cta-phone:hover { text-decoration: underline; }
.contacts-phone { color: var(--primary-brown); text-decoration: none; font-weight: 600; }
.contacts-note { color: var(--text-light); font-size: 0.9rem; }
.no-promotions { grid-column: 1 / -1; text-align: center; padding: 2rem; color: var(--text-light); }

.delivery-main-content { margin: 2rem 0; max-width: 800px; line-height: 1.7; }
.delivery-main-content p { margin-bottom: 1rem; }

.company-details-block { margin-top: 4rem; padding: 2.5rem; background: var(--light-beige); border-radius: 16px; }
.company-details-inner { max-width: 700px; margin: 0 auto; }
.company-details-inner p { margin-bottom: 0.75rem; color: var(--text-dark); }
.company-name { font-weight: 700; color: var(--dark-brown); font-size: 1.1rem; margin-bottom: 1rem !important; }

/* Catalog Page */
.catalog-page {
    padding: 4rem 0 5rem;
    background: var(--white);
}

.catalog-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    text-align: center;
    margin-bottom: 1rem;
}

.catalog-page-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Стилизованные фильтры как кнопки */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-brown);
    background: transparent;
    color: var(--primary-brown);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-brown);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

/* Дополнительные фильтры */
.catalog-advanced-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--light-beige);
    border-radius: 12px;
}

.filter-price-range,
.filter-volume,
.filter-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-price-range label,
.filter-volume label,
.filter-sort label {
    font-weight: 600;
    color: var(--dark-brown);
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s;
    font-family: inherit;
    min-width: 150px;
}

.filter-select:hover {
    border-color: var(--primary-brown);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.products-count-text {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.products-count-text span {
    font-weight: 600;
    color: var(--dark-brown);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

/* На главной странице - 4 колонки для популярных товаров */
.popular-products-section .products-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .popular-products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .popular-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .popular-products-section .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

/* Большое изображение товара */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Соотношение сторон 4:3 */
    overflow: hidden;
    background: var(--light-beige);
}

.product-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5F1EB 0%, #E8E3DB 100%);
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.badge-new {
    background: var(--accent-green);
    color: white;
}

.badge-sale {
    background: #E74C3C;
    color: white;
}

/* Развести бейджи «Новинка» и «Скидка», чтобы они не перекрывали друг друга */
.badge-new {
    top: 1rem;
}

.badge-sale {
    top: 3rem;
}

/* Информация о товаре */
.product-info-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-brown);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-volume-tag {
    background: var(--primary-brown);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-brown);
}

.product-price-old {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-brown);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Popular Products Section */
.popular-products-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.link-view-all {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.link-view-all:hover {
    color: var(--dark-brown);
}

.catalog-footer {
    text-align: center;
    margin-top: 2rem;
}

.link-more {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.link-more:hover {
    color: var(--dark-brown);
    text-decoration: underline;
}

/* Why Choose Section */
.why-choose-section {
    padding: 3rem 0 7rem;
    background: var(--light-beige);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #F5F1EB 0%, #E8E3DB 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 560px;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.about-content .btn {
    margin-top: 0.5rem;
}

/* Reviews Section */
.reviews-section {
    padding: 5rem 0;
    background: var(--light-beige);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
}

.review-stars {
    color: #FFB800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--dark-brown);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--primary-brown);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-brown);
}

.btn-white:hover {
    background-color: var(--light-beige);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-brown);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: var(--accent-green);
    color: var(--white);
}

.toast-error {
    background: #C62828;
    color: var(--white);
}

/* Cart Page */
.cart-page {
    padding: 2rem 0 4rem;
}

.cart-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 2rem;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--light-beige);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 0.35rem;
}

.cart-item-volume {
    font-weight: 500;
    color: var(--text-light);
}

.cart-item-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.cart-item-unit-price {
    color: var(--text-light);
    font-size: 0.95rem;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--white);
    color: var(--primary-brown);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: var(--light-beige);
}

.cart-qty-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 0;
}

.cart-item-subtotal {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 1rem;
    margin-left: auto;
}

.cart-item-price {
    color: var(--text-light);
    font-size: 0.95rem;
}

.btn-remove-from-cart {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid var(--primary-brown);
    color: var(--primary-brown);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-remove-from-cart:hover {
    background: var(--primary-brown);
    color: var(--white);
}

.cart-summary {
    max-width: 420px;
    margin-left: auto;
    padding: 1.75rem;
    background: var(--light-beige);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-total {
    color: var(--primary-brown);
}

.cart-free-shipping {
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-shipping-hint {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn-checkout {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary-brown);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.25s, transform 0.2s;
}

.btn-checkout:hover {
    background: var(--dark-brown);
    color: var(--white);
    transform: translateY(-2px);
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Contact form & Checkout form */
.contact-form,
#checkout-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.15);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .btn,
#checkout-form .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary-brown);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}

.contact-form .btn:hover,
#checkout-form .btn:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

/* Page Reviews - стилизованные отзывы */
.page-content .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.page-content .review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.25s, box-shadow 0.25s;
}

.page-content .review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.page-content .review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-content .review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-brown);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.page-content .review-stars {
    color: #FFB800;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.page-content .review-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.page-content .review-author {
    font-weight: 600;
    color: var(--dark-brown);
}

.page-content .review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.section-title-center {
    text-align: center;
}

.review-form-wrapper,
.contact-form-wrapper {
    max-width: 560px;
    margin: 3rem auto 0;
}

/* Checkout page */
.checkout-page {
    padding: 2rem 0 4rem;
}

.checkout-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.checkout-order-summary {
    background: var(--light-beige);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.checkout-order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-order-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.checkout-totals {
    margin-top: 1rem;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.checkout-total-final {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-brown);
    color: var(--dark-brown);
}

/* Подарочная упаковка — отдельный блок, чекбокс и текст рядом */
.checkout-gift-wrap-block {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--light-beige);
    border: 1px solid rgba(139, 90, 43, 0.25);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
/* Чекбокс не тянется от .form-group input — сбрасываем и задаём размер */
#checkout-form .checkout-gift-wrap-cb {
    flex-shrink: 0;
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    accent-color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
    border-radius: 6px;
}
.checkout-gift-wrap-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    cursor: pointer;
    font-weight: inherit;
}
.checkout-gift-wrap-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-brown);
}
.checkout-gift-wrap-price {
    font-size: 0.9rem;
    color: var(--text-light);
}
.checkout-gift-wrap-row {
    color: var(--text-light);
}

@media (max-width: 900px) {
    .checkout-columns {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background-color: #2C2C2C;
    color: #CCCCCC;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-links li {
    margin-bottom: 0.5rem;
}

.footer-nav-links a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-links a:hover {
    color: var(--white);
}

.footer-instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-instagram-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

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

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 1.6fr repeat(3, minmax(220px, 1fr));
    }
}

/* Product Card Template */
.product-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-new {
    background-color: var(--accent-green);
    color: white;
}

.badge-sale {
    background-color: #E74C3C;
    color: white;
}

.product-price {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-brown);
}

.price-old {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-brown);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.add-to-cart-btn:hover {
    background-color: var(--dark-brown);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Product Detail Page */
.product-detail-page {
    padding: 4rem 0 5rem;
}

.back-to-catalog {
    display: inline-block;
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-to-catalog:hover {
    color: var(--dark-brown);
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.product-detail-image {
    position: relative;
}

.product-main-image-detail {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-image-placeholder-large {
    width: 100%;
    padding-top: 100%;
    background: var(--light-beige);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    opacity: 0.3;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-category-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--light-beige);
    color: var(--dark-brown);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    line-height: 1.2;
}

.product-detail-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.product-variants {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-variants label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.product-variant-select {
    width: 100%;
    max-width: 260px;
    padding: 0.7rem 2.5rem 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%235C4A37' d='M5.5 7l4.5 5 4.5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 14px 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.product-variant-select:hover {
    border-color: var(--primary-brown);
    background-color: #faf7f2;
}

.product-variant-select:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.15);
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.price-current-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-brown);
}

.price-old-large {
    font-size: 1.3rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
    font-weight: 600;
}

.availability-icon {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.product-quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--white);
    color: var(--primary-brown);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--light-beige);
}

#product-quantity {
    width: 70px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0;
}

.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-add-to-cart-detail {
    flex: 1;
    padding: 1rem 2rem;
    background: var(--primary-brown);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-to-cart-detail:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

.btn-wishlist {
    width: 52px;
    height: 52px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.2s;
}

.btn-wishlist:hover {
    border-color: var(--primary-brown);
    color: var(--primary-brown);
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-beige);
    border-radius: 12px;
}

.product-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.product-feature-item .feature-icon {
    font-size: 1.5rem;
}

.product-description-section,
.product-benefits {
    margin-top: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.product-description-text {
    color: var(--text-dark);
    line-height: 1.8;
}

.product-description-text p {
    margin-bottom: 0.9rem;
}

.product-description-list {
    margin: 0.5rem 0 1.2rem 1.5rem;
    padding: 0;
    list-style: disc;
    color: var(--text-dark);
    line-height: 1.7;
}

.product-description-list li + li {
    margin-top: 0.35rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.check-icon {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.2rem;
}

@media (max-width: 968px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .logo {
        order: 1;
        height: 88px;
    }

    .logo-image {
        height: 78px;
    }

    .nav-toggle {
        order: 2;
        display: inline-flex;
        margin-left: auto;
        margin-right: 0.75rem;
    }

    .header-actions {
        order: 3;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .cart-icon,
    .header-icon {
        width: 40px;
        height: 40px;
    }

    .main-nav {
        order: 4;
        display: none;
        width: 100%;
        margin-top: 0.25rem;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .main-nav a {
        display: block;
        padding: 0.4rem 0;
    }
    
    .main-banner-title {
        font-size: 2.5rem;
    }
    
    .main-banner-description {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
    }
    
    .catalog-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .catalog-advanced-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-price-range,
    .filter-volume,
    .filter-sort {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .hero-buttons,
    .cta-buttons,
    .main-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-info {
        flex: 1 1 100%;
    }
    
    .cart-quantity-controls {
        margin: 0.5rem 0;
    }
}






/* Контейнер для картинок */
.image-promo-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;       /* Небольшой зазор между фото */
    width: 100%;
    justify-content: space-between;
}

/* Настройки самих изображений */
.image-promo-container img {
    /* Расчет: 50% ширины минус половина зазора (gap), чтобы влезло ровно две */
    flex: 1 1 calc(50% - 10px); 
    max-width: calc(50% - 10px); 
    height: auto !important;
    object-fit: cover;
    border-radius: 8px;
}

/* Адаптация для мобильных (телефон) */
@media (max-width: 600px) {
    .image-promo-container img {
        flex: 1 1 100%; /* На маленьких экранах — одно фото на всю строку */
        max-width: 100%;
    }
}


