/* ========================= HOMEPAGE GLOBAL ========================= */

.home-wrapper {
    scroll-behavior: smooth;
}

/* Reduce spacing on mobile */
@media (max-width: 768px) {
    .homepage-section {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* ========================= HERO SLIDER ========================= */

.hero-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-slide img {
        height: 420px;
    }
}

/* ========================= PRODUCT SLIDER ========================= */

.swiper-slide {
    width: 150px !important;
}

@media (min-width: 768px) {
    .swiper-slide {
        width: 220px !important;
    }
}

/* ========================= MOBILE SIDEBAR ========================= */

.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 50;
    display: none;
}

.mobile-sidebar-panel {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    z-index: 60;
    transition: left 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
}

.mobile-sidebar-open .mobile-sidebar-panel {
    left: 0;
}

.mobile-sidebar-open .mobile-sidebar-overlay {
    display: block;
}

/* ========================= FLOATING CART BUTTON ========================= */

.floating-cart-btn {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #059669;
    color: white;
    padding: 14px 18px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .floating-cart-btn {
        display: none;
    }
}

