/* ==========================================================================
   Responsive Breakpoints & Mobile Bottom Bar
   ========================================================================== */

/* Mobile Bottom Navigation Bar */
.ihsanshop-mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-gray);
    z-index: 1500;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.ihsanshop-mobile-bottom-bar .mobile-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: var(--muted-text);
    font-size: 11px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
}

.ihsanshop-mobile-bottom-bar .mobile-bottom-item.active,
.ihsanshop-mobile-bottom-bar .mobile-bottom-item:hover {
    color: var(--primary-blue);
}

.ihsanshop-mobile-bottom-bar .bottom-icon-wrap {
    position: relative;
}

.ihsanshop-mobile-bottom-bar .cart-count-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--secondary-orange);
    color: var(--white);
    font-size: 10px;
    height: 16px;
    min-width: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablet Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
    .desktop-header {
        display: none;
    }
    .mobile-header {
    display: none;
    }
    .mobile-header {
        display: block;
        background: var(--white);
        border-bottom: 1px solid var(--border-gray);
        padding: 12px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .mobile-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-hamburger-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .mobile-logo {
        max-height: 40px;
    }

    .ihsanshop-mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 60px; /* Offset for mobile bottom bar */
    }

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

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

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

    .cart-layout-grid, .checkout-grid-layout, .deal-of-day-card, .newsletter-card {
        grid-template-columns: 1fr;
    }
}

/* Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hero-title {
        font-size: 30px;
    }

    .promo-banner-card {
        padding: 30px 20px;
    }

    .why-us-grid, .reviews-grid, .trust-features-grid {
        grid-template-columns: 1fr;
    }

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

    .ihsanshop-shop-layout {
        grid-template-columns: 1fr;
    }

    .single-product-top-row {
        grid-template-columns: 1fr;
    }

    .announcement-items .divider, .announcement-items .item:not(.highlight) {
        display: none;
    }
}

/* Small Mobile Breakpoint (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .product-card-content {
        padding: 10px;
    }

    .product-title {
        font-size: 13px;
        height: 34px;
    }

    .product-price {
        font-size: 14px;
    }
}

/* Mobile Navigation Slide-out Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.mobile-drawer-overlay.active {
    display: block;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-gray);
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-list {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 12px 0;
    color: var(--dark-navy);
    border-bottom: 1px solid var(--border-gray);
    font-weight: 600;
}

/* ==========================================================
   FORCE MOBILE HEADER HIDDEN ON DESKTOP
   ========================================================== */

.mobile-header {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-header {
        display: block !important;
    }

    .desktop-header {
        display: none !important;
    }
}