/* ========================================
   NOIR PARFUMERIE - Premium Styles
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #0a0a0a;
    --color-secondary: #1a1a1a;
    --color-accent: #c9a962;
    --color-accent-hover: #b8973d;
    --color-gold: #d4af37;
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    --color-border: #e5e5e5;
    --color-error: #e74c3c;
    --color-success: #27ae60;
    
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.16);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 1rem;
    overflow: hidden;
    border-radius: 2px;
}

.loading-progress {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 0.3s ease;
    animation: loadingProgress 2s ease forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-medium);
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Desktop Search в левой колонке */
.desktop-search {
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-search.active {
    width: 280px;
    opacity: 1;
    visibility: visible;
}

/* Центральная колонка — логотип */
.logo-center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    line-height: 1;
    color: var(--color-primary);
}

.logo-sub {
    font-size: 0.5rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Правая колонка */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-desktop a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-desktop a:hover {
    color: var(--color-accent);
}

.nav-desktop a:hover::after {
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    line-height: 1;
}

.logo-sub {
    font-size: 0.5rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-btn, .cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text);
    transition: var(--transition-fast);
    position: relative;
}

.search-btn:hover, .cart-btn:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-fast);
}

.cart-count.active {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    z-index: 999;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide-content {
    color: white;
    z-index: 2;
    max-width: 600px;
    padding: 2rem;
}

.slide-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.slide-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.slide-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--color-primary);
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.slide-btn:hover {
    color: white;
}

.slide-btn:hover::before {
    left: 0;
}

.slide-btn.accent {
    background: var(--color-accent);
    color: white;
}

.slide-btn.accent::before {
    background: var(--color-gold);
}

.slide-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Perfume Bottle Animation */
.perfume-visual {
    position: relative;
    width: 300px;
    height: 400px;
}

.bottle-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottle {
    width: 120px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px 10px 40px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        inset 0 0 30px rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}

.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(180deg, rgba(201,169,98,0.6) 0%, rgba(201,169,98,0.3) 100%);
    animation: liquidMove 4s ease-in-out infinite;
}

.highlight {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 60%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(10px);
}

.mist {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: mist 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes liquidMove {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes mist {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.2); }
}

.sale-badge {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    animation: pulseBadge 2s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(201,169,98,0.4);
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-fast);
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    padding: 4rem 0;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* Section Header */
.section-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.section-title-wrapper {
    flex: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.mobile-filter-btn-wrapper {
    display: none;
}

.mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========================================
   FILTERS SIDEBAR
   ======================================== */
.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.filter-block:last-of-type {
    border-bottom: none;
}

.filter-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.filter-checkbox:hover {
    color: var(--color-text);
}

.filter-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.checkmark::after {
    content: '✓';
    font-size: 12px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-fast);
}

