/* ─── MOBILE TOP NAVBAR ─── */
.mobile-top-navbar {
    display: none;
}

/* Show on mobile devices */
@media (max-width: 768px) {
    .mobile-top-navbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 16px;
        background: var(--white);
        border-bottom: none !important;
        border: none !important;
        position: sticky;
        top: 0;
        z-index: 999;
        gap: 12px;
        min-height: 70px;
    }

    .mobile-top-navbar .logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        text-decoration: none !important;
    }

    .mobile-top-navbar .logo img {
        max-height: 55px !important;
        width: auto !important;
    }

    .mobile-navbar-left {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .mobile-navbar-right {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .mobile-icon-btn {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none !important;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        padding: 6px;
        color: var(--dark);
        text-decoration: none !important;
        flex-shrink: 0;
    }

    .mobile-icon-btn:hover,
    .mobile-icon-btn:active {
        background: var(--bg-warm);
        text-decoration: none !important;
    }

    .mobile-icon-btn svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        text-decoration: none;
    }

    /* Remove nav pseudo-element underlines from mobile navbar */
    .mobile-navbar-right a::after,
    .mobile-top-navbar a::after {
        display: none !important;
        content: none !important;
    }

    /* Hamburger Menu */
    .mobile-hamburger {
        width: 20px;
        height: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        background: transparent;
        border: none !important;
        cursor: pointer;
        text-decoration: none !important;
    }

    .mobile-hamburger span {
        width: 100%;
        height: 1.5px;
        background: var(--dark);
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
    }

    .mobile-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(6px);
    }

    .mobile-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-6px);
    }

    /* Badge for cart and wishlist */
    .mobile-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 18px;
        height: 18px;
        background: #d32f2f;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        font-weight: 700;
        border: 2px solid white;
    }

    .mobile-badge.empty {
        display: none;
    }

    /* Heart icon (wishlist) */
    .mobile-icon-btn.wishlist-icon svg {
        fill: none;
    }

    .mobile-icon-btn.wishlist-icon.active svg {
        fill: #d32f2f;
        stroke: #d32f2f;
    }

    /* Hide desktop header on mobile */
    header {
        display: none !important;
        border-bottom: none !important;
    }
}

/* Show desktop header on larger screens */
@media (min-width: 769px) {
    .mobile-top-navbar {
        display: none !important;
    }

    header {
        display: block !important;
    }
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .mobile-top-navbar {
        padding: 10px 12px;
        gap: 10px;
    }

    .mobile-icon-btn {
        width: 32px;
        height: 32px;
    }

    .mobile-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .mobile-top-navbar .logo img {
        max-height: 30px !important;
    }
}
