/* Flash Offers Styles */
.hozi-product-offers-display {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hozi-product-offers-display h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
}

.hozi-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.hozi-offer-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.hozi-offer-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
    transform: translateY(-1px);
}

/* Flash Offer Styles */
.hozi-offer-card.flash-offer {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
    animation: flashPulse 2s infinite;
}

.hozi-offer-card.flash-offer:hover {
    border-color: #e55a2b;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

@keyframes flashPulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(255, 107, 53, 0.1); }
    50% { box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2); }
}

/* Selected Offer Styles */
.hozi-offer-card.selected {
    border: 3px solid #27ae60;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f8fff9, #e8f5e8);
}

.hozi-offer-card.selected .offer-title {
    color: #27ae60;
    font-weight: 700;
}

.hozi-offer-card.selected .hozi-select-offer {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
    transform: scale(1.05);
}

.hozi-offer-card.selected .hozi-select-offer:hover {
    background: #229954;
    border-color: #229954;
}

/* Auto-selected Offer Styles */
.hozi-offer-card.auto-selected {
    border: 3px solid #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f8fbff, #e8f4fd);
}

.hozi-offer-card.auto-selected .offer-title {
    color: #3498db;
    font-weight: 700;
}

.hozi-offer-card.auto-selected .hozi-select-offer {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: scale(1.05);
}

.hozi-offer-card.auto-selected .hozi-select-offer:hover {
    background: #2980b9;
    border-color: #2980b9;
}

/* Success Message Styles */
.offer-selected-message {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    text-align: center;
    font-weight: 600;
    animation: slideInDown 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Offer Badge Styles */
.offer-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 10;
    max-width: 80px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-badge.featured {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.offer-badge.popular {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.offer-badge.flash {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    font-weight: bold;
    animation: flashBadge 1.5s infinite;
}

/* Offer Title Styles */
.offer-title {
    margin: 0 0 6px 0;
    color: #333;
    font-size: 1em;
    font-weight: 600;
    padding-right: 90px;
}

@keyframes flashBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Flash Pricing Styles */
.flash-pricing {
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
    border: 2px solid #ff6b35;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.discount-value {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

.original-price-value {
    text-decoration: line-through;
    color: #7f8c8d;
    font-size: 0.9em;
}

.discounted-price-value {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2em;
}

.savings-amount {
    color: #e74c3c;
    font-weight: bold;
}

/* Flash Timer Styles */
.flash-timer {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    text-align: center;
    font-weight: 600;
    animation: clockPulse 2s ease-in-out infinite;
}

.flash-timer.urgent {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: urgentPulse 1s ease-in-out infinite, urgentBlink 0.5s ease-in-out infinite;
}

.flash-timer.expired {
    background: #95a5a6;
    animation: none;
}

@keyframes clockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes urgentPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes urgentBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Expired Offer Styles */
.hozi-offer-card.expired {
    opacity: 0.6;
    filter: grayscale(50%);
}

.hozi-offer-card.expired .hozi-select-offer {
    background: #95a5a6;
    border-color: #95a5a6;
    cursor: not-allowed;
}

.hozi-offer-card.expired .hozi-select-offer:hover {
    background: #95a5a6;
    border-color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hozi-offers-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .hozi-offer-card {
        padding: 10px;
    }
    
    .flash-pricing {
        padding: 10px;
    }
    
    .flash-timer {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .hozi-product-offers-display {
        padding: 10px;
    }
    
    .hozi-offer-card {
        padding: 8px;
    }
    
    .offer-badge {
        font-size: 0.7em;
        padding: 3px 6px;
    }
}

/* Offer Image Styles */
.offer-image {
    margin: 8px 0;
    text-align: center;
}

.offer-image img {
    max-width: 120px;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.offer-image img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Image */
@media (max-width: 768px) {
    .offer-image img {
        max-width: 100px;
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .offer-image img {
        max-width: 80px;
        max-height: 60px;
    }
} 