/* ============================================================
   БАЗОВЫЕ СТИЛИ
   ============================================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #faf8f5;
    color: #1a1410;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #1a1410;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   ШАПКА
   ============================================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(26, 20, 16, 0.08);
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 22px;
    font-weight: 400;
    color: #1a1410;
    letter-spacing: -0.3px;
}

.logo strong {
    font-weight: 600;
}

.logo span {
    color: #8a7a6e;
    font-weight: 300;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    font-size: 15px;
    font-weight: 400;
    color: #8a7a6e;
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: #1a1410;
}

.main-nav a.active {
    color: #1a1410;
    border-bottom-color: #1a1410;
}

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

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #8a7a6e;
    transition: color 0.2s, transform 0.3s;
    padding: 4px;
}

.theme-toggle:hover {
    color: #1a1410;
    transform: rotate(30deg);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.header-phone {
    color: #1a1410;
    font-weight: 500;
    transition: color 0.2s;
}

.header-phone:hover {
    color: #000;
}

.header-address {
    color: #8a7a6e;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #1a1410;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #1a1410;
    border: 2px solid #1a1410;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-secondary:hover {
    background: #1a1410;
    color: #fff;
}

.btn-vk {
    display: inline-block;
    padding: 12px 24px;
    background: #4a76a8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.btn-vk:hover {
    background: #3a5f8a;
}

/* ============================================================
   ГЕРОЙ (ГЛАВНАЯ)
   ============================================================ */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 38px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-content h1 strong {
    font-weight: 600;
}

.hero-content p {
    color: #5a4f47;
    font-size: 16px;
    line-height: 1.8;
    margin: 20px 0 28px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.hero-visual.placeholder-box {
    width: 100%;
    height: 300px;
    background: #f3efe9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 60px;
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */

.section {
    padding: 40px 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-head h2 {
    font-size: 28px;
    font-weight: 300;
    margin: 0;
}

.section-head h2 strong {
    font-weight: 600;
}

.section-head p {
    color: #8a7a6e;
    margin: 4px 0 0;
    width: 100%;
    font-size: 14px;
}

.link-more {
    color: #8a7a6e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.link-more:hover {
    color: #1a1410;
}

/* ============================================================
   КАРТОЧКИ ТОВАРОВ
   ============================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #1a1410;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 12px rgba(26, 20, 16, 0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26, 20, 16, 0.12);
}

.product-media {
    position: relative;
    height: 200px;
    background: #f5f0ec;
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.03);
}

.product-media .ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #d5ccc4;
    font-size: 40px;
}

.product-media .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-media .badge.discount {
    background: #d32f2f;
    color: #fff;
}

.product-media .badge.cat {
    top: auto;
    bottom: 10px;
    left: 10px;
    right: auto;
    background: rgba(26, 20, 16, 0.75);
    color: #fff;
    backdrop-filter: blur(4px);
}

.product-media .badge.hit {
    background: #ff9800;
    color: #fff;
    top: 10px;
    right: 10px;
}

.product-body {
    padding: 16px;
}

.product-brand {
    font-size: 12px;
    color: #8a7a6e;
    margin-bottom: 4px;
}

.product-name {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 8px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 19px;
    font-weight: 600;
}

.product-old-price {
    font-size: 14px;
    color: #b0a8a0;
    text-decoration: line-through;
}

.product-stock {
    font-size: 13px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-stock.order {
    color: #f57c00;
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */

.features-door-section {
    padding: 40px 0;
    background: #f5f1ec;
    border-radius: 20px;
    margin: 20px 0;
}

.features-door-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    padding: 20px 40px;
}

.features-left,
.features-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-door-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-door-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a1410;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26, 20, 16, 0.06);
}

.feature-door-text h4 {
    font-weight: 500;
    margin: 0 0 2px;
    font-size: 15px;
}

.feature-door-text p {
    font-size: 13px;
    color: #8a7a6e;
    margin: 0;
    line-height: 1.5;
}

