* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e67300;
    --secondary-color: #8b4513;
    --light-color: #ffffff;
    --dark-color: #2c1810;
    --text-color: #333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --info-color: #2196f3;
    --discount-color: #e74c3c;
    --bread-color: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* City Selector - IMPROVED FOR MOBILE */
.city-selector {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999;
    background: white;
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 10px;
    align-items: center;
    transition: var(--transition);
}

.city-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.city-btn.active {
    background: var(--primary-color);
    color: white;
}

.city-btn:hover {
    transform: translateY(-2px);
}

/* Mobile City Selector */
.mobile-city-selector {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: white;
    border-radius: 25px;
    padding: 10px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    gap: 10px;
    align-items: center;
}

.mobile-city-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.mobile-city-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Catalog Categories - Horizontal Scroll */
.catalog-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.catalog-scroll-container {
    position: relative;
    margin: 40px 0 60px;
}

.catalog-categories {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0 30px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.catalog-categories::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.catalog-category {
    flex: 0 0 auto;
    width: 280px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.catalog-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.catalog-category:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 20px;
    text-align: center;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.category-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.category-count {
    display: inline-block;
    background: var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Scroll Navigation Arrows */
.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    opacity: 0.8;
}

.scroll-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-nav-left {
    left: -25px;
}

.scroll-nav-right {
    right: -25px;
}

.scroll-nav i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Scroll Indicator Dots */
.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* Products Grid - Mobile Optimized */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.5s ease forwards;
}

@keyframes cardAppear {
    to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img-container {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.product-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: logoFloat 3s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon, .user-icon, .language-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.cart-icon:hover, .user-icon:hover, .language-icon:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-dropdown, .language-dropdown {
    position: relative;
}

.user-menu, .language-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: var(--shadow);
    min-width: 150px;
    display: none;
    z-index: 1001;
    animation: slideDown 0.3s ease;
}

.language-menu {
    min-width: 120px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-menu.active, .language-menu.active {
    display: block;
}

.user-menu-item, .language-menu-item {
    padding: 12px 15px;
    border-bottom: 1px solid #ffffff;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.user-menu-item:hover, .language-menu-item:hover {
    background-color: var(--light-color);
}

.user-menu-item i, .language-menu-item i {
    margin-right: 10px;
    width: 20px;
}

.language-flag {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    color: rgb(255, 255, 255);
    padding: 150px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #4b291b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #4b291b;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.floating-items {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.floating-item {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    animation: floatAround 15s infinite linear;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, 50px) rotate(90deg); }
    50% { transform: translate(50px, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #e9e1d1;
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #388e3c;
}

/* Products Section */
.section-title {
    text-align: center;
    margin: 80px 0 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    animation: expandWidth 1s ease;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 25px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--discount-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-weight {
    background-color: var(--light-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
    transform: rotate(90deg);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .city-selector {
        display: none; /* Hide desktop city selector */
    }
    
    .mobile-city-selector {
        display: flex; /* Show mobile city selector */
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-city-selector {
        bottom: 15px;
        padding: 8px 15px;
    }
    
    .mobile-city-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .catalog-category {
        width: 250px;
    }
    
    .category-image {
        height: 180px;
    }
    
    .category-content h3 {
        font-size: 1.3rem;
    }
    
    .scroll-nav {
        display: none;
    }
    
    .cart-modal {
        width: 100%;
    }
    
    .product-options {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .mobile-city-selector {
        bottom: 10px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .mobile-city-btn {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .catalog-category {
        width: 220px;
    }
    
    .category-image {
        height: 150px;
    }
    
    .category-content {
        padding: 15px;
    }
    
    .category-content h3 {
        font-size: 1.1rem;
    }
    
    .category-content p {
        font-size: 0.85rem;
    }
    
    .product-card {
        margin-bottom: 0;
    }
    
    .product-img-container {
        height: 150px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
        height: 50px;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .category-filter {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .footer-column {
        min-width: 100%;
    }
    
    .admin-controls {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-img-container {
        height: 130px;
    }
    
    .mobile-city-selector {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        border-radius: 15px;
    }
    
    .mobile-city-btn {
        width: 100%;
        text-align: center;
    }
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    z-index: -1;
    transition: background 0.5s ease;
}

/* About Section */
.about {
    background-color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--light-color);
    border-radius: 50%;
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: var(--light-color);
    border-radius: 50%;
    z-index: 1;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.about-img {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.about-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Contact & Location Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-detail i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
    margin-top: 5px;
}

/* Map Section */
.location {
    padding: 80px 0;
    background-color: white;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.location-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.location-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
}

.location-header h4 {
    color: white;
    margin-bottom: 5px;
}

.location-body {
    padding: 25px;
}

.location-info {
    margin-bottom: 20px;
}

.location-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.location-info i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
    width: 20px;
}

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map {
    height: 100%;
    width: 100%;
}

.auth-tab {
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 167, 98, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Dashboard Sections */
.dashboard-section {
    padding: 80px 0;
    display: none;
}

.dashboard-section.active {
    display: block;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.dashboard-nav-item {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.dashboard-nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.dashboard-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

/* Admin Panel Specific Styles */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    z-index: 9999;
    overflow-y: auto;
}

.admin-panel.active {
    display: block;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.product-item-admin {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.product-item-info {
    flex: 1;
}

.product-item-actions {
    display: flex;
    gap: 10px;
}

.city-price-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.price-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.price-input {
    display: flex;
    flex-direction: column;
}

.price-input label {
    font-weight: 500;
    margin-bottom: 5px;
}

/* Image Upload */
.image-upload-container {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.image-upload-container:hover {
    border-color: var(--primary-color);
    background-color: rgba(212, 167, 98, 0.05);
}

.image-upload-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin: 15px auto;
    display: none;
    border-radius: 10px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: auto;
}

/* Video Upload */
.video-upload-container {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.video-upload-container:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.video-preview {
    max-width: 300px;
    margin: 15px auto;
    display: none;
    border-radius: 10px;
    overflow: hidden;
}

.video-preview video {
    width: 100%;
    height: auto;
}

/* Product Options */
.product-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.option-group {
    margin-bottom: 15px;
}

/* Discount Styling */
.discount-options {
    background-color: rgba(231, 76, 60, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--discount-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    overflow-y: auto;
    transition: var(--transition);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: var(--light-color);
}

.cart-header h3 {
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: bold;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-total {
    padding: 20px;
    border-top: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
}

.cart-actions {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Увеличиваем z-index */
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    animation: slideUp 0.4s ease;
    margin: auto; /* Центрирование */
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 3000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    color: white;
    font-weight: 500;
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
    to { transform: translateX(0); }
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--danger-color);
}

.notification.info {
    background-color: var(--info-color);
}

/* Новые стили для редактирования товаров */
.edit-product-modal .modal-content {
    max-width: 800px;
}

.edit-product-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.edit-product-form .full-width {
    grid-column: 1 / -1;
}

.price-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.discount-field {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
}

.image-preview-small {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px 0;
}

.video-transparency-control {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-transparency-control input[type="range"] {
    flex: 1;
}

.transparency-value {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
}

/* Стили для управления категориями */
.category-management {
    margin-top: 20px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.category-item-info {
    flex: 1;
}

.category-item-actions {
    display: flex;
    gap: 10px;
}

/* Стили для скидок */
.discount-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
}

.discount-price {
    color: #e74c3c;
    font-weight: bold;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discount-price-text {
    color: #e74c3c;
    font-weight: bold;
}

/* Telegram Settings */
.telegram-settings {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #0088cc;
}

.telegram-test-btn {
    margin-top: 15px;
    background: #0088cc;
    color: white;
}

.telegram-test-btn:hover {
    background: #006699;
}

.api-key-input {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: monospace;
    font-size: 0.9rem;
    width: 100%;
}

.api-key-input:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
    outline: none;
}

.telegram-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 10px;
}

.telegram-status.active {
    background: #d4edda;
    color: #155724;
}

.telegram-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Quantity Selector Styles */
.quantity-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 5px;
    margin-right: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1rem;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Order Card Styles */
.order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-new {
    background: #d4edda;
    color: #155724;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #cce5ff;
    color: #004085;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-body {
    margin-bottom: 15px;
}

.order-customer p {
    margin: 5px 0;
}

.order-items {
    margin: 15px 0;
}

.order-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.order-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-processing {
    background: #ffc107;
    color: #000;
}

.btn-processing:hover {
    background: #e0a800;
}

.btn-completed {
    background: #28a745;
    color: white;
}

.btn-completed:hover {
    background: #218838;
}

.btn-cancelled {
    background: #dc3545;
    color: white;
}

.btn-cancelled:hover {
    background: #c82333;
}

.btn-delete {
    background: #6c757d;
    color: white;
}

.btn-delete:hover {
    background: #5a6268;
}

/* Cart Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 5px;
}

.cart-item .quantity-input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cart-item .quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item .quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Order Management Styles */
.order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
}

.order-card.status-new {
    border-left-color: #28a745;
}

.order-card.status-processing {
    border-left-color: #ffc107;
}

.order-card.status-completed {
    border-left-color: #17a2b8;
}

.order-card.status-cancelled {
    border-left-color: #dc3545;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-new {
    background: #d4edda;
    color: #155724;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-body {
    margin-bottom: 15px;
}

.order-customer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.order-customer p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.order-customer strong {
    color: #333;
    min-width: 80px;
    display: inline-block;
}

.order-items {
    margin: 15px 0;
}

.order-items h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1rem;
}

.order-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    align-items: center;
}

.order-item:last-child {
    border-bottom: none;
}

.order-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
    color: var(--secondary-color);
}

.order-notes {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
}

.order-notes strong {
    color: #333;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-processing {
    background: #ffc107;
    color: #000;
    border: none;
}

.btn-processing:hover {
    background: #e0a800;
}

.btn-completed {
    background: #28a745;
    color: white;
    border: none;
}

.btn-completed:hover {
    background: #218838;
}

.btn-cancelled {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-cancelled:hover {
    background: #c82333;
}

.btn-delete {
    background: #6c757d;
    color: white;
    border: none;
}

.btn-delete:hover {
    background: #5a6268;
}

/* Responsive styles for orders */
@media (max-width: 768px) {
    .order-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Checkout Form Styles */
.order-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #eee;
}

.order-summary h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.order-total-line {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--primary-color);
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.form-actions {
    margin-top: 20px;
    text-align: center;
}

/* Modal improvements */
#checkoutModal .modal-content {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Order status colors in admin */
.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
}

.status-new { background: #d4edda; color: #155724; }
.status-processing { background: #fff3cd; color: #856404; }
.status-completed { background: #d1ecf1; color: #0c5460; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* Order item styling in admin */
.order-item-detail {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    margin-bottom: 5px;
    border-radius: 5px;
}

.order-item-detail:nth-child(even) {
    background: #f0f0f0;
}

/* Orders Filter Styles */
.orders-filter {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.orders-filter h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-btn.active {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.filter-btn i {
    font-size: 0.9rem;
}

/* Count badges */
.order-count {
    background: white;
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
    font-weight: bold;
}

/* Empty state */
.empty-orders {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
}

.empty-orders i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-orders h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-orders p {
    color: #888;
}

#calendar button:not([disabled]):hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
}

#calendar button[disabled] {
    cursor: not-allowed;
}

.time-slot-btn:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.time-slot-btn.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

#searchResultsInfo {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Order Search Styles */
.order-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-search-input {
    flex: 1;
    min-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}

.order-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 167, 98, 0.2);
}

.order-search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-search-btn:hover {
    background: var(--secondary-color);
}

.order-customer-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.order-customer-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.order-customer-info strong {
    color: #333;
    min-width: 80px;
    display: inline-block;
}

/* Highlight search results */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* Order filters */
.order-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-filter-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.order-filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.order-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Customer Dashboard Styles */
.customer-dashboard {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    z-index: 9999;
    overflow-y: auto;
}

.customer-dashboard.active {
    display: block;
}

.customer-section {
    display: none;
}

.customer-section.active {
    display: block;
}

.customer-controls {
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Customer Order Card */
.customer-order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.customer-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.customer-order-card.status-new {
    border-left-color: #28a745;
}

.customer-order-card.status-processing {
    border-left-color: #ffc107;
}

.customer-order-card.status-completed {
    border-left-color: #17a2b8;
}

.customer-order-card.status-cancelled {
    border-left-color: #dc3545;
}

.customer-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.customer-order-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.customer-order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.customer-order-body {
    margin-bottom: 15px;
}

.customer-order-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.customer-order-info p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.customer-order-items {
    margin: 15px 0;
}

.customer-order-items h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1rem;
}

.customer-order-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    align-items: center;
}

.customer-order-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
    color: var(--secondary-color);
}

/* Profile Styles */
.customer-profile {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.profile-field {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-field label {
    display: block;
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.profile-field span {
    font-size: 1.1rem;
    color: #333;
}

/* Order Tracking Timeline */
.tracking-timeline {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tracking-timeline h5 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.timeline-step .step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #999;
    transition: all 0.3s ease;
}

.timeline-step.active .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.timeline-step.completed .step-icon {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.timeline-step .step-label {
    font-size: 0.85rem;
    color: #666;
}

.timeline-step.active .step-label {
    color: #333;
    font-weight: bold;
}

/* Responsive Customer Dashboard */
@media (max-width: 768px) {
    .customer-order-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .customer-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
    }
    
    .timeline-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .timeline-step {
        flex: 0 0 calc(50% - 10px);
    }
}

/* ==================== NEW HEADER STYLES ==================== */
.header-actions .language-dropdown {
    position: relative;
}

.current-language {
    margin-left: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Мобильное меню */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow);
    z-index: 1001;
    transition: left 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 15px;
}

.mobile-nav ul li {
    width: 100%;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav ul li a:hover {
    background: var(--light-color);
}

/* Город в меню */
.city-menu-item {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.city-selector-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.city-btn-mobile {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    text-align: left;
    transition: var(--transition);
}

.city-btn-mobile.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==================== REVIEWS SECTION ==================== */
.reviews {
    padding: 80px 0;
    background: var(--light-color);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.review-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.author-info h4 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.author-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* ==================== COMPACT CONTACT SECTION ==================== */
.contact-container.compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .contact-container.compact {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info .contact-detail {
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Форма обратной связи */
.contact-form-collapsible {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.btn-form-toggle {
    width: 100%;
    padding: 15px;
    background: var(--light-color);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-form-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.contact-form-hidden {
    display: none;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.contact-form-hidden.active {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Все адреса */
.all-addresses {
    display: none;
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.all-addresses.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.address-list h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.address-list ul {
    list-style: none;
    padding-left: 0;
}

.address-list ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}

.address-list ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-actions {
        gap: 15px;
    }
    
    .current-language {
        display: none;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .contact-container.compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .mobile-nav {
        width: 100%;
    }
    
    .review-card {
        padding: 20px;
    }
}

/* Short scroll for mobile */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: 70vh;
    }
    
    .catalog-section {
        padding: 50px 0;
    }
    
    .about {
        padding: 50px 0;
    }
    
    .reviews {
        padding: 50px 0;
    }
    
    .contact {
        padding: 50px 0;
    }
    
    /* Remove extra padding between sections */
    section {
        margin-bottom: 0;
    }
}

/* ==================== CITY IN HEADER ==================== */
.city-selector-desktop {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
    margin-right: 10px;
}

.city-selector-desktop:hover {
    background: #e9e1d1;
}

.city-selector-desktop i {
    color: var(--primary-color);
}

#currentCityDisplay {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    margin: 0 5px;
}

.city-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 180px;
    display: none;
    z-index: 1002;
    margin-top: 5px;
}

.city-selector-desktop:hover .city-dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

.city-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.city-dropdown-item:hover {
    background: var(--light-color);
}

.city-dropdown-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.city-dropdown-item.active i.fa-check {
    visibility: visible !important;
    margin-right: 8px;
}

/* Мобильный вид выбора города в меню */
.city-menu-item {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.city-buttons-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.city-btn-mobile {
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: white;
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.city-btn-mobile.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.city-btn-mobile i {
    margin-right: 10px;
    opacity: 0;
}

.city-btn-mobile.active i {
    opacity: 1;
}

/* Скрыть выбор города на мобильном в хедере */
@media (max-width: 992px) {
    .city-selector-desktop {
        display: none;
    }
}

@media (min-width: 993px) {
    .city-menu-item {
        display: none;
    }
}

/* Адаптивность хедера с городом */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }
}

/* ==================== MOBILE CITY SELECTOR FIX ==================== */
@media (max-width: 992px) {
    /* Сделать выбор города в меню более заметным */
    .city-menu-item {
        background: #f8f9fa;
        margin: 20px -20px 0;
        padding: 20px;
        border-radius: 10px;
    }
    
    .city-selector-mobile h4 {
        color: var(--secondary-color) !important;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .city-buttons-mobile {
        gap: 12px;
    }
    
    .city-btn-mobile {
        padding: 15px;
        font-size: 1rem;
        font-weight: 500;
        border-width: 2px;
        background: white;
        justify-content: space-between;
    }
    
    .city-btn-mobile i {
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .city-btn-mobile.active i {
        opacity: 1;
        color: white;
    }
    
    .city-btn-mobile.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        transform: scale(1.02);
        box-shadow: 0 4px 8px rgba(212, 167, 98, 0.2);
    }
}

/* Адаптивность хедера с городом */
@media (max-width: 768px) {
    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    /* Увеличить иконки на мобильных */
    .cart-icon, .user-icon, .language-icon {
        font-size: 1.3rem;
    }
    
    .current-language {
        display: none; /* Скрыть текст RU на мобильных */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    .header-actions {
        gap: 12px;
    }
    
    .city-btn-mobile {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .mobile-nav {
        width: 100%;
        padding: 70px 15px 20px;
    }
}

/* ==================== CITY SELECTOR IMPROVEMENTS ==================== */

/* Уведомление о смене города */
.city-change-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}

.city-change-notification i {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInRight {
    from {
        transform: translateX(150%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(150%) translateY(-20px);
        opacity: 0;
    }
}

/* Анимация обновления цены */
.price-update {
    animation: priceUpdate 0.8s ease;
}

@keyframes priceUpdate {
    0% {
        transform: scale(1);
        color: inherit;
    }
    25% {
        transform: scale(1.15);
        color: var(--primary-color);
    }
    50% {
        transform: scale(1.1);
        color: #e74c3c;
    }
    75% {
        transform: scale(1.05);
        color: var(--primary-color);
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

/* Город в мобильном меню - БОЛЕЕ ЗАМЕТНЫЙ */
.city-menu-item {
    background: linear-gradient(135deg, rgba(212, 167, 98, 0.1), rgba(139, 69, 19, 0.05));
    margin: 25px -20px 0;
    padding: 25px 20px;
    border-radius: 15px;
    border: 2px solid rgba(212, 167, 98, 0.3);
    position: relative;
    overflow: hidden;
}

.city-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.city-selector-mobile h4 {
    color: var(--secondary-color) !important;
    font-size: 1.3rem !important;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.city-buttons-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.city-btn-mobile {
    padding: 18px 20px;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-width: 3px !important;
    background: white;
    justify-content: space-between;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.city-btn-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.city-btn-mobile span {
    position: relative;
    z-index: 2;
}

.city-btn-mobile i {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.city-btn-mobile.active i {
    opacity: 1;
    transform: translateX(0);
    color: white;
}

.city-btn-mobile.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--secondary-color) !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 167, 98, 0.4);
}

.city-btn-mobile:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color) !important;
}

/* Индикатор загрузки цен */
.price-loading {
    position: relative;
}

.price-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
}

/* Адаптивность для уведомлений */
@media (max-width: 576px) {
    .city-change-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .city-btn-mobile {
        padding: 15px;
        font-size: 1rem !important;
    }
}

/* ==================== MOBILE NAVIGATION - ENHANCED ==================== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow);
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

/* Шапка мобильного меню */
.mobile-nav-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.mobile-nav-user i {
    font-size: 2rem;
    color: white;
}

.mobile-nav-close {
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Основное меню */
.mobile-nav-main {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-main li {
    width: 100%;
}

.mobile-nav-main li a {
    display: block;
    padding: 18px 25px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.mobile-nav-main li a:hover {
    background: linear-gradient(90deg, rgba(212, 167, 98, 0.1), transparent);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 30px;
}

/* Секция выбора города */
.mobile-city-section {
    background: #f8f9fa;
    margin: 0;
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-city-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-city-header i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.mobile-city-header h4 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
}

.mobile-city-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: auto;
    font-weight: 500;
}

/* Кнопки выбора города */
.mobile-city-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-city-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-city-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 167, 98, 0.1);
}

.mobile-city-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--secondary-color);
    color: white;
}

.mobile-city-btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-city-btn i {
    opacity: 0;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.mobile-city-btn.active i {
    opacity: 1;
}

.mobile-city-btn span {
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-city-price {
    text-align: right;
}

.mobile-city-price small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

.mobile-city-price strong {
    font-size: 1.2rem;
}

.mobile-city-btn.active .mobile-city-price small,
.mobile-city-btn.active .mobile-city-price strong {
    color: white;
}

/* Информация о выборе города */
.mobile-city-info {
    background: rgba(212, 167, 98, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mobile-city-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
}

.mobile-city-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Секция действий пользователя */
.mobile-actions-section {
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-actions-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-actions-header i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.mobile-actions-header h4 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
}

.mobile-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-action-btn {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    color: #333;
}

.mobile-action-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-action-btn i:first-child {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.mobile-action-btn span {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.mobile-cart-count {
    background: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Кнопки авторизации в мобильном меню */
.mobile-auth-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mobile-login-btn,
.mobile-logout-btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.mobile-login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.mobile-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 167, 98, 0.3);
}

.mobile-logout-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #eee;
}

.mobile-logout-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Секция выбора языка */
.mobile-language-section {
    padding: 25px 20px;
    background: #f8f9fa;
}

.mobile-language-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-language-header i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.mobile-language-header h4 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
}

.mobile-language-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-language-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-language-btn:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-language-btn.active {
    background: rgba(212, 167, 98, 0.1);
    border-color: var(--primary-color);
}

.mobile-language-btn img {
    width: 24px;
    height: 18px;
    border-radius: 3px;
}

.mobile-language-btn span {
    flex: 1;
    font-weight: 500;
}

.mobile-language-btn i {
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-language-btn.active i {
    opacity: 1;
}

/* Скрыть элементы хедера на мобильных */
@media (max-width: 992px) {
    .header-actions {
        display: none !important;
    }
    
    .city-selector-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    .mobile-nav {
        width: 100%;
    }
    
    .mobile-city-btn {
        padding: 15px;
    }
    
    .mobile-action-btn {
        padding: 14px 18px;
    }
}

/* Анимация открытия/закрытия меню */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Затемнение фона при открытом меню */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Адаптивный логотип на мобильных */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
}

/* ==================== MOBILE MENU FIX (NO BLUR) ==================== */

/* Оверлей для мобильного меню - БЕЗ размытия */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Полупрозрачный черный */
    z-index: 1000; /* НИЖЕ меню */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* НЕ использовать backdrop-filter! */
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Улучшенный бургер-меню */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003; /* Выше всего */
    position: relative;
    margin-left: -10px; /* Компенсация для выравнивания */
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.mobile-menu-btn:hover .burger-line {
    background: var(--primary-color);
}

/* Анимация бургер-меню при открытии */
.mobile-menu-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильное меню */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1002; /* Выше оверлея */
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.mobile-nav.active {
    left: 0;
    visibility: visible;
}

/* Заголовок мобильного меню */
.mobile-nav-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-user i {
    font-size: 2rem;
    color: white;
}

.mobile-nav-close {
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Контент мобильного меню */
.mobile-nav-main {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-main li a {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.mobile-nav-main li a:hover {
    background: linear-gradient(90deg, rgba(212, 167, 98, 0.1), transparent);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 30px;
}

/* Секции мобильного меню */
.mobile-city-section,
.mobile-actions-section,
.mobile-language-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-city-section {
    background: #f8f9fa;
}

.mobile-city-header,
.mobile-actions-header,
.mobile-language-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.mobile-city-header i,
.mobile-actions-header i,
.mobile-language-header i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.mobile-city-header h4,
.mobile-actions-header h4,
.mobile-language-header h4 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Кнопки выбора города */
.mobile-city-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.mobile-city-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.mobile-city-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-city-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 167, 98, 0.3);
}

.mobile-city-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-city-btn i {
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-city-btn.active i {
    opacity: 1;
}

.mobile-city-btn span {
    font-weight: 600;
}

/* Кнопки действий */
.mobile-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-action-btn {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    color: #333;
    text-align: left;
    width: 100%;
}

.mobile-action-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-action-btn i:first-child {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.mobile-action-btn span {
    flex: 1;
    font-weight: 500;
}

.mobile-cart-count {
    background: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Кнопки авторизации */
.mobile-auth-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mobile-login-btn,
.mobile-logout-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.mobile-login-btn {
    background: var(--primary-color);
    color: white;
}

.mobile-login-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.mobile-logout-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #eee;
}

.mobile-logout-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Кнопки выбора языка */
.mobile-language-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-language-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.mobile-language-btn:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-language-btn.active {
    background: rgba(212, 167, 98, 0.1);
    border-color: var(--primary-color);
}

.mobile-language-btn img {
    width: 24px;
    height: 18px;
    border-radius: 3px;
}

.mobile-language-btn span {
    flex: 1;
    font-weight: 500;
}

.mobile-language-btn i {
    color: var(--primary-color);
    opacity: 0;
}

.mobile-language-btn.active i {
    opacity: 1;
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    .mobile-nav {
        width: 85%;
        max-width: 300px;
    }
    
    .mobile-city-btn,
    .mobile-action-btn,
    .mobile-language-btn {
        padding: 12px;
    }
    
    .mobile-nav-user {
        font-size: 1rem;
    }
}

/* Анимации */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Убираем старые стили бургер-кнопки из header */
header .mobile-menu-btn {
    display: flex !important;
}

:root {
    --primary-color: #ff8c42; /* Яркий оранжевый (вместо #d4a762) */
    --secondary-color: #e67300; /* Темный оранжевый (вместо #8b4513) */
    --light-color: #ffffff; /* Белый (вместо #f8f3e9) */
    --dark-color: #333333; /* Темно-серый (вместо #2c1810) */
    --text-color: #333333; /* Темный текст */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --success-color: #4caf50;
    --danger-color: #ff4444;
    --info-color: #2196f3;
    --discount-color: #ff6b6b;
    --bread-color: #ffecd1; /* Светло-оранжевый для хлеба */
    --card-bg: #ffffff; /* Белый фон для карточек */
    --section-bg: #fafafa; /* Светло-серый фон для секций */
}

/* ==================== REVIEWS SECTION ==================== */
.reviews {
    padding: 80px 0;
    background: var(--light-color);
}

.reviews-slider {
    display: flex;
    gap: 25px;
    margin-top: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0 40px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.reviews-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.review-card {
    flex: 0 0 calc(100% - 40px);
    max-width: calc(100% - 40px);
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }
}

@media (min-width: 992px) {
    .review-card {
        flex: 0 0 calc(33.333% - 25px);
        max-width: calc(33.333% - 25px);
    }
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.review-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.author-info h4 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.author-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Navigation dots for mobile */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.review-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Scroll hint for mobile */
.reviews-hint {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.7;
}

.reviews-hint i {
    font-size: 1.2rem;
}

/* Smooth scrolling for reviews */
.reviews-slider {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Active card highlight */
.review-card:active {
    transform: scale(0.98);
}

/* Gradient fade edges for mobile */
.reviews-slider::before,
.reviews-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

.reviews-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--light-color), transparent);
}

.reviews-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--light-color), transparent);
}

/* Animation for new reviews */
@keyframes slideInReview {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.review-card {
    animation: slideInReview 0.3s ease forwards;
}

.review-card:nth-child(2) { animation-delay: 0.1s; }
.review-card:nth-child(3) { animation-delay: 0.2s; }
.review-card:nth-child(4) { animation-delay: 0.3s; }
.review-card:nth-child(5) { animation-delay: 0.4s; }
.review-card:nth-child(6) { animation-delay: 0.5s; }

/* ==================== MOBILE QUICK ACTIONS ==================== */
.mobile-quick-actions-section {
    padding: 25px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.mobile-quick-actions-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-quick-actions-header i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.mobile-quick-actions-header h4 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
}

.mobile-quick-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-quick-action-btn {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    color: #333;
    text-align: left;
    width: 100%;
}

.mobile-quick-action-btn:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-quick-action-btn i:first-child {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.mobile-quick-action-btn span {
    flex: 1;
    font-weight: 500;
}

/* Убираем старое основное меню */
.mobile-nav-main {
    display: none !important;
}

/* ==================== ENHANCED MOBILE NAV DESIGN ==================== */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-city-section {
    order: 1;
}

.mobile-actions-section {
    order: 2;
}

.mobile-language-section {
    order: 3;
}

.mobile-quick-actions-section {
    order: 4;
}

/* Анимация появления секций */
.mobile-city-section,
.mobile-actions-section,
.mobile-language-section,
.mobile-quick-actions-section {
    animation: slideInUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-city-section {
    animation-delay: 0.1s;
}

.mobile-actions-section {
    animation-delay: 0.2s;
}

.mobile-language-section {
    animation-delay: 0.3s;
}

.mobile-quick-actions-section {
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== IMPROVED BUTTON STYLES ==================== */
.mobile-quick-action-btn {
    background: linear-gradient(135deg, rgba(212, 167, 98, 0.1), rgba(212, 167, 98, 0.05));
    border: 2px solid rgba(212, 167, 98, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.mobile-quick-action-btn span,
.mobile-quick-action-btn i {
    position: relative;
    z-index: 2;
}

.mobile-quick-action-btn:hover::before {
    opacity: 0.1;
}

.mobile-quick-action-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(212, 167, 98, 0.1);
}

/* Анимация закрытия меню */
.mobile-nav.closing .mobile-city-section,
.mobile-nav.closing .mobile-actions-section,
.mobile-nav.closing .mobile-language-section,
.mobile-nav.closing .mobile-quick-actions-section {
    animation: slideOutDown 0.3s ease forwards;
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ==================== MOBILE PAGES SECTION ==================== */
.mobile-pages-section {
    padding: 25px 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.mobile-pages-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-pages-header i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.mobile-pages-header h4 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
}

.mobile-pages-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-page-btn {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    color: #333;
    text-align: left;
    width: 100%;
}

.mobile-page-btn:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-page-btn i:first-child {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.mobile-page-btn span {
    flex: 1;
    font-weight: 500;
}

/* ==================== MODAL PAGES STYLES ==================== */
.modal .modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.location-card-modal {
    transition: transform 0.3s ease;
}

.location-card-modal:hover {
    transform: translateY(-5px);
}

.faq-item h4 {
    transition: color 0.3s ease;
}

.faq-item h4:hover {
    color: var(--primary-color);
}

.faq-answer {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== IMPROVED MODAL DESIGN ==================== */
.modal-content h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* ==================== NEW ORDER FOR MOBILE NAV ==================== */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-header {
    order: 0;
}

.mobile-city-section {
    order: 1;
}

.mobile-pages-section {
    order: 2;
}

.mobile-actions-section {
    order: 3;
}

.mobile-language-section {
    order: 4;
}

/* Анимация появления секций */
.mobile-city-section,
.mobile-pages-section,
.mobile-actions-section,
.mobile-language-section {
    animation: slideInUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-city-section {
    animation-delay: 0.1s;
}

.mobile-pages-section {
    animation-delay: 0.2s;
}

.mobile-actions-section {
    animation-delay: 0.3s;
}

.mobile-language-section {
    animation-delay: 0.4s;
}

/* ==================== CART MODAL MOBILE FIX ==================== */

@media (max-width: 768px) {
    .cart-modal {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }
    
    .cart-header {
        padding: 15px 20px !important;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
    
    .cart-items {
        padding: 15px !important;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .cart-total {
        padding: 15px 20px !important;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 2px solid var(--primary-color);
    }
    
    .cart-actions {
        padding: 15px 20px !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-actions .btn {
        width: 100%;
    }
    
    .cart-item {
        padding: 15px 0 !important;
        flex-wrap: wrap;
    }
    
    .cart-item-img {
        width: 60px !important;
        height: 60px !important;
        margin-right: 10px !important;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: 200px;
    }
    
    .cart-item-remove {
        margin-top: 10px;
        width: 100%;
        text-align: right;
    }
}

/* Стили для админ кнопки в мобильном меню */
.mobile-action-btn#mobileAdminBtn,
.mobile-action-btn#mobileAstanaAdminBtn {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(255, 140, 66, 0.05));
    border: 2px solid rgba(255, 140, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-action-btn#mobileAdminBtn i:first-child,
.mobile-action-btn#mobileAstanaAdminBtn i:first-child {
    color: var(--primary-color);
}

.mobile-action-btn#mobileAdminBtn:hover,
.mobile-action-btn#mobileAstanaAdminBtn:hover {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.2), rgba(255, 140, 66, 0.1));
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* ==================== MOBILE FIXES ==================== */
@media (max-width: 768px) {
  /* Исправить сетку продуктов для мобильных */
  .products-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 10px;
    padding: 0 5px;
  }
  
  /* Сохранить пропорции карточки товара */
  .product-card {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  
  .product-img-container {
    height: 120px !important; /* Уменьшить высоту для мобильных */
    width: 100%;
    overflow: hidden;
  }
  
  .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Сохранить пропорции картинки */
  }
  
  /* Увеличить картинку и сохранить форму */
  .product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* Убрать трансформацию на мобильных */
  }
  
  .product-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .product-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .product-description {
    font-size: 12px;
    height: 36px;
    overflow: hidden;
    margin-bottom: 8px;
    line-height: 1.4;
  }
  
  /* Исправить круглую кнопку корзины */
  .add-to-cart {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .add-to-cart i {
    font-size: 16px;
  }
  
  /* Улучшить контролы количества */
  .quantity-selector {
    margin-right: 5px;
    padding: 2px;
  }
  
  .qty-btn {
    width: 28px;
    height: 28px;
  }
  
  .qty-input {
    width: 30px;
    font-size: 14px;
  }
  
  /* Оптимизировать цену */
  .product-meta {
    margin-bottom: 10px;
  }
  
  .current-price {
    font-size: 16px;
  }
  
  /* Улучшить свайп для категорий */
  .catalog-scroll-container {
    margin: 20px -10px;
    padding: 0 10px;
  }
  
  .catalog-category {
    width: 160px; /* Уменьшить ширину для мобильных */
    flex-shrink: 0;
  }
  
  .category-image {
    height: 100px; /* Уменьшить высоту изображения категории */
  }
  
  /* Сделать секции короче */
  .catalog-section,
  #products,
  .reviews {
    padding: 30px 0;
  }
  
  /* Улучшить отзывы для мобильных */
  .reviews-slider {
    padding: 10px 0 30px;
  }
  
  .review-card {
    min-width: 85vw;
    margin: 0 10px;
  }
  
  /* Убрать лишние отступы */
  .container {
    padding: 0 10px;
  }
}

/* Еще меньшие экраны */
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 8px;
  }
  
  .product-img-container {
    height: 110px !important;
  }
  
  .add-to-cart {
    width: 32px !important;
    height: 32px !important;
  }
  
  .product-info h3 {
    font-size: 13px;
  }
  
  /* Улучшить свайп в пустом месте */
  .catalog-scroll-container {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
  
  .catalog-categories {
    padding: 10px 0;
  }
  
  .catalog-category {
    width: 150px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
  
  .product-img-container {
    height: 100px !important;
  }
  
  .catalog-category {
    width: 140px;
  }
}

/* Улучшить свайп в пустых областях */
.catalog-scroll-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.catalog-scroll-container:active {
  cursor: grabbing;
}

/* Улучшить отображение категорий для свайпа */
.catalog-categories {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Улучшить мобильное меню */
@media (max-width: 768px) {
  .mobile-nav {
    width: 85%;
    max-width: 300px;
  }
  
  /* Улучшить кнопки в мобильном меню для удобного тапа */
  .mobile-city-btn,
  .mobile-action-btn,
  .mobile-language-btn,
  .mobile-page-btn {
    min-height: 50px;
    padding: 12px 15px;
  }
  
  /* Увеличить область тапа для иконок */
  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==================== REMOVE BADGES ON MOBILE ==================== */
@media (max-width: 768px) {
  /* Убрать категорию над картинкой */
  .product-badge {
    display: none !important;
  }
  
  /* Убрать скидочный бейдж над картинкой */
  .discount-badge {
    display: none !important;
  }
  
  /* Перенести информацию о скидке под цену */
  .product-card {
    position: relative;
  }
  
  /* Показать скидку рядом с ценой */
  .discount-price-text::after {
    content: attr(data-discount);
    font-size: 11px;
    background: var(--discount-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
  }
  
  /* Убрать оригинальную цену если есть скидка */
  .original-price {
    display: none;
  }
}

/* ==================== OPTIMIZE EMPTY SPACE ON MOBILE ==================== */
@media (max-width: 768px) {
  /* Убрать лишние отступы */
  .container {
    padding: 0 8px;
    width: 100%;
  }
  
  /* Сжать секции */
  section {
    margin-bottom: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  
  /* Герой секция - меньше высоты */
  .hero {
    padding: 60px 0 40px;
    min-height: 40vh;
  }
  
  .hero h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  /* Каталог категорий - компактнее */
  .catalog-section {
    padding: 30px 0;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .section-title p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 0 5px;
  }
  
  /* Продукты - убрать лишние отступы */
  #products {
    padding: 20px 0;
  }
  
  .products-grid {
    margin-top: 15px;
  }
  
  /* Карточка продукта - компактнее */
  .product-card {
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  
  .product-info {
    padding: 8px;
  }
  
  .product-meta {
    margin-bottom: 8px;
  }
  
  /* Отзывы - компактнее */
  .reviews {
    padding: 30px 0;
  }
  
  .review-card {
    padding: 15px;
  }
  
  .review-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .review-author {
    margin-top: 15px;
    padding-top: 15px;
  }
  
  .author-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Подвал - компактнее */
  footer {
    padding: 40px 0 20px;
  }
  
  .footer-content {
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .footer-column {
    min-width: 100%;
  }
  
  /* Убрать лишние элементы */
  .reviews-hint {
    font-size: 0.8rem;
    margin-top: 10px;
  }
  
  /* Улучшить свайп область */
  .catalog-scroll-container {
    margin: 15px -8px;
    padding: 0 8px;
  }
  
  .catalog-categories {
    padding: 10px 0 15px;
  }
  
  /* Убрать горизонтальный скроллбар */
  ::-webkit-scrollbar {
    height: 4px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
  }
  
  /* Оптимизировать модальные окна */
  .modal-content {
    margin: 10px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* Корзина на мобильных */
  .cart-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  
  .cart-item {
    padding: 10px 0;
  }
  
  /* Улучшить отображение скидки */
  .current-price {
    position: relative;
  }
  
  .discount-price-text {
    display: inline-flex;
    align-items: center;
  }
}

/* Еще меньшие экраны */
@media (max-width: 576px) {
  /* Еще компактнее */
  .hero {
    padding: 50px 0 30px;
    min-height: 35vh;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 1.3rem;
  }
  
  .products-grid {
    gap: 6px;
  }
  
  .product-img-container {
    height: 100px !important;
  }
  
  .review-card {
    min-width: 90vw;
    margin: 0 5px;
  }
}

/* Улучшение свайпа для отзывов */
.reviews-slider {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.reviews-slider:active {
  cursor: grabbing;
}

/* Убрать градиентные края */
.reviews-slider::before,
.reviews-slider::after {
  display: none;
}

/* Индикатор свайпа */
.reviews-dots {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.review-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* ==================== SIMPLIFIED FOOTER FOR MOBILE ==================== */
@media (max-width: 768px) {
  /* Упрощенный футер */
  footer {
    padding: 30px 0 15px;
    background: var(--dark-color);
    position: relative;
  }
  
  .footer-content {
    display: block !important; /* Убираем flex */
    gap: 0;
    margin-bottom: 20px;
  }
  
  .footer-column {
    min-width: 100%;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-column:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  /* Убрать "Быстрые действия" и "Мой аккаунт" */
  .footer-column:nth-child(2),
  .footer-column:nth-child(3) {
    display: none !important;
  }
  
  /* Оставить только первую колонку с логотипом и соцсетями */
  .footer-column:first-child {
    border: none;
    text-align: center;
  }
  
  /* Упростить заголовок */
  #footerTitle {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  /* Упростить описание */
  #footerDescription {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  /* Соцсети - более компактно */
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
  }
  
  .social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
  }
  
  /* Копирайт - упростить */
  .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
  }
  
  .copyright p {
    margin: 0;
    line-height: 1.4;
  }
  
  .copyright span {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    opacity: 0.7;
  }
  
  /* Убрать лишние ссылки в футере */
  .footer-links {
    display: none;
  }
  
  /* На мобильных показываем только важные ссылки */
  .mobile-essential-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }
  
  .mobile-essential-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
  }
  
  .mobile-essential-links a:hover {
    background: var(--primary-color);
    color: white;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
  footer {
    padding: 25px 0 10px;
  }
  
  .footer-column:first-child {
    padding: 0 5px;
  }
  
  #footerTitle {
    font-size: 1.3rem;
  }
  
  #footerDescription {
    font-size: 0.85rem;
    padding: 0;
  }
  
  .social-icons {
    gap: 12px;
  }
  
  .social-icons a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .copyright {
    font-size: 0.75rem;
  }
  
  .mobile-essential-links {
    gap: 10px;
  }
  
  .mobile-essential-links a {
    font-size: 0.85rem;
    padding: 4px 8px;
  }
}

/* Уменьшаем отступы для логотипа */
.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Уменьшаем расстояние между иконкой и текстом */
    margin-left: -20px; /* Сдвигаем всю логотипную группу влево */
}

/* Уменьшаем размер текстовой части */
.logo-text h1 {
    font-size: 1.4rem; /* Было 1.8rem */
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.8rem; /* Было 0.9rem */
}

/* Уменьшаем общие отступы в хедере */
.header-container {
    justify-content: space-between;
    padding: 15px 0; /* Уменьшаем вертикальные отступы */
}

/* Сдвигаем бургер-меню немного правее */
.mobile-menu-btn {
    margin-right: 10px; /* Добавляем отступ справа */
}

/* На мобильных устройствах делаем еще компактнее */
@media (max-width: 768px) {
    .logo {
        gap: 8px;
        margin-left: -15px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .logo-icon img {
        width: 35px !important;
        height: 35px !important;
    }
}

/* ЖЕСТКО перемещаем логотип в ЛЕВУЮ сторону */
.logo {
    position: absolute !important;
    left: 80px !important; /* Регулируйте это значение */
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
}

/* Бургер-меню на свое место */
.mobile-menu-btn {
    position: relative !important;
    z-index: 1002 !important;
    margin-left: -55px !important;
}

/* Убираем лишние отступы у хедера */
.header-container {
    position: relative !important;
    padding-left: 60px !important; /* Освобождаем место слева */
}

/* Стили для контейнера авторизации */
.mobile-auth-container {
    margin: 15px 0;
    padding: 0 5px;
}

.mobile-login-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-login-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Показать/скрыть действия для авторизованных пользователей */
#loggedInActions {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стили для специальных клиентов */
.special-price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff8c42, #ff6b6b);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-price-container.special-discount {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.original-price-with-discount {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.special-discount-price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.1rem;
}

.special-discount-label {
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Стили для карточки специального клиента */
.special-customer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.customer-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.customer-discount {
    background: #4caf50;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
}

/* Customer Order Card Styles */
.customer-order-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Customer Dashboard Navigation */
.customer-dashboard .dashboard-nav-item {
    cursor: pointer;
    padding: 10px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.customer-dashboard .dashboard-nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Responsive for customer dashboard */
@media (max-width: 768px) {
    .customer-dashboard .dashboard-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .customer-dashboard .dashboard-nav-item {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 120px;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* ==================== SPECIAL CUSTOMERS STYLES ==================== */

/* Special price badge */
.special-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff8c42, #ff6b6b);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.special-price-badge i {
    font-size: 0.7rem;
}

/* Special discount price display */
.product-price-container.special-discount {
    background: #fff8e7;
    padding: 10px;
    border-radius: 10px;
    border-left: 3px solid #ff8c42;
}

.original-price-with-discount {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 5px;
}

.special-discount-price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
}

.special-discount-label {
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}

.saving-amount {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* Special customer card in admin */
.special-customer-card {
    transition: all 0.3s ease;
}

.special-customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Customer type badge */
.customer-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Customer discount badge */
.customer-discount-badge {
    background: linear-gradient(135deg, #ff8c42, #ff6b6b);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
}

/* Welcome notification for special customers */
@keyframes slideInRight {
    from {
        transform: translateX(150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(150%);
        opacity: 0;
    }
}

/* Stats cards */
.special-customers-stats > div {
    transition: transform 0.3s ease;
}

.special-customers-stats > div:hover {
    transform: translateY(-3px);
}

/* Filter controls */
#searchSpecialCustomers, #filterCustomerType {
    transition: all 0.3s ease;
}

#searchSpecialCustomers:focus, #filterCustomerType:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 167, 98, 0.2);
    outline: none;
}

/* Status toggle buttons */
.toggle-customer-status {
    transition: all 0.3s ease;
}

.toggle-customer-status:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .special-customers-grid {
        grid-template-columns: 1fr !important;
    }
    
    .special-customer-card {
        margin-bottom: 15px;
    }
    
    .special-price-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .special-discount-price {
        font-size: 1rem;
    }
}

/* ==================== МАКСИМАЛЬНО КОМПАКТНЫЕ ОТЗЫВЫ НА МОБИЛЬНЫХ ==================== */
@media (max-width: 768px) {
    
    /* СЕКЦИЯ ОТЗЫВОВ - минимум отступов */
    .reviews {
        padding: 5px 0 !important;
        margin: 0 !important;
    }
    
    /* ЗАГОЛОВОК отзывов */
    .reviews .section-title {
        margin: 0 0 5px 0 !important;
        padding: 0 !important;
    }
    
    .reviews .section-title h2 {
        font-size: 1.3rem !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }
    
    .reviews .section-title p {
        display: none !important; /* Прячем описание под заголовком */
    }
    
    /* КОНТЕЙНЕР С ОТЗЫВАМИ */
    .reviews-slider {
        margin-top: 5px !important;
        padding: 5px 0 !important;
        gap: 8px !important;
    }
    
    /* КАРТОЧКА ОТЗЫВА - максимально сжато */
    .review-card {
        padding: 8px !important;
        margin: 0 !important;
        border-radius: 10px !important;
    }
    
    /* ТЕКСТ ОТЗЫВА */
    .review-content {
        padding: 0 !important;
    }
    
    .review-content p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin: 0 0 5px 0 !important;
        padding: 0 !important;
    }
    
    .review-content p::before {
        display: none !important; /* Убираем кавычку */
    }
    
    /* АВТОР */
    .review-author {
        margin-top: 5px !important;
        padding-top: 5px !important;
        border-top: 1px solid rgba(0,0,0,0.05) !important;
    }
    
    .author-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
        margin-right: 8px !important;
    }
    
    .author-info h4 {
        font-size: 0.8rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }
    
    .author-info p {
        font-size: 0.65rem !important;
        margin: 2px 0 0 0 !important;
    }
    
    /* Убираем рейтинг звезды если есть */
    .review-rating {
        display: none !important;
    }
    
    /* Убираем подсказку свайпа */
    .reviews-hint {
        display: none !important;
    }
    
    /* ТОЧКИ навигации - меньше */
    .reviews-dots {
        margin-top: 0 !important;
        padding: 2px 0 !important;
    }
    
    .review-dot {
        width: 5px !important;
        height: 5px !important;
        margin: 0 3px !important;
    }
    
    /* РАССТОЯНИЕ ДО ФУТЕРА */
    .reviews + * {
        margin-top: 0 !important;
    }
}

 #products {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

/* Для очень маленьких экранов - еще компактнее */
@media (max-width: 576px) {
    .reviews .section-title h2 {
        font-size: 1.2rem !important;
    }
    
    .review-card {
        padding: 5px !important;
    }
    
    .review-content p {
        font-size: 0.75rem !important;
        margin-bottom: 3px !important;
    }
    
    .author-avatar {
        width: 24px !important;
        height: 24px !important;
    }
    
    .author-info h4 {
        font-size: 0.75rem !important;
    }
    
    .author-info p {
        font-size: 0.6rem !important;
    }
}

/* ==================== ОПТИМИЗАЦИЯ ДЛЯ МОБИЛЬНЫХ ==================== */
@media (max-width: 768px) {
    
    /* ===== ПРОДУКТЫ - убираем пустоты ===== */
    #products {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    
    #products .section-title {
        margin: 5px 0 10px 0 !important;
    }
    
    #products .section-title h2 {
        margin-bottom: 0 !important;
    }
    
    .products-grid {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
        gap: 8px !important;
    }
    
    /* ===== ОТЗЫВЫ - умеренные отступы ===== */
    .reviews {
        padding: 10px 0 !important;
    }
    
    .reviews .section-title {
        margin: 5px 0 10px 0 !important;
    }
    
    .reviews .section-title h2 {
        font-size: 1.4rem !important;
        margin-bottom: 2px !important;
    }
    
    .reviews .section-title p {
        font-size: 0.85rem !important;
        margin-top: 2px !important;
        opacity: 0.8 !important;
    }
    
    .reviews-slider {
        margin-top: 5px !important;
        padding: 5px 0 10px !important;
        gap: 12px !important;
    }
    
    .review-card {
        padding: 12px !important;
    }
    
    .review-content p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    .review-author {
        margin-top: 8px !important;
        padding-top: 8px !important;
    }
    
    .author-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    
    .author-info h4 {
        font-size: 0.85rem !important;
    }
    
    .author-info p {
        font-size: 0.7rem !important;
    }
    
    /* Убираем подсказку для свайпа */
    .reviews-hint {
        display: none !important;
    }
    
    /* Точки навигации */
    .reviews-dots {
        margin-top: 0 !important;
    }
    
    /* ===== РАССТОЯНИЕ ДО ФУТЕРА ===== */
    .reviews + * {
        margin-top: 5px !important;
    }
}

 /* Футер - компактно */
    footer {
        padding: 20px 0 5px !important;
    }
    
    .footer-content {
        gap: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .footer-column h3 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    
    #footerDescription {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }
    
    .social-icons {
        margin-top: 5px !important;
    }
    
    .social-icons a {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .copyright {
        padding-top: 8px !important;
        font-size: 0.7rem !important;
    }

/* ==================== ТОЛЬКО КОРЗИНА НА МОБИЛЬНЫХ ==================== */
@media (max-width: 768px) {
    .cart-icon {
        margin-right: 10px !important; /* Отступ от правого края */
    }
}

@media (max-width: 576px) {
    .cart-icon {
        margin-right: 30px !important; /* Чуть меньше на маленьких */
    }
}

/* ==================== ВЫПАДАЮЩИЙ СПИСОК КАТЕГОРИЙ ==================== */
.category-filter {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    width: 100%;
}

.category-dropdown-btn {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 220px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-dropdown-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.category-dropdown-btn:hover i {
    color: white;
}

.category-dropdown-btn i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.category-dropdown-btn.active i {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) scaleY(0.95);
    opacity: 0;
    visibility: hidden;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 240px;
    z-index: 100;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    transform-origin: top center;
    border: 1px solid rgba(212, 167, 98, 0.2);
    max-height: 350px;
    overflow-y: auto;
}

.category-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scaleY(1);
}

.category-dropdown-menu .category-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    color: #333;
    transition: background 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.category-dropdown-menu .category-btn:last-child {
    border-bottom: none;
}

.category-dropdown-menu .category-btn:hover {
    background: var(--light-color);
    color: var(--secondary-color);
    padding-left: 25px;
}

.category-dropdown-menu .category-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    border-bottom-color: transparent;
}

.category-dropdown-menu .category-btn.active:hover {
    background: var(--secondary-color);
    color: white;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .category-filter {
        margin-bottom: 30px;
    }
    
    .category-dropdown-btn {
        min-width: 200px;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .category-dropdown-menu {
        min-width: 200px;
        max-height: 300px;
    }
    
    .category-dropdown-menu .category-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .category-dropdown-btn {
        min-width: 180px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .category-dropdown-menu {
        min-width: 180px;
    }
    
    .category-dropdown-menu .category-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}/* ==================== АДАПТИВНАЯ АДМИН-ПАНЕЛЬ ДЛЯ МОБИЛЬНЫХ ==================== */

@media (max-width: 768px) {
    /* Основные настройки админ-панели */
    .admin-panel .dashboard-content {
        padding: 15px !important;
    }
    
    /* Заголовок админ-панели */
    .admin-panel .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .admin-panel .dashboard-header h2 {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .admin-panel .dashboard-header .btn-danger {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Навигация - делаем компактной и скроллящейся */
    .admin-panel .dashboard-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 5px 0 15px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .admin-panel .dashboard-nav-item {
        flex: 0 0 auto;
        padding: 10px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
        background: #f8f9fa;
        border-radius: 20px;
        border: 1px solid #dee2e6;
    }
    
    .admin-panel .dashboard-nav-item.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    /* Секции админ-панели */
    .admin-panel .admin-section {
        padding: 0;
    }
    
    .admin-panel .admin-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    /* ===== УПРАВЛЕНИЕ ЗАКАЗАМИ ===== */
    #ordersSection .admin-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    #ordersSection .admin-controls > div {
        width: 100%;
        min-width: auto !important;
    }
    
    #searchOrdersInput {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important; /* Предотвращает зум на iOS */
    }
    
    #searchOrdersBtn, #clearSearchBtn {
        width: 100%;
        padding: 12px !important;
    }
    
    /* Фильтры заказов */
    .orders-filter {
        padding: 15px !important;
    }
    
    .orders-filter > div {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .orders-filter .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
        padding: 10px !important;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Карточка заказа */
    .order-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .order-card > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-card h4 {
        font-size: 1rem;
        word-break: break-word;
    }
    
    .order-card .order-status {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    /* Информация о клиенте */
    .order-card > div:nth-child(2) {
        padding: 12px !important;
    }
    
    .order-card p {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    /* Товары в заказе */
    .order-card h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .order-item {
        display: grid;
        grid-template-columns: 1fr auto !important;
        gap: 8px;
        padding: 8px 0;
        font-size: 0.9rem;
    }
    
    .order-item > *:nth-child(2),
    .order-item > *:nth-child(3) {
        grid-column: 2;
        text-align: right;
    }
    
    .order-item > *:first-child {
        grid-column: 1 / -1;
        font-weight: 500;
    }
    
    /* Итого */
    .order-card > div:nth-child(4) {
        font-size: 1rem;
        padding-top: 10px;
        margin-top: 10px;
    }
    
    /* Кнопки действий с заказом */
    .order-card > div:last-child {
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 15px;
    }
    
    .order-card .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
        padding: 10px !important;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* ===== УПРАВЛЕНИЕ КАТЕГОРИЯМИ ===== */
    #categoriesSection .admin-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    #addCategoryBtn {
        width: 100%;
        padding: 12px;
    }
    
    .category-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px !important;
    }
    
    .category-item img {
        width: 100% !important;
        height: 150px !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
    
    .category-item-info {
        width: 100%;
    }
    
    .category-item-info h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .category-item-info p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .category-item-actions {
        width: 100%;
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }
    
    .category-item-actions .btn {
        flex: 1;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* ===== УПРАВЛЕНИЕ ТОВАРАМИ ===== */
    #productsSection .admin-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    #addProductBtn {
        width: 100%;
        padding: 12px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100% !important;
        padding: 12px !important;
    }
    
    /* Карточка товара в админке */
    .product-item-admin {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px !important;
    }
    
    .product-item-img {
        width: 100% !important;
        height: 150px !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
    
    .product-item-info {
        width: 100%;
    }
    
    .product-item-info h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .product-item-info p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .product-item-actions {
        width: 100%;
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }
    
    .product-item-actions .btn {
        flex: 1;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* ===== НАСТРОЙКИ ===== */
    #settingsSection .city-price-item {
        padding: 15px !important;
    }
    
    .price-inputs {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .save-city-prices-btn {
        width: 100%;
        padding: 12px;
    }
    
    /* ===== TELEGRAM НАСТРОЙКИ ===== */
    .telegram-settings {
        padding: 15px !important;
    }
    
    .telegram-settings h4 {
        font-size: 1.1rem;
    }
    
    .api-key-input {
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    .telegram-settings .admin-controls {
        flex-direction: column;
    }
    
    .telegram-settings .btn {
        width: 100%;
        padding: 12px;
    }
    
    #telegramTestMessage {
        font-size: 14px;
        padding: 10px;
    }
    
    /* ===== СПЕЦИАЛЬНЫЕ КЛИЕНТЫ ===== */
    #specialCustomersSection .special-customers-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
    
    #specialCustomersSection .special-customers-stats > div {
        padding: 15px !important;
    }
    
    #specialCustomersSection .special-customers-stats i {
        font-size: 1.5rem !important;
    }
    
    #specialCustomersSection .special-customers-stats h4 {
        font-size: 1.1rem !important;
    }
    
    /* Карточка специального клиента */
    .special-customer-card {
        padding: 15px !important;
    }
    
    .special-customer-card > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .special-customer-card h4 {
        font-size: 1.1rem;
    }
    
    .customer-badge {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .customer-discount {
        font-size: 1rem;
        padding: 4px 10px;
    }
    
    .special-customer-card p {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    .special-customer-card .btn {
        flex: 1;
        padding: 10px;
        font-size: 0.85rem;
    }
    
    /* ===== МОДАЛЬНЫЕ ОКНА РЕДАКТИРОВАНИЯ ===== */
    .edit-product-modal .modal-content,
    #addProductModal .modal-content,
    #editProductModal .modal-content,
    #addCategoryModal .modal-content,
    #editCategoryModal .modal-content,
    #addSpecialCustomerModal .modal-content,
    #editSpecialCustomerModal .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .edit-product-form {
        grid-template-columns: 1fr !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important; /* Предотвращает зум */
        padding: 12px !important;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    /* Кнопки в модальных окнах */
    .modal-content .btn {
        width: 100%;
        padding: 12px;
        margin: 5px 0 !important;
    }
    
    .modal-content .btn-danger {
        margin-left: 0 !important;
    }
    
    /* Закрытие модального окна */
    .close-modal {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    /* Еще более компактно */
    .admin-panel .dashboard-header h2 {
        font-size: 1.2rem;
    }
    
    .orders-filter .btn {
        flex: 1 1 100%;
    }
    
    .order-card .btn {
        flex: 1 1 100%;
    }
    
    .product-item-actions {
        flex-direction: column;
    }
    
    .category-item-actions {
        flex-direction: column;
    }
    
    .special-customers-stats {
        grid-template-columns: 1fr !important;
    }
    
    #specialCustomersSection .special-customers-stats {
        grid-template-columns: 1fr !important;
    }
    
    /* Убираем иконки на очень маленьких экранах */
    .dashboard-nav-item i {
        display: none;
    }
    
    .btn i {
        margin-right: 5px;
    }
}

/* Улучшаем отображение поиска */
#searchResultsInfo {
    padding: 10px !important;
    font-size: 0.9rem;
}

#searchResultsInfo button {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* Стили для пустого состояния */
.empty-orders {
    padding: 30px 15px !important;
}

.empty-orders i {
    font-size: 40px !important;
}

.empty-orders h3 {
    font-size: 1.2rem;
}

.empty-orders p {
    font-size: 0.9rem;
}

/* ===== СПЕЦИАЛЬНЫЕ КЛИЕНТЫ - УЛЬТРА КОМПАКТНО ===== */
@media (max-width: 768px) {
    /* Заголовок секции */
    #specialCustomersSection > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 15px !important;
    }
    
    #specialCustomersSection > div:first-child h3 {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    #specialCustomersSection > div:first-child h3 i {
        font-size: 1rem !important;
    }
    
    /* Кнопки действий */
    #specialCustomersSection > div:first-child > div {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
    }
    
    #addSpecialCustomerBtn,
    #exportSpecialCustomersBtn {
        flex: 1 !important;
        padding: 6px 8px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }
    
    /* Панель поиска */
    #specialCustomersSection > div:nth-child(2) {
        padding: 10px !important;
        margin-bottom: 15px !important;
    }
    
    #specialCustomersSection > div:nth-child(2) > div {
        gap: 8px !important;
    }
    
    #searchSpecialCustomers {
        padding: 8px !important;
        font-size: 13px !important;
        min-width: auto !important;
    }
    
    #filterCustomerType {
        padding: 8px !important;
        font-size: 13px !important;
        min-width: auto !important;
    }
    
    #clearCustomerSearchBtn {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }
    
    /* Статистика - 2 в ряд */
    .special-customers-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 15px !important;
    }
    
    .special-customers-stats > div {
        padding: 8px !important;
    }
    
    .special-customers-stats > div > div {
        gap: 6px !important;
    }
    
    .special-customers-stats > div > div > div:first-child {
        width: 30px !important;
        height: 30px !important;
    }
    
    .special-customers-stats > div > div > div:first-child i {
        font-size: 0.9rem !important;
    }
    
    .special-customers-stats > div > div > div:last-child {
        font-size: 0.7rem !important;
    }
    
    .special-customers-stats > div > div > div:last-child div:first-child {
        font-size: 1.1rem !important;
    }
    
    /* Список клиентов - 1 колонка */
    #specialCustomersList > div {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Карточка клиента */
    .customer-card {
        padding: 10px !important;
    }
    
    /* Верхняя часть карточки */
    .customer-card > div:first-child {
        padding: 0 !important;
    }
    
    .customer-card > div:first-child > div:first-child {
        gap: 8px !important;
    }
    
    /* Аватар/иконка */
    .customer-card > div:first-child > div:first-child > div:first-child {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }
    
    /* Название и тип */
    .customer-card > div:first-child > div:first-child > div:nth-child(2) h4 {
        font-size: 0.9rem !important;
        margin: 0 0 2px 0 !important;
        line-height: 1.2 !important;
        max-width: 150px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .customer-card > div:first-child > div:first-child > div:nth-child(2) span {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    
    /* Процент скидки */
    .customer-card > div:first-child > div:last-child {
        padding: 4px 8px !important;
        font-size: 0.9rem !important;
    }
    
    /* Контактная информация - сетка 2 колонки */
    .customer-card > div:nth-child(2) {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 5px !important;
        padding: 6px !important;
        margin: 8px 0 !important;
    }
    
    .customer-card > div:nth-child(2) > div {
        padding: 0 !important;
    }
    
    .customer-card > div:nth-child(2) > div > div:first-child {
        font-size: 0.6rem !important;
        margin-bottom: 2px !important;
    }
    
    .customer-card > div:nth-child(2) > div > div:last-child {
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Дополнительная информация */
    .customer-card > div:nth-child(3),
    .customer-card > div:nth-child(4) {
        padding: 4px 6px !important;
        margin: 4px 0 !important;
        font-size: 0.7rem !important;
    }
    
    .customer-card > div:nth-child(3) i,
    .customer-card > div:nth-child(4) i {
        font-size: 0.7rem !important;
        margin-right: 4px !important;
    }
    
    /* Логин */
    .customer-card > div:nth-child(5) {
        padding: 4px 6px !important;
        margin: 4px 0 8px !important;
        font-size: 0.7rem !important;
    }
    
    .customer-card > div:nth-child(5) i {
        font-size: 0.7rem !important;
        margin-right: 4px !important;
    }
    
    /* Кнопки действий */
    .customer-card > div:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
    }
    
    .customer-card > div:last-child button {
        flex: 1 1 calc(50% - 3px) !important;
        min-width: 0 !important;
        padding: 6px 2px !important;
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .customer-card > div:last-child button i {
        font-size: 0.6rem !important;
        margin-right: 2px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    /* Статистика - 2 в ряд с минимальными размерами */
    .special-customers-stats > div {
        padding: 5px !important;
    }
    
    .special-customers-stats > div > div > div:first-child {
        width: 25px !important;
        height: 25px !important;
    }
    
    .special-customers-stats > div > div > div:last-child {
        font-size: 0.65rem !important;
    }
    
    .special-customers-stats > div > div > div:last-child div:first-child {
        font-size: 1rem !important;
    }
    
    /* Контактная информация в 1 колонку */
    .customer-card > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }
    
    /* Кнопки в 2 ряда */
    .customer-card > div:last-child button {
        flex: 1 1 100% !important;
    }
    
    /* Скрываем иконки в кнопках */
    .customer-card > div:last-child button i {
        display: none !important;
    }
    
    /* Убираем лишние отступы */
    .customer-card > div:first-child > div:first-child > div:nth-child(2) h4 {
        max-width: 120px !important;
    }
}

/* Для экранов 360px и меньше */
@media (max-width: 360px) {
    .customer-card > div:first-child > div:first-child > div:nth-child(2) h4 {
        max-width: 100px !important;
    }
    
    .customer-card > div:first-child > div:last-child {
        padding: 3px 5px !important;
        font-size: 0.8rem !important;
    }
    
    .customer-card > div:nth-child(2) > div > div:last-child {
        font-size: 0.65rem !important;
    }
}

/* ===== СПЕЦИАЛЬНЫЕ КЛИЕНТЫ - МАКСИМАЛЬНО КОРОТКО ===== */
@media (max-width: 768px) {
    /* Заголовок - минимально */
    #specialCustomersSection > div:first-child {
        margin-bottom: 8px !important;
    }
    
    #specialCustomersSection > div:first-child h3 {
        font-size: 0.9rem !important;
    }
    
    #specialCustomersSection > div:first-child h3 i {
        font-size: 0.9rem !important;
        margin-right: 4px !important;
    }
    
    /* Кнопки добавить/экспорт - короткие */
    #addSpecialCustomerBtn,
    #exportSpecialCustomersBtn {
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
    }
    
    #addSpecialCustomerBtn i,
    #exportSpecialCustomersBtn i {
        font-size: 0.65rem !important;
        margin-right: 2px !important;
    }
    
    /* Панель поиска - тоньше */
    #specialCustomersSection > div:nth-child(2) {
        padding: 6px !important;
        margin-bottom: 8px !important;
    }
    
    #searchSpecialCustomers {
        padding: 5px !important;
        font-size: 12px !important;
    }
    
    #filterCustomerType {
        padding: 5px !important;
        font-size: 12px !important;
    }
    
    #clearCustomerSearchBtn {
        padding: 5px 8px !important;
        font-size: 0.7rem !important;
    }
    
    /* Статистика - 4 в ряд, очень коротко */
    .special-customers-stats {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
        margin-bottom: 8px !important;
    }
    
    .special-customers-stats > div {
        padding: 4px 2px !important;
    }
    
    .special-customers-stats > div > div {
        gap: 2px !important;
    }
    
    .special-customers-stats > div > div > div:first-child {
        width: 20px !important;
        height: 20px !important;
    }
    
    .special-customers-stats > div > div > div:first-child i {
        font-size: 0.7rem !important;
    }
    
    .special-customers-stats > div > div > div:last-child div:first-child {
        font-size: 0.8rem !important;
        line-height: 1 !important;
    }
    
    .special-customers-stats > div > div > div:last-child div:last-child {
        font-size: 0.55rem !important;
        line-height: 1 !important;
    }
    
    /* Карточка клиента - короткая */
    .customer-card {
        padding: 6px !important;
    }
    
    /* Аватар - маленький */
    .customer-card > div:first-child > div:first-child > div:first-child {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }
    
    /* Название - одна строка */
    .customer-card > div:first-child > div:first-child > div:nth-child(2) h4 {
        font-size: 0.8rem !important;
        max-width: 110px !important;
    }
    
    /* Тип клиента - коротко */
    .customer-card > div:first-child > div:first-child > div:nth-child(2) span {
        font-size: 0.55rem !important;
        padding: 1px 4px !important;
    }
    
    /* Скидка - маленький квадрат */
    .customer-card > div:first-child > div:last-child {
        padding: 2px 5px !important;
        font-size: 0.75rem !important;
    }
    
    /* Контактная информация - 2 колонки, мелко */
    .customer-card > div:nth-child(2) {
        padding: 4px !important;
        margin: 4px 0 !important;
    }
    
    .customer-card > div:nth-child(2) > div > div:first-child {
        font-size: 0.5rem !important;
        margin-bottom: 1px !important;
    }
    
    .customer-card > div:nth-child(2) > div > div:last-child {
        font-size: 0.6rem !important;
    }
    
    /* Доп. информация - одна строка */
    .customer-card > div:nth-child(3),
    .customer-card > div:nth-child(4),
    .customer-card > div:nth-child(5) {
        padding: 2px 4px !important;
        margin: 2px 0 !important;
        font-size: 0.6rem !important;
    }
    
    /* Логин */
    .customer-card > div:nth-child(5) i {
        font-size: 0.6rem !important;
    }
    
    /* Кнопки - короткие */
    .customer-card > div:last-child {
        gap: 3px !important;
        margin-top: 4px !important;
        padding-top: 4px !important;
    }
    
    .customer-card > div:last-child button {
        padding: 3px 0 !important;
        font-size: 0.6rem !important;
    }
    
    .customer-card > div:last-child button i {
        font-size: 0.55rem !important;
        margin-right: 1px !important;
    }
}

/* Для 576px - еще короче */
@media (max-width: 576px) {
    /* Статистика - цифры только */
    .special-customers-stats > div > div > div:last-child div:last-child {
        display: none !important;
    }
    
    /* Название - максимально коротко */
    .customer-card > div:first-child > div:first-child > div:nth-child(2) h4 {
        max-width: 80px !important;
        font-size: 0.75rem !important;
    }
    
    /* Контактная информация в 1 колонку */
    .customer-card > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }
    
    /* Кнопки без текста, только иконки */
    .customer-card > div:last-child button span {
        display: none !important;
    }
    
    .customer-card > div:last-child button i {
        display: inline-block !important;
        font-size: 0.8rem !important;
        margin: 0 !important;
    }
    
    .customer-card > div:last-child button {
        padding: 5px 0 !important;
    }
}

/* Для 400px - экстремально коротко */
@media (max-width: 400px) {
    /* Статистика - 2 ряда по 2 */
    .special-customers-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Скрываем тип клиента */
    .customer-card > div:first-child > div:first-child > div:nth-child(2) span {
        display: none !important;
    }
    
    /* Название - еще короче */
    .customer-card > div:first-child > div:first-child > div:nth-child(2) h4 {
        max-width: 70px !important;
        font-size: 0.7rem !important;
    }
    
    /* Скрываем иконки в контактной информации */
    .customer-card > div:nth-child(2) > div > div:first-child i {
        display: none !important;
    }
    
    /* Скрываем дополнительную информацию */
    .customer-card > div:nth-child(3),
    .customer-card > div:nth-child(4),
    .customer-card > div:nth-child(5) {
        display: none !important;
    }
}

@media (max-width: 768px) {
  /* Уменьшаем всю секцию спец. клиентов на 30% */
  #specialCustomersSection * {
    font-size: 0.7rem !important;
  }
  
  /* Уменьшаем карточки */
  .customer-card {
    padding: 5px !important;
    margin-bottom: 5px !important;
  }
  
  /* Уменьшаем аватар */
  .customer-card > div:first-child > div:first-child > div:first-child {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
  }
  
  /* Уменьшаем все блоки */
  .customer-card > div {
    margin: 3px 0 !important;
    padding: 3px !important;
  }
  
  /* Уменьшаем отступы */
  .customer-card > div:first-child > div:first-child {
    gap: 3px !important;
  }
}

/* ===== СПЕЦ. КЛИЕНТЫ - ВСЁ ПОМЕЩАЕТСЯ ===== */
@media (max-width: 768px) {
    /* Статистика - 2 в ряд, компактно */
    .special-customers-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
    }
    
    .special-customers-stats > div {
        padding: 8px 3px !important;
        margin: 0 !important;
    }
    
    /* Карточка клиента - без вылезаний */
    #specialCustomersList > div {
        display: block !important;
    }
    
    .customer-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 8px 0 !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Верхняя часть - flex с переносом */
    .customer-card > div:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        margin-bottom: 5px !important;
    }
    
    /* Аватар */
    .customer-card > div:first-child > div:first-child > div:first-child {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 0.8rem !important;
    }
    
    /* Название - с обрезкой */
    .customer-card > div:first-child > div:first-child > div:nth-child(2) {
        flex: 1 !important;
        min-width: 120px !important;
    }
    
    .customer-card > div:first-child > div:first-child > div:nth-child(2) h4 {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    /* Процент скидки - фиксированный */
    .customer-card > div:first-child > div:last-child {
        padding: 3px 6px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }
    
    /* Контактная информация - сетка 2 колонки */
    .customer-card > div:nth-child(2) {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 5px !important;
        padding: 5px !important;
        margin: 5px 0 !important;
    }
    
    /* Обрезаем длинные телефоны/email */
    .customer-card > div:nth-child(2) > div > div:last-child {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.7rem !important;
    }
    
    /* Доп. информация - обрезаем */
    .customer-card > div:nth-child(3),
    .customer-card > div:nth-child(4),
    .customer-card > div:nth-child(5) {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 4px !important;
        font-size: 0.7rem !important;
    }
    
    /* Кнопки - 2 в ряд */
    .customer-card > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 3px !important;
    }
    
    .customer-card > div:last-child button {
        padding: 5px 2px !important;
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 480px) {
    /* Контакты в 1 колонку */
    .customer-card > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }
    
    /* Кнопки в 1 колонку */
    .customer-card > div:last-child {
        grid-template-columns: 1fr !important;
    }
    
    /* Статистика - цифры только */
    .special-customers-stats > div > div > div:last-child div:last-child {
        display: none !important;
    }
}

/* ===== СПЕЦ. КЛИЕНТЫ - ЗДЕСЬ МЕНЯТЬ РАЗМЕР ===== */
@media (max-width: 768px) {
    /* ИЗМЕНЯЙ ЗДЕСЬ: 0.85 = 85% от оригинала */
    /* Меньше цифра = мельче элементы */
    /* Больше цифра = крупнее элементы */
    #specialCustomersSection {
        transform: scale(0.89) !important;  /* ← МЕНЯЙ ЗДЕСЬ */
        transform-origin: top left !important;
        width: 111% !important;  /* ← И ЗДЕСЬ (100 / 0.85 = 117%) */
    }
}

@media (max-width: 576px) {
    #specialCustomersSection {
        transform: scale(0.88) !important;  /* ← МЕНЯЙ */
        width: 112% !important;             /* ← 100 / 0.75 = 133% */
    }
}

@media (max-width: 400px) {
    #specialCustomersSection {
        transform: scale(0.87) !important;  /* ← МЕНЯЙ */
        width: 113,5% !important;             /* ← 100 / 0.65 = 153% */
    }
}

@media (max-width: 768px) {
    /* КАРТОЧКА КАТЕГОРИИ */
    .category-item {
        display: flex !important;
        flex-wrap: wrap !important;
        background: white !important;
        border-radius: 10px !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
    
    /* КАРТИНКА СЛЕВА */
    .category-item img {
        width: 70px !important;
        height: 70px !important;
        border-radius: 8px !important;
        margin-right: 10px !important;
        object-fit: cover !important;
    }
    
    /* ТЕКСТ СПРАВА */
    .category-item-info {
        flex: 1 !important;
        width: calc(100% - 90px) !important;
    }
    
    .category-item-info h4 {
        font-size: 14px !important;
        margin: 0 0 3px 0 !important;
        font-weight: 600 !important;
    }
    
    .category-item-info p {
        font-size: 12px !important;
        margin: 2px 0 !important;
        color: #666 !important;
    }
    
    /* КНОПКИ ВНИЗУ */
    .category-item-actions {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        margin-top: 10px !important;
        padding-top: 8px !important;
        border-top: 1px solid #eee !important;
    }
    
    .category-item-actions .btn {
        flex: 1 !important;
        padding: 6px 0 !important;
        font-size: 12px !important;
        text-align: center !important;
    }
}

/* ===== ЗАКАЗЫ - КОРОТКО И СЖАТО ===== */
@media (max-width: 768px) {
    .order-card {
        padding: 5px !important;
        margin-bottom: 5px !important;
    }
    
    .order-card * {
        font-size: 10px !important;
    }
    
    .order-header h4 {
        font-size: 11px !important;
    }
    
    .order-date {
        font-size: 8px !important;
    }
    
    .order-status {
        font-size: 8px !important;
        padding: 1px 3px !important;
    }
    
    .order-customer p {
        font-size: 9px !important;
        margin: 1px 0 !important;
    }
    
    .order-item {
        font-size: 9px !important;
        padding: 1px 0 !important;
    }
    
    .order-total {
        font-size: 10px !important;
        margin: 2px 0 !important;
        padding: 2px 0 !important;
    }
    
    .order-actions .btn {
        padding: 2px 3px !important;
        font-size: 8px !important;
        margin: 1px !important;
    }
}

/* ===== ЗАКАЗЫ - МАКСИМАЛЬНО КОРОТКО ===== */
@media (max-width: 768px) {
    .order-card {
        padding: 3px !important;
        margin-bottom: 3px !important;
    }
    
    .order-header h4 {
        font-size: 9px !important;
        margin: 0 !important;
    }
    
    .order-date {
        font-size: 7px !important;
    }
    
    .order-status {
        font-size: 7px !important;
        padding: 1px 2px !important;
    }
    
    .order-customer p {
        font-size: 8px !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }
    
    .order-item {
        font-size: 8px !important;
        padding: 1px 0 !important;
    }
    
    .order-total {
        font-size: 9px !important;
        margin: 2px 0 !important;
        padding: 2px 0 !important;
    }
    
    .order-actions .btn {
        padding: 2px !important;
        font-size: 7px !important;
        margin: 1px !important;
        min-height: auto !important;
    }
    
    .order-actions .btn i {
        display: none !important;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Индикатор загрузки видео */
.video-upload-progress {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-top: 10px;
    display: none;
}

.video-upload-progress.active {
    display: block;
}

.video-upload-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s;
}

/* Иконка Threads если нет в Font Awesome */
.fa-threads:before {
    content: "\e618";
    font-family: "Font Awesome 6 Brands";
}

/* Или используйте обычную иконку, если Threads не поддерживается */
.social-icons a:nth-child(2) i {
    font-family: "Font Awesome 6 Brands";
}

@media (max-width: 768px) {
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .social-icons a:hover {
        background: var(--primary-color);
        transform: translateY(-3px);
    }
    
    .social-icons i {
        font-size: 1.3rem;
        color: white;
    }
}

.location-card-modal ul li:hover {
    background: #f8f3e9;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.location-card-modal ul li {
    transition: all 0.3s ease;
}

#allAddressesModal ul li:hover {
    background: #f8f3e9;
    padding-left: 15px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .location-card-modal ul li {
        font-size: 0.9rem;
    }
    
    .location-card-modal ul li strong {
        font-size: 0.95rem;
    }
}

#checkoutLocation option {
    padding: 10px;
    font-size: 14px;
}

#checkoutLocation option:hover {
    background: #f8f3e9;
}

.order-summary .location-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.location-address {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.location-address i {
    color: var(--primary-color);
    width: 24px;
}