/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: #fefcf8;
    color: #1e1e2a;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ХЕДЕР ===== */
.header {
    background: #ffffffdd;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eae6df;
    padding: 12px 0;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== ЛОГОТИП ===== */
.logo a {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: inherit !important;
}
.logo h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: 5px !important;
    font-size: 1.6rem !important;
    color: #1e1e2a !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    background: none !important;
    -webkit-text-fill-color: #1e1e2a !important;
    -webkit-background-clip: unset !important;
}
.logo-sub {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.5rem !important;
    letter-spacing: 6px !important;
    text-transform: lowercase !important;
    color: #8b7a6b !important;
    display: block !important;
    margin-top: 4px !important;
    margin-bottom: 2px !important;
    text-decoration: none !important;
}
.logo-ig {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.65rem !important;
    color: #1e1e2a !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
.logo-ig i { font-size: 0.75rem !important; }

.nav-links a {
    text-decoration: none;
    color: #2c2c36;
    margin: 0 12px;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links a:hover { color: #b87c4a; }
.header-search {
    flex: 1;
    min-width: 180px;
    max-width: 350px;
}
.header-search input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #ddd6ce;
    border-radius: 40px;
    font-size: 0.95rem;
    transition: 0.2s;
    background: #fefcf8;
}
.header-search input:focus {
    outline: none;
    border-color: #b87c4a;
    box-shadow: 0 0 0 3px rgba(184,124,74,0.15);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e1e2a;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
    white-space: nowrap;
}
.profile-btn:hover {
    background: #b87c4a;
    transform: translateY(-2px);
}
.profile-btn i { font-size: 1rem; }
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #b87c4a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 30px;
}

/* ===== МОБИЛЬНОЕ МЕНЮ (БУРГЕР) ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #1e1e2a;
    cursor: pointer;
    padding: 5px;
    margin: 0 5px;
    transition: 0.2s;
}
.mobile-menu-btn:hover { color: #b87c4a; }

.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 1999;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0; left: -100%;
    width: 280px; height: 100%;
    background: #fff;
    z-index: 2000;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 30px rgba(0,0,0,0.15);
}
.mobile-menu.open { left: 0; }
.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e1e2a, #2d2d3d);
    color: #fff;
}
.mobile-menu-header span {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.mobile-menu-header button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding-bottom: 3px;
    transition: 0.2s;
}
.mobile-menu-header button:hover { background: #b87c4a; transform: rotate(90deg); }

.mobile-menu-links {
    display: flex; flex-direction: column; padding: 20px;
    gap: 5px;
}
.mobile-menu-links a {
    padding: 16px 15px;
    text-decoration: none;
    color: #1e1e2a;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex; align-items: center; gap: 15px;
    transition: 0.2s;
}
.mobile-menu-links a i {
    font-size: 1.2rem; color: #b87c4a; width: 20px; text-align: center;
}
.mobile-menu-links a:hover {
    background: #fdf9f4;
    color: #b87c4a;
    transform: translateX(5px);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(120deg, #f7f2ea, #fff4e8);
    border-radius: 0 0 48px 48px;
    padding: 30px 0;
    margin-bottom: 40px;
}
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.hero-text { flex: 1; }
.hero-text h2 {
    font-size: 2.8rem;
    font-family: 'Playfair Display', serif;
}
.hero-text p {
    margin: 16px 0 24px;
    font-size: 1.05rem;
    color: #4a4a5a;
}
.btn-primary {
    background: #1e1e2a;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover {
    background: #b87c4a;
    transform: translateY(-3px);
}
.hero-image {
    flex: 0 0 650px;
    max-width: 650px;
}
.hero-image img {
    width: 100%;
    max-width: 650px;
    max-height: 500px;
    object-fit: contain;
    border-radius: 32px;
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.2);
    background: #f7f2ea;
}

/* ===== ТУЛБАР КАТАЛОГА ===== */
.catalog-toolbar-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 73px !important;
    z-index: 90 !important;
    background-color: #fefcf8 !important;
    padding: 15px 0 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.catalog-toolbar-row.is-sticky {
    border-bottom-color: #eae6df !important;
    box-shadow: 0 10px 15px -10px rgba(0, 0, 0, 0.1) !important;
}

.catalog-toolbar-row .filter-toggle-btn { flex: 0 0 auto; }
.sale-subtitle { flex: 1; text-align: center; color: #8b7a6b; font-size: 0.95rem; margin: 0; letter-spacing: 0.4px; min-width: 200px; }
.catalog-toolbar-row .catalog-count { margin-left: 0; flex: 0 0 auto; }
.catalog-toolbar-row.no-sale .sale-subtitle { display: none; }
.catalog-toolbar-row.no-sale { justify-content: space-between; }

/* ===== Кнопка "Фильтры" ===== */
.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px 14px 22px;
    background: linear-gradient(135deg, #1e1e2a 0%, #3a3a4d 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.98rem;
    font-family: inherit;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 24px -10px rgba(30,30,42,0.55);
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}
.filter-toggle-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #b87c4a 0%, #d69a6c 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.filter-toggle-btn:hover::before { opacity: 1; }
.filter-toggle-btn > * { position: relative; z-index: 1; }
.filter-toggle-btn:hover { box-shadow: 0 16px 30px -10px rgba(184,124,74,0.55); }
.filter-toggle-btn i.fa-sliders-h { font-size: 1.05rem; }
.filter-toggle-btn .filter-badge {
    display: none;
    background: #b87c4a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.25s;
}
.filter-toggle-btn .filter-badge.visible { display: inline-flex; }
.filter-toggle-btn:hover .filter-badge { background: #fff; color: #b87c4a; }

.catalog-count {
    font-size: 0.9rem;
    color: #8b7a6b;
    margin-left: auto;
}
.catalog-count span {
    color: #1e1e2a;
    font-weight: 700;
}

/* ===== ОВЕРЛЕЙ ===== */
.filter-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 15, 10, 0.55);
    z-index: 999;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.filter-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

/* ===== ВЫЕЗЖАЮЩАЯ ПАНЕЛЬ ФИЛЬТРОВ ===== */
.filter-sidebar {
    position: fixed;
    top: 0; left: 0; width: 400px; max-width: 90vw; height: 100vh;
    background: #fff; z-index: 1000;
    display: flex; flex-direction: column;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.2);
    transform: translateX(-105%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.filter-sidebar.open { transform: translateX(0); }

.filter-header { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #1e1e2a 0%, #2d2d3d 100%); color: #fff; flex-shrink: 0; }
.filter-header h3 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 10px; letter-spacing: 0.3px; }
.filter-header h3 i { color: #d69a6c; font-size: 1.1rem; }
.filter-close { background: rgba(255,255,255,0.12); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: #fff; font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all 0.25s; padding-bottom: 3px; }
.filter-close:hover { background: #b87c4a; transform: rotate(90deg); }

.filter-content { flex: 1; overflow-y: auto; padding: 6px 0; }
.filter-content::-webkit-scrollbar { width: 6px; }
.filter-content::-webkit-scrollbar-thumb { background: #e0d6cc; border-radius: 3px; }
.filter-content::-webkit-scrollbar-thumb:hover { background: #b87c4a; }

.filter-group { border-bottom: 1px solid #f4eee7; }
.filter-group:last-child { border-bottom: none; }
.filter-group-header { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; transition: background 0.2s; }
.filter-group-header:hover { background: #fdf9f4; }
.filter-group-header h4 { font-size: 0.95rem; font-weight: 700; color: #1e1e2a; letter-spacing: 0.2px; }
.filter-group-header i { color: #b87c4a; font-size: 0.72rem; transition: transform 0.3s ease; }
.filter-group.collapsed .filter-group-header i { transform: rotate(-90deg); }
.filter-group.collapsed .filter-group-body { display: none; }
.filter-group-body { padding: 0 24px 18px; }

.filter-checkbox { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 0.9rem; color: #3a3a44; transition: color 0.2s; user-select: none; }
.filter-checkbox:hover { color: #b87c4a; }
.filter-checkbox input { display: none; }
.filter-checkbox .checkmark { width: 18px; height: 18px; border: 2px solid #ddd6ce; border-radius: 5px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.filter-checkbox:hover .checkmark { border-color: #b87c4a; }
.filter-checkbox input:checked ~ .checkmark { background: #1e1e2a; border-color: #1e1e2a; }
.filter-checkbox input:checked ~ .checkmark::after { content: '\2713'; color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 1; }
.filter-checkbox input:checked ~ .filter-label { color: #1e1e2a; font-weight: 600; }
.filter-checkbox .filter-label { flex: 1; }
.filter-checkbox .count { font-size: 0.72rem; color: #8b7a6b; background: #f9f5f0; padding: 2px 8px; border-radius: 10px; font-weight: 600; transition: all 0.2s; }
.filter-checkbox:hover .count { background: #f0e7de; color: #b87c4a; }

.filter-checkbox .color-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), 0 0 0 1px #f0e7de; transition: all 0.2s; }
.filter-checkbox input:checked ~ .color-dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 0 0 2px #1e1e2a; }

.price-range-display { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 0.88rem; font-weight: 700; background: #fdf9f4; padding: 8px 14px; border-radius: 12px; }
.price-range-display span:first-child { color: #b87c4a; }
.price-range-display span:last-child { color: #1e1e2a; }
.price-slider { position: relative; height: 30px; margin: 6px 0; }
.price-slider-track { position: absolute; top: 50%; left: 0; right: 0; height: 4px; background: #eee6df; border-radius: 4px; transform: translateY(-50%); }
.price-slider-fill { position: absolute; top: 50%; height: 4px; background: linear-gradient(90deg, #b87c4a, #d69a6c); border-radius: 4px; transform: translateY(-50%); pointer-events: none; }
.price-slider input[type="range"] { position: absolute; top: 50%; left: 0; width: 100%; height: 30px; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; transform: translateY(-50%); outline: none; margin: 0; padding: 0; }
.price-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #b87c4a; cursor: grab; pointer-events: auto; box-shadow: 0 2px 10px rgba(184,124,74,0.4); transition: transform 0.15s; }
.price-slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.price-slider input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #b87c4a; cursor: grab; pointer-events: auto; box-shadow: 0 2px 10px rgba(184,124,74,0.4); }
.price-slider input[type="range"]::-moz-range-track { background: transparent; border: none; }

.filter-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip { padding: 8px 16px; border: 1.5px solid #ddd6ce; border-radius: 30px; font-size: 0.85rem; font-weight: 600; cursor: pointer; background: #fff; color: #1e1e2a; transition: all 0.2s; user-select: none; font-family: inherit; min-width: 44px; text-align: center; }
.size-chip:hover { border-color: #b87c4a; color: #b87c4a; }
.size-chip.active { background: #1e1e2a; color: #fff; border-color: #1e1e2a; }

.filter-footer { padding: 16px 20px; border-top: 1px solid #f0e9e0; background: #fefcf8; flex-shrink: 0; display: flex; gap: 10px; }
.btn-clear-filters { flex: 0 0 auto; padding: 12px 18px; background: #fff; border: 1.5px solid #ddd6ce; border-radius: 30px; font-weight: 600; font-size: 0.88rem; cursor: pointer; color: #1e1e2a; transition: all 0.2s; display: flex; align-items: center; gap: 6px; font-family: inherit; }
.btn-clear-filters:hover { border-color: #1e1e2a; background: #1e1e2a; color: #fff; }
.btn-apply-filters { flex: 1; padding: 12px 20px; background: linear-gradient(135deg, #1e1e2a 0%, #2d2d3d 100%); border: none; border-radius: 30px; font-weight: 700; font-size: 0.9rem; cursor: pointer; color: #fff; transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; box-shadow: 0 6px 16px -6px rgba(30,30,42,0.5); }
.btn-apply-filters:hover { background: linear-gradient(135deg, #b87c4a 0%, #d69a6c 100%); transform: translateY(-2px); }
.btn-apply-filters .apply-count { background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 20px; font-size: 0.85rem; }

/* ===== КАТАЛОГ ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 32px; margin-bottom: 40px; }
.product-card { background: #fff; border-radius: 24px; overflow: hidden; transition: 0.3s; box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05); cursor: pointer; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15); }
.product-img { width: 100%; height: 320px; object-fit: cover; background: #f3eee9; }
.product-info { padding: 18px 16px 20px; display: flex; flex-direction: column; }
.product-title { font-weight: 700; font-size: 1.2rem; }
.product-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #b87c4a; }
.product-price { font-weight: 700; font-size: 1.5rem; margin: 10px 0; }
.add-to-cart { background: #f3eee9; border: none; width: 100%; padding: 12px; border-radius: 40px; font-weight: 600; cursor: pointer; transition: 0.2s; margin-top: auto; }
.add-to-cart:hover { background: #b87c4a; color: #fff; }

/* ===== КОРЗИНА ===== */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 200; visibility: hidden; opacity: 0; transition: 0.25s; }
.cart-overlay.open { visibility: visible; opacity: 1; }
.cart-sidebar { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100%; background: #fff; z-index: 201; box-shadow: -20px 0 60px rgba(0,0,0,0.18); transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1); display: flex; flex-direction: column; visibility: hidden; }
.cart-sidebar.open { right: 0; visibility: visible; }
.cart-header { background: linear-gradient(135deg, #1e1e2a 0%, #3a3a4d 100%); color: #fff; padding: 22px 24px; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 1.4rem; font-weight: 700; margin: 0; position: relative; z-index: 1; }
.close-cart { color: #fff !important; background: rgba(255,255,255,0.12) !important; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: all 0.2s; position: relative; z-index: 1; border: none; cursor: pointer; padding-bottom: 4px; }
.close-cart:hover { background: #dc3545 !important; transform: rotate(90deg); }
.cart-items { padding: 16px; background: #fdfbf8; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.empty-cart-msg { text-align: center; color: #8b7a6b; padding: 60px 20px; font-size: 1rem; line-height: 1.8; }
.empty-cart-msg::before { content: '🛒'; font-size: 4rem; display: block; margin-bottom: 20px; opacity: 0.4; }

/* КАРТОЧКА ТОВАРА В КОРЗИНЕ */
.cart-item { display: flex; gap: 12px; align-items: center; background: #fff; padding: 14px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid #f0e9e0; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; background: #f9f5f0; flex-shrink: 0; }
.cart-item-details { flex: 1; display: flex; flex-direction: column; }
.cart-item-title { font-weight: 700; font-size: 0.95rem; color: #1e1e2a; margin-bottom: 4px; line-height: 1.3; }
.cart-item-price { font-weight: 800; font-size: 1rem; color: #b87c4a; margin-bottom: 6px; }
.cart-item-options { font-size: 0.75rem; color: #8b7a6b; margin-bottom: 8px; }
.cart-item-quantity { display: flex; align-items: center; gap: 8px; background: #fdfbf8; border: 1px solid #eae6df; border-radius: 20px; padding: 4px 8px; width: fit-content; }
.quantity-btn { background: none; border: none; font-size: 1.1rem; color: #8b7a6b; cursor: pointer; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.quantity-btn:hover { color: #1e1e2a; }
.quantity-input { width: 30px; text-align: center; border: none; background: transparent; font-weight: 600; font-size: 0.95rem; color: #1e1e2a; outline: none; -moz-appearance: textfield; }
.quantity-input::-webkit-outer-spin-button, .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item-remove { background: none; border: none; color: #ddd6ce; cursor: pointer; font-size: 1.1rem; transition: 0.2s; padding: 5px; align-self: flex-start; }
.cart-item-remove:hover { color: #dc3545; }

.cart-footer { background: #fff; padding: 20px; border-top: 1px solid #f0e9e0; }
.total-price { font-size: 1.3rem; padding: 14px 16px; background: #fefcf8; border-radius: 14px; border: 1px solid #f0e9e0; margin-bottom: 14px; display: flex; justify-content: space-between; font-weight: 700; }
.total-price span:last-child { color: #b87c4a; font-weight: 800; font-size: 1.4rem; }
.checkout-btn { width: 100%; background: #1e1e2a; color: #fff; padding: 16px; border: none; border-radius: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.25s; box-shadow: 0 8px 20px -8px rgba(30,30,42,0.5); position: relative; overflow: hidden; letter-spacing: 0.3px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.checkout-btn:hover { background: #b87c4a; transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(184,124,74,0.5); }
.clear-cart-btn { background: none; border: none; color: #8b7a6b; font-size: 0.85rem; margin-top: 16px; cursor: pointer; width: 100%; text-align: center; transition: color 0.2s; display: flex; justify-content: center; align-items: center; gap: 6px; }
.clear-cart-btn:hover { color: #dc3545; text-decoration: underline; }

/* ===== ОФОРМЛЕНИЕ ЗАКАЗА ===== */
.checkout-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 300; visibility: hidden; opacity: 0; transition: 0.25s; }
.checkout-overlay.open { visibility: visible; opacity: 1; }

.checkout-sidebar { 
    position: fixed; 
    top: 0; right: -100%; 
    width: 100%; 
    max-width: 480px;
    height: 100%; 
    background: #fff; 
    z-index: 301; 
    box-shadow: -20px 0 60px rgba(0,0,0,0.18); 
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1); 
    display: flex; flex-direction: column; visibility: hidden; 
}
.checkout-sidebar.open { right: 0; visibility: visible; }

.checkout-header { background: #1e1e2a; color: #fff; padding: 22px 24px; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; }
.checkout-header h3 { color: #fff; font-size: 1.2rem; position: relative; z-index: 1; margin: 0; display: flex; align-items: center; gap: 10px;}
.close-checkout { color: #fff !important; background: rgba(255,255,255,0.12) !important; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: all 0.2s; position: relative; z-index: 1; border: none; cursor: pointer; padding-bottom: 4px; }
.close-checkout:hover { background: #dc3545 !important; transform: rotate(90deg); }

.checkout-content { 
    padding: 20px 16px; 
    background: #fdfbf8; 
    flex: 1; 
    overflow-y: auto; 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.checkout-fields .form-group { margin-bottom: 16px; }
.checkout-fields label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.8rem; color: #1e1e2a; margin-bottom: 6px; }
.checkout-fields input { padding: 10px 12px; border: 1.5px solid #e0d6cc; border-radius: 12px; font-size: 0.9rem; background: #fff; transition: all 0.2s; width: 100%; font-family: inherit; font-weight: 500; color: #1e1e2a; }
.checkout-fields input:focus { outline: none; border-color: #b87c4a; box-shadow: 0 0 0 3px rgba(184,124,74,0.12); }

.order-summary { 
    background: #fff; 
    border: 1px solid #f0e9e0; 
    border-radius: 16px; 
    padding: 16px; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 5px 20px -10px rgba(0,0,0,0.05); 
}
.order-summary h4 { font-size: 0.95rem; font-weight: 800; color: #1e1e2a; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; border-bottom: 2px dashed #f0e9e0; padding-bottom: 10px; }
.checkout-items-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.checkout-item { display: flex; justify-content: space-between; font-size: 0.8rem; color: #3a3a44; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 800; color: #1e1e2a; padding-top: 12px; margin-top: 10px; border-top: 2px solid #f0e9e0; }
.checkout-total span:last-child { color: #b87c4a; font-size: 1.2rem; }

.checkout-footer { background: #fff; padding: 16px 20px; border-top: 1px solid #f0e9e0; flex-shrink: 0; }
.submit-order { width: 100%; background: #1e1e2a; color: #fff; padding: 16px; font-size: 1rem; font-weight: 800; letter-spacing: 0.5px; border: none; border-radius: 14px; cursor: pointer; box-shadow: 0 10px 25px -8px rgba(30,30,42,0.5); position: relative; overflow: hidden; transition: all 0.3s; font-family: inherit; display: flex; justify-content: center; align-items: center; gap: 8px;}
.submit-order:hover { background: #b87c4a; transform: translateY(-2px); box-shadow: 0 15px 35px -8px rgba(184,124,74,0.6); }

/* ===== МОДАЛЬНОЕ ОКНО ТОВАРА ===== */
.product-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 1500; justify-content: center; align-items: center; }
.product-modal { background: #fff; width: 90%; max-width: 1100px; max-height: 90%; overflow-y: auto; border-radius: 24px; position: relative; padding: 20px; }
.product-modal-close { position: absolute; top: 10px; right: 20px; font-size: 2rem; background: none; border: none; cursor: pointer; color: #333; z-index: 5; }
.product-modal-content { display: flex; gap: 30px; flex-wrap: wrap; }
.product-modal-left { flex: 1 1 45%; min-width: 250px; }
.product-modal-right { flex: 1 1 45%; min-width: 250px; }
.product-modal-gallery { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: #f9f5f0; }
.product-modal-gallery img { width: 100%; max-height: 500px; object-fit: cover; display: block; transition: opacity 0.2s ease; opacity: 1; background: #f9f5f0; }
.product-modal-gallery img.fade-out { opacity: 0; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.85); border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; z-index: 2; transition: 0.2s; display: flex; align-items: center; justify-content: center; color: #1e1e2a; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow.left { left: 10px; }
.gallery-arrow.right { right: 10px; }
.gallery-arrow.disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.product-modal-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.product-modal-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.product-modal-thumbs img.active-thumb { border-color: #b87c4a; }
.product-modal-thumbs img:hover { transform: scale(1.05); }
.option-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.option-buttons button { padding: 6px 16px; border: 1px solid #ccc; border-radius: 30px; background: #f9f5f0; cursor: pointer; transition: 0.2s; }
.option-buttons button.active-option { background: #1e1e2a; color: #fff; border-color: #1e1e2a; }
.modal-add-to-cart { background: #1e1e2a; color: #fff; border: none; padding: 14px 32px; border-radius: 40px; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 20px; width: 100%; }
.modal-add-to-cart:hover { background: #b87c4a; }

/* ===== АВТОРИЗАЦИЯ И ПРОФИЛЬ ===== */
.auth-modal-overlay, .profile-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1600; justify-content: center; align-items: center; }
.auth-modal, .profile-modal { background: #fff; max-width: 600px; width: 95%; max-height: 90%; overflow-y: auto; border-radius: 24px; padding: 30px; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.auth-modal-close, .profile-modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; background: none; border: none; cursor: pointer; color: #999; transition: 0.2s; }
.auth-modal-close:hover, .profile-modal-close:hover { color: #b87c4a; }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 24px; border-bottom: 2px solid #eee6df; }
.auth-tab { padding: 8px 20px; background: none; border: none; font-weight: 600; font-size: 1rem; cursor: pointer; color: #999; transition: 0.2s; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.auth-tab.active { color: #b87c4a; border-bottom-color: #b87c4a; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.auth-group { margin-bottom: 16px; }
.auth-group label { display: block; font-weight: 600; margin-bottom: 5px; color: #1e1e2a; font-size: 0.9rem; }
.auth-group input { width: 100%; padding: 10px 14px; border: 1px solid #ddd6ce; border-radius: 30px; font-size: 0.95rem; }
.auth-group input:focus { outline: none; border-color: #b87c4a; box-shadow: 0 0 0 3px rgba(184,124,74,0.15); }
.auth-btn { width: 100%; padding: 12px; background: #1e1e2a; color: #fff; border: none; border-radius: 40px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.2s; margin-top: 10px; }
.auth-btn:hover { background: #b87c4a; }

/* ===== САМОВЫВОЗ, БОНУСЫ ===== */
.pickup-btn { width: 100%; padding: 12px; background: #fff; border: 1.5px solid #ddd6ce; border-radius: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: 0.2s; color: #1e1e2a; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pickup-btn:hover, .pickup-btn.active { background: #1e1e2a; border-color: #1e1e2a; color: #fff; }
.bonus-btn { width: 100%; padding: 12px; background: #fff8e1; border: 1.5px solid #ffd54f; border-radius: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: 0.2s; color: #1e1e2a; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.bonus-btn:hover { background: #ffd54f; }
.bonus-btn.active { background: #1e1e2a; border-color: #1e1e2a; color: #fff; }

/* ===== ФУТЕР ===== */
footer { background: #1e1e2a; color: #ddd2c4; padding: 40px 0; margin-top: 40px; text-align: center; }
footer i.fa-heart { color: #b87c4a; }

/* ===== АДАПТИВ (МОБИЛЬНАЯ ВЕРСИЯ) ===== */
@media (max-width: 768px) {
    .header-search { display: none !important; }
    .nav-links { display: none !important; }
    
    .header-content {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }
    
    .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; }
    
    .header-actions {
        gap: 15px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    
    .profile-btn {
        padding: 8px !important;
        margin: 0 !important;
        background: transparent !important;
        color: #1e1e2a !important;
        font-size: 1.4rem !important;
        box-shadow: none !important;
    }
    .profile-btn:hover { transform: none !important; background: transparent !important; }
    .profile-btn span { display: none !important; }
    .profile-btn i { font-size: 1.3rem !important; }

    .logo h1 { font-size: 1.3rem !important; letter-spacing: 3px !important; }
    .logo-sub, .logo-ig { display: none !important; }

    .hero-text h2 { font-size: 2rem; }
    .hero-image { flex: 0 0 100%; max-width: 100%; }
    .hero-image img { max-width: 100%; max-height: 350px; }
    .filter-sidebar { max-width: 88vw; }

    /* ОТМЕНА ПРИЛИПАНИЯ ВСЕГО БЛОКА ТУЛБАРА НА МОБИЛКАХ */
    .catalog-toolbar-row {
        position: relative !important;
        top: auto !important;
        z-index: 1 !important;
        padding: 10px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: flex;
        justify-content: space-between;
    }
    .catalog-toolbar-row.is-sticky {
        box-shadow: none !important;
        border-bottom: none !important;
    }

    /* ДЕЛАЕМ КНОПКУ ФИЛЬТРА ПЛАВАЮЩЕЙ (СНИЗУ СПРАВА) */
    .filter-toggle-btn {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 99 !important;
        width: 56px !important;
        height: 56px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 8px 20px rgba(30,30,42,0.4) !important;
        background: #1e1e2a !important;
    }
    .filter-toggle-btn span {
        display: none !important; /* Скрываем текст */
    }
    .filter-toggle-btn i.fa-sliders-h {
        font-size: 1.5rem !important;
        margin: 0 !important;
        color: #fff !important;
    }
    .filter-toggle-btn .filter-badge {
        position: absolute;
        top: 0px;
        right: 0px;
        margin: 0 !important;
        background: #ff5722 !important; /* Сделаем ярче */
    }

    /* СЕТКА В 2 КОЛОНКИ */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* УМЕНЬШАЕМ КАРТОЧКИ ТОВАРОВ */
    .product-card {
        border-radius: 16px !important;
    }
    .product-img {
        height: 200px !important;
    }
    .product-info {
        padding: 10px 8px !important;
    }
    .product-title {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }
    .product-category {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
    }
    .product-price, .product-prices .new-price {
        font-size: 1rem !important;
        margin: 4px 0 8px !important;
    }
    .product-prices .old-price {
        font-size: 0.75rem !important;
    }
    .add-to-cart {
        padding: 8px !important;
        font-size: 0.8rem !important;
        border-radius: 20px !important;
    }
    .wishlist-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
        top: 8px !important;
        right: 8px !important;
    }
    .sale-badge {
        top: 8px !important;
        left: 8px !important;
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }

    /* ===== КАТЕГОРИИ НА ТЕЛЕФОНЕ: фото на всю карточку ===== */
    .products-grid .category-card {
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 3 / 4;
        border-radius: 20px !important;
        border: none !important;
        background: #1e1e2a;
        box-shadow: 0 8px 22px -8px rgba(0,0,0,0.35) !important;
    }
    .products-grid .category-card:hover { transform: none !important; }
    /* фото занимает ВСЮ карточку (раньше его ужимало правило .product-img { height:200px }) */
    .products-grid .category-card .product-img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top;
        background: #1e1e2a;
    }
    /* вместо серой плашки на всё фото — мягкий градиент только снизу, под текстом */
    .products-grid .category-card .category-info {
        justify-content: flex-end !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 14px 12px !important;
        background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 38%, rgba(0,0,0,0) 62%) !important;
    }
    .products-grid .category-card:hover .category-info {
        background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 38%, rgba(0,0,0,0) 62%) !important;
    }
    .products-grid .category-card .category-title {
        font-size: 1.1rem !important;
        line-height: 1.15 !important;
        margin-bottom: 6px !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
        overflow-wrap: anywhere;
    }
    .products-grid .category-card .category-count {
        font-size: 0.68rem !important;
        padding: 3px 10px !important;
        background: rgba(255,255,255,0.22) !important;
    }

    /* ОФОРМЛЕНИЕ ЗАКАЗА НА ТЕЛЕФОНЕ В ОДНУ КОЛОНКУ */
    .checkout-content {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .checkout-sidebar {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .auth-modal, .profile-modal { max-width: 100%; padding: 20px; }
    .filter-footer { flex-direction: column; }
    .btn-clear-filters { width: 100%; }
}