.filter-checkbox input:checked + .checkmark {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.filter-checkbox input:checked + .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.filter-checkbox input:checked ~ .label-text {
    color: var(--color-text);
    font-weight: 500;
}

/* Price Range */
.price-range {
    margin-top: 0.5rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-inputs input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition-fast);
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.price-separator {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.price-slider input[type="range"] {
    width: 100%;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.reset-filters {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.reset-filters:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
    width: 100%;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.products-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.sort-select select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-visual {
    width: 60%;
    height: 70%;
    background: linear-gradient(135deg, rgba(201,169,98,0.2) 0%, rgba(201,169,98,0.05) 100%);
    border-radius: 20px 20px 60px 60px;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        inset 0 0 20px rgba(255,255,255,0.5);
    transition: var(--transition-medium);
}

.product-card:hover .product-visual {
    transform: scale(1.05) translateY(-10px);
}

.product-visual::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(8px);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.9rem;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    z-index: 2;
}

.product-badge.sale {
    background: #e74c3c;
}

.product-badge.limited {
    background: var(--color-accent);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.btn-quick-view, .btn-add-cart {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-quick-view {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-quick-view:hover {
    border-color: var(--color-text);
}

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

.btn-add-cart:hover {
    background: var(--color-accent);
}

.product-info {
    padding: 1.5rem;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-notes {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
}

.product-price .old-price {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-right: 0.5rem;
    font-weight: 400;
}

.product-volume {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding: 0.3rem 0.6rem;
    background: var(--color-bg);
    border-radius: 4px;
}

/* ========================================
   MOBILE FILTER MODAL
   ======================================== */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.filter-modal.active {
    visibility: visible;
    opacity: 1;
}

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.filter-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-modal.active .filter-modal-content {
    transform: translateY(0);
}

.filter-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--color-text);
}

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.filter-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    border-color: var(--color-text);
}

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

.btn-primary:hover {
    background: var(--color-accent);
}

/* ========================================
   CART SIDEBAR
   ======================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: white;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.close-cart:hover {
    color: var(--color-text);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 0;
    color: var(--color-text-muted);
}

.empty-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.cart-empty span {
    font-size: 0.9rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    animation: slideIn 0.3s ease;
}

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

.cart-item-image {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #999;
    position: relative;
    overflow: hidden;
}

.cart-item-visual {
    width: 50%;
    height: 60%;
    background: rgba(201,169,98,0.3);
    border-radius: 10px 10px 30px 30px;
}

.cart-item-details h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-details p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.qty-value {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    font-size: 0.9rem;
}

.cart-item-price {
    text-align: right;
}

.cart-item-price .price {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.remove-item {
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    background: none;
    border: none;
}

.remove-item:hover {
    color: var(--color-error);
}

.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.cart-summary {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.75rem;
}

.checkout-btn, .continue-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 0.75rem;
}

.checkout-btn {
    background: var(--color-primary);
    color: white;
    border: none;
}

.checkout-btn:hover {
    background: var(--color-accent);
}

.continue-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.continue-btn:hover {
    border-color: var(--color-text);
}

/* ========================================
   CHECKOUT MODAL
   ======================================== */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.checkout-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 2.5rem;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.checkout-modal.active .checkout-content {
    transform: scale(1) translateY(0);
}

.close-checkout {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.close-checkout:hover {
    color: var(--color-text);
    transform: rotate(90deg);
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.checkout-header p {
    color: var(--color-text-muted);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group.small {
    max-width: 100px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201,169,98,0.1);
}

/* Delivery Options */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-option {
    position: relative;
    cursor: pointer;
}

.delivery-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.delivery-option:hover .option-content {
    border-color: var(--color-text-light);
}

.delivery-option input:checked + .option-content {
    border-color: var(--color-accent);
    background: rgba(201,169,98,0.05);
}

.option-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
}

.option-info {
    flex: 1;
}

.option-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.option-price {
    font-weight: 600;
    color: var(--color-accent);
}

.option-price.free {
    color: var(--color-success);
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-option:hover {
    border-color: var(--color-text-light);
}

.payment-option.selected {
    border-color: var(--color-accent);
    background: rgba(201,169,98,0.05);
}

.payment-option input {
    display: none;
}

/* Checkout Summary */
.checkout-summary {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.summary-line.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.place-order-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.place-order-btn:hover {
    background: var(--color-accent);
}

/* ========================================
   SUCCESS NOTIFICATION
   ======================================== */
.success-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--color-primary);
    color: white;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    text-align: center;
    z-index: 4000;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-notification.active {
    transform: translate(-50%, -50%) scale(1);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.success-notification h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-notification p {
    opacity: 0.8;
}

/* ========================================
   QUICK VIEW MODAL — ИСПРАВЛЕННЫЕ СТИЛИ
   ======================================== */
   .quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    cursor: pointer; /* Показываем что кликабельно */
}

.quick-view-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 20px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

.quick-view-modal.active .quick-view-content {
    transform: scale(1);
}

/* Кнопка закрытия */
.quick-view-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-view-close:hover {
    background: var(--color-accent);
    color: white;
    transform: rotate(90deg);
}

.quick-view-close svg {
    width: 20px;
    height: 20px;
}

/* Левая часть с изображением */
.quick-view-image {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.quick-view-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

/* Правая часть с деталями — скролл внутри */
.quick-view-details {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: 85vh;
    
    /* Золотой скроллбар для десктопа */
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) #f0f0f0;
    margin: 28px 2px 28px 0px;
}

/* Webkit скроллбар — только для десктопа */
.quick-view-details::-webkit-scrollbar {
    width: 8px;
}

.quick-view-details::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.quick-view-details::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}

.quick-view-details::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}

/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ — СКРЫВАЕМ СКРОЛЛБАР
   ======================================== */
@media (max-width: 968px) {
    .quick-view-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
        width: 95%;
    }
    
    .quick-view-image {
        min-height: 200px;
        max-height: 30vh;
        padding: 1rem;
    }
    
    .quick-view-details {
        max-height: none;
        overflow-y: auto;
        padding: 1.5rem;
        
        /* Скрываем скроллбар на мобильных */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
    }
    
    /* Скрываем Webkit скроллбар на мобильных */
    .quick-view-details::-webkit-scrollbar {
        display: none;
    }
    
    .quick-view-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.95);
    }
}

@media (max-width: 480px) {
    .quick-view-content {
        max-height: 95vh;
        border-radius: 16px;
        width: 95%;
    }
    
    .quick-view-image {
        min-height: 180px;
    }
    
    .quick-view-details {
        padding: 1.25rem;
    }
    
    .quick-view-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .container {
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar.desktop-only {
        display: none;
    }
    
    .mobile-filter-btn-wrapper {
        display: block;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .slide {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .slide-content {
        order: 2;
        padding: 1rem;
    }
    
    .slide-image {
        order: 1;
        height: 40%;
    }
    
    .perfume-visual {
        transform: scale(0.7);
    }
    
    .hero-slider {
        height: auto;
        min-height: 700px;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .header-container {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .cart-sidebar {
        max-width: 100%;
    }
    
    .checkout-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quick-view-content {
        grid-template-columns: 1fr;
    }
    
    .slider-controls {
        bottom: 20px;
        gap: 1rem;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-desc {
        font-size: 0.95rem;
    }
    
    .filter-modal-content {
        max-height: 90vh;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.desktop-only {
    display: block;
}

@media (max-width: 968px) {
    .desktop-only {
        display: none;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

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

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

/* Selection */
::selection {
    background: var(--color-accent);
    color: white;
}

@media (max-width: 968px) {
    /* Скрываем стрелки навигации */
    .slider-arrow {
        display: none;
    }
    
    /* Оставляем только точки */
    .slider-dots {
        gap: 0.75rem;
    }
    
    /* Добавляем индикатор свайпа */
    .slider-container::after {
        content: '';
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 4px;
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
        animation: swipeHint 2s ease-in-out infinite;
    }
    
    @keyframes swipeHint {
        0%, 100% { transform: translateX(-50%) translateX(0); }
        50% { transform: translateX(-50%) translateX(20px); }
    }
}

@media (max-width: 768px) {
    /* Кнопка корзины ВСЕГДА видна */
    .product-actions {
        transform: none; /* Убран hover-эффект */
        background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    }
    
    /* Кнопка быстрого просмотра СКРЫТА */
    .btn-quick-view {
        display: none;
    }
    
    /* Кнопка корзины занимает всю ширину */
    .btn-add-cart {
        flex: 1;
        min-height: 44px; /* Удобная зона тапа */
    }
}

@media (max-width: 768px) {
    .btn-quick-view {
        display: none; /* Скрыта на мобильных */
    }
    
    .btn-add-cart {
        /* Всегда видна */
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 карточки */
        gap: 1rem;
    }
    
    /* Адаптированы размеры для маленьких карточек */
    .product-name { font-size: 0.95rem; }
    .product-price { font-size: 1rem; }
    .btn-add-cart { padding: 0.625rem; font-size: 0.75rem; }
    .product-badge { font-size: 0.65rem; }
}

/* ========================================
   SEARCH FUNCTIONALITY
   ======================================== */

/* Desktop Search */
.search-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.search-wrapper.active {
    width: 400px;
    opacity: 1;
    visibility: visible;
}

.search-wrapper.active ~ .logo,
.search-wrapper.active ~ .header-right {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-input-container {
    position: relative;
    width: 100%;
}

.search-input-container input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--color-surface);
    transition: var(--transition-fast);
}

.search-input-container input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201,169,98,0.1);
}

.search-input-container .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-text-muted);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    color: var(--color-text);
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    z-index: 1001;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--color-border);
}

.mobile-search-overlay.active {
    transform: translateY(0);
}

.mobile-search-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
}

.mobile-search-input-wrapper {
    flex: 1;
    position: relative;
}

.mobile-search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-bg);
}

.mobile-search-input-wrapper input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.mobile-search-input-wrapper .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.mobile-search-input-wrapper .search-clear {
    right: 0.75rem;
}

.mobile-search-close {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0.5rem;
    white-space: nowrap;
    font-weight: 500;
}

/* Search Results */
.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 101;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--color-border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--color-bg);
}

