/* Responsive Styles for Advanced Theme */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
    .header-container {
        gap: 15px;
    }
    
    .search-wrapper {
        max-width: 350px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
    .header-top-bar {
        padding: 6px 0;
    }
    
    .top-bar-content {
        font-size: 10px;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .search-wrapper {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    
    .header-actions {
        order: 2;
        gap: 15px;
    }
    
    .menu-toggle {
        display: flex;
        order: 1;
    }
    
    .site-navigation {
        display: none;
    }
    
    .site-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border-gray);
        z-index: 999;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu > li {
        flex: none;
        min-width: auto;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .nav-menu > li > a {
        text-align: left;
        padding: 15px 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .hero-section {
        padding: 50px 15px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .badge-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
    .header-top-bar {
        display: none;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        padding: 10px;
    }
    
    .action-link {
        width: 32px;
        height: 32px;
    }
    
    .action-link svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-menu > li > a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        border-radius: 4px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 28px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .category-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .category-image {
        height: 120px;
    }
    
    .category-info {
        padding: 10px;
    }
    
    .category-info h3 {
        font-size: 12px;
    }
    
    .product-count {
        font-size: 10px;
    }
    
    .hero-content h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .featured-products-section,
    .top-rated-section,
    .category-spotlight-section {
        padding: 25px 0;
        margin-bottom: 20px;
    }
    
    .category-cards-section {
        padding: 25px 0;
        margin-bottom: 20px;
    }
    
    .newsletter-section {
        padding: 40px 15px;
    }
    
    .newsletter-content h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .newsletter-content p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .newsletter-form input {
        font-size: 13px;
        padding: 10px;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .badge {
        padding: 15px;
    }
    
    .badge-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .badge h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .badge p {
        font-size: 12px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer-section li,
    .footer-section a {
        font-size: 12px;
        padding: 4px 0;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .copyright,
    .affiliate-note {
        font-size: 11px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Extra Small: 360px and below */
@media (max-width: 360px) {
    .logo-text {
        font-size: 16px;
    }
    
    .products-grid {
        gap: 8px;
    }
    
    .product-badge-discount {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .product-category {
        font-size: 10px;
    }
    
    .product-excerpt {
        font-size: 11px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 10px;
    }
    
    .container {
        padding: 0 12px;
    }
}

/* High DPI Screens */
@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Print */
@media print {
    header,
    nav,
    footer,
    .sidebar,
    .ads-container {
        display: none;
    }
}
