/* Responsive CSS File */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .search-bar {
        width: 250px;
    }
    
    .search-bar:focus {
        width: 300px;
    }
    
    .nav-section {
        gap: 1.5rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .hero {
        padding: 4rem 2rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .search-container {
        margin: 0 0.5rem;
    }
    
    .header-controls {
        gap: 0.6rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    header {
        padding: 0.5rem 1rem;
    }
    
    nav {
        min-height: 60px;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .logo-image-custom {
        width: 50px;
        height: 50px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }
    
    .nav-section {
        display: none;
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(25px);
        padding: 2rem;
        transition: all 0.3s ease;
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        box-shadow: var(--shadow-heavy);
        width: 100%;
        order: 3;
    }
    
    .nav-section.mobile-active {
        display: flex;
        top: 110px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-link, .admin-link {
        text-align: center;
        display: block;
        width: 100%;
        padding: 1rem;
        margin: 0;
    }
    
    .search-container {
        margin: 0;
        width: 100%;
        order: 1;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-bar:focus {
        width: 100%;
    }
    
    .header-controls {
        justify-content: center;
        width: 100%;
        order: 2;
    }
    
    .breadcrumb {
        padding: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .filter-section {
        padding: 2rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-content,
    .contact-content {
        padding: 3rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .filter-section {
        padding: 1.5rem;
    }
    
    .cart-header,
    .cart-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-top {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    header {
        padding: 0.4rem 0.8rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-image-custom {
        width: 45px;
        height: 45px;
    }
    
    .theme-switcher,
    .language-switcher {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .cart-icon {
        padding: 0.5rem;
        font-size: 1.2rem;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
    
    .breadcrumb {
        padding: 0.8rem 1rem;
    }
    
    .hero {
        padding: 2.5rem 1rem;
        border-radius: 25px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 2rem 1.5rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        border-radius: 20px;
    }
    
    .product-info {
        padding: 1.2rem;
    }
    
    .filter-section {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .filter-header h3 {
        font-size: 1.3rem;
    }
    
    .about-content,
    .contact-content {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .nav-section.mobile-active {
        top: 95px;
        padding: 1.5rem;
    }
    
    .search-results {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 0.8rem;
    }
    
    .search-result-item img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    .filter-section,
    .about-content,
    .contact-content {
        padding: 1.2rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Print styles */
@media print {
    .header-top,
    .nav-section,
    .breadcrumb,
    .loading-overlay,
    .notification,
    .cart-sidebar,
    .overlay,
    .background-animation,
    .mobile-menu-toggle,
    .theme-switcher,
    .language-switcher,
    .cart-icon {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .category-card,
    .product-card,
    .filter-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .logo-text {
        color: black !important;
    }
    
    .section-title {
        color: black !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.95);
        --glass-border: rgba(0, 0, 0, 0.3);
        --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
        --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.3);
        --shadow-heavy: 0 12px 35px rgba(0, 0, 0, 0.4);
    }
    
    .nav-link,
    .category-card,
    .product-card {
        border: 2px solid var(--text-color);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        animation: none !important;
    }
    
    .background-animation {
        display: none;
    }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .nav-link:focus,
    .cta-button:focus,
    .btn-secondary:focus,
    .theme-switcher:focus,
    .language-switcher:focus,
    .cart-icon:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}