.features-door-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features-door-center img {
    max-width: 200px;
    height: auto;
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */

.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(26, 20, 16, 0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #8a7a6e;
    margin-top: 20px;
}

.footer a {
    color: #8a7a6e;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #1a1410;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-size: 20px;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 20, 16, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(26, 20, 16, 0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8a7a6e;
    transition: color 0.2s, transform 0.3s;
    padding: 4px 8px;
    border-radius: 50%;
}

.modal-close:hover {
    color: #1a1410;
    transform: rotate(90deg);
    background: #f3efe9;
}

.form-content h2 {
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 4px;
}

.form-content .sub {
    color: #8a7a6e;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0d8d0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1410;
    box-shadow: 0 0 0 3px rgba(26, 20, 16, 0.1);
}

.form-group input.error {
    border-color: #d32f2f;
}

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #1a1410;
}

.form-checkbox label {
    font-size: 13px;
    color: #5a4f47;
    line-height: 1.4;
}

.hp-field {
    display: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #1a1410;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn-submit:hover:not(:disabled) {
    background: #000;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit .spinner {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-message {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.success-message.active {
    display: block;
}

.success-message .icon {
    font-size: 60px;
    color: #2e7d32;
}

.success-message h3 {
    font-weight: 400;
    font-size: 24px;
    margin: 16px 0 8px;
}

.success-message p {
    color: #8a7a6e;
}

.form-content.hidden {
    display: none;
}

/* ============================================================
   КАТАЛОГ
   ============================================================ */

.catalog-page {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 30px 0 40px;
}

.catalog-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.catalog-header h1 {
    font-size: 28px;
    font-weight: 300;
}

.catalog-search form {
    display: flex;
    gap: 8px;
}

.catalog-search input {
    padding: 10px 16px;
    border: 1px solid #e0d8d0;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search input:focus {
    outline: none;
    border-color: #1a1410;
    box-shadow: 0 0 0 3px rgba(26, 20, 16, 0.08);
}

.catalog-search button {
    padding: 10px 16px;
    background: #1a1410;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.catalog-search button:hover {
    background: #000;
}

.catalog-sidebar .filter-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(26, 20, 16, 0.05);
    position: sticky;
    top: 20px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 4px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1a1410;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.category-list a:hover {
    background: #f3efe9;
}

.category-list a.active {
    background: #1a1410;
    color: #fff;
}

.category-list .count {
    opacity: 0.6;
    font-size: 13px;
}

/* ============================================================
   ДЕТАЛЬНАЯ СТРАНИЦА ТОВАРА
   ============================================================ */

.breadcrumbs {
    font-size: 14px;
    color: #8a7a6e;
    padding: 20px 0 10px;
}

.breadcrumbs a {
    color: #8a7a6e;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #1a1410;
}

.breadcrumbs span {
    margin: 0 8px;
}

.product-page {
    padding-bottom: 40px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-gallery .gallery-main {
    height: 400px;
    background: #f5f0ec;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery .gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-gallery .ph-big {
    font-size: 60px;
    color: #d5ccc4;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f0ec;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gallery-thumbs img:hover {
    border-color: #1a1410;
}

.product-info .product-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-category {
    font-size: 13px;
    color: #8a7a6e;
    background: #f3efe9;
    padding: 4px 14px;
    border-radius: 20px;
}

.badge.hit {
    background: #ff9800;
    color: #fff;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.product-info h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
}

.product-code,
.product-brand {
    color: #8a7a6e;
    font-size: 14px;
    margin-bottom: 4px;
}

.product-price-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.product-price-block .product-price {
    font-size: 32px;
    font-weight: 600;
}

.product-price-block .product-old-price {
    font-size: 20px;
    color: #b0a8a0;
    text-decoration: line-through;
}

.product-price-block .discount-badge {
    background: #d32f2f;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-stock-status {
    margin-bottom: 20px;
}

.in-stock {
    color: #2e7d32;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.out-of-stock {
    color: #f57c00;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.product-description {
    border-top: 1px solid rgba(26, 20, 16, 0.08);
    padding-top: 20px;
    margin-top: 10px;
}

.product-description h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
}

