/* Responsive CSS - Netflix Style */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 7rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .logo-hero {
        width: 200px;
        height: 200px;
    }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .about-content {
        padding-right: 2rem;
    }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .category-nav {
        gap: 0.75rem;
    }
    
    .category-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 4rem;
        /* Remove all effects for tablets */
        animation: none !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        will-change: unset !important;
        color: var(--brand-secondary) !important;
        text-shadow: 2px 2px 4px rgba(58, 29, 7, 0.8);
    }
    
    .btn {
        padding: 1.125rem 2.75rem;
        font-size: 1.15rem;
        min-width: 220px;
    }
    
    .btn-primary {
        box-shadow: 0 8px 25px rgba(224, 192, 147, 0.5), 0 4px 15px rgba(58, 29, 7, 0.4);
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .category-nav {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .category-btn span {
        display: none;
    }
    
    .category-btn i {
        font-size: 1.4rem;
    }
    
    .logo-hero {
        width: 180px;
        height: 180px;
    }
}

/* Extra Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 3.5rem;
        /* Remove all effects for small devices */
        animation: none !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        will-change: unset !important;
        color: var(--brand-secondary) !important;
        text-shadow: 2px 2px 4px rgba(58, 29, 7, 0.8);
    }
    
    .btn {
        padding: 1.125rem 2.75rem;
        font-size: 1.15rem;
        min-width: 240px;
    }
    
    .btn-primary {
        box-shadow: 0 8px 25px rgba(224, 192, 147, 0.5), 0 4px 15px rgba(58, 29, 7, 0.4);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .category-nav-wrapper {
        margin-bottom: 3rem;
    }
    
    .category-nav {
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .category-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .category-btn span {
        display: none;
    }
    
    .category-btn i {
        font-size: 1.3rem;
    }
    
    .menu-section {
        padding: 8rem 0 6rem 0;
    }
    
    .about-section {
        padding: 6rem 0;
    }
    
    .about-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .about-text {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .features {
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-brand,
    .footer-links,
    .footer-social {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Extra Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 3rem;
        /* Remove all effects for very small devices */
        animation: none !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        will-change: unset !important;
        color: var(--brand-secondary) !important;
        text-shadow: 2px 2px 4px rgba(58, 29, 7, 0.8);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
    }
    
    .hero-logo {
        margin-bottom: 1.5rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .logo-hero {
        width: 140px;
        height: 140px;
        border-width: 4px;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
        min-width: auto;
        border-width: 3px;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #e0c093 0%, #c0a073 50%, #a0855a 100%);
        box-shadow: 0 6px 20px rgba(224, 192, 147, 0.5), 0 3px 12px rgba(58, 29, 7, 0.4);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(224, 192, 147, 0.7), 0 5px 15px rgba(58, 29, 7, 0.5);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
        position: relative;
        z-index: 2;
    }
    
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .category-nav-wrapper {
        margin-bottom: 2.5rem;
        padding: 1.5rem 1rem;
    }
    
    .category-nav {
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0 1rem;
        /* Removido overflow-x: auto para não cortar sombras */
        -webkit-overflow-scrolling: touch;
    }
    
    .category-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .category-btn span {
        display: none;
    }
    
    .category-btn i {
        font-size: 1.2rem;
    }
    
    .menu-section {
        padding: 5rem 0;
    }
    
    .about-section {
        padding: 5rem 0;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .about-title {
        font-size: 2.25rem;
        text-align: center;
    }
    
    .about-text {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .features {
        align-items: center;
        gap: 1.25rem;
    }
    
    .feature-item {
        font-size: 0.95rem;
    }
    
    .feature-item i {
        font-size: 1.3rem;
    }
    
    .about-image img {
        max-width: 90%;
    }
    
    .netflix-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer-brand,
    .footer-links,
    .footer-social {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        text-align: center;
    }

    .footer-bottom .col-md-6:last-child {
        margin-top: 1rem;
    }
    
    /* WhatsApp float button mobile adjustments */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Product card mobile adjustments */
    .spicy-badge {
        width: 30px;
        height: 30px;
        bottom: 8px;
        right: 8px;
    }
    
    .spicy-badge i {
        font-size: 0.9rem;
    }
    
    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .netflix-modal .modal-header {
        padding: 1rem;
    }
    
    .netflix-modal .modal-body {
        padding: 1rem;
    }
    
    .netflix-modal .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-total {
        text-align: center;
        font-size: 1.2rem;
    }
    

}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    .btn {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: url('../img/bg-icons-1.png');
        background-size: cover;
    }
}

/* Print styles */
@media print {
    .netflix-header,
    .hero-section,
    .category-nav-wrapper,
    .netflix-footer {
        display: none;
    }
    
    .menu-section {
        padding: 2rem 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-title {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --netflix-dark: #1a0d03;
        --netflix-gray: #2a1505;
        --netflix-text: #f0e6d3;
        --netflix-text-secondary: #e0c093;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.category-btn:focus,
.social-icon:focus {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

/* Specific button focus styles */
.btn-primary:focus {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
    background: var(--gradient-primary) !important;
    color: var(--netflix-white) !important;
    box-shadow: var(--shadow-strong) !important;
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .category-btn:hover,
    .product-card:hover,
    .social-icon:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }
    
    .btn:active,
    .category-btn:active,
    .social-icon:active {
        transform: scale(0.98);
    }
}

/* Custom scrollbar for webkit browsers */
@media screen and (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--netflix-dark);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--netflix-gray);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--netflix-light-gray);
    }
}