.search-result-visual {
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, rgba(201,169,98,0.3) 0%, rgba(201,169,98,0.1) 100%);
    border-radius: 8px 8px 20px 20px;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.search-result-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.search-result-price {
    margin-left: auto;
    font-weight: 600;
    color: var(--color-accent);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* Mobile Search Results */
.mobile-search-results {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-results.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .desktop-search {
        display: none;
    }
    
    .search-btn {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .mobile-search-overlay {
        display: none;
    }
    
    .mobile-search-results {
        display: none;
    }
}

/* Hide logo and right icons when desktop search is active */
.header-search-active .logo,
.header-search-active .header-right {
    opacity: 0;
    pointer-events: none;
}

/* Ensure header container has relative positioning for search placement */
.header-container {
    position: relative;
}

/* ЗАМЕНИТЕ секцию мобильного поиска в styles.css */

/* Mobile Search Overlay - Новая версия как на десктопе */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--color-border);
}

.mobile-search-overlay.active {
    transform: translateY(0);
}

.mobile-search-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    position: relative;
}

.mobile-search-input-wrapper {
    flex: 1;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-bg);
    transition: var(--transition-fast);
}

.mobile-search-input-wrapper input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201,169,98,0.1);
}

.mobile-search-input-wrapper .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.mobile-search-input-wrapper .search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-text-muted);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-input-wrapper .search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.mobile-search-close {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0.5rem;
    white-space: nowrap;
    font-weight: 500;
    transition: var(--transition-fast);
}

