/* Today Offer Section Redesign */
.today-offer-section {
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.today-offer-container {
    display: flex;
    align-items: center; /* Changed from stretch to prevent visual card stretching */
    gap: var(--spacing-4xl);
    background-color: var(--offer-content-bg, transparent);
    border-radius: var(--radius-xl, 24px);
    position: relative;
}

.today-offer-container.layout-split {
    flex-direction: row;
}

.today-offer-container.layout-split_reverse {
    flex-direction: row-reverse;
}

/* Content Side (Left in RTL) */
.today-offer-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

/* Top Badges area */
.today-offer-badges-top {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
}

.today-offer-badge-discount {
    background: var(--discount-badge-bg, #e63946);
    color: var(--discount-badge-text, #fff);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md, 8px);
    font-weight: var(--fw-bold, 800);
    font-size: var(--fs-2xl);
    transform: rotate(-2deg);
}

.today-offer-label-main {
    background: var(--offer-label-bg, #fff5f5);
    color: var(--offer-label-text, #333);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md, 12px);
    font-weight: var(--fw-bold, 700);
    font-size: var(--fs-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Stock Info area */
.today-offer-stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 12px auto;
    font-weight: 700;
    width: 100%;
    max-width: 350px;
}

.today-offer-stock-badge {
    background: var(--stock-badge-bg, #fff5f5);
    color: var(--stock-badge-text, #e63946);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: var(--fs-sm);
}

.today-offer-stock-label {
    color: var(--stock-label-color, #4a4a4a);
    font-size: 1rem;
}

/* Stock Progress Bar */
.today-offer-stock-progress {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 40px auto;
}

.stock-progress-container {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.stock-progress-line {
    height: 100%;
    background: var(--stock-bar-color, #e63946);
    border-radius: 6px;
    transition: width 1s ease;
}

/* Timer - Center align items and labels below */
.today-offer-timer {
    display: flex;
    gap: 12px;
    margin-bottom: 50px;
    justify-content: center;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.timer-val {
    background: #fff;
    color: #333;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    border: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.timer-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
}

/* Typography */
.today-offer-subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-weight: var(--fw-semibold);
}

.today-offer-title {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

.today-offer-description {
    font-size: var(--fs-lg);
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

/* Main Button */
.today-offer-btn-main {
    background: var(--btn-bg, var(--color-black));
    color: var(--btn-text, var(--color-white));
    padding: var(--spacing-md) var(--spacing-4xl);
    border-radius: var(--radius-full, 50px);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    display: inline-block;
    transition: transform var(--transition-base), background var(--transition-base);
    text-align: center;
}

.today-offer-btn-main:hover {
    filter: brightness(0.9);
    transform: translateY(-3px);
    color: var(--btn-text, #fff);
}

/* Visual Side (Right in RTL) */
.today-offer-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.today-offer-card-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.product-card-image {
    background: var(--color-surface); 
    border-radius: var(--radius-xl, 32px); 
    overflow: hidden;
    position: relative;
    z-index: 1; /* Force clipping context */
    display: flex;
    flex-direction: column;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg); 
}

/* Badges */
.price-display-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-white, #fff);
    padding: 8px 12px;
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-sm);
    line-height: 1.2;
}

.price-current {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-text);
}

.price-compare {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-top: 2px;
}

.product-card-name-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--color-card-bg);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    z-index: 10;
    border: 1px solid var(--color-border-light);
    transition: transform 0.3s ease;
}

.product-card-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

/* Mobile Responsiveness */
@media (max-width: 1199px) {
    .today-offer-container {
        gap: 40px;
    }
    .today-offer-title {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .today-offer-section {
        padding-top: var(--spacing-md) !important;
        padding-bottom: var(--spacing-md) !important;
    }

    .today-offer-container {
        flex-direction: column-reverse !important;
        gap: 40px;
    }
    
    .today-offer-content {
        padding: 0;
        text-align: center;
        align-items: center;
    }
    
    .today-offer-badges-top {
        justify-content: center;
    }
    
    .today-offer-timer {
        justify-content: center;
    }
    
    .today-offer-btn-main {
        width: 100%;
    }
    
    .today-offer-visual {
        width: 100%;
    }
    
    .today-offer-product-card {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .today-offer-badge-discount {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
    
    .today-offer-title {
        font-size: 1.6rem;
    }
    
    .today-offer-timer {
        gap: 10px;
    }
    
    .timer-block {
        min-width: 60px;
    }
    
    .timer-val {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
