/* Seiko Cartuchos - Responsive Styles */
/* Mobile-first approach */

/* Mobile Styles (base) */
.search-container {
    margin: 0 1rem;
    max-width: none;
}

.nav-menu {
    display: none;
    position: static;
    background: transparent;
    flex-direction: column;
    padding: 1rem 0;
    text-align: center;
    gap: 1rem;
}

.nav-menu.active {
    display: flex;
}

.menu-toggle {
    display: flex;
}

.hero {
    padding: 2rem 1rem;
}

.hero h1 {
    font-size: 1.8rem;
}

.hero-subtitle {
    font-size: 1rem;
}

.hero-search {
    flex-direction: column;
}

.hero-search-input,
.hero-search-btn {
    width: 100%;
}

.hero-features {
    flex-direction: column;
    gap: 1rem;
}

.categories-grid {
    grid-template-columns: 1fr;
}

.brands-grid {
    grid-template-columns: repeat(2, 1fr);
}

.guide-steps {
    grid-template-columns: 1fr;
}

.footer-content {
    grid-template-columns: 1fr;
}

.footer-bottom {
    flex-direction: column;
    text-align: center;
}

.payment-methods {
    justify-content: center;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .nav {
        padding: 1rem 3rem;
    }

    .search-container {
        margin: 0 2rem;
        max-width: 400px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-search {
        flex-direction: row;
    }

    .hero-search-btn {
        width: auto;
    }

    .hero-features {
        flex-direction: row;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
        position: static;
        background: transparent;
        padding: 0;
        flex-direction: row;
    }

    .menu-toggle {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .guide-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Extra Large Screens */
@media (min-width: 1600px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .whatsapp-button,
    .menu-toggle,
    .search-container {
        display: none !important;
    }

    .content-section {
        page-break-inside: avoid;
    }

    .category-card,
    .brand-card,
    .step {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .footer {
        background: white !important;
        color: black !important;
        border-top: 1px solid #ccc;
    }

    .footer-section h3,
    .footer-section h4 {
        color: black !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-light: #2D2D2D;
        --white: #1A1A1A;
        --text-color: #E0E0E0;
        --gray-medium: #404040;
    }

    .search-container {
        background: var(--gray-medium);
    }

    .category-card,
    .brand-card,
    .step {
        background: var(--gray-medium);
        color: var(--text-color);
    }

    .brand-card:hover {
        background: var(--white);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --cyan: #0000FF;
        --magenta: #FF00FF;
        --black: #000000;
        --white: #FFFFFF;
    }

    .category-card,
    .brand-card,
    .step {
        border: 2px solid var(--black);
    }

    .search-container {
        border: 2px solid var(--black);
    }
}

/* Focus Styles for Accessibility */
.search-input:focus,
.hero-search-input:focus,
.category-link:focus,
.hero-search-btn:focus,
.search-btn:focus,
.cart-btn:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover,
    .brand-card:hover {
        transform: none;
    }

    .category-link:hover,
    .hero-search-btn:hover,
    .search-btn:hover {
        background: var(--magenta);
    }

    .whatsapp-button:hover {
        transform: none;
    }
}

/* Orientation Changes */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}


