/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* TABLETS (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* HEADER */
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 15px;
    }
    
    .category-dropdown {
        flex: 1;
    }
    
    .category-dropdown select {
        width: 100%;
    }
    
    /* HERO */
    .hero-section .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* CATEGORIES */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* PRODUCTS */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* Product List Layout */
    .product-list-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-side {
        order: -1;
        justify-content: flex-start;
    }
    
    .product-image-side img {
        max-width: 150px;
    }
    
    .product-content h3 {
        font-size: 1.2rem;
    }
    
    /* CONTACT */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* BLOG */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* FEATURES */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* FOOTER */
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* MOBILE (480px and below) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-section h2.red {
        font-size: 2rem;
    }
    
    .legal-section h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
}

/* LARGE SCREENS (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* PRINT STYLES */
@media print {
    .site-header,
    .breadcrumb,
    .blog-carousel-section,
    .products-carousel-section,
    .trust-section,
    .site-footer {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    a {
        text-decoration: underline;
    }
}

/* PRODUCT PAGE RESPONSIVE */
@media (max-width: 768px) {
    /* Product Detail Grid */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Product Images */
    .product-images-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .product-main-image {
        max-width: 100%;
    }
    
    .product-thumbnail {
        width: 80px;
    }
    
    /* Product Title Bar */
    .product-title-bar {
        padding: 15px 20px;
    }
    
    .product-title-bar h2 {
        font-size: 1.3rem;
    }
    
    /* Sidebar */
    .product-sidebar {
        order: -1;
    }
    
    /* Similar Products */
    .products-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    /* Product Images */
    .product-main-image {
        padding: 20px;
    }
    
    .product-main-image img {
        max-height: 250px;
    }
    
    /* Title Bar */
    .product-title-bar h2 {
        font-size: 1.1rem;
    }
    
    /* Similar Products */
    .products-grid-simple {
        grid-template-columns: 1fr;
    }
    
    /* Affiliate Links */
    .affiliate-link {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* HEADER MOBILE FIX - Remove 3 line issue */
@media (max-width: 768px) {
    .header-content {
        gap: 10px;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    .logo img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 10px;
    }
    
    .logo img {
        height: 50px;
    }
    
    /* Stack header vertically on small mobile */
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        order: 2;
        margin-top: 10px;
    }
    
    .category-dropdown {
        order: 3;
        margin-top: 10px;
    }
}

/* TRUST BADGES RESPONSIVE */
@media (max-width: 768px) {
    .trust-section h2.red {
        font-size: 2rem;
    }
    
    .trust-badges {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .trust-section {
        padding: 40px 0;
    }
    
    .trust-section h2.red {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .trust-badges {
        padding: 0 10px;
    }
}

/* CAROUSEL RESPONSIVE */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 10px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blog-card,
    .product-card {
        min-width: 280px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* BLOG PAGE RESPONSIVE */
@media (max-width: 768px) {
    /* Blog Layout */
    .blog-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Blog Header */
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    /* Blog Body */
    .blog-intro {
        font-size: 1.05rem;
        padding: 15px;
    }
    
    .blog-post-body h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-body h3 {
        font-size: 1.2rem;
    }
    
    /* Related Posts */
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Sidebar moves to bottom on mobile */
    .blog-sidebar {
        order: 2;
    }
    
    /* CTA Box */
    .blog-cta-fullwidth {
        padding: 30px 20px;
    }
    
    .blog-cta-fullwidth .cta-header h3 {
        font-size: 1.5rem;
    }
    
    .cta-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    /* Blog Header */
    .blog-post-header h1 {
        font-size: 1.6rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Share Buttons */
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Popular Posts */
    .popular-posts-list img {
        width: 80px;
        height: 60px;
    }
    
    .popular-post-info h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* CTA Products Grid */
    .cta-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cta-product-btn {
        padding: 15px;
    }
    
    .cta-product-btn .product-name {
        font-size: 1.1rem;
    }
    
    .cta-product-btn .btn-text {
        font-size: 0.9rem;
    }
}

/* BLOG LISTING PAGE RESPONSIVE */
@media (max-width: 768px) {
    /* Blog Posts Grid */
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Filter Tabs */
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    /* Pagination */
    .pagination-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Filter Tabs */
    .filter-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    /* Blog Post Card */
    .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-content h3 {
        font-size: 1.1rem;
    }
}