.mobile-search-close:hover {
    color: var(--color-accent-hover);
}

/* Результаты поиска на мобильном */
.mobile-search-results {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-results.active {
    opacity: 1;
    visibility: visible;
}

/* Фикс слайдера на мобильной версии */
@media (max-width: 968px) {
    .slide {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 80px 5% 120px;
    }
    
    .slide-content {
        order: 2;
        padding: 1rem;
        z-index: 2;
        position: relative;
    }
    
    .slide-image {
        order: 1;
        height: 35vh;
        min-height: 250px;
        position: relative;
    }
    
    .slide-bg {
        z-index: 0;
    }
    
    .slide-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .slide-desc {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .slide-btn {
        padding: 0.875rem 2rem;
        font-size: 0.8rem;
    }
    
    .perfume-visual {
        transform: scale(0.6);
        margin-top: -50px;
    }
    
    .sale-badge {
        width: 100px;
        height: 100px;
        font-size: 1.8rem;
        top: 10%;
        right: 5%;
    }
    
    .hero-slider {
        height: auto;
        min-height: 100vh;
        max-height: none;
    }
    
    .slider-controls {
        bottom: 30px;
        gap: 1rem;
    }
    
    .slider-arrow {
        display: none;
    }
    
    .slider-dots {
        gap: 0.75rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 70px 1rem 100px;
    }
    
    .slide-tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .slide-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .perfume-visual {
        transform: scale(0.5);
    }
}

/* ДОБАВЬТЕ в конец styles.css - фиксы слайдера */

/* Фикс фона слайдера */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

/* Убедимся что контент слайда виден */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Фикс для мобильной версии слайдера */
@media (max-width: 968px) {
    .slider-container {
        position: relative;
        height: 100%;
        min-height: 600px;
    }
    
    .slide {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 600px;
        padding-top: 80px;
    }
    
    .slide-content {
        order: 2;
        width: 100%;
        max-width: 100%;
        padding: 2rem 1rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .slide-image {
        order: 1;
        width: 100%;
        height: 40%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .slide-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .slide-desc {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Фикс для очень маленьких экранов */
@media (max-width: 480px) {
    .slider-container {
        min-height: 500px;
    }
    
    .slide {
        min-height: 500px;
    }
    
    .slide-content {
        padding: 1.5rem 1rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-desc {
        font-size: 0.9rem;
    }
}

/* Стили для фото товаров */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-visual {
    width: 60%;
    height: 70%;
    background: linear-gradient(135deg, rgba(201,169,98,0.2) 0%, rgba(201,169,98,0.05) 100%);
    border-radius: 20px 20px 60px 60px;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        inset 0 0 20px rgba(255,255,255,0.5);
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фикс для мобильного поиска - скрываем на десктопе */
@media (min-width: 769px) {
    .mobile-search-overlay,
    .mobile-search-results {
        display: none !important;
    }
}

/* Фикс для десктоп поиска - скрываем на мобильном */
@media (max-width: 768px) {
    .desktop-search {
        display: none !important;
    }
}

/* Улучшенные стили для карточек */
.product-card {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #999;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-visual {
    width: 50%;
    height: 60%;
    background: rgba(201,169,98,0.3);
    border-radius: 10px 10px 30px 30px;
}

/* styles.css — добавить/заменить в конец файла */

/* ========================================
   TOOLBAR RIGHT — FILTER + SORT
   ======================================== */
   .toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-filter-btn {
    display: none;
    padding: 0.625rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-fast);
}

.toolbar-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

@media (max-width: 968px) {
    .toolbar-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Скрываем старую кнопку фильтров в заголовке */
    .section-header .mobile-filter-btn-wrapper {
        display: none;
    }
    
    /* Показываем в тулбаре */
    .mobile-filter-btn-wrapper {
        display: block;
    }
}

/* ========================================
   QUICK VIEW — BOTTOM SHEET (как фильтры)
   ======================================== */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2500;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.quick-view-modal.active {
    visibility: visible;
    opacity: 1;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.quick-view-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

.quick-view-modal.active .quick-view-content {
    transform: translateY(0);
}

.quick-view-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.quick-view-header h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0;
}

.quick-view-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.quick-view-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.quick-view-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    
    /* Скроллбар как в фильтрах */
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) #f0f0f0;
}

.quick-view-body::-webkit-scrollbar {
    width: 6px;
}

.quick-view-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.quick-view-body::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

.quick-view-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    background: white;
}

/* Контент Quick View */
.quick-view-product {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-view-image-wrapper {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.quick-view-image-wrapper img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.quick-view-visual {
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, rgba(201,169,98,0.3) 0%, rgba(201,169,98,0.1) 100%);
    border-radius: 20px 20px 60px 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quick-view-info h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.quick-view-brand {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.quick-view-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-view-price .current {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
}

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

.quick-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quick-view-meta span {
    padding: 0.4rem 0.8rem;
    background: var(--color-bg);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.quick-view-description {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.quick-view-notes {
    margin-top: 1rem;
}

.quick-view-notes h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.quick-view-notes p {
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Desktop Quick View — оверлей по центру */
@media (min-width: 769px) {
    .quick-view-modal {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
    
    .quick-view-content {
        position: relative;
        max-width: 900px;
        width: 100%;
        max-height: 85vh;
        border-radius: 20px;
        transform: scale(0.9) translateY(20px);
        transition: transform 0.3s ease;
        bottom: auto;
        left: auto;
    }
    
    .quick-view-modal.active .quick-view-content {
        transform: scale(1) translateY(0);
    }
    
    .quick-view-product {
        flex-direction: row;
        gap: 2rem;
    }
    
    .quick-view-image-wrapper {
        flex: 0 0 300px;
        min-height: 350px;
    }
    
    .quick-view-image-wrapper img {
        max-height: 300px;
    }
    
    .quick-view-info {
        flex: 1;
    }
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .quick-view-content {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
    }
    
    .quick-view-header {
        padding: 1rem 1.25rem;
    }
    
    .quick-view-header h3 {
        font-size: 1.15rem;
    }
    
    .quick-view-body {
        padding: 1.25rem;
    }
    
    .quick-view-image-wrapper {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .quick-view-image-wrapper img {
        max-height: 160px;
    }
    
    .quick-view-info h4 {
        font-size: 1.25rem;
    }
    
    .quick-view-footer {
        padding: 0.875rem 1.25rem;
    }
    
    .btn-secondary, .btn-primary {
        padding: 0.875rem;
    }
}

/* ========================================
   MOBILE SEARCH — ОБЕ ИКОНКИ ВИДНЫ
   ======================================== */

/* Мобильный поиск (встроен в хедер) */
.mobile-search-inline {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.mobile-search-inline.active {
    width: calc(100% - 140px);
    max-width: 280px;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Когда поиск активен — скрываем ТОЛЬКО логотип */
.header-search-active .logo-center-wrapper {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Остальные элементы остаются видны! */
.header-search-active .header-left,
.header-search-active .header-right {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* На мобильном показываем inline-поиск */
@media (max-width: 768px) {
    .desktop-search {
        display: none !important;
    }
    
    .mobile-search-inline {
        display: block;
    }
    
    /* Убираем старый overlay поиска */
    .mobile-search-overlay {
        display: none !important;
    }
    
    /* Корректируем ширину поиска — место для меню и корзины */
    .mobile-search-inline.active {
        width: calc(100% - 130px);
        max-width: 260px;
    }
    
    /* Уменьшаем отступы в хедере для компактности */
    .header-container {
        padding: 0.75rem 1rem;
        position: relative;
    }
    
    /* Логотип плавно скрывается */
    .logo-center-wrapper {
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    /* Убираем border-bottom у хедера */
    .header {
        border-bottom: none;
    }
    
    .header.scrolled {
        border-bottom: 1px solid var(--color-border);
    }
    
    /* Корзина и меню всегда на месте */
    .header-left {
        flex-shrink: 0;
        z-index: 101;
    }
    
    .header-right {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        z-index: 101;
    }
    
    /* Кнопка поиска на мобильном — компактнее */
    .search-btn {
        padding: 0.4rem;
    }
    
    /* Корзина всегда видна */
    .cart-btn {
        position: relative;
        padding: 0.4rem;
    }
    
    /* Меню тоже */
    .menu-btn {
        padding: 0.4rem;
    }
}

/* На десктопе скрываем мобильный поиск */
@media (min-width: 769px) {
    .mobile-search-inline {
        display: none !important;
    }
}

/* Фикс для плавного появления поиска */
.search-wrapper .search-input-container input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--color-surface);
    transition: var(--transition-fast);
}

.search-wrapper .search-input-container input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201,169,98,0.1);
}

/* Кнопка очистки в поиске */
.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-text-muted);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Иконка поиска */
.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

/* Фикс для очень маленьких экранов */
@media (max-width: 380px) {
    .mobile-search-inline.active {
        width: calc(100% - 120px);
        max-width: 220px;
    }
    
    .header-container {
        padding: 0.75rem 0.75rem;
    }
    
    .search-wrapper .search-input-container input {
        font-size: 0.85rem;
        padding: 0.5rem 2.2rem 0.5rem 2.2rem;
    }
}

/* ========================================
   COMPACT MOBILE FOOTER
   ======================================== */

   @media (max-width: 768px) {
    footer {
        padding: 1.5rem 1rem 1rem !important;
        margin-top: 2rem !important;
    }
    
    footer > div:first-child {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    
    footer .logo-text {
        font-size: 1.25rem !important;
    }
    
    footer .logo-sub {
        font-size: 0.45rem !important;
    }
    
    footer h4 {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    footer ul {
        font-size: 0.65rem !important;
        line-height: 1.6 !important;
    }
    
    footer p {
        font-size: 0.7rem !important;
        line-height: 1.5 !important;
    }
    
    footer > div:last-child {
        margin-top: 1rem !important;
        padding-top: 0.75rem !important;
        font-size: 0.6rem !important;
    }
}

/* На очень маленьких экранах — в одну колонку */
@media (max-width: 360px) {
    footer > div:first-child {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }
    
    footer > div:first-child > div:last-child {
        text-align: center !important;
    }
}

/* ========================================
   FOOTER — DESKTOP vs MOBILE
   ======================================== */

   .site-footer {
    background: var(--color-primary);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

/* Desktop Footer */
.footer-desktop {
    display: block;
}

.footer-desktop .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-desktop .footer-col h4 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.footer-desktop .footer-col ul {
    list-style: none;
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 2;
}

.footer-desktop .footer-col a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-desktop .footer-col a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-desktop .footer-col p {
    opacity: 0.7;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* Mobile Footer — скрыт по умолчанию */
.footer-mobile {
    display: none;
}

/* Bottom copyright */
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.5;
    font-size: 0.85rem;
}

/* ========================================
   MOBILE FOOTER STYLES
   ======================================== */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 1rem 1rem;
        margin-top: 2rem;
    }
    
    /* Скрываем десктопный футер */
    .footer-desktop {
        display: none;
    }
    
    /* Показываем мобильный */
    .footer-mobile {
        display: block;
    }
    
    .footer-mobile .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .footer-mobile .logo-text {
        font-size: 1.25rem !important;
    }
    
    .footer-mobile .logo-sub {
        font-size: 0.45rem !important;
    }
    
    .footer-mobile h4 {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        opacity: 0.9;
    }
    
    .footer-mobile ul {
        font-size: 0.65rem;
        line-height: 1.6;
    }
    
    .footer-mobile p {
        font-size: 0.7rem;
        line-height: 1.5;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 0.75rem;
        font-size: 0.6rem;
    }
}

/* Очень маленькие экраны — в одну колонку */
@media (max-width: 360px) {
    .footer-mobile .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-mobile .footer-mobile-col {
        text-align: center !important;
    }
}

/* ========================================
   SLIDE POSITIONING STYLES
   ======================================== */

   .slide-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Адаптация позиционирования для мобильных */
@media (max-width: 968px) {
    .slide-content-wrapper {
        padding: 0 5% !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .slide-content {
        text-align: center !important;
        padding: 1rem !important;
    }
    
    .slide-title {
        font-size: 2rem !important;
    }
    
    .slide-image {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        height: 30vh;
        order: -1;
    }
    
    .sale-badge {
        width: 80px !important;
        height: 80px !important;
        font-size: 1rem !important;
    }
}

/* Превью в админке */
#gradientPreview, #colorPreview {
    transition: background 0.3s ease;
}

/* Стили для выбора товаров в админке */
#slideProductsSelector {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) #f0f0f0;
}

#slideProductsSelector::-webkit-scrollbar {
    width: 6px;
}

#slideProductsSelector::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

#slideProductsSelector::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

/* Цветовые инпуты в админке */
input[type="color"] {
    cursor: pointer;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

/* ========================================
   SOCIAL LINKS STYLES
   ======================================== */

   .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.3);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Mobile social links */
.footer-mobile .social-links {
    margin-top: 1rem;
    gap: 0.75rem;
}

.footer-mobile .social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.footer-mobile .social-link svg {
    width: 18px;
    height: 18px;
}

/* Hover effects for different social networks */
.social-link[aria-label="VKontakte"]:hover {
    background: #454545;
    border-color: #454545;
    box-shadow: 0 8px 20px rgba(42, 42, 42, 0.4);
}

.social-link[aria-label="Telegram"]:hover {
    background: #454545;
    border-color: #454545;
    box-shadow: 0 8px 20px rgba(42, 42, 42, 0.4);
}

.social-link[aria-label="Max"]:hover {
    background: #454545;
    border-color: #454545;
    box-shadow: 0 8px 20px rgba(42, 42, 42, 0.4);
}