/* assets/css/offer.css */
/* Estilos para la sección de SuperOfertas */
.super-offers-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.offers-header {
    margin-bottom: 15px;
}

.offers-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #333;
}

.offers-title .highlight {
    color: #ff4500;
}

.offers-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Carrusel de ofertas */
.offers-carousel-container {
    position: relative;
    overflow: hidden;
}

.offers-carousel {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.offer-card {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 150px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.offer-image {
   /* height: 140px;*/
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-details {
    padding: 10px;
}

/* Título del producto */
.offer-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
    height: 49px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.offer-price {
    margin-bottom: 5px;
    position: relative;
}

.discount-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff4500;
}

.tax-note {
    font-size: 9.5px;
    color: #999;
    /*vertical-align: super;*/
    margin-left: 2px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

/* NUEVOS ESTILOS - Precio unitario */
.offer-unit-price {
    margin-bottom: 6px;
    font-size: 13px;
}

.unit-price {
    color: #666;
    font-weight: 500;
    font-size: 13px;
}

.pack-info {
    color: #999;
    font-size: 11px;
    margin-left: 4px;
}

/* Código de producto (oculto por defecto) */
.offer-product-code {
    font-size: 11px;
    color: #aaa;
    margin-top: 5px;
}

.offer-rating {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.rating-icon {
    color: #ffc107;
    margin-right: 3px;
}

.rating-value {
    font-size: 13px;
    color: #666;
}

.offer-sales {
    font-size: 13px;
    color: #666;
}

/* Controles de navegación */
.offers-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 10px;
}

.offers-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.offers-nav img {
    width: 20px;
    height: 20px;
}

.offers-nav:hover:not(:disabled) {
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

.offers-nav:active:not(:disabled) {
    transform: scale(0.95);
}

.offers-nav:disabled {
    cursor: not-allowed !important;
    opacity: 0.3 !important;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .offer-card {
        flex: 0 0 calc(50% - 10px); /* Mostrar 2 productos por fila en tablets */
    }
    
    .offers-nav {
        width: 30px;
        height: 30px;
    }
    
    .offers-nav img {
        width: 16px;
        height: 16px;
    }
    
    /* NUEVO - Precio unitario en tablet */
    .offer-unit-price {
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .unit-price {
        font-size: 12px;
    }
    
    .pack-info {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .offer-card {
        flex: 0 0 calc(50% - 10px); /* Mantener 2 productos por fila en móviles */
    }
    
    .offer-image {
       /* height: 120px; /* Reducir altura de imagen para móviles */
    }
    
    .offer-title {
        font-size: 12px;
        height: 42px;
    }
    
    .discount-price {
        font-size: 16px;
    }
    
    .original-price {
        font-size: 12px;
    }
    
    .offers-title {
        font-size: 20px;
    }
    
    .offers-subtitle {
        font-size: 12px;
    }
    
    /* NUEVO - Precio unitario en móvil */
    .offer-unit-price {
        margin-bottom: 4px;
        font-size: 11px;
    }
    
    .unit-price {
        font-size: 11px;
        font-weight: 500;
    }
    
    .pack-info {
        font-size: 9px;
        margin-left: 3px;
    }
}

@media (min-width: 768px) {
    .super-offers-section {
        margin: 20px 0;
        margin-left: 25px;
        padding: 15px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    }
    .offer-card {
        flex: 0 0 calc(24% - 10px);
        min-width: 150px;
        border-radius: 8px;
        overflow: hidden;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .offers-carousel {
        display: flex;
        gap: 16px;
        transition: transform 0.3s ease;
    }
    
    /* NUEVO - Precio unitario en desktop */
    .offer-unit-price {
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .unit-price {
        font-size: 14px;
        font-weight: 500;
    }
    
    .pack-info {
        font-size: 12px;
        margin-left: 5px;
    }
}
/* ===================================
   ETIQUETA DE DESCUENTO
   =================================== */
.offer-card {
    position: relative; /* Necesario para posicionar la etiqueta */
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4);
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Responsive para la etiqueta */
@media (max-width: 480px) {
    .discount-badge {
        font-size: 11px;
        padding: 3px 8px;
        top: 6px;
        left: 6px;
    }
}

@media (min-width: 768px) {
    .discount-badge {
        font-size: 14px;
        padding: 5px 12px;
        top: 10px;
        left: 10px;
    }
}