/* Giờ Vàng Ưu Đãi Widget Styles */
.widget.cgv-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget.cgv-widget .widget-title {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff8c42, #ffb347, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffe4b5;
    position: relative;
    text-shadow: 0 0 30px rgba(255, 179, 71, 0.3);
}

.cgv-widget-products {
    display: grid;
    gap: 12px;
}

.cgv-widget-product {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.cgv-widget-product:hover {
    background: linear-gradient(to right, #fff, #fff5e6);
    box-shadow: 0 3px 15px rgba(255, 179, 71, 0.25);
    transform: translateX(5px);
    border-color: #ffb347;
}

.cgv-widget-product a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.cgv-widget-product img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    border: 1px solid #eee;
}

.cgv-product-info {
    flex: 1;
    position: relative;
}

.cgv-product-info h4 {
    font-size: 13px;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cgv-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.cgv-original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
    opacity: 0.7;
    font-weight: normal;
}

.cgv-sale-price {
    color: #ff8c42;
    font-weight: bold;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(255, 140, 66, 0.2);
}

/* Link xem thêm */
.cgv-view-all {
    font-size: 11px;
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    font-weight: normal;
    transition: color 0.3s ease;
    background: none;
    -webkit-text-fill-color: initial;
    opacity: 0.8;
    position: relative;
    padding-left: 5px;
}

.cgv-view-all::before {
    content: '|';
    position: absolute;
    left: -10px;
    color: #ddd;
}

.cgv-view-all:hover {
    color: #333;
    text-decoration: underline;
    opacity: 1;
}

/* Digital Font Import */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');

/* Countdown Styles */
.cgv-widget-countdown {
    text-align: center;
    padding: 25px 20px;
    background: url('/wp-content/themes/smartcart/time.jpg') center/cover,
                linear-gradient(135deg, rgba(255,179,71,0.9) 0%, rgba(255,140,66,0.9) 50%, rgba(255,107,53,0.9) 100%);
    background-blend-mode: overlay;
    border-radius: 10px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
    border: 2px solid rgba(255,215,0,0.3);
}

.cgv-widget-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
                rgba(0,0,0,0.3) 0%, 
                transparent 40%, 
                transparent 60%, 
                rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.cgv-countdown-message p {
    margin: 5px 0;
    font-size: 14px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cgv-countdown-message p:first-child {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cgv-countdown-timer {
    font-size: 32px;
    font-weight: 900;
    margin: 15px 0;
    font-family: 'Orbitron', 'Digital', monospace;
    background: linear-gradient(180deg, 
                rgba(0,0,0,0.8) 0%, 
                rgba(0,0,0,0.6) 50%, 
                rgba(0,0,0,0.8) 100%);
    padding: 12px 10px;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255,215,0,0.5);
    text-shadow: 0 0 10px rgba(255,215,0,0.8),
                 0 0 20px rgba(255,179,71,0.6),
                 2px 2px 4px rgba(0,0,0,0.8);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5),
                0 0 20px rgba(255,215,0,0.3);
    color: #FFD700;
}

.cgv-countdown-timer span {
    display: inline-block;
    min-width: 40px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 3px rgba(255,215,0,0.5));
}

.cgv-next-time {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 400px) {
    .cgv-widget-product a {
        flex-direction: column;
        text-align: center;
    }
    
    .cgv-widget-product img {
        margin: 0 auto 10px;
        width: 80px;
        height: 80px;
    }
    
    .cgv-discount-badge {
        position: static;
        display: inline-block;
        margin-bottom: 5px;
    }
}

/* Animation for countdown */
@keyframes pulse {
    0% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.1;
    }
    100% { 
        transform: scale(2);
        opacity: 0;
    }
}

/* Golden shine animation */
@keyframes golden-shine {
    0% {
        background-position: -200px;
    }
    100% {
        background-position: 200px;
    }
}

/* Active golden hour state */
.cgv-widget.golden-hour-active {
    border: 2px solid #ffb347;
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.2);
}

.cgv-widget.golden-hour-active .widget-title::after {
    content: "🔥";
    position: absolute;
    right: 0;
    animation: pulse 2s infinite;
}