/**
 * Hellobd Responsive & Mobile Optimization
 * Author: IFTIKHAR AREFIN
 */

/* Sticky Mobile Bottom Navigation Bar */
.hbd-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    padding: 6px 0;
}

.hbd-mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.hbd-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 10px;
    font-weight: 500;
    gap: 3px;
    position: relative;
    padding: 4px 8px;
    transition: var(--hbd-transition);
}

.hbd-bottom-nav-item.active,
.hbd-bottom-nav-item:hover {
    color: var(--hbd-primary);
}

.hbd-bottom-nav-item svg {
    width: 20px;
    height: 20px;
}

.hbd-bottom-nav-item .hbd-badge-count {
    top: -2px;
    right: 6px;
}

/* Mobile Header Hamburger */
.hbd-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
}

.hbd-mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Off-canvas Mobile Drawer */
.hbd-mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100%;
    background: #0f172a;
    z-index: 10001;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding: 20px 16px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}

.hbd-mobile-drawer.is-open {
    left: 0;
}

.hbd-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #282828;
}

.hbd-mobile-drawer-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 1200px) {
    .hbd-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hbd-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hbd-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .hbd-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hbd-hero-grid {
        grid-template-columns: 1fr;
    }
    .hbd-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hbd-shop-layout {
        grid-template-columns: 1fr;
    }
    .hbd-shop-sidebar {
        display: none; /* can be opened via a filter drawer */
    }
    .hbd-single-product-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hbd-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hbd-primary-menu {
        display: none; /* Collapses into mobile drawer */
    }
    .hbd-mobile-menu-toggle {
        display: block;
    }
    .hbd-category-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Space for sticky bottom nav */
    }
    .hbd-topbar {
        display: none;
    }
    .hbd-mobile-bottom-nav {
        display: block;
    }
    .hbd-header-inner {
        gap: 14px;
    }
    .hbd-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hbd-category-slider-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .hbd-cat-card {
        padding: 10px 6px;
    }
    .hbd-cat-card-img {
        width: 44px;
        height: 44px;
    }
    .hbd-cat-card-title {
        font-size: 11px;
    }
    .hbd-product-card {
        padding: 10px;
    }
    .hbd-product-card-title {
        font-size: 12.5px;
        height: 32px;
    }
    .hbd-price-sale {
        font-size: 13.5px;
    }
    .hbd-btn-add-to-cart {
        font-size: 11px;
        padding: 6px 8px;
    }
    .hbd-btn-quick-view {
        display: none;
    }
    .hbd-features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hbd-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hbd-footer-bottom .hbd-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .hbd-quick-contact-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hbd-category-slider-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hbd-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hbd-logo a {
        font-size: 20px;
    }
}
