/* Responsive Design - All Pages */

/* Tablet Landscape: 1024px and down */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Homepage specific */
    .hero__title {
        font-size: 22px;
    }
    
    .introduction__content {
        gap: 3rem;
    }
    
    .products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    /* About page specific */
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact page specific */
    .contact-main__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Product page specific */
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-sidebar {
        position: static;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Product detail page specific */
    .product-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-images {
        position: static;
    }
    
    .product-features__grid {
        grid-template-columns: 1fr;
    }
    
    .product-tabs__nav {
        overflow-x: auto;
    }
    
    .product-tabs__btn {
        white-space: nowrap;
        min-width: 150px;
    }
    
    .related-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .warranty-grid {
        grid-template-columns: 1fr;
    }
    
    .application-item {
        padding: 1rem;
    }
    
    .application-item i {
        font-size: 1.5rem;
    }

    /* News page specific */
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-news__grid {
        grid-template-columns: 1fr;
    }
    
    .featured-news__main {
        height: 300px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .search-component {
        max-width: 100%;
    }
}

/* Tablet Portrait: 768px and down */
@media (max-width: 768px) {
    /* Common elements */
    .header__nav {
        display: none;
    }
    
    .header__mobile-toggle {
        display: flex;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Mobile menu */
    .header__nav.mobile-active {
        display: block;
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .header__nav-list {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .header__nav-item {
        margin: 0;
    }
    
    .header__nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .header__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
    }

    /* Breadcrumb */
    .breadcrumb-section {
        padding: 1rem 0;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .breadcrumb__link {
        gap: 0.25rem;
    }

    /* Pagination */
    .pagination {
        /* flex-direction: column;
        gap: 1rem; */
        text-align: center;
    }
    
    .pagination__controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    .pagination__numbers {
        display: none;
    }
    
    /* Introduction section (shared) */
    .introduction__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Footer */
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__content .footer__logo {
        justify-content: center;
    }
    .footer__content .footer__social {
        justify-content: center;
    }
    .footer__content .footer__contact .footer__contact-item {
        justify-content: center;
    }
    
    
    /* Homepage specific */
    .hero__title {
        font-size: 20px;
    }
    
    .hero__description {
        font-size: 16px;
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* About page specific */
    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certifications__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Contact page specific */
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-section {
        gap: 1.5rem;
    }
    
    .contact-info-card:hover {
        transform: translateY(-4px);
    }
    
    .emergency-number a {
        font-size: 1.25rem;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem;
    }
    
    /* Form styles */
    .form-message__content {
        margin: 1rem;
        padding: 2rem;
    }
    
    /* Product page specific */
    .product-header {
        padding: 1.5rem;
    }
    
    .product-header__meta {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .product-item__image {
        height: 200px;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }

    /* Product detail page specific */
    .product-section {
        padding: 20px 0 40px;
    }
    
    .product-detail {
        gap: 2rem;
    }
    
    .product-main {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-actions__buttons {
        flex-direction: column;
    }
    
    .product-tabs__panel {
        padding: 1.5rem;
    }
    
    .related-products {
        padding: 1.5rem;
    }
    
    .related-products__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .application-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .maintenance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .installation-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* News page specific */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .news-header__title {
        font-size: 2rem;
    }
    
    /* .featured-news__sidebar {
        display: none;
    } */
    
    .featured-news__main {
        height: 250px;
    }
    
    .featured-news__main-overlay {
        padding: 1.5rem;
    }
    
    .featured-news__main-title {
        font-size: 1.25rem;
    }
    
    .news-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-filter {
        white-space: nowrap;
    }
    .swiper-button-next, 
    .swiper-button-prev {
        top: unset;
        bottom: 10px;
    }
    .header__nav-icon {
        display: none;
    }
    .product-sidebar-mobile {
        display: flex !important;
    }
    .product-sidebar-desktop {
        display: none !important;
    }
}

/* Mobile: 480px and down */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Breadcrumb mobile adjustments */
    .breadcrumb {
        gap: 0.25rem;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
        min-width: 120px;
    }
    
    .btn--large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    /* Section spacing */
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Homepage specific */
    .hero__title {
        font-size: 18px;
        padding: 10px 12px;
    }
    
    .hero__description {
        font-size: 14px;
        padding: 8px;
    }
    
    .products__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card__image {
        height: 180px;
    }
    
    .product-card__content {
        padding: 1.25rem;
    }
    
    .product-card__title {
        font-size: 0.95rem;
        min-height: auto;
    }
    
    .product-card__btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
    
    /* About page specific */
    .advantages__grid {
        gap: 1rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .advantage-card__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .advantage-card__title {
        font-size: 1.125rem;
    }
    
    .certifications__grid {
        grid-template-columns: 1fr;
    }
    
    .certification-card {
        padding: 1.5rem;
    }
    
    .certification-card__icon {
        font-size: 2.5rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    /* Contact page specific */
    .contact-main {
        padding: 3rem 0;
    }
    
    .contact-form-section {
        padding: 1.25rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-info-card__title {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-info-card__title i {
        font-size: 1.25rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .emergency-number a {
        font-size: 1.125rem;
    }
    
    .office-item {
        padding-bottom: 0.75rem;
    }
    
    .office-item h4 {
        font-size: 0.95rem;
    }
    
    .office-item p {
        font-size: 0.85rem;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 0.875rem;
        max-height: 150px;
    }
    
    .form-message__content {
        padding: 1.5rem;
    }
    
    .form-message__icon {
        font-size: 3rem;
    }
    
    .form-message__title {
        font-size: 1.25rem;
    }

    /* Product page specific */
    .product-section {
        padding: 20px 0;
    }
    
    .product-layout {
        gap: 1.5rem;
    }
    
    .product-header {
        padding: 1rem;
    }
    
    .product-header__title {
        font-size: 1.75rem;
    }
    
    .product-item__content {
        padding: 1rem;
    }
    
    .product-item__footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* .pagination {
        padding: 1rem;
    } */
    
    .pagination__numbers {
        display: none;
    }
    
    .sidebar-widget__title {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .filter-section,
    .contact-info {
        padding: 1rem;
    }

    /* Product detail page specific */
    .product-main {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .product-gallery__thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-products {
        padding: 1rem;
    }
    
    .related-products__title {
        font-size: 1.5rem;
    }
    
    .application-items {
        grid-template-columns: 1fr;
    }
    
    .product-tabs__nav {
        flex-direction: column;
    }
    
    .product-tabs__btn {
        min-width: auto;
        flex: none;
    }

    /* News page specific */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-header__title {
        font-size: 1.75rem;
    }
    
    .search-input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .search-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .news-item__content {
        padding: 1.25rem;
    }
    
    .featured-news__main {
        height: 200px;
    }
    
    .featured-news__main-overlay {
        padding: 1rem;
    }
    
    .featured-news__main-title {
        font-size: 1.125rem;
    }

    .stick-icon {
        left: 0 !important;
        bottom: 0;
        top: unset;
        width: 100%;
        display: flex;
        -webkit-box-shadow: 0px -1px 20px rgba(50, 50, 50, 0.18);
        -moz-box-shadow: 0px -1px 20px rgba(50,50,50, 0.18);
        box-shadow: 0px -1px 20px rgba(50, 50, 50, 0.18);
    }
    .stick-icon__link {
        transform: translateX(0);
        border: none;
        flex: 0 0 50%;
        justify-content: center;
        flex-wrap: wrap;
        background-color: white;
        color: var(--primary-color);
    }
    .stick-icon__text {
        display: none;
    }
    .stick-icon__text-mobile {
        display: block;
        flex: 0 0 100%;
        text-align: center;
    }
    .stick-icon__icon {
        padding: 5px 10px;
    }
    .back-to-top {
        bottom: 65px;
        right: 10px;
    }
    .stick-icon__icon img {
        filter: invert(14%) sepia(96%) saturate(3426%) hue-rotate(225deg) brightness(87%) contrast(81%);
    }
    body {
        padding-bottom: 60px;
    }
    .responsive-table { display: flex; flex-direction: column; margin-bottom: 1.5em; }
    /* Header row */
    /* Any other row */
    .entry-content .responsive-table .row { 
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-bottom: 8px;
    }
    /* Cell styling */
    .entry-content .responsive-table .cell {
        padding: 5px;
    }
    /* Label for stacked layout */
    .entry-content .responsive-table .cell .label {
    font-weight: bold;
    margin-bottom: 0.25em;
    text-transform: uppercase;
    font-size: 0.85em;
    color: #555;
    }
    /* Value */
    .entry-content .responsive-table .cell .value { font-size: 0.95em; }
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .product-card__overlay {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .back-to-top,
    .breadcrumb-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .section-header__title::after {
        display: none;
    }
    
    .btn {
        display: none;
    }
    
    .contact-form {
        display: none;
    }
}