/**
 * Estilos para Chollos Importer
 * Optimizados para conversión de afiliados
 */

/* Grid de chollos */
.chollos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Tarjeta individual */
.chollo-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.chollo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #FF9900;
}

/* Imagen */
.chollo-image {
    position: relative;
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chollo-image a {
    display: block;
}

.chollo-image img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

/* Badge de descuento */
.chollo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF4E00 0%, #EC1D25 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(255,78,0,0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Contenido */
.chollo-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Título */
.chollo-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #232F3E;
    min-height: 50px;
}

/* Precios */
.chollo-price {
    margin-bottom: 15px;
}

.price-current {
    font-size: 28px;
    font-weight: bold;
    color: #B12704;
    display: block;
    margin-bottom: 5px;
}

.price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    display: block;
}

/* Botón de Amazon */
.btn-amazon {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(to bottom, #FFD572, #FF9900);
    color: #111;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255,153,0,0.3);
    margin-top: auto;
}

.btn-amazon:hover {
    background: linear-gradient(to bottom, #FFE392, #FFB020);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,153,0,0.4);
    color: #000;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .chollos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .chollos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading state */
.chollos-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}