.product-description div {
    line-height: 1.8;
    color: #444;
}

.product-characteristics {
    margin-top: 40px;
    border-top: 1px solid rgba(26, 20, 16, 0.08);
    padding-top: 30px;
}

.product-characteristics h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.char-table {
    width: 100%;
    border-collapse: collapse;
}

.char-table tr {
    border-bottom: 1px solid #f0ece7;
}

.char-table td {
    padding: 12px 16px;
}

.char-table td:first-child {
    font-weight: 500;
    color: #555;
    width: 200px;
}

/* ============================================================
   ПУСТОЕ СОСТОЯНИЕ
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8a7a6e;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 20px;
}

.empty-state p {
    font-size: 14px;
}

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    color: #1a1410;
    text-decoration: none;
    border: 1px solid #e0d8d0;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f3efe9;
}

.pagination a.active {
    background: #1a1410;
    color: #fff;
    border-color: #1a1410;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

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

    .burger-btn {
        display: flex !important;
    }

    .features-door-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .features-door-center {
        order: -1;
    }

    .features-door-center img {
        max-width: 150px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 0 40px;
    }

    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual img {
        max-height: 250px;
    }

    .catalog-page {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .catalog-sidebar .filter-section {
        position: static;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery .gallery-main {
        height: 300px;
    }

    .header-contacts {
        display: none;
    }

    .header-right .theme-toggle {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-media {
        height: 160px;
    }

    .product-name {
        font-size: 14px;
        min-height: 36px;
    }

    .product-price {
        font-size: 17px;
    }

    .section-head h2 {
        font-size: 22px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .catalog-header h1 {
        font-size: 22px;
    }

    .catalog-search input {
        width: 180px;
    }

    .modal-window {
        padding: 24px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .product-price-block .product-price {
        font-size: 26px;
    }
}

/* ============================================================
   БУРГЕР-МЕНЮ (ВЫНЕСЕНО ОТДЕЛЬНО)
   ============================================================ */

.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.burger-btn span {
    display: block;
    height: 2px;
    background: #1a1410;
    border-radius: 2px;
    transition: all 0.3s;
    width: 100%;
}

.burger-btn span:nth-child(2) {
    width: 70%;
}

.burger-btn span:nth-child(3) {
    width: 40%;
}

.burger-btn:hover span:nth-child(2),
.burger-btn:hover span:nth-child(3) {
    width: 100%;
}

.burger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 20, 16, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999998;
    display: none;
}

.burger-overlay.active {
    display: block;
}

.burger-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: #fff;
    z-index: 999999;
    padding: 40px 30px;
    box-shadow: 4px 0 40px rgba(26, 20, 16, 0.15);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.burger-menu.active {
    transform: translateX(0);
}

.burger-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 30px;
    color: #8a7a6e;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s, transform 0.3s;
    line-height: 1;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.burger-close:hover {
    color: #1a1410;
    transform: rotate(90deg);
    background: #f3efe9;
}

.burger-menu h2 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #1a1410;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(26, 20, 16, 0.08);
    padding-bottom: 16px;
}

.burger-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.burger-nav a,
.burger-nav button {
    font-size: 16px;
    font-weight: 400;
    color: #1a1410;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(26, 20, 16, 0.08);
    transition: all 0.2s;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.burger-nav a:hover,
.burger-nav button:hover {
    padding-left: 12px;
    color: #8a7a6e;
}

.burger-nav i {
    width: 20px;
    color: #8a7a6e;
}

.burger-nav .admin-login-mobile {
    margin-top: 8px;
    border-top: 1px solid rgba(26, 20, 16, 0.08);
    padding-top: 16px;
    color: #5a4f47;
}

.burger-nav .admin-login-mobile:hover {
    color: #1a1410;
}

.about-block {
    margin-top: 10px;
    padding: 20px;
    background: #f3efe9;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.3s ease-out;
}

.about-block.active {
    display: flex;
}

.about-block p {
    font-size: 14px;
    color: #5a4f47;
    line-height: 1.6;
}

.about-block .contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1a1410;
}

