/* Offer Section Color Scheme Improvements */

/* Improved gradient background for offer section */
.ul-discount {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FF8C42 100%);
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay */
.ul-discount::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Improved countdown boxes with better contrast */
.ul-countdown-item {
    background: var(--ul-primary);
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    border: 2px solid var(--ul-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Add subtle glow effect */
.ul-countdown-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: countdownGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes countdownGlow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.6; }
}

/* Hover effect for countdown items */
.ul-countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

/* Improved countdown numbers */
.ul-countdown-item .number {
    font-weight: 700;
    font-size: clamp(28px, 1.8vw, 36px);
    display: block;
    padding: clamp(8px, 0.5vw, 12px) clamp(15px, 1.5vw, 25px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Improved countdown labels */
.ul-countdown-item .label {
    display: block;
    font-size: clamp(12px, 0.8vw, 16px);
    text-transform: uppercase;
    padding: clamp(6px, 0.5vw, 10px) clamp(15px, 1.5vw, 25px);
    border-top: 1px solid var(--ul-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

/* Improved section title */
.ul-discount .ul-section-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    margin-bottom: 20px;
}

/* Improved section subtitle */
.ul-discount .ul-section-sub-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Improved section description */
.ul-discount .ul-section-descr {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Improved countdown title */
.ul-discount-countdown-title {
    color: white;
    font-weight: 700;
    font-size: clamp(20px, 1.4vw, 28px);
    margin-bottom: clamp(15px, 1vw, 20px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Improved order button */
.ul-discount .ul-btn--2 {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.ul-discount .ul-btn--2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ul-discount .ul-btn--2:hover::before {
    left: 100%;
}

.ul-discount .ul-btn--2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
    color: white;
    text-decoration: none;
}

/* Improved discount sticker */
.ul-discount .discount-sticker {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: stickerFloat 3s ease-in-out infinite;
}

@keyframes stickerFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

/* Improved product image */
.ul-discount-product-img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    animation: productFloat 4s ease-in-out infinite;
}

@keyframes productFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .ul-discount {
        background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    }
    
    .ul-countdown {
        justify-content: center;
        gap: 8px;
    }
    
    .ul-countdown-item {
        flex: 1;
        min-width: 60px;
    }
    
    .ul-countdown-item .number {
        font-size: 20px;
        padding: 8px 10px;
    }
    
    .ul-countdown-item .label {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Add subtle border to the entire section */
.ul-discount {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 20px 0;
}

/* Improve the overall container */
.ul-discount .ul-container {
    position: relative;
    z-index: 2;
}
