@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .section-heading h2,
    .about-preview-content h2,
    .cta-text h2 {
        font-size: 34px;
    }

    .product-grid,
    .categories-grid,
    .highlights-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .topbar .container {
        flex-direction: column;
        text-align: center;
    }

    .topbar-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-inner {
        min-height: 76px;
        position: relative;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
        padding: 18px 20px;
        display: none;
    }

    .main-nav.show {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .main-nav a.active::after,
    .main-nav a:hover::after {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .hero-grid,
    .about-preview-grid,
    .cta-box {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .cta-box {
        padding: 36px 28px;
    }

    .contact-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    section {
        padding: 70px 0;
    }

    .container {
        padding: 0 16px;
    }

    .site-logo a,
    .footer-logo a {
        font-size: 18px;
    }

    .site-logo img,
    .footer-logo img {
        width: 40px;
        height: 40px;
    }

    .hero-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .section-heading h2,
    .about-preview-content h2,
    .cta-text h2 {
        font-size: 28px;
    }

    .hero-actions,
    .cta-actions,
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-sm {
        width: 100%;
    }

    .product-grid,
    .categories-grid,
    .highlights-grid,
    .stats-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .product-image {
        min-height: 220px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .topbar {
        display: none;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .product-body h3,
    .highlight-card h3,
    .contact-preview-card h3,
    .category-card h3 {
        font-size: 20px;
    }

    .stat-box h3 {
        font-size: 34px;
    }
}

@media (max-width: 991px) {
    .product-details-grid,
    .product-extra-grid {
        grid-template-columns: 1fr;
    }

    .product-details-content h2 {
        font-size: 36px;
    }

    .product-details-image {
        min-height: 420px;
    }
}

@media (max-width: 767px) {
    .product-details-content h2 {
        font-size: 30px;
    }

    .details-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-details-image {
        min-height: 320px;
        padding: 20px;
    }

    .product-details-image img {
        max-height: 280px;
    }
}

@media (max-width: 991px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-info-card h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .auth-info-card,
    .auth-form-card {
        padding: 26px 20px;
    }

    .auth-info-card h2,
    .auth-form-card h3 {
        font-size: 28px;
    }

    .auth-side-actions {
        flex-direction: column;
        align-items: stretch;
    }
}	

@media (max-width: 767px) {
    .pending-card {
        padding: 28px 20px;
    }

    .pending-card h2 {
        font-size: 30px;
    }

    .pending-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 991px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-details-card h2,
    .contact-form-card h3 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .contact-details-card,
    .contact-form-card {
        padding: 26px 20px;
    }

    .contact-detail-item {
        padding: 16px;
    }

    .map-placeholder {
        min-height: 220px;
    }

    .map-placeholder h3 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .pagination {
        gap: 8px;
    }

    .pagination-btn {
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-main-card h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .dashboard-main-card,
    .dashboard-side-card,
    .dashboard-note-card {
        padding: 26px 20px;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-side-card h3,
    .dashboard-note-card h3 {
        font-size: 24px;
    }
}

@media (max-width: 1199px) {
    .admin-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .admin-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        min-width: 900px;
    }
}

@media (max-width: 991px) {
    .po-grid,
    .po-form-grid {
        grid-template-columns: 1fr;
    }

    .po-main-card h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .po-main-card,
    .po-side-card {
        padding: 26px 20px;
    }

    .po-items-header,
    .po-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .po-items-table {
        min-width: 760px;
    }
}

@media (max-width: 991px) {
    .po-grid,
    .po-form-grid {
        grid-template-columns: 1fr;
    }

    .po-main-card h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .po-main-card,
    .po-side-card {
        padding: 26px 20px;
    }

    .po-items-header,
    .po-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .po-items-table {
        min-width: 760px;
    }
}

@media (max-width: 1399px) {
    .admin-summary-grid-wide {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .admin-summary-grid-wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .admin-summary-grid-wide {
        grid-template-columns: 1fr;
    }
}