/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
}

/* Для футера логотип меньше */
.footer .logo-image {
    height: 40px;
    max-width: 150px;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c5530;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
    background: #f0f0f0;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav {
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu .nav-link {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.mobile-menu .user-actions {
    margin-top: 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu .search-box {
    margin: 1rem 0;
}

.mobile-menu .search-box input {
    width: 100%;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #4caf50;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    width: 250px;
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background: #f0f0f0;
    transition: background 0.3s;
}

.cart-icon:hover {
    background: #e0e0e0;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-admin,
.btn-seller {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-admin {
    background: #3498db;
    color: white;
}

.btn-admin:hover {
    background: #2980b9;
}

.btn-seller {
    background: #f39c12;
    color: white;
}

.btn-seller:hover {
    background: #e67e22;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: 
        linear-gradient(135deg, 
            rgba(255, 107, 107, 0.6) 0%, 
            rgba(78, 205, 196, 0.6) 25%, 
            rgba(69, 183, 209, 0.6) 50%, 
            rgba(150, 206, 180, 0.6) 75%, 
            rgba(254, 202, 87, 0.6) 100%),
        url('../images/ChatGPT Image 18 сент. 2025 г., 18_38_51.png') center/cover no-repeat;
    background-size: 400% 400%, cover;
    animation: gradientShift 8s ease infinite;
    color: white;
    display: flex;
    align-items: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            transparent 25%, 
            transparent 75%, 
            rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    flex: 1;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #fff;
    color: #2c5530;
}

.btn-primary:hover {
    background: #e8e8e8;
    color: #1a1a1a;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-image {
    flex: 1;
    text-align: center;
    display: none; /* Скрываем отдельное изображение, так как теперь используется фоновое */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Categories */
.categories {
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        #ff9a9e 0%, 
        #fecfef 25%, 
        #fecfef 50%, 
        #fecfef 75%, 
        #ff9a9e 100%);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.categories::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(60deg, 
            rgba(255, 255, 255, 0.08) 0%, 
            transparent 30%, 
            transparent 70%, 
            rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
    animation: shimmer 5s ease-in-out infinite;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 1);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.category-card p {
    color: #555;
    font-weight: 500;
}

/* Products */
.products {
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        #a8edea 0%, 
        #fed6e3 25%, 
        #d299c2 50%, 
        #fef9d7 75%, 
        #a8edea 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.products::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(30deg, 
            rgba(255, 255, 255, 0.06) 0%, 
            transparent 40%, 
            transparent 60%, 
            rgba(255, 255, 255, 0.06) 100%);
    pointer-events: none;
    animation: shimmer 6s ease-in-out infinite;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #ff6b6b;
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b6b;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    min-height: 600px;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 1.5rem;
    margin: 0.5rem;
    display: block;
    width: 100%;
    height: 350px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 1);
}

/* Убираем все сложные классы фильтрации */

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: block;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card:hover .product-image {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.product-image[src=""] {
    opacity: 0;
}

.product-info {
    padding: 0.5rem 0;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c5530;
    line-height: 1.3;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    height: 2.8em; /* Фиксированная высота для 2 строк */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-add-cart {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ff5252, #26c6da);
}

.btn-favorite {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: #2c3e50;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-favorite:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

/* About Section */
.about {
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.05) 0%, 
            transparent 50%, 
            rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    animation: shimmer 4s ease-in-out infinite;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: #feca57;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.feature span {
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contacts */
.contacts {
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        #ffecd2 0%, 
        #fcb69f 25%, 
        #ff8a80 50%, 
        #ffcdd2 75%, 
        #ffecd2 100%);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.contacts::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(120deg, 
            rgba(255, 255, 255, 0.07) 0%, 
            transparent 35%, 
            transparent 65%, 
            rgba(255, 255, 255, 0.07) 100%);
    pointer-events: none;
    animation: shimmer 7s ease-in-out infinite;
}

.contacts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.store-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.store-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 1);
}

.store-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.store-card:hover .store-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.store-icon i {
    font-size: 2rem;
    color: white;
}

.store-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.store-info {
    margin-top: 1rem;
}

.store-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.store-info i {
    margin-right: 0.5rem;
    color: #ff6b6b;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    /* Убираем переходы для предотвращения мерцания */
    transition: none;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: #2c5530;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    /* Убираем все эффекты для предотвращения мерцания */
    transition: none;
    transform: none;
    opacity: 1;
    visibility: visible;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    /* Убираем все эффекты */
    transition: none;
    transform: none;
    opacity: 1;
    visibility: visible;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    /* Убираем все эффекты */
    transition: none;
    transform: none;
    opacity: 1;
    visibility: visible;
}

.quantity-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #45a049;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #4caf50;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4caf50;
    opacity: 0.8;
}

/* Order Form Styles */
.order-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.order-form {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.order-form-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-form-header h3 {
    color: #2c5530;
    font-size: 1.3rem;
}

.close-order-form {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.order-form-body {
    padding: 1.5rem;
}

.order-form .form-group {
    margin-bottom: 1rem;
}

.order-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c5530;
    font-weight: 500;
}

.order-form .form-group input,
.order-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.order-form .form-group input:focus,
.order-form .form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.order-summary h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.order-item-summary {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    color: #666;
}

.order-total {
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    text-align: right;
    color: #e74c3c;
    font-size: 1.1rem;
}

.btn-submit-order {
    width: 100%;
    padding: 1rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-order:hover {
    background: #45a049;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-box {
        display: none;
    }
    
    .user-actions {
        display: none;
    }
    
    .header-actions {
        gap: 0.5rem;
        align-items: center;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .products h2 {
        font-size: 2rem;
    }
    
    .products-filter {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        padding: 0.25rem 0;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .nav {
        gap: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .search-box input {
        width: 150px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem 0.4rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 300px;
    }
    
    .product-info {
        padding: 1rem;
        min-height: 100px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .product-actions {
        height: 45px;
    }
    
    .btn-add-cart {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .btn-favorite {
        width: 45px;
        padding: 0.7rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .contacts h2 {
        font-size: 2rem;
    }
    
    .store-card {
        padding: 1.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .order-form {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .order-form-header,
    .order-form-body {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .btn-submit-order {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* Дополнительные оптимизации для производительности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Дополнительные стили для улучшения производительности */
* {
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