.about-block .contact-row i {
    color: #8a7a6e;
    width: 16px;
}

.about-block .contact-row a {
    color: #1a1410;
    text-decoration: none;
}

.about-block .contact-row a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   ТЁМНАЯ ТЕМА
   ============================================================ */

html[data-theme="dark"] body {
    background: #1a1410;
    color: #f2ece4;
}

html[data-theme="dark"] .header {
    border-bottom-color: rgba(242, 236, 228, 0.08);
}

html[data-theme="dark"] .logo {
    color: #f2ece4;
}

html[data-theme="dark"] .logo span {
    color: #8d8072;
}

html[data-theme="dark"] .main-nav a {
    color: #8d8072;
}

html[data-theme="dark"] .main-nav a:hover {
    color: #f2ece4;
}

html[data-theme="dark"] .main-nav a.active {
    color: #f2ece4;
    border-bottom-color: #f2ece4;
}

html[data-theme="dark"] .header-phone {
    color: #f2ece4;
}

html[data-theme="dark"] .header-address {
    color: #8d8072;
}

html[data-theme="dark"] .theme-toggle {
    color: #8d8072;
}

html[data-theme="dark"] .theme-toggle:hover {
    color: #f2ece4;
}

html[data-theme="dark"] .burger-btn span {
    background: #f2ece4;
}

html[data-theme="dark"] .burger-menu {
    background: #201913;
}

html[data-theme="dark"] .burger-menu h2 {
    color: #f2ece4;
    border-bottom-color: rgba(242, 236, 228, 0.1);
}

html[data-theme="dark"] .burger-nav a,
html[data-theme="dark"] .burger-nav button {
    color: #f2ece4;
    border-bottom-color: rgba(242, 236, 228, 0.1);
}

html[data-theme="dark"] .burger-nav a:hover,
html[data-theme="dark"] .burger-nav button:hover {
    color: #b8a394;
}

html[data-theme="dark"] .burger-nav i {
    color: #8d8072;
}

html[data-theme="dark"] .burger-nav .admin-login-mobile {
    color: #b6aa9e;
    border-top-color: rgba(242, 236, 228, 0.1);
}

html[data-theme="dark"] .burger-nav .admin-login-mobile:hover {
    color: #f2ece4;
}

html[data-theme="dark"] .burger-close {
    color: #8d8072;
}

html[data-theme="dark"] .burger-close:hover {
    color: #f2ece4;
    background: #1c1612;
}

html[data-theme="dark"] .about-block {
    background: #1c1612;
}

html[data-theme="dark"] .about-block p {
    color: #b6aa9e;
}

html[data-theme="dark"] .about-block .contact-row {
    color: #f2ece4;
}

html[data-theme="dark"] .about-block .contact-row i {
    color: #8d8072;
}

html[data-theme="dark"] .about-block .contact-row a {
    color: #f2ece4;
}

