/* ========================================
   Header Banner - Black Friday Style
   ======================================== */

.headerBanner {
    position: relative;
    min-height: 80px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 20px 40px;
    background-color: #4a1d6e; /* Dark purple background */
    color: #ffffff;
}

.headerBanner:before {
    content: '';
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.headerBanner.close {
    display: none;
}

/* Main Content Container */
.headerBanner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
    z-index: 1;
}

/* Close Button */
.headerBanner-close {
    position: absolute;
    top: -10px;
    right: 10px;
    cursor: pointer;
    z-index: 10;
}

.headerBanner-close .i--close {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: opacity 0.3s ease;
}

.headerBanner-close:hover .i--close {
    opacity: 0.7;
}

/* ========================================
   Left Section - Sale Information
   ======================================== */
.headerBanner-section {
    position: relative;
    z-index: 1;
}

.headerBanner-sale {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    min-width: 250px;
}

.sale-icon {
    width: 32px;
    height: 32px;
    color: #ff3333;
    flex-shrink: 0;
}

.sale-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sale-text {
    display: flex;
    flex-direction: column;
}

.sale-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
    text-align: left;
}

/* ========================================
   Middle Section - Timer & Progress Bar
   ======================================== */
.headerBanner-timer {
    flex: 1;
    max-width: 600px;
}

.timer-wrapper {
    margin-bottom: 12px;
}

.timer-label {
    font-size: 14px;
    margin: 0 0 8px 0;
    text-align: center;
    color: #ffffff;
    font-weight: 500;
}

/* Countdown Timer */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.countdown-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.countdown-item .time {
    font-weight: bold;
    font-size: 18px;
}

.countdown-label {
    font-size: 16px;
    font-weight: normal;
}

.countdown-separator {
    margin: 0 2px;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 24px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: #ff3333;
    border-radius: 12px;
    position: relative;
    transition: width 0.3s ease-out;
    overflow: hidden;
}

/* Striped Pattern Animation */
.progress-bar-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.3) 10px,
        rgba(255, 255, 255, 0.3) 20px
    );
    background-size: 28px 28px;
    animation: progress-stripes 2s linear infinite;
}

@keyframes progress-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 28px 0;
    }
}

/* ========================================
   Right Section - Coupon Code
   ======================================== */
.headerBanner-coupon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 200px;
}

.coupon-label {
    font-size: 14px;
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
}

.coupon-code-box {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
}

.coupon-code {
    font-size: 18px;
    font-weight: bold;
    color: #4a1d6e;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .headerBanner-content {
        gap: 20px;
    }

    .headerBanner-sale {
        min-width: 180px;
    }

    .sale-title {
        font-size: 18px;
    }

    .headerBanner-timer {
        max-width: 450px;
    }

    .headerBanner-coupon {
        min-width: 160px;
    }

    .coupon-code {
        font-size: 16px;
    }
}

/* Mobile Landscape (768px) */
@media screen and (max-width: 768px) {
    .headerBanner {
        padding: 15px 20px;
    }

    .headerBanner-content {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .headerBanner-sale {
        justify-content: center;
        min-width: unset;
    }

    .headerBanner-timer {
        max-width: 100%;
    }

    .headerBanner-coupon {
        min-width: unset;
        width: 100%;
    }

    .countdown {
        font-size: 14px;
    }

    .countdown-item .time {
        font-size: 16px;
    }

    .countdown-label {
        font-size: 14px;
    }
}

/* Mobile Portrait (640px) */
@media screen and (max-width: 640px) {
    .headerBanner {
        padding: 12px 15px;
    }

    .headerBanner-close {
        right: 5px;
        top: 5px;
    }

    .headerBanner-close .i--close {
        width: 16px;
        height: 16px;
    }

    .sale-icon {
        width: 24px;
        height: 24px;
    }

    .sale-title {
        font-size: 16px;
    }

    .timer-label {
        font-size: 12px;
    }

    .countdown {
        font-size: 12px;
    }

    .countdown-item .time {
        font-size: 14px;
    }

    .countdown-label {
        font-size: 12px;
    }

    .progress-bar-container {
        height: 20px;
        border-radius: 10px;
    }

    .coupon-label {
        font-size: 12px;
    }

    .coupon-code-box {
        padding: 8px 16px;
    }

    .coupon-code {
        font-size: 14px;
    }
}

/* Small Mobile (425px) */
@media screen and (max-width: 425px) {
    .headerBanner {
        background-image: none !important;
        min-height: auto;
        padding: 10px;
    }

    .headerBanner-content {
        gap: 10px;
    }

    .headerBanner-sale {
        gap: 10px;
    }

    .sale-icon {
        width: 20px;
        height: 20px;
    }

    .sale-title {
        font-size: 14px;
    }

    .timer-label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .countdown {
        gap: 2px;
        font-size: 11px;
    }

    .countdown-item {
        gap: 2px;
    }

    .countdown-item .time {
        font-size: 12px;
    }

    .countdown-label {
        font-size: 11px;
    }

    .progress-bar-container {
        height: 18px;
        border-radius: 9px;
    }

    .coupon-code-box {
        padding: 6px 12px;
    }

    .coupon-code {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
}
