/* Landing Page Specific Styles */
.hero {
    position: relative;
    height: 550px;
    width: 100%;
    display: grid;
    place-items: center;
    margin: 1.5rem 0;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35%;
    border-radius: 16px;
}

.hero h1 {
    font-size: 3rem;
    position: relative;
    color: #ffffff;
    top: 33%;
    padding: 1rem;
}

.hero .btn {
    position: relative;
    width: 150px;
    height: 48px;
    margin-top: auto;
    margin-bottom: 10%;
    font-weight: bold;
}

/* Featured Products Section */
.featured {
    margin: 40px 0;
}

.featured h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* --- SLIDER STYLES --- */
.slider-wrapper {
    position: relative;
}

.slider {
    overflow: hidden;
    margin: 0 60px;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slider-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid black;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    /* Aumentado para estar sobre las tarjetas */
    display: grid;
    place-items: center;
    transition: all var(--transition-base);
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav:hover:not(:disabled) {
    background: var(--color-gray-light);
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

.product-card {
    flex: 0 0 calc(25% - 24px);
    margin: 12px;
    /* Añadido margen superior e inferior para el efecto hover */
    background: white;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    z-index: 1;
}

.product-card:hover {
    transform: scale(1.05);
    /* Usamos scale para un crecimiento uniforme */
    z-index: 5;
    /* Asegura que la tarjeta activa esté por encima de las demás */
}

.product-card a {
    display: block;
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    /* Redondeamos todas las esquinas de la imagen */
    aspect-ratio: 1 / 1;
    transition: transform var(--transition-base);
    display: block;
}

.product-info {
    padding: 16px;
}

.product-info h4 {
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Price Styles --- */
.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Espacio entre precios */
    min-height: 24px;
    /* Evita saltos de layout */
}

.price {
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.promo-price {
    color: var(--color-success);
    /* Un color que destaque la oferta */
}

.original-price {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    font-weight: var(--font-weight-regular);
}

.original-price del {
    text-decoration: line-through;
}

/* --- FIN: Price Styles --- */

/* Process Section */
.process {
    background-color: #FF4231;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: white;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

.process .btn--white {
    max-width: 10rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
}

.step img {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
}

/* Collection Section */
.collection {
    display: flex;
    gap: 32px;
    margin: 32px 0;
}

.collection-image {
    width: 44%;
    height: 350px;
    object-fit: cover;
    object-position: top;
    border-radius: 32px;
    border: 1px solid var(--color-gray-light);
}

.collection-info {
    flex: 1;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 16px;
    padding: 0 48px;

}

.collection-info h2 {
    font-size: 24px;
    font-weight: 400;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--color-primary);
}

/* Categories Section */
.categories {
    margin: 32px 0;
}

.categories h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.categories-grid {
    display: flex;
    gap: 24px;
    height: 400px;
}

.category {
    position: relative;
    flex: 1;
}

.category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

.category-link {
    position: absolute;
    bottom: 5%;
    left: 10%;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-link img {
    width: 20px;
    height: 20px;
    filter: none;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: max-content;
}

.feature img {
    height: 40px;
}

.feature-info {
    white-space: nowrap;
}

.feature-info p {
    font-size: 14px;
}

.divider {
    border: 0.5px solid var(--color-gray-light);
    margin: 24px 0;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
    }

    .collection {
        flex-direction: column;
        align-items: center;
    }

    .collection-image {
        width: 100%;
    }

    .collection-info {
        width: 100%;
        padding: 0;
        min-height: 200px;
    }

    .collection-info p {
        font-size: 14px;
    }

    .categories-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category {
        flex: 0 0 300px;
        scroll-snap-align: start;
        margin: 0.5rem 0;
    }

    .features {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 16px;
        /* Add padding to avoid cut-off shadow if applied */
    }

    .features::-webkit-scrollbar {
        display: none;
    }

    .feature {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-width: 250px;
        /* Set a minimum width for each feature card */
    }

    .feature-info {
        padding-right: 16px;
        /* Add some padding to ensure text doesn't touch the next item */
    }

    .featured h2 {
        margin-left: 12px;
    }

    /* Responsive Slider */
    .slider {
        margin: 0;
    }

    .slider-nav {
        display: none;
    }

    .slider-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 12px 10px; /* 12px top/bottom para la sombra, 10px left/right para el espaciado inicial/final */
        /* Se elimina el margen negativo que causaba que la primera tarjeta se cortara en móviles */
    }

    .product-card {
        flex: 0 0 80%;
        margin: 0 10px;
        scroll-snap-align: start;
    }
}

@media screen and (max-width: 767px) {
    .product-card {
        flex: 0 0 90%;
    }
}
