/* =====================================================
   HERO HOME
===================================================== */

.hero-home {
    background: #ffffff;
}

.hero-box {
    background: #f8f9fa;
    min-height: 560px;
}

.hero-content {
    max-width: 650px;
}

.hero-overline {
    display: inline-block;
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 0.20rem;
    text-transform: uppercase;
    color: #6c757d;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #212529;
}

.hero-description {
    color: #6c757d;
    max-width: 560px;
}

.hero-image-wrapper {
    min-height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;
}

.hero-image {
    width: 100%;
    max-width: 420px;
    height: auto;

    object-fit: contain;

    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.10));

    transition: transform 0.35s ease;
}

.hero-image:hover {
    transform: translateY(-8px);
}


/* =====================================================
   CATEGORÍAS DESTACADAS
===================================================== */

.section-overline {
    display: inline-block;
    font-size: .80rem;
    font-weight: 600;
    letter-spacing: .18rem;
    text-transform: uppercase;
    color: #6c757d;
}


/* =====================================================
   CARD BASE
===================================================== */

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1.5rem;
    text-decoration: none;
    color: #fff;
}

.category-card-large {
    height: 420px;
}

.category-card-medium {
    height: 420px;
}

.category-card-small {
    height: 200px;
}

.category-bg {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    transition: transform .5s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.65),
            rgba(0,0,0,.15)
        );
}

.category-content {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 2;
}

.category-card:hover .category-bg {
    transform: scale(1.08);
}

.category-tag {
    display: inline-block;
    margin-bottom: .75rem;

    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.category-description {
    margin: 0;
    color: rgba(255,255,255,.85);
}

.category-title-small {
    margin: 0;
    font-weight: 600;
}


/* =====================================================
   VER TODAS
===================================================== */

.all-categories-card {
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 2rem;

    background: #f8f9fa;

    border-radius: 1.5rem;

    text-decoration: none;
    color: #212529;

    transition: all .25s ease;
}

.all-categories-card:hover {
    background: #eef1f4;
    transform: translateY(-3px);
}

.all-categories-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15rem;
    color: #6c757d;
}

.all-categories-card i {
    font-size: 3rem;
}


/* =====================================================
   OFERTAS DE LA SEMANA - MARKETPLACE STYLE
===================================================== */

.offers-week {
    background: #ffffff;
}

/* ================= SPLIDE BASE ================= */

.offers-splide .splide__slide {
    box-sizing: border-box;
}

/* ================= CARD PRODUCTO ================= */

.offer-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 14px;

    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 280px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

    transition: all 0.2s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.offer-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    background: #f8f9fa;
    overflow: hidden;
    border-radius: 14px;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    display: block;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-image {
    transform: scale(1.04);
}

.offers-splide .splide__slide {
    display: flex;
    align-items: stretch;
}

.offer-badge {
    position: absolute;
    top: 8px;
    left: 8px;

    background: #e74c3c;
    color: #fff;

    font-size: 0.65rem;
    font-weight: 700;

    padding: 0.25rem 0.5rem;
    border-radius: 6px;

    z-index: 2;
}

.offer-body {
    padding: 0.65rem 0.75rem;

    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.offer-brand {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.03rem;
}

.offer-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #212529;

    line-height: 1.2;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    min-height: 2.2em;
}

.offer-prices {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.offer-price-sale {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}

.offer-price-original {
    font-size: 0.8rem;
    color: #adb5bd;
    text-decoration: line-through;
}

.offer-stock-text {
    font-size: 0.7rem;
    color: #6c757d;
}

.offer-stock-bar {
    height: 4px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.offer-stock-bar .progress-bar {
    background: #28a745;
    transition: width 0.3s ease;
}

.offer-card:hover .offer-title {
    color: #000;
}


/* =====================================================
   FIX SPLIDE - EVITAR SALTO DE ALTURA INICIAL
===================================================== */

.offers-splide {
    opacity: 0;
}

.offers-splide.is-initialized {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.offers-splide .splide__track {
    height: auto !important;
}

.offers-week {
    overflow: hidden;
}


/* =====================================================
   PRODUCTOS GENERALES / NOVEDADES
===================================================== */

.home-products {
    background: #ffffff;
}

.home-products .showcase-card {
    display: block;
    text-decoration: none;
    color: inherit;

    border-radius: 1rem;
    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-products .showcase-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}

.home-products .showcase-image-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3;

    overflow: hidden;
    border-radius: 1rem;

    background: #f8f9fa;
}

.home-products .showcase-image {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition: transform 0.35s ease;
}

.home-products .showcase-card:hover .showcase-image {
    transform: scale(1.03);
}

.home-products .showcase-body {
    padding-top: 0.9rem;
}

.home-products .showcase-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.04rem;
    margin-bottom: 0.35rem;
}

.home-products .showcase-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    min-height: 2.8em;
    margin-bottom: 0.5rem;
}

.home-products .showcase-price {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}


/* =====================================================
   RESPONSIVE TABLET
   <= 991.98px
===================================================== */

@media (max-width: 991.98px) {

    /* HERO */

    .hero-box {
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-image-wrapper {
        min-height: auto;
        padding-top: 0;
        padding-bottom: 3rem;
    }

    /* CATEGORIAS */

    .category-card-large {
        height: 380px;
    }

    .category-card-medium {
        height: 260px;
    }

    /* OFERTAS */

    .offer-card {
        min-height: 270px;
    }

}


/* =====================================================
   RESPONSIVE MOBILE
   <= 767.98px
===================================================== */

@media (max-width: 767.98px) {

    .category-card-large,
    .category-card-medium,
    .category-card-small {
        height: 250px;
    }

    .all-categories-card {
        height: auto;
        min-height: 180px;
    }

    .category-title {
        font-size: 1.6rem;
    }

}


/* =====================================================
   RESPONSIVE SMALL MOBILE
   <= 575.98px
===================================================== */

@media (max-width: 575.98px) {

    /* HERO */

    .hero-content {
        padding: 2rem 1.5rem !important;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-image {
        max-width: 280px;
    }

    /* OFERTAS */

    .offer-card {
        min-height: 260px;
    }

    .offer-title {
        font-size: 0.82rem;
    }

    .offer-price-sale {
        font-size: 0.95rem;
    }

    /* PRODUCTOS */

    .home-products .showcase-title {
        font-size: 0.88rem;
    }

    .home-products .showcase-price {
        font-size: 0.95rem;
    }

}