/* Landing #16 - generat din Back Office (Flash Sales > Landing pages > CSS personalizat). Nu edita manual. */
/* Product block */
article.product_block {
    border-radius: 10px !important;
}

/* CSS personalizat */
/* =========================================
   ROUA.RO - BLACK FRIDAY 2026
   CARDURI PRODUSE
   ========================================= */

/* 1. FUNDAL GRILA */

body.flash-sales .products {
    background: #151321 !important;
    border: 1px solid #302544;
    border-radius: 6px;
}

body.flash-sales .products > .row {
    background: transparent !important;
}

/* 2. CARD PRODUS */

body.flash-sales article.product_block {
    background: #191823 !important;
    border: 1px solid #30283D !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    position: relative;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

body.flash-sales article.product_block:hover {
    border-color: #F47721 !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.25);
}

/* 3. IMAGINI PRODUSE */

body.flash-sales article.product_block :is(
    .product_image,
    .product-image,
    .product_img,
    .product-thumb
) {
    background: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.flash-sales article.product_block :is(
    .product_image img,
    .product-image img,
    .product_img img,
    .product-thumb img
) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

/* 4. TITLURI PRODUSE */

body.flash-sales article.product_block :is(
    .product_name,
    .product-name,
    .product_title,
    .product-title
) {
    color: #F3F0FF !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    text-align: left !important;

    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden !important;
}

/* 5. PRETURI */

body.flash-sales article.product_block .price {
    color: #FF762E !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 21px !important;
}

body.flash-sales article.product_block :is(
    .old_price,
    .old-price,
    .regular-price
) {
    color: #A49CAD !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

/* 6. REDUCERE */

body.flash-sales article.product_block :is(
    .discount,
    .discount-percentage,
    .reduction
) {
    background: #D90000 !important;
    color: #FFFFFF !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    z-index: 5;
}

/* 7. BUTON ADAUGA IN COS */

body.flash-sales article.product_block .product_button {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100%;
    min-height: 34px !important;

    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    transform: none !important;

    background: #F47721 !important;
    color: #FFFFFF !important;
    border: 1px solid #F47721 !important;
    border-radius: 4px !important;

    padding: 6px 8px;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center;

    transition: background .2s ease;
}

body.flash-sales article.product_block .product_button:hover {
    background: #D95E11 !important;
    border-color: #D95E11 !important;
}

body.flash-sales article.product_block .product_button i,
body.flash-sales article.product_block .product_button svg {
    color: #FFFFFF !important;
    margin-right: 5px;
}

body.flash-sales article.product_block .product_button:focus-visible {
    outline: 2px solid #FFB16B;
    outline-offset: 2px;
}

/* 8. DESKTOP - CARDURI COMPACTE */

@media (min-width: 1200px) {

    body.flash-sales article.product_block {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.flash-sales article.product_block :is(
        .product_image,
        .product-image,
        .product_img,
        .product-thumb
    ) {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
        flex: 0 0 150px !important;
    }

    body.flash-sales article.product_block :is(
        .product_name,
        .product-name,
        .product_title,
        .product-title
    ) {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        margin-bottom: 5px;
    }

}

/* 9. TABLETA */

@media (min-width: 768px) and (max-width: 1199px) {

    body.flash-sales article.product_block {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    body.flash-sales article.product_block :is(
        .product_image,
        .product-image,
        .product_img,
        .product-thumb
    ) {
        height: 165px !important;
        min-height: 165px !important;
        max-height: 165px !important;
    }

}

/* 10. MOBIL - PASTRAM ASPECTUL */

@media (max-width: 767px) {

    body.flash-sales article.product_block {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
        overflow: hidden !important;
    }

    body.flash-sales article.product_block :is(
        .product_image,
        .product-image,
        .product_img,
        .product-thumb
    ) {
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
        flex-basis: 190px !important;
    }

    body.flash-sales article.product_block :is(
        .product_name,
        .product-name,
        .product_title,
        .product-title
    ) {
        font-size: 11px !important;
        line-height: 15px !important;
        height: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
    }

    body.flash-sales article.product_block .price {
        font-size: 15px !important;
    }

    body.flash-sales article.product_block .product_button {
        font-size: 11px !important;
        padding: 6px 5px;
    }

}

/* 11. ACCESIBILITATE */

@media (prefers-reduced-motion: reduce) {

    body.flash-sales article.product_block,
    body.flash-sales article.product_block .product_button {
        transition: none !important;
    }

}

/* =========================================
   ROUA.RO - COLTURI ROTUNJITE CARDURI
   ========================================= */

body.flash-sales article.product_block {
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* Zona alba a imaginii urmeaza forma cardului */
body.flash-sales article.product_block :is(
    .product_image,
    .product-image,
    .product_img,
    .product-thumb
) {
    border-radius: 9px 9px 0 0 !important;
}

/* Buton Adauga in cos */
body.flash-sales article.product_block .product_button {
    border-radius: 6px !important;
}

/* Eticheta reducere */
body.flash-sales article.product_block :is(
    .discount,
    .discount-percentage,
    .reduction
) {
    border-radius: 6px !important;
}

/* Fundalul sectiunii */
body.flash-sales .products {
    border-radius: 10px !important;
}

/* BLACK FRIDAY - ZONA IMAGINE MAI INALTA */

@media (min-width: 1200px) {

    body.flash-sales article.product_block img[src*="home_default"] {
        display: block !important;
        width: 100% !important;
        height: 210px !important;
        object-fit: contain !important;
        object-position: center !important;
        background: #FFFFFF !important;
    }

}
