/* CSS Variables */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --secondary-color: #FF9800;
    --accent-color: #FFC107;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-lighter: #FFFFFF;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
    position: relative;
}

/* Скрываем визуальный скроллбар справа, но оставляем функциональность */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
    display: none;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: transparent;
}

html,
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Дополнительная поддержка для мобильных браузеров */
* {
    -webkit-overflow-scrolling: touch;
}

/* Utility Classes for Mobile Optimization */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

/* Адаптация для узких экранов 350-550px */
@media (max-width: 550px) {
    .container {
        padding: 0 10px;
    }

    .header-content {
        gap: 0.4rem;
        padding: 0.7rem 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .logo span {
        display: inline;
    }

    .header-timer {
        position: fixed;
        top: 65px;
        right: 0;
        padding: 0.4rem 0.75rem 0.4rem 0.95rem;
        font-size: 0.75rem;
        gap: 0.3rem;
        border-radius: 12px 0 0 12px;
        z-index: 999;
        box-shadow: -2px 4px 12px rgba(244, 67, 54, 0.4);
    }

    .header-timer i {
        font-size: 0.8rem;
    }

    .header.scrolled .header-timer {
        top: 60px;
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem 0.35rem 0.85rem;
    }

    .hamburger span {
        width: 20px;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .search-btn,
    .wishlist-btn,
    .cart-btn {
        font-size: 1.21rem;
        padding: 0.3rem;
    }

    .hamburger {
        padding: 0.3rem;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    /* Товары - выравнивание цены и кнопки */
    .product-info {
        padding: 0.85rem;
    }

    .product-footer {
        gap: 0.4rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-old-price {
        font-size: 0.8rem;
    }

    .add-to-cart {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Floating Search Bar (appears on scroll) */
.floating-search-bar {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.floating-search-bar.visible {
    transform: translateY(80px);
    opacity: 1;
}

.floating-search-content {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.floating-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.floating-logo:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.floating-logo i {
    font-size: 1.6rem;
    transition: var(--transition);
}

.floating-logo:hover i {
    transform: rotate(360deg);
}

.floating-search-trigger {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 1rem;
}

.floating-search-trigger:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.floating-search-trigger i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.floating-search-text {
    flex: 1;
    text-align: left;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.header.scrolled .header-content {
    padding: 0.75rem 0;
}

.header.scrolled .logo {
    font-size: 1.3rem;
}

.header.scrolled .logo i {
    font-size: 1.7rem;
}

.header.scrolled .header-timer {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.logo i {
    font-size: 2rem;
    transition: var(--transition);
}

.logo:hover i {
    transform: rotate(360deg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.header-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f44336;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-timer i {
    animation: flicker 1.5s infinite;
}

.header-timer-values {
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.search-btn,
.wishlist-btn,
.cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.search-btn:hover,
.wishlist-btn:hover,
.cart-btn:hover {
    color: var(--primary-color);
}

.wishlist-btn:hover {
    color: #e91e63;
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.wishlist-count {
    background: #e91e63;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Search Modal */
/* Modern Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 3000;
    animation: fadeIn 0.2s ease;
}

.search-modal.active {
    display: block;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    background: var(--white);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    background: var(--white);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 0 1rem;
}

.search-icon {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.search-input {
    flex: 1;
    padding: 1rem 0.5rem;
    font-size: 1rem;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: var(--text-light);
}

.clear-search {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.clear-search:hover {
    color: var(--text-dark);
}

.close-search {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.close-search:hover {
    color: var(--primary-dark);
}

.search-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

.search-body::-webkit-scrollbar {
    width: 6px;
}

.search-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.search-section {
    margin-bottom: 2rem;
}

.search-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-section-header h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-history {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.clear-history:hover {
    color: var(--primary-dark);
}

.search-history-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.history-item:hover {
    background: #e8e8e8;
}

.history-item i {
    color: var(--text-light);
}

.history-item span {
    flex: 1;
    color: var(--text-dark);
}

.remove-history {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.remove-history:hover {
    color: var(--text-dark);
}

.quick-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-cat:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.quick-cat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.quick-cat span {
    font-weight: 600;
    color: var(--text-dark);
}

.search-results-header {
    margin-bottom: 1rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.search-result-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-light);
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.search-result-category {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: capitalize;
}

.search-result-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results span {
    color: var(--text-light);
}

/* Mobile search adjustments */
@media (max-width: 768px) {
    .search-modal-content {
        max-width: 100%;
        width: 100%;
        height: 100vh;
    }

    .search-header {
        padding: 1rem;
    }

    .search-input-wrapper {
        padding: 0 0.75rem;
    }

    .search-input {
        padding: 0.85rem 0.5rem;
        font-size: 0.95rem;
    }

    .search-body {
        padding: 0.75rem;
    }

    .search-body::-webkit-scrollbar {
        width: 4px;
    }

    .quick-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-item,
    .search-result-item {
        padding: 0.75rem;
    }

    .search-result-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .search-header {
        padding: 0.85rem;
    }

    .search-input-wrapper {
        padding: 0 0.6rem;
    }

    .search-icon {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }

    .search-input {
        padding: 0.75rem 0.4rem;
        font-size: 0.9rem;
    }

    .close-search {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }

    .search-body {
        padding: 0.6rem;
    }

    .search-section h3 {
        font-size: 0.85rem;
    }

    .quick-cat {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .history-item,
    .search-result-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .search-result-img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 380px) {
    .search-header {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .search-input {
        padding: 0.7rem 0.4rem;
        font-size: 0.85rem;
    }

    .search-body {
        padding: 0.5rem;
    }

    .quick-cat {
        padding: 0.65rem;
        font-size: 0.8rem;
    }

    .search-result-img {
        width: 40px;
        height: 40px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    padding: 10rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fallback gradient если изображение не загрузится */
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    background-image: url('../images/hero/hero-desktop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenburns 20s ease-in-out infinite alternate;
    filter: brightness(1.05);
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(56, 142, 60, 0.75) 0%, rgba(76, 175, 80, 0.65) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary {
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary i {
    margin-right: 0.5rem;
}

/* Hero decorative shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--white);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation: float 12s ease-in-out infinite 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 15%;
    animation: float 18s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Hero badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-badge i {
    color: #4CAF50;
    margin-right: 0.5rem;
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary i {
    margin-right: 0.5rem;
}

/* Load More Button for mobile */
#loadMoreBtn {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

#loadMoreBtn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

#loadMoreBtn:hover i {
    transform: translateY(3px);
}

/* Hero features */
.hero-features {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-feature i {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.hero-feature:hover i {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.hero-feature span {
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Special Offers */
.special-offers {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.offer-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    color: var(--white);
}

.offer-content h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.offer-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    min-width: 100px;
}

.countdown-value {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Categories */
.categories {
    padding: 4rem 0;
    background: var(--bg-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.category-card:hover,
.category-card.active {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Products */
.products {
    padding: 4rem 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-header .section-title {
    margin-bottom: 0;
}

.products-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: var(--bg-light);
    border: 2px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
}

.product-badge.sale {
    background: #f44336;
}

.product-badge.new {
    background: #4CAF50;
}

.product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
    font-size: 1.2rem;
    color: var(--text-light);
}

.product-wishlist:hover {
    transform: scale(1.1);
}

.product-wishlist.active {
    color: #e91e63;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.product-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.product-rating .rating-count {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    flex: 1;
}

.product-old-price-space {
    flex: 1;
    min-height: 1.2rem;
}

.add-to-cart {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.add-to-cart:hover {
    background: var(--primary-dark);
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #ffc107;
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* About Us Section */
.about-us-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about-us-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-us-text h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-us-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.about-us-text p strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.about-us-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f5f5f5;
}

.about-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 1024px) {
    .about-us-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .about-us-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about-us-section {
        padding: 3rem 0;
    }
    
    .about-us-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-us-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .about-us-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .about-us-image {
        display: none;
    }
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-intro {
    margin-bottom: 1rem;
}

.contact-intro h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-intro p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.contact-card-content h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-card-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
}

.contact-card-content a:hover {
    color: var(--primary-dark);
}

.contact-form-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.contact-form-header {
    margin-bottom: 2rem;
}

.contact-form-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e8e8e8;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-lg {
    padding: 1.25rem 2rem;
    font-size: 1.05rem;
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
}

.footer-top {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-company h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.footer-company p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-main {
    padding: 2rem 0;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-nav,
.footer-contacts {
    flex: 1;
}

.footer-nav h4,
.footer-contacts h4 {
    margin-bottom: 1rem;
}

.footer-nav p,
.footer-contacts p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav a,
.footer-contacts a,
.footer-company a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-contacts a:hover,
.footer-company a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contacts p i {
    margin-right: 0.5rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.cart-item-quantity {
    width: 50px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.25rem;
}

.remove-item {
    background: #f44336;
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-left: auto;
}

.promo-code {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.promo-code input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.promo-code input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-apply-promo {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-apply-promo:hover {
    background: var(--primary-dark);
}

.cart-summary {
    margin-bottom: 1rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-light);
}

.discount-row {
    color: #4CAF50;
}

.discount-amount {
    font-weight: bold;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
}

.total-price {
    color: var(--primary-color);
}

/* Product Modal */
.product-modal-content {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 2rem;
    align-items: start;
}

.product-modal-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.product-modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-modal-image-wrapper:hover img {
    transform: scale(1.05);
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.product-modal-category {
    display: inline-block;
    color: var(--primary-color);
    background: rgba(76, 175, 80, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: fit-content;
}

.product-modal-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.product-modal-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.3rem 0;
}

.product-modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.product-modal-unit {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.quantity-selector .qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 0.9rem;
}

.quantity-selector .qty-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.quantity-selector input {
    width: 70px;
    text-align: center;
    padding: 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    background: #f9f9f9;
}

.product-modal-info .btn-block {
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.product-modal-info .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top.active {
    display: flex;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
    width: 0;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Уменьшаем отступы секций для компактности */
    section {
        padding: 2.5rem 0 !important;
    }

    .container {
        padding: 0 15px;
    }

    /* Floating search bar на мобильных */
    .floating-search-content {
        padding: 0.6rem 0;
        gap: 1rem;
    }

    .floating-logo {
        font-size: 1.15rem;
    }

    .floating-logo i {
        font-size: 1.4rem;
    }

    .floating-search-trigger {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .floating-search-trigger i {
        font-size: 1rem;
    }

    /* Sticky header на мобильных */
    .header.scrolled .header-content {
        padding: 0.6rem 0;
    }

    .header.scrolled .logo {
        font-size: 1.2rem;
    }

    .header.scrolled .logo i {
        font-size: 1.6rem;
    }



    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
    }

    .header-timer {
        position: fixed;
        top: 70px;
        right: 0;
        padding: 0.35rem 0.7rem 0.35rem 0.9rem;
        font-size: 0.7rem;
        gap: 0.25rem;
        border-radius: 10px 0 0 10px;
        box-shadow: -2px 4px 10px rgba(244, 67, 54, 0.3);
    }

    .header-timer i {
        font-size: 0.75rem;
    }

    .header.scrolled .header-timer {
        top: 65px;
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem 0.3rem 0.8rem;
    }

    .search-btn,
    .wishlist-btn,
    .cart-btn {
        font-size: 0.9rem;
    }

    .header-content {
        gap: 1rem;
    }

    .header-actions {
        gap: 0.8rem;
    }

    /* Компактный Hero на мобильных */
    .hero {
        padding: 4rem 0 3rem !important;
        min-height: 450px;
    }

    .hero-background {
        background-image: url('../images/hero/hero-tablet.jpg');
        animation: none;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero .btn-primary {
        font-size: 0.95rem;
        padding: 0.875rem 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Скрываем hero-features на мобильных для компактности */
    .hero-features {
        display: none;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.875rem;
    }

    .shape {
        display: none;
    }

    /* Компактные заголовки */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    /* Категории компактнее */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    /* Товары */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card {
        padding: 0.875rem;
    }

    .product-image {
        height: 150px;
        flex-shrink: 0;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-footer {
        gap: 0.5rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-old-price {
        font-size: 0.85rem;
    }

    .add-to-cart {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }

    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-modal-image-wrapper {
        aspect-ratio: 1;
        max-width: 100%;
    }

    .product-modal-info {
        gap: 0.9rem;
    }

    .product-modal-price {
        font-size: 1.8rem;
    }

    .product-modal-description {
        font-size: 0.9rem;
    }

    .quantity-selector {
        justify-content: center;
        padding: 0.3rem 0;
    }

    .product-modal-info .btn-block {
        font-size: 0.95rem;
        padding: 0.9rem;
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .products-controls {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .sort-controls {
        flex: 1;
        min-width: 0;
    }

    .sort-controls label {
        display: none;
    }

    .sort-select {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .view-controls {
        display: flex;
        gap: 0.25rem;
    }

    .view-btn {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }

    .products-grid.list-view .product-card {
        flex-direction: column;
    }

    .products-grid.list-view .product-image {
        width: 100%;
    }

    /* Скрываем блок со специальными предложениями/таймером на мобильных */
    .special-offer {
        display: none;
    }

    /* Статистика - показываем только 2 элемента */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Скрываем лишние элементы статистики на мобильных */
    .stats-grid .stat-item:nth-child(n+3) {
        display: none;
    }

    /* Features более компактно */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0;
    }

    /* Контакты - компактнее на планшетах */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .contact-intro {
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .contact-intro h3 {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }

    .contact-intro p {
        font-size: 0.9rem;
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .contact-card {
        padding: 0.875rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }

    .contact-card-icon {
        width: 40px;
        height: 40px;
    }

    .contact-card-icon i {
        font-size: 1rem;
    }

    .contact-card-content h4 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .contact-card-content p,
    .contact-card-content a {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .contact-form-section {
        padding: 1.5rem;
    }

    .contact-form-header h3 {
        font-size: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .contact-form textarea {
        min-height: 100px;
    }

    /* Testimonials - показываем меньше */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Скрываем лишние отзывы, оставляем только 2 */
    .testimonial-card:nth-child(n+3) {
        display: none;
    }

    .testimonial-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Еще более компактные секции */
    section {
        padding: 2rem 0 !important;
    }

    /* Floating search bar компактнее */
    .floating-search-content {
        padding: 0.5rem 0;
        gap: 0.75rem;
    }

    .floating-logo {
        font-size: 1.05rem;
    }

    .floating-logo i {
        font-size: 1.3rem;
    }

    .floating-logo span {
        display: none;
    }

    .floating-search-trigger {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .floating-search-trigger i {
        font-size: 0.95rem;
    }

    /* Sticky header компактнее */
    .header.scrolled .header-content {
        padding: 0.5rem 0;
    }

    .header.scrolled .logo {
        font-size: 1.1rem;
    }

    .header.scrolled .logo i {
        font-size: 1.5rem;
    }

    .header.scrolled .header-timer {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .header.scrolled .search-btn,
    .header.scrolled .wishlist-btn,
    .header.scrolled .cart-btn {
        font-size: 1.21rem;
    }

    /* Hero минимальный */
    .hero {
        padding: 3rem 0 2rem !important;
        min-height: 380px;
    }

    .hero-background {
        background-image: url('../images/hero/hero-mobile.jpg');
        background-position: center center;
        animation: none;
    }

    .hero-title {
        font-size: 1.625rem;
        line-height: 1.25;
        margin-bottom: 0.625rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero .btn-primary {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }

    /* Заголовки компактнее */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    /* Категории в 2 колонки */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .category-card {
        padding: 0.875rem;
    }

    .category-card h3 {
        font-size: 0.95rem;
    }

    /* Товары в 1 колонку на маленьких экранах */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card {
        padding: 0.65rem;
    }

    .product-card h3 {
        font-size: 0.95rem;
    }

    .product-image {
        height: 160px;
        flex-shrink: 0;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-footer {
        gap: 0.35rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-old-price {
        font-size: 0.75rem;
    }

    .add-to-cart {
        padding: 0.45rem 0.65rem;
        font-size: 0.7rem;
    }

    .add-to-cart i {
        font-size: 0.85rem;
    }

    /* Features в 4 колонки, только иконка + заголовок */
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .feature-card {
        padding: 0.75rem 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .feature-card h3 {
        font-size: 0.75rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .feature-card p {
        display: none;
    }

    /* Статистика в 1 колонку, только 2 элемента */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .stat-item {
        padding: 1rem;
    }

    /* Корзина */
    .cart-item {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-item-image {
        width: 100%;
        height: 180px;
    }

    /* Контакты - максимально компактно */
    .contact {
        padding: 1.5rem 0 !important;
    }

    .contact-wrapper {
        gap: 1.25rem;
    }

    .contact-intro {
        margin-bottom: 0.5rem;
    }

    .contact-intro h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .contact-intro p {
        font-size: 0.8rem;
    }

    /* Карточки контактов - 2 в ряд, очень компактно */
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .contact-card {
        padding: 0.625rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-height: auto;
    }

    .contact-card:hover {
        transform: none; /* Отключаем анимацию на мобильных */
    }

    .contact-card-icon {
        width: 35px;
        height: 35px;
        border-radius: 8px;
    }

    .contact-card-icon i {
        font-size: 0.95rem;
    }

    .contact-card-content {
        width: 100%;
    }

    .contact-card-content h4 {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        letter-spacing: 0.3px;
    }

    .contact-card-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .contact-card-content a {
        font-size: 0.8rem;
        word-break: break-word;
    }

    /* Форма обратной связи - компактнее */
    .contact-form-section {
        padding: 1rem;
    }

    .contact-form-header {
        margin-bottom: 1.25rem;
    }

    .contact-form-header h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .contact-form-header p {
        font-size: 0.8rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.7rem 0.875rem;
        font-size: 0.875rem;
    }

    .contact-form textarea {
        min-height: 90px;
    }

    .contact-form .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        margin-top: 0.25rem;
    }

    .contact-form .btn-lg i {
        font-size: 0.875rem;
    }

    /* Testimonials - 1 колонка, только 2 отзыва */
    .testimonials-grid {
        gap: 0.875rem;
    }

    .testimonial-card {
        padding: 1rem;
    }

    /* Footer компактнее */
    .footer-top {
        padding: 2rem 0 1.5rem;
    }

    .footer-main {
        padding: 1.5rem 0;
    }

    .footer-columns {
        flex-direction: row;
        gap: 1.5rem;
    }

    .footer-nav,
    .footer-contacts {
        flex: 1;
        min-width: 0;
    }

    .footer-bottom {
        padding: 1rem 0;
    }

    /* Модальное окно товара - компактно для мобильных */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .close-modal {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 1rem;
        max-height: calc(90vh - 120px);
    }

    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .product-modal-image-wrapper {
        border-radius: 12px;
        max-height: 250px;
    }

    .product-modal-info {
        gap: 0.75rem;
        padding: 0;
    }

    .product-modal-category {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .product-modal-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .product-modal-price {
        font-size: 1.6rem;
    }

    .product-modal-unit {
        font-size: 0.9rem;
    }

    .quantity-selector {
        gap: 0.6rem;
        padding: 0.4rem 0;
        justify-content: center;
    }

    .quantity-selector .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .quantity-selector input {
        width: 60px;
        padding: 0.5rem;
        font-size: 1rem;
    }

    .product-modal-info .btn-block {
        padding: 0.85rem;
        font-size: 0.9rem;
        gap: 0.6rem;
        margin-top: 0.3rem;
    }
}

/* Дополнительная оптимизация для маленьких экранов */
@media (max-width: 380px) {
    .contact {
        padding: 1.25rem 0 !important;
    }

    .container {
        padding: 0 10px;
    }

    .contact-intro h3 {
        font-size: 1.125rem;
    }

    .contact-intro p {
        font-size: 0.75rem;
    }

    /* Карточки контактов еще компактнее */
    .contact-cards {
        gap: 0.4rem;
    }

    .contact-card {
        padding: 0.5rem;
    }

    .contact-card-icon {
        width: 32px;
        height: 32px;
    }

    /* Модальное окно еще компактнее */
    .modal-content {
        width: 98%;
    }

    .modal-header {
        padding: 0.85rem;
    }

    .modal-header h2 {
        font-size: 1rem;
    }

    .modal-body {
        padding: 0.85rem;
    }

    .product-modal-content {
        gap: 1rem;
    }

    .product-modal-image-wrapper {
        max-height: 220px;
    }

    .product-modal-info {
        gap: 0.6rem;
    }

    .product-modal-price {
        font-size: 1.5rem;
    }

    .quantity-selector .qty-btn {
        width: 34px;
        height: 34px;
    }

    .quantity-selector input {
        width: 55px;
        font-size: 0.95rem;
    }

    .product-modal-info .btn-block {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .contact-card-icon i {
        font-size: 0.875rem;
    }

    .contact-card-content h4 {
        font-size: 0.65rem;
    }

    .contact-card-content p,
    .contact-card-content a {
        font-size: 0.75rem;
    }

    /* Форма */
    .contact-form-section {
        padding: 0.875rem;
    }

    .contact-form-header h3 {
        font-size: 1.125rem;
    }

    .contact-form-header p {
        font-size: 0.75rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }

    .contact-form .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Дополнительная защита от экстремального сжатия */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }

    .header-content {
        gap: 0.3rem;
        padding: 0.6rem 0;
    }

    .logo {
        font-size: 1rem;
    }

    .logo i {
        font-size: 1.3rem;
    }

    .header-timer {
        position: fixed;
        top: 60px;
        right: 0;
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem 0.3rem 0.7rem;
        gap: 0.2rem;
        border-radius: 8px 0 0 8px;
        box-shadow: -2px 3px 8px rgba(244, 67, 54, 0.3);
    }

    .header-timer i {
        font-size: 0.7rem;
    }

    .header.scrolled .header-timer {
        top: 55px;
        font-size: 0.6rem;
        padding: 0.25rem 0.45rem 0.25rem 0.6rem;
    }

    .search-btn,
    .wishlist-btn,
    .cart-btn {
        font-size: 0.8rem;
    }

    .header-actions {
        gap: 0.3rem;
    }

    .search-btn,
    .wishlist-btn,
    .cart-btn {
        font-size: 1rem;
        padding: 0.25rem;
    }

    .hamburger {
        padding: 0.25rem;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .category-card {
        padding: 0.5rem;
        min-width: 60px;
    }

    .category-card i {
        font-size: 1.5rem;
    }

    .category-card span {
        font-size: 0.7rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .product-card {
        padding: 0.6rem;
    }

    .product-card h3 {
        font-size: 0.9rem;
    }

    .product-image {
        height: 140px;
        flex-shrink: 0;
    }

    .product-info {
        padding: 0.65rem;
    }

    .product-footer {
        gap: 0.3rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .product-old-price {
        font-size: 0.7rem;
    }

    .add-to-cart {
        padding: 0.4rem 0.55rem;
        font-size: 0.65rem;
    }

    .add-to-cart i {
        font-size: 0.8rem;
    }

    .footer-columns {
        flex-direction: column;
        gap: 1rem;
    }

    /* Модальное окно для очень маленьких экранов */
    .modal-header h2 {
        font-size: 0.95rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .product-modal-image-wrapper {
        max-height: 200px;
        border-radius: 10px;
    }

    .product-modal-category {
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
    }

    .product-modal-description {
        font-size: 0.8rem;
    }

    .product-modal-price {
        font-size: 1.4rem;
    }

    .product-modal-unit {
        font-size: 0.85rem;
    }

    .quantity-selector {
        gap: 0.5rem;
    }

    .quantity-selector .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .quantity-selector input {
        width: 50px;
        padding: 0.4rem;
        font-size: 0.9rem;
    }

    .product-modal-info .btn-block {
        padding: 0.7rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}
