/* Minimized Home Styles */
.hero-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 400px;
}

.hero-image img {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Matches admin crop output: 1200 × 450 */
.hero-banner-slide {
    aspect-ratio: 1200 / 450;
    width: 100%;
    overflow: hidden;
    background: #f4f4f4;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.1));
}

.hero-banner-slider .carousel-control-prev,
.hero-banner-slider .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background-color: rgba(255, 130, 54, 0.85);
    border-radius: 50%;
    opacity: 1;
}

.hero-banner-slider .carousel-control-prev {
    left: 16px;
}

.hero-banner-slider .carousel-control-next {
    right: 16px;
}

.hero-banner-slider .carousel-control-prev:hover,
.hero-banner-slider .carousel-control-next:hover {
    background-color: #ff8236;
}

.hero-banner-slider .carousel-indicators {
    margin-bottom: 12px;
}

.hero-banner-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ff8236;
    opacity: 0.7;
}

.hero-banner-slider .carousel-indicators .active {
    background-color: #ff8236;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .hero-banner-slider .carousel-control-prev,
    .hero-banner-slider .carousel-control-next {
        width: 36px;
        height: 36px;
    }
}

.joint-purchase-promo {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%);
}

.category-card:hover {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bundle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bundle-card:hover {
    transform: translateY(-5px);
}

.mini-card:hover {
    border-color: var(--secondary-color) !important;
}

.triple-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.compact-item {
    transition: background-color 0.3s;
}

.compact-item:hover {
    background-color: #fcfcfc;
}

/* Fix for line-clamp warning */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.ecommerce-home-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    body:has(.ecommerce-home-bottom-nav) {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .ecommerce-home-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        align-items: stretch;
        justify-content: space-around;
        height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    }

    .ecommerce-home-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        background: transparent;
        color: #878787;
        text-decoration: none;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.2;
        min-width: 0;
    }

    .ecommerce-home-bottom-nav__item i {
        font-size: 18px;
        line-height: 1;
    }

    .ecommerce-home-bottom-nav__item.is-active,
    .ecommerce-home-bottom-nav__item.is-active i {
        color: #00aeef;
    }

    .ecommerce-home-bottom-nav__icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ecommerce-home-bottom-nav__badge {
        position: absolute;
        top: -7px;
        right: -10px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #e53935;
        color: #fff;
        font-size: 10px;
        line-height: 16px;
        text-align: center;
        font-weight: 700;
    }
}