/* ==================== MOBILE NAVIGATION FIX ==================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-black);
    padding: 8px;
    z-index: 10001;
    position: relative;
}

@media (max-width: 768px) {

    /* Show hamburger */
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }

    /* Logo center */
    .topbaic-logo {
        order: 1;
        flex: 1;
        text-align: center;
    }

    /* Icons right */
    .header-icons {
        order: 3;
        gap: 12px;
    }

    .header-icons .icon-btn {
        padding: 6px;
    }

    /* ── Slide-in nav panel ── */
    .topbaic-nav {
        display: flex !important;           /* always in DOM */
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
        transition: left 0.3s ease;
        z-index: 10000;                     /* above everything */
        overflow-y: auto;
        gap: 0;
    }

    /* Slide IN when active */
    .topbaic-nav.active {
        left: 0;
    }

    /* Nav links */
    .topbaic-nav > a,
    .topbaic-nav .nav-item {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        color: #333;
        text-decoration: none;
        display: block;
    }

    .topbaic-nav > a:hover {
        color: var(--accent-gold, #c9a961);
    }

    /* Categories dropdown inside mobile menu */
    .topbaic-nav .categories-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 16px;
        margin-top: 8px;
        background: #f8f8f8;
        border-radius: 6px;
        display: none;
    }

    .topbaic-nav .nav-item.open .categories-dropdown {
        display: block;
    }

    .topbaic-nav .nav-item > span {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        cursor: pointer;
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        font-weight: 500;
        color: #333;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Dark overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.55);
        z-index: 9999;
    }

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

    /* Header inner layout */
    .header-main-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }
}

/* ==================== HEADER TOP BAR MOBILE ==================== */

@media (max-width: 768px) {
    .header-top {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    .header-top-inner {
        padding: 0 15px;
    }

    .header-controls {
        gap: 8px;
    }

    .lang-btn {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .currency-select {
        font-size: 0.75rem;
        min-width: 50px;
    }
}

/* ==================== PRODUCTS GRID MOBILE ==================== */

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card {
        padding: 12px;
    }

    .product-image {
        height: 180px !important;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 10px !important;
    }

    .product-image {
        height: 150px !important;
    }
}

/* ==================== HERO SLIDER MOBILE ==================== */

@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }

    .slide h1 {
        font-size: 1.8rem;
    }

    .slide p {
        font-size: 0.9rem;
    }

    .slide-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}