@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
        gap: 30px;
    }
}

.filter-toggle-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    .hero-section {
        height: auto;
    }
    .hero-grid {
        flex-direction: column;
    }
    .hero-carousel-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hero-slider {
        height: 380px;
    }
    .hero-slide-title {
        font-size: 36px;
    }
    .hero-side-col {
        flex: 0 0 100%;
        max-width: 100%;
        flex-direction: row;
        height: auto;
    }
    .hero-side-block {
        flex: 1;
        min-height: 220px;
        justify-content: center;
    }
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .newsletter-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .admin-sidebar {
        width: 220px;
    }
    .admin-main {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .announcement-bar {
        font-size: 10px;
        padding: 8px 15px;
        letter-spacing: 0.5px;
    }
    .header-row-1 {
        padding: 4px 0;
    }
    .header-row-1 .logo img {
        height: 42px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: rgba(255,255,255,0.85);
        font-size: 22px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .header-row-2 {
        flex-wrap: wrap;
        gap: 10px;
        padding-bottom: 12px;
    }
    .categories-btn {
        padding: 8px 14px;
        font-size: 11px;
    }
    .header-search input {
        padding: 10px 40px 10px 14px;
        font-size: 13px;
    }
    .header-actions {
        gap: 6px;
    }
    .header-action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .cart-price-text {
        font-size: 12px;
    }
    .hero-section {
        height: auto;
    }
    .hero-grid {
        flex-direction: column;
    }
    .hero-carousel-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hero-slider {
        height: 360px;
    }
    .hero-slide-title {
        font-size: 30px;
    }
    .hero-slide-desc {
        font-size: 14px;
        margin-bottom: 18px;
    }
    .hero-slide-overlay {
        padding: 0 0 70px 30px;
    }
    .btn-hero {
        padding: 12px 28px;
        font-size: 12px;
    }
    .hero-arrows {
        padding: 0 10px;
    }
    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .hero-side-col {
        flex: 0 0 100%;
        max-width: 100%;
        flex-direction: column;
        height: auto;
    }
    .hero-side-block {
        min-height: 200px;
        padding: 25px;
    }
    .hero-side-heading {
        font-size: 22px;
    }
    .hero-side-icon {
        top: 15px;
        left: 20px;
        width: 30px;
        height: 30px;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .category-card .cat-image {
        width: 100px;
        height: 100px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-image {
        height: 160px;
    }
    .product-image img {
        max-height: 130px;
    }
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .why-choose-right {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .feature-box {
        padding: 18px 14px;
    }
    .brand-banner h2 {
        font-size: 26px;
    }
    .brand-banner p {
        font-size: 14px;
    }
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .quality-left h2 {
        font-size: 26px;
    }
    .newsletter-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .newsletter-form-inline input {
        width: 200px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .categories-section,
    .products-section,
    .why-choose-section,
    .contact-section,
    .quality-section {
        padding: 50px 0;
    }
    .brand-banner {
        padding: 60px 20px;
    }
    .hero-nav {
        bottom: 15px;
    }
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    .hero-dot.active {
        width: 20px;
        background: var(--accent);
    }
    .hero-side-block-overlay {
        background: linear-gradient(to top right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 40%, transparent 70%);
    }
    .contact-form-wrap {
        max-width: 100%;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .newsletter-form {
        flex-direction: column;
    }
    /* Fix product detail page on mobile */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
    }
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tab-btn {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 12px;
    }
    /* Fix about page */
    .about-grid-inner {
        grid-template-columns: 1fr !important;
    }
    .about-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    .shop-layout {
        grid-template-columns: 1fr !important;
    }
    .shop-layout aside {
        order: -1;
    }
    .filter-toggle-mobile {
        display: block !important;
        margin-bottom: 15px;
    }
    .filter-content {
        display: none;
    }
    .filter-content.active {
        display: block;
    }
    .account-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    .account-sidebar {
        width: 100% !important;
    }
    .account-content {
        width: 100% !important;
    }
    .product-detail-inner {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    .about-grid-inner {
        grid-template-columns: 1fr !important;
    }
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
    .admin-content {
        padding: 15px !important;
    }
    .admin-topbar {
        padding: 12px 15px !important;
    }
    .admin-topbar h1 {
        font-size: 16px !important;
    }
    .admin-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-table table {
        min-width: 650px;
    }
    .admin-table th, .admin-table td {
        white-space: nowrap;
    }
    .admin-form {
        max-width: 100% !important;
    }
    .admin-form .form-row {
        grid-template-columns: 1fr !important;
    }
    /* cart table horizontal scroll */
    .cart-table {
        min-width: 550px;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        font-size: 9px;
        padding: 6px 10px;
        letter-spacing: 0.3px;
    }
    .header-row-1 {
        padding: 3px 0;
        gap: 10px;
    }
    .header-row-1 .logo img {
        height: 34px;
    }
    .mobile-menu-btn {
        font-size: 18px;
    }
    .header-utilities {
        gap: 10px;
    }
    .header-utilities .nav-icon {
        font-size: 15px;
    }
    .cart-price-text {
        font-size: 11px;
    }
    .header-row-2 {
        padding-bottom: 10px;
    }
    .categories-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    .header-search input {
        padding: 8px 36px 8px 12px;
        font-size: 12px;
    }
    .header-action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .container {
        padding: 0 10px;
    }
    .hero-slider {
        height: 300px;
    }
    .hero-slide-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .hero-slide-desc {
        font-size: 13px;
        margin-bottom: 14px;
    }
    .hero-slide-overlay {
        padding: 0 0 60px 20px;
    }
    .btn-hero {
        padding: 10px 22px;
        font-size: 11px;
    }
    .hero-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .hero-nav {
        bottom: 12px;
    }
    .hero-side-block {
        padding: 20px;
        min-height: 180px;
    }
    .hero-side-heading {
        font-size: 20px;
    }
    .hero-side-desc {
        font-size: 12px;
        margin-bottom: 14px;
    }
    .btn-hero-side {
        padding: 10px 24px;
        font-size: 10px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-card .cat-image {
        width: 80px;
        height: 80px;
    }
    .category-card h3 {
        font-size: 13px;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-image {
        height: 130px;
    }
    .product-image img {
        max-height: 110px;
    }
    .product-info {
        padding: 10px 8px 14px;
    }
    .product-info h3 {
        font-size: 12px;
        margin-bottom: 3px;
    }
    .product-info .category {
        font-size: 10px;
        margin-bottom: 6px;
    }
    .price {
        font-size: 14px;
    }
    .old-price {
        font-size: 11px;
    }
    .add-to-cart {
        padding: 8px;
        font-size: 11px;
    }
    .wishlist-btn {
        width: 28px;
        height: 28px;
        top: 38px;
        right: 6px;
        font-size: 11px;
    }
    .why-choose-left h2 {
        font-size: 24px;
    }
    .why-choose-left .why-desc {
        font-size: 14px;
    }
    .why-choose-right {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .feature-box {
        padding: 16px 12px;
    }
    .brand-banner {
        padding: 40px 15px;
    }
    .brand-banner h2 {
        font-size: 22px;
    }
    .brand-banner p {
        font-size: 13px;
    }
    .quality-left h2 {
        font-size: 24px;
    }
    .quality-left p {
        font-size: 14px;
    }
    .contact-form-wrap .form-group input,
    .contact-form-wrap .form-group textarea {
        padding: 12px 14px;
        font-size: 13px;
    }
    .newsletter-left h3 {
        font-size: 22px;
    }
    .newsletter-form-inline {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .newsletter-form-inline input {
        width: 100%;
        border-radius: 6px;
    }
    .newsletter-form-inline button {
        border-radius: 6px;
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-col h4 {
        margin-bottom: 14px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 11px;
    }
    .payment-icons {
        justify-content: center;
    }
    .payment-icons i {
        font-size: 22px;
    }
    .categories-section .section-header h2,
    .products-section .section-header h2,
    .contact-section .section-header h2 {
        font-size: 24px;
    }
    .section-header {
        margin-bottom: 24px;
    }
    .categories-section,
    .products-section,
    .why-choose-section,
    .contact-section,
    .quality-section {
        padding: 40px 0;
    }
    .breadcrumb-section {
        padding: 25px 0;
    }
    .breadcrumb-section h1 {
        font-size: 22px;
    }
    .breadcrumb {
        font-size: 12px;
    }
    .btn {
        padding: 9px 16px;
        font-size: 12px;
    }
    .btn-lg {
        padding: 12px 28px;
        font-size: 14px;
    }
    .login-box {
        padding: 30px 20px;
        margin: 20px;
    }
    .stat-cards {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-bar > * {
        width: 100%;
    }
    .mobile-menu {
        width: 90%;
        max-width: 300px;
        padding: 50px 20px 20px;
    }
    .mobile-menu a {
        font-size: 14px;
        padding: 12px 0;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    .hero-slider {
        height: 260px;
    }
    .hero-slide-title {
        font-size: 20px;
    }
    .hero-slide-desc {
        font-size: 12px;
    }
    .hero-slide-overlay {
        padding: 0 0 50px 15px;
    }
    .product-grid {
        gap: 6px;
    }
    .product-image {
        height: 110px;
    }
    .product-image img {
        max-height: 90px;
    }
    .product-info {
        padding: 8px 6px 10px;
    }
    .product-info h3 {
        font-size: 11px;
    }
    .price {
        font-size: 12px;
    }
    .add-to-cart {
        padding: 6px;
        font-size: 10px;
    }
    .category-grid {
        gap: 8px;
    }
    .category-card {
        padding: 12px 8px;
    }
    .category-card .cat-image {
        width: 60px;
        height: 60px;
    }
    .section-header h2 {
        font-size: 20px;
    }
    .btn {
        padding: 8px 14px;
        font-size: 11px;
    }
}
