/*
\bhoga\assets\css\related.css
Estilos para el carrusel de productos relacionados (basado en productos destacados)
*/

#productos-relacionados {
    background-color: #E9F5F5;
    padding: 20px 0;
}

.featured-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.featured-carousel-container {
    position: relative;
    overflow: hidden;
}

.featured-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.featured-slide {
    flex: 0 0 20%;
    padding: 0 15px;
    box-sizing: border-box;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e8e9ea;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-image {
    width: auto;
    height: 220px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    font-weight: normal;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-to-cart-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #7CB342;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: block;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
    z-index: 2;
    overflow: hidden;
    font-size: 24px;
    font-weight: bold;
}

.add-to-cart-overlay:hover {
    background: #689F38;
    border-radius: 20px;
    width: auto;
    padding: 8px 15px;
    font-size: 12px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-text {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    display: none;
}

.add-to-cart-overlay:hover .add-to-cart-text {
    opacity: 1;
    transform: translateX(0);
    display: inline-block;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-name {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 8px;
    color: #666;
    line-height: 1.4;
}

.product-name a {
    text-decoration: none;
    color: inherit;
}

.product-name a:hover {
    color: #667eea;
}

.product-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    gap: 2px;
}

.star {
    color: #FFD700;
    font-size: 14px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: auto;
}

.product-price del,
.product-price ins {
  display: block;
  text-align: center;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-nav.prev {
    left: 0px;
}

.carousel-nav.next {
    right: 0px;
}

/* Responsive */
@media (max-width: 968px) {
    .featured-slide {
        flex: 0 0 50%;
    }
}
@media (max-width: 576px) {
    .featured-slide {
        flex: 0 0 100%;
    }
    .section-title {
        font-size: 28px;
    }
}
