/* Mobile Menu Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        box-shadow: var(--shadow-lg);
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        animation: fadeInLeft 0.5s ease-out forwards;
        opacity: 0;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.3s; }

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

    .nav-menu a {
        display: block;
        padding: 18px 0;
        width: 100%;
        border-bottom: 2px solid var(--border-color);
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        padding-left: 10px;
        color: var(--primary-color);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
        background: var(--primary-color);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
        background: var(--primary-color);
    }

    /* Hero adjustments */
    .hero {
        padding: 60px 20px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image-section {
        order: 1;
    }

    .hero-content {
        order: 2;
        text-align: center;
        padding: 0;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.6),
            0 0 20px rgba(0, 0, 0, 0.5),
            0 4px 10px rgba(0, 0, 0, 0.4);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        text-shadow: 
            1px 1px 3px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(0, 0, 0, 0.4);
        font-weight: 400;
    }

    .hero-note {
        font-size: 0.9rem;
        text-shadow: 
            1px 1px 2px rgba(0, 0, 0, 0.6),
            0 0 10px rgba(0, 0, 0, 0.4);
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Grid adjustments */
    .categories-grid,
    .items-grid,
    .deals-grid,
    .advantages-grid,
    .menu-grid,
    .similar-grid {
        grid-template-columns: 1fr;
    }

    .filters-container {
        grid-template-columns: 1fr;
    }

    /* Contact page */
    .contact-cards-grid {
        grid-template-columns: 1fr;
        margin-top: -40px;
    }

    .contact-card-modern {
        padding: 30px;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-hero-title {
        font-size: 2.5rem;
    }

    .contact-hero-subtitle {
        font-size: 1.1rem;
    }

    /* Store page */
    .hours-container,
    .pickup-delivery-content {
        grid-template-columns: 1fr;
    }

    /* Cart page */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }

    .order-type-options {
        flex-direction: column;
    }

    /* Product page */
    .nutrition-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-accept {
        width: 100%;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .categories-grid,
    .items-grid,
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .category-card,
    .item-card,
    .deal-card,
    .menu-item {
        padding: 20px;
    }

    .product-header h1 {
        font-size: 2rem;
    }

    .cart-summary,
    .cart-items,
    .promo-section,
    .order-type-section {
        padding: 20px;
    }

    .thank-you-content {
        padding: 40px 20px;
    }

    .address-card {
        padding: 25px;
    }
}

/* Ensure mobile menu doesn't conflict with hero */
@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Add overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease-out;
    }

    /* Store Page Responsive */
    .store-hero {
        padding: 50px 20px;
    }

    .store-hero-content h1 {
        font-size: 2rem;
    }

    .store-hero-subtitle {
        font-size: 1.2rem;
    }

    .store-info-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card,
    .benefit-card {
        padding: 25px;
    }

    .order-form-wrapper {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Policies Page Responsive */
    .policies-nav {
        padding: 30px 20px;
        margin: 0 15px 30px;
    }

    .policies-nav h1 {
        font-size: 1.8rem;
    }

    .policies-menu {
        flex-direction: column;
        align-items: center;
    }

    .policies-menu li {
        width: 100%;
    }

    .policies-menu li a {
        width: 100%;
        text-align: center;
    }

    .policy-content {
        padding: 30px 20px;
        margin: 0 15px 40px;
    }

    .policy-content h2 {
        font-size: 1.8rem;
    }

    .policy-content h3 {
        font-size: 1.3rem;
    }

    .policy-content h4 {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .btn,
    .menu-toggle {
        display: none;
    }

    body {
        background: white;
    }

    /* Product Page Responsive */
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image-section {
        position: relative;
        top: auto;
    }

    .product-image {
        max-width: 100%;
    }

    .product-header h1 {
        font-size: 2rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .product-price span {
        font-size: 2rem;
    }
}


