/*
 * Responsive CSS
 * PRWSolar
 */

/* Extra Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 36px;
    }

    .section-title {
        font-size: 36px;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .nav-menu {
        gap: 20px;
    }

    .mega-menu {
        width: 700px;
        max-width: calc(100vw - 40px);
    }

    .footer-grid {
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-tools .quote-btn {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .product-detail-grid,
    .overview-grid,
    .about-grid,
    .system-container,
    .blog-grid,
    .contact-grid,
    .installation-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .features-grid,
    .applications-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .modes-grid,
    .apps-grid,
    .team-grid,
    .values-grid,
    .cards-grid,
    .support-grid,
    .tools-grid,
    .components-grid,
    .steps-grid,
    .data-grid,
    .videos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .mega-menu {
        max-width: calc(100vw - 40px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .header {
        height: 70px;
        min-height: 70px;
    }

    .navbar {
        height: 70px;
        min-height: 70px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-tools {
        gap: 10px;
    }

    .lang-current span {
        display: none;
    }

    .lang-current {
        padding: 8px;
    }

    .quote-btn {
        display: none;
    }

    .breadcrumb {
        margin-top: 70px;
        font-size: 13px;
        padding: 15px 0;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 15px 0 !important;
    }

    .product-card .product-image {
        height: 200px;
    }

    .product-info {
        padding: 20px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-params {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .products-grid,
    .features-grid,
    .applications-grid,
    .cases-grid,
    .news-grid,
    .footer-grid,
    .contact-grid,
    .blog-grid,
    .product-detail-grid,
    .overview-grid,
    .about-grid,
    .system-container,
    .cards-grid,
    .support-grid,
    .tools-grid,
    .components-grid,
    .steps-grid,
    .data-grid,
    .videos-grid,
    .team-grid,
    .values-grid,
    .modes-grid,
    .apps-grid,
    .cert-grid,
    .package-grid,
    .compatibility-grid,
    .stats-grid,
    .options-grid,
    .solutions-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .product-gallery .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 5px;
    }

    .key-specs {
        padding: 20px !important;
    }

    .key-specs > div {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .product-actions,
    .cta-buttons,
    .mode-buttons,
    .newsletter-form,
    .filters-wrapper,
    .category-tabs,
    .mode-selector {
        flex-direction: column;
        gap: 10px;
    }

    .product-actions .btn,
    .cta-buttons .btn,
    .newsletter-form button {
        width: 100%;
    }

    .product-features ul,
    .solution-features {
        grid-template-columns: 1fr !important;
    }

    .specs-table {
        overflow-x: auto;
    }

    .specs-table table {
        min-width: 600px;
    }

    .article-title {
        font-size: 28px !important;
    }

    .article-meta,
    .blog-meta {
        flex-direction: column;
        gap: 10px !important;
    }

    .featured-card > div,
    .featured-video > div,
    .app-preview > div,
    .warranty-grid,
    .featured-post {
        grid-template-columns: 1fr !important;
    }

    .newsletter-form input,
    .search-modal input {
        width: 100%;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-col h4 {
        margin-bottom: 15px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 20px;
        font-size: 16px;
    }

    .timeline-container > div[style*="position: absolute"] {
        display: none !important;
    }

    .timeline-item {
        display: block !important;
        margin-bottom: 30px !important;
    }

    .timeline-item > div {
        width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
        margin-bottom: 10px;
    }

    .mega-menu {
        max-width: 100% !important;
    }

    .mobile-nav-content {
        width: 320px;
        max-width: 85%;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .section-title {
        font-size: 22px;
    }

    .product-title {
        font-size: 16px;
    }

    .product-gallery .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .product-badge {
        font-size: 10px;
        padding: 3px 10px;
    }

    .article-title {
        font-size: 24px !important;
    }
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .breadcrumb {
    margin-top: 112px; /* 80 + 32 */
}

@media screen and (max-width: 782px) {
    body.admin-bar .breadcrumb {
        margin-top: 116px; /* 70 + 46 */
    }
}

/* Print */
@media print {
    .header,
    .footer,
    .breadcrumb,
    .nav-tools,
    .mobile-menu-btn,
    .search-modal,
    .back-to-top,
    .product-actions,
    .related-products,
    .cta-section,
    .newsletter-section,
    .video-modal,
    .mobile-nav {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    p, blockquote {
        page-break-inside: avoid;
    }
}
