/* ===========================
   Flash Sale Layout
=========================== */

.flash-sale-section{

    margin:60px 0;

}

.flash-products{

    margin-top:35px;

}


/* ==========================================
   FLASH SALE SECTION
========================================== */

.flash-sale-wrapper{
    background:#fff7f7;
    border:1px solid #f4d4d4;
    border-radius:28px;
    padding:40px;
    margin:0 auto;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
    transition:.35s ease;
    max-width: 1300px;
}

.flash-sale-wrapper:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 45px rgba(0,0,0,.12);
}

/* ==========================================
   HEADER
========================================== */

.flash-sale-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:20px;

    margin-bottom:10px;

    padding-bottom:20px;

    border-bottom:1px solid #f3dcdc;

}

.flash-sale-title{
    display:flex;
    align-items:center;
    gap:16px;
}

.flash-icon{
    font-size:42px;
}

.flash-sale-title h2{
    margin:0;
    font-size:38px;
    font-weight:700;
    color:#d62828;
    line-height:1.2;
}

.flash-sale-title p{
    margin-top:6px;
    color:#666;
    font-size:17px;
}

/* ==========================================
   VIEW ALL
========================================== */

.flash-view-all{
    display:inline-flex;
    align-items:center;
    gap:8px;

    text-decoration:none;

    color:#222;

    font-size:18px;

    font-weight:600;

    padding:10px 18px;

    border-radius:50px;

    background:#ffffff;

    border:1px solid #f0d7d7;

    transition:all .3s ease;
}

.flash-view-all:hover{

    color:#ffffff;

    background:#d62828;

    border-color:#d62828;

    transform:translateX(5px);
}

/* ==========================================
   COUNTDOWN
========================================== */

.flash-countdown{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:24px;

    margin:15px 0 40px;

}

.flash-box{

    position:relative;

    overflow:hidden;

    width:120px;

    height:125px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#D62828 0%,#B71C1C 100%);

    border-radius:22px;

    color:#fff;

    cursor:pointer;

    box-shadow:
        0 15px 35px rgba(214,40,40,.28),
        inset 0 1px 0 rgba(255,255,255,.15);

    transition:all .35s ease;

}

.flash-box:hover{

    transform:translateY(-8px) scale(1.04);

    box-shadow:
        0 22px 45px rgba(214,40,40,.38),
        inset 0 1px 0 rgba(255,255,255,.2);

}

.flash-box span{

    font-size:46px;

    font-weight:700;

    line-height:1;

    text-shadow:0 2px 10px rgba(0,0,0,.18);

}

.flash-box small{

    margin-top:12px;

    font-size:12px;

    letter-spacing:2px;

    text-transform:uppercase;

    opacity:.9;

    font-weight:600;

}

/* ==========================================
   PRODUCTS
========================================== */

.flash-products{
    margin-top:10px;
}

.flash-timer-title{
    text-align:center;
    font-size:22px;
    font-weight:700;
    color:#D62828;
    margin-bottom:18px;
}

@keyframes firePulse{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.15);

    }

    100%{

        transform:scale(1);

    }

}

.flash-icon{

    display:inline-block;

    animation:firePulse 1.5s infinite;

}

.flash-box::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:60%;

    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.25),
        transparent
    );

    transform:skewX(-25deg);

}

.flash-box:hover::before{

    animation:shine .8s forwards;

}

@keyframes shine{

    from{

        left:-120%;

    }

    to{

        left:150%;

    }

}

.dainik-discount-badge{

    position:absolute;

    top:15px;

    left:15px;

    background:#D62828;

    color:#fff;

    padding:8px 15px;

    border-radius:30px;

    font-size:13px;

    font-weight:700;

    letter-spacing:.5px;

    text-transform:uppercase;

    z-index:9999;

    box-shadow:0 8px 20px rgba(214,40,40,.30);

}

/* Hide ALL default WooCommerce sale badges */

.woocommerce span.onsale,
.woocommerce .onsale,
.ast-onsale-card,
.ast-onsale-label{
    display:none !important;
}

@media (max-width:1024px){

    .flash-sale-wrapper{
        padding:30px;
        border-radius:22px;
    }

    .flash-sale-title h2{
        font-size:32px;
    }

    .flash-sale-title p{
        font-size:16px;
    }

    .flash-box{
        width:100px;
        height:105px;
    }

    .flash-box span{
        font-size:40px;
    }

}

@media (max-width:768px){

    .flash-sale-wrapper{
        padding:25px 20px;
    }

    .flash-sale-header{
        flex-direction:column;
        align-items:center;
        text-align:center;
        gap:20px;
    }

    .flash-sale-title{
        flex-direction:column;
        text-align:center;
    }

    .flash-sale-title h2{
        font-size:30px;
    }

    .flash-sale-title p{
        font-size:15px;
    }

    .flash-view-all{
        width:100%;
        justify-content:center;
    }

    .flash-countdown{
        gap:15px;
        margin:20px 0 30px;
    }

    .flash-box{
        width:90px;
        height:95px;
        border-radius:18px;
    }

    .flash-box span{
        font-size:34px;
    }

    .flash-box small{
        font-size:11px;
        letter-spacing:1px;
    }

}

@media (max-width:576px){

    .flash-sale-wrapper{
        padding:20px 15px;
    }

    .flash-sale-title h2{
        font-size:26px;
    }

    .flash-sale-title p{
        font-size:14px;
    }

    .flash-timer-title{
        font-size:20px;
    }

    .flash-countdown{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:15px;
        justify-items:center;
    }

    .flash-box{
        width:100%;
        max-width:120px;
        height:90px;
    }

    .flash-box span{
        font-size:30px;
    }

    .flash-box small{
        font-size:10px;
    }

}

@media (max-width:380px){

    .flash-sale-title h2{
        font-size:22px;
    }

    .flash-icon{
        font-size:34px;
    }

    .flash-box{
        height:80px;
    }

    .flash-box span{
        font-size:26px;
    }

    .flash-view-all{
        font-size:15px;
        padding:10px 15px;
    }

}