/* =============================================
   DOTSUN RESPONSIVE CSS
   ============================================= */

/* =============================================
   LARGE DESKTOPS (1400px+)
   ============================================= */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 80px;
    }
}

/* =============================================
   DESKTOPS (1200px - 1399px)
   ============================================= */
@media (max-width: 1280px) {
    .hero-stat {
        padding: 0 30px;
    }
    .about-grid {
        gap: 50px;
    }
}

/* =============================================
   LAPTOPS / TABLETS LANDSCAPE (992px - 1199px)
   ============================================= */
@media (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .header-main .site-logo img {
        max-height: 50px;
    }

    .main-navigation .nav-menu > li > a {
        padding: 28px 12px;
        font-size: 12px;
    }
}

/* =============================================
   TABLETS (768px - 991px)
   ============================================= */
@media (max-width: 991px) {
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: inline-flex;
    }

    /* Hide desktop nav */
    .main-navigation {
        display: none;
    }

    /* Header */
    .header-main-inner {
        height: 70px;
    }

    .header-top-bar {
        display: none;
    }

    /* Hero */
    .hero-container {
        padding-top: 60px;
        padding-bottom: 120px;
    }

    .hero-stats-inner {
        flex-wrap: wrap;
        gap: 0;
    }

    .hero-stat {
        width: 50%;
        padding: 16px 20px;
    }

    .hero-stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 28px;
    }

    .hero-scroll {
        display: none;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img-main img {
        height: 400px;
    }

    .about-img-accent {
        display: none;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Why us */
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Process */
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .process-steps::before {
        display: none;
    }

    /* CSR */
    .csr-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    /* Contact CTA */
    .contact-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-cta-actions {
        justify-content: center;
    }

    /* Footer CTA */
    .footer-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-cta-actions {
        justify-content: center;
    }

    /* Footer grid */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    /* Footer bottom */
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Shop layout */
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .dotsun-shop-sidebar {
        position: static;
        order: -1;
    }

    /* WooCommerce products */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Single product */
    .single-product div.product,
    .woocommerce div.product,
    .woocommerce-page div.product {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .single-product .summary {
        padding-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
    }

    /* My account */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        float: none;
        width: 100%;
        margin-bottom: 30px;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
    }

    /* About features */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* Section */
    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

/* =============================================
   MOBILE (576px - 767px)
   ============================================= */
@media (max-width: 767px) {
    /* Hero */
    .hero-title {
        font-size: 32px;
    }

    .hero-title-line2 {
        -webkit-text-stroke: 1.5px rgba(255,255,255,0.7);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    .hero-stats {
        padding: 16px 0;
    }

    .hero-stat {
        width: 50%;
        padding: 12px 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-card-img {
        height: 200px !important;
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card-img {
        height: 260px !important;
        padding: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
    }

    .product-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    /* Why us */
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-main {
        padding: 50px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Breadcrumb */
    .breadcrumb-title {
        font-size: 26px;
    }

    /* WooCommerce */
    .woocommerce ul.products {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .dotsun-card-img {
        height: 260px !important;
        padding: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
    }

    .dotsun-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Cart */
    .woocommerce table.shop_table td.product-remove,
    .woocommerce table.shop_table td.product-thumbnail {
        display: none;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title p {
        font-size: 14px;
    }

    /* About */
    .about-img-main img {
        height: 300px;
    }

    /* Contact CTA */
    .contact-cta-text h2 {
        font-size: 22px;
    }

    /* Container */
    .container {
        padding: 0 16px;
    }
}

/* =============================================
   SMALL MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-stats-inner {
        gap: 0;
    }

    .hero-stat {
        width: 50%;
        padding: 10px 12px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card-img {
        height: 250px !important;
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-img {
        height: 330px !important;
        padding: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
    }

    .product-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        max-height: 100% !important;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products li.product.dotsun-product-card .dotsun-card-img,
    .dotsun-card-img {
        height: 330px !important;
        padding: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
    }

    .woocommerce ul.products li.product.dotsun-product-card .dotsun-card-img img,
    .dotsun-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        max-height: 100% !important;
    }

    .why-us-card {
        padding: 24px 18px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        max-width: 100%;
        padding: 14px 20px;
    }

    .footer-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .footer-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .csr-img-grid {
        grid-template-columns: 1fr;
    }
}

/* Compact Mobile Header Icons Sizing */
@media (max-width: 768px) {
    .header-actions {
        gap: 6px !important;
    }

    .header-search-toggle,
    .header-whatsapp,
    .header-cart,
    .mobile-menu-toggle {
        width: 35px !important;
        height: 35px !important;
        font-size: 13px !important;
    }

    .cart-count {
        width: 15px !important;
        height: 15px !important;
        font-size: 9px !important;
        top: -4px !important;
        right: -4px !important;
    }

    .hamburger-line {
        width: 17px !important;
        height: 2px !important;
    }

    /* 100% Full Video Responsive Display on Mobile (Zero Cropping) */
    .hero-video-section {
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
        display: block !important;
        background: #000 !important;
    }

    .hero-video-section video.dotsun-hero-video {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
        object-fit: contain !important;
        display: block !important;
        max-width: 100% !important;
    }

    .hero-video-section .hero-container {
        padding: 25px 15px !important;
        min-height: auto !important;
    }

    .hero-overlay {
        display: none !important;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .header-top-bar,
    .header-actions,
    .mobile-menu-toggle,
    .footer-cta,
    .back-to-top,
    .whatsapp-float {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
}
