/* ===== Responsive Design ===== */

/* Extra Large Devices (1200px and up) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Large Devices (992px and down) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--secondary-light);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium Devices (768px and down) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .floating-order {
        bottom: 1rem;
        left: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .floating-whatsapp {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: calc(1rem + 70px);
        width: 45px;
        height: 45px;
    }
    
    .offer-card {
        padding: 1.5rem;
    }
    
    .offer-name {
        font-size: 1.5rem;
    }
    
    .offer-current {
        font-size: 1.75rem;
    }
}

/* Small Devices (576px and down) */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        border-radius: var(--radius-lg);
    }
    
    .menu-item {
        padding: 1.25rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .branch-card {
        border-radius: var(--radius-lg);
    }
    
    .contact-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .footer-social {
        flex-wrap: wrap;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .burger-placeholder {
        padding: 2rem;
    }
    
    .burger-text {
        font-size: 4rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .offer-items {
        font-size: 0.9rem;
    }
    
    .footer-links,
    .footer-hours {
        text-align: center;
    }
    
    .footer-hours li {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}

/* Extra Small Devices (400px and down) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .product-name {
        font-size: 1.25rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    .offer-name {
        font-size: 1.25rem;
    }
    
    .offer-current {
        font-size: 1.5rem;
    }
    
    .floating-order {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
    
    .floating-whatsapp {
        width: 45px;
        height: 45px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        right: calc(1rem + 65px);
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .floating-order,
    .floating-whatsapp,
    .back-to-top,
    .scroll-progress {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image,
    .gallery-item,
    .branch-map {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .burger-float {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    :root {
        --secondary: #000000;
        --secondary-light: #111111;
    }
}

/* Light Mode Support (if needed) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as default for this brand */
}

/* Tablet Specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Tablets */
@media (min-width: 1024px) and (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Menu Specific */
@media (max-width: 992px) {
    .nav-menu {
        padding-top: 5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }
    
    .lang-toggle {
        display: none;
    }
}

/* RTL Adjustments for Mobile */
@media (max-width: 992px) {
    body[dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
    }
    
    body[dir="rtl"] .nav-menu.active {
        left: 0;
    }
    
    body[dir="rtl"] .floating-order {
        left: auto;
        right: 2rem;
    }
    
    body[dir="rtl"] .floating-whatsapp {
        right: auto;
        left: 2rem;
    }
    
    body[dir="rtl"] .back-to-top {
        right: auto;
        left: calc(2rem + 80px);
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .menu-item:hover,
    .offer-card:hover,
    .testimonial-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .filter-btn:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}