html[data-theme="dark"] .burger-overlay {
    background: rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .product-card {
    background: #201913;
}

html[data-theme="dark"] .product-media {
    background: #2a241e;
}

html[data-theme="dark"] .product-name {
    color: #f2ece4;
}

html[data-theme="dark"] .product-brand {
    color: #8d8072;
}

html[data-theme="dark"] .product-old-price {
    color: #6a5f55;
}

html[data-theme="dark"] .features-door-section {
    background: #1c1612;
}

html[data-theme="dark"] .feature-door-icon {
    background: #2a241e;
}

html[data-theme="dark"] .feature-door-text p {
    color: #8d8072;
}

html[data-theme="dark"] .footer {
    border-top-color: rgba(242, 236, 228, 0.08);
    color: #8d8072;
}

html[data-theme="dark"] .footer a {
    color: #8d8072;
}

html[data-theme="dark"] .footer a:hover {
    color: #f2ece4;
}

html[data-theme="dark"] .modal-window {
    background: #201913;
}

html[data-theme="dark"] .modal-close {
    color: #8d8072;
}

html[data-theme="dark"] .modal-close:hover {
    color: #f2ece4;
    background: #1c1612;
}

html[data-theme="dark"] .form-group input {
    background: #2a241e;
    border-color: #3d342e;
    color: #f2ece4;
}

html[data-theme="dark"] .form-group input:focus {
    border-color: #f2ece4;
    box-shadow: 0 0 0 3px rgba(242, 236, 228, 0.1);
}

html[data-theme="dark"] .form-checkbox label {
    color: #b6aa9e;
}

html[data-theme="dark"] .btn-secondary {
    color: #f2ece4;
    border-color: #f2ece4;
}

html[data-theme="dark"] .btn-secondary:hover {
    background: #f2ece4;
    color: #1a1410;
}

html[data-theme="dark"] .catalog-sidebar .filter-section {
    background: #201913;
}

html[data-theme="dark"] .category-list a {
    color: #f2ece4;
}

html[data-theme="dark"] .category-list a:hover {
    background: #2a241e;
}

html[data-theme="dark"] .category-list a.active {
    background: #f2ece4;
    color: #1a1410;
}

html[data-theme="dark"] .catalog-search input {
    background: #2a241e;
    border-color: #3d342e;
    color: #f2ece4;
}

html[data-theme="dark"] .catalog-search input:focus {
    border-color: #f2ece4;
}

html[data-theme="dark"] .pagination a {
    background: #201913;
    color: #f2ece4;
    border-color: #3d342e;
}

html[data-theme="dark"] .pagination a:hover {
    background: #2a241e;
}

html[data-theme="dark"] .pagination a.active {
    background: #f2ece4;
    color: #1a1410;
    border-color: #f2ece4;
}

html[data-theme="dark"] .breadcrumbs {
    color: #8d8072;
}

html[data-theme="dark"] .breadcrumbs a {
    color: #8d8072;
}

html[data-theme="dark"] .breadcrumbs a:hover {
    color: #f2ece4;
}

html[data-theme="dark"] .product-gallery .gallery-main {
    background: #2a241e;
}

html[data-theme="dark"] .gallery-thumbs img {
    background: #2a241e;
}

html[data-theme="dark"] .gallery-thumbs img:hover {
    border-color: #f2ece4;
}

html[data-theme="dark"] .product-category {
    background: #2a241e;
    color: #8d8072;
}

html[data-theme="dark"] .product-description {
    border-top-color: rgba(242, 236, 228, 0.08);
}

html[data-theme="dark"] .product-description div {
    color: #b6aa9e;
}

html[data-theme="dark"] .product-characteristics {
    border-top-color: rgba(242, 236, 228, 0.08);
}

html[data-theme="dark"] .char-table tr {
    border-bottom-color: rgba(242, 236, 228, 0.06);
}

html[data-theme="dark"] .char-table td:first-child {
    color: #b6aa9e;
}

html[data-theme="dark"] .product-code,
html[data-theme="dark"] .product-brand {
    color: #8d8072;
}

html[data-theme="dark"] .product-stock {
    color: #66bb6a;
}

html[data-theme="dark"] .product-stock.order {
    color: #ffa726;
}

html[data-theme="dark"] .in-stock {
    color: #66bb6a;
}

html[data-theme="dark"] .out-of-stock {
    color: #ffa726;
}

html[data-theme="dark"] .empty-state {
    color: #8d8072;
}

/* ============================================================
   ДОПОЛНИТЕЛЬНО: СКРОЛЛ
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3efe9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #d5ccc4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8a394;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #2a241e;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #5a4f47;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #8d8072;
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.4s ease forwards;
}

.product-card:nth-child(2) {
    animation-delay: 0.05s;
}
.product-card:nth-child(3) {
    animation-delay: 0.1s;
}
.product-card:nth-child(4) {
    animation-delay: 0.15s;
}
.product-card:nth-child(5) {
    animation-delay: 0.2s;
}
.product-card:nth-child(6) {
    animation-delay: 0.25s;
}
.product-card:nth-child(7) {
    animation-delay: 0.3s;
}
.product-card:nth-child(8) {
    animation-delay: 0.35s;
}