/* =========================================================
   OnLaptop - Box pret promotional
   ========================================================= */
.onl-sale-box-v2 {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid #dbe7de;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(20, 40, 24, 0.05);
}

.onl-sale-box-v2__promo {
    position: absolute;
    top: -12px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #69b93f 0%, #3f8f24 100%);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(63, 143, 36, 0.22);
}

.onl-sale-box-v2__promo::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    animation: onlPromoDotPulse 1.5s ease-out infinite;
}

@keyframes onlPromoDotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }

    60% {
        transform: scale(1.08);
        opacity: 0.9;
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.onl-sale-box-v2__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.onl-sale-box-v2__left {
    min-width: 0;
    flex: 1 1 auto;
}

.onl-sale-box-v2__topline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.onl-sale-box-v2__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 34px;
    padding: 0 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #ff4d4d 0%, #d92121 100%);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(217, 33, 33, 0.16);
}

.onl-sale-box-v2__old {
    color: #1c1c1c;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: line-through;
    opacity: 0.82;
    white-space: nowrap;
}

.onl-sale-box-v2__old .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.onl-sale-box-v2__new {
    color: #d72222;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.onl-sale-box-v2__new .woocommerce-Price-amount,
.onl-sale-box-v2__new .woocommerce-Price-currencySymbol {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.onl-sale-box-v2__right {
    flex: 0 0 auto;
}

.onl-sale-box-v2__saving-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 150px;
    padding: 11px 13px;
    background: linear-gradient(180deg, #f4fbf6 0%, #ebf7ef 100%);
    border: 1px solid #c8e3cf;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.onl-sale-box-v2__saving-label {
    margin-bottom: 4px;
    color: #276738;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.onl-sale-box-v2__saving-box strong,
.onl-sale-box-v2__saving-box .woocommerce-Price-amount,
.onl-sale-box-v2__saving-box .woocommerce-Price-currencySymbol {
    color: #125826;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

/* =========================================================
   OnLaptop - Box SKU
   ========================================================= */
.onl-sku-box {
    position: relative;
    top: 3px;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 33px;
    box-sizing: border-box;
    align-items: center;
    gap: 7px;
    padding: 1px 13px;
    color: #252525;
    font-size: 15px;
    background: #fff;
    border: 1px solid #78b94c;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(57, 125, 31, 0.05);
}

.onl-sku-box__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: #79b947;
    border-radius: 50%;
}

.onl-sku-box__label {
    color: #444;
    font-weight: 600;
}

.onl-sku-box__value {
    color: #222;
    font-weight: 500;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .onl-sale-box-v2 {
        padding: 18px 16px 16px;
        border-radius: 14px;
    }

    .onl-sale-box-v2__inner {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .onl-sale-box-v2__left {
        flex: 1 1 185px;
        min-width: 0;
    }

    .onl-sale-box-v2__right {
        flex: 0 1 auto;
        margin-left: auto;
    }

    .onl-sale-box-v2__new,
    .onl-sale-box-v2__new .woocommerce-Price-amount,
    .onl-sale-box-v2__new .woocommerce-Price-currencySymbol {
        font-size: 30px;
        line-height: 1;
        white-space: nowrap;
    }

    .onl-sale-box-v2__saving-box {
        width: auto;
        min-width: 125px;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    .onl-sale-box-v2__saving-label {
        font-size: 11px;
    }

    .onl-sale-box-v2__saving-box strong,
    .onl-sale-box-v2__saving-box .woocommerce-Price-amount,
    .onl-sale-box-v2__saving-box .woocommerce-Price-currencySymbol {
        font-size: 16px;
    }

    .onl-sale-box-v2__promo {
        top: -11px;
        left: 14px;
        padding: 6px 10px;
        font-size: 10px;
    }

    .onl-sku-box {
        top: 2px;
        min-height: 38px;
        padding: 7px 11px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onl-sale-box-v2__promo::before {
        animation: none;
    }
}

/* =========================================================
   OnLaptop - Pret standard, fara promotie
   ========================================================= */
.onl-sale-box-v2__promo--regular {
    background: linear-gradient(180deg, #69b93f 0%, #3f8f24 100%);
    box-shadow: 0 8px 18px rgba(63, 143, 36, 0.22);
}

.onl-price-box--regular__inner {
    min-height: 74px;
}

.onl-price-box--regular__label {
    margin-bottom: 5px;
    color: #4e5a51;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.onl-price-box--regular__conversion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 11px 14px;
    color: #1d6530;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    background: linear-gradient(180deg, #f4fbf6 0%, #ebf7ef 100%);
    border: 1px solid #c8e3cf;
    border-radius: 12px;
    white-space: nowrap;
}

.onl-price-box--regular__conversion-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: #79b947;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .onl-price-box--regular__inner {
        min-height: 0;
    }

    .onl-price-box--regular__conversion {
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }
}


/* =========================================================
   OnLaptop - Preturi si badge oferta in grilele WoodMart
   ========================================================= */
.onl-loop-sale-info,
.onl-loop-sale-badge {
    display: none;
}

/* Toate preturile curente din grila, inclusiv cele fara oferta, sunt rosii. */
.wd-product .wrap-price .price > .woocommerce-Price-amount,
.wd-product .wrap-price .price > .woocommerce-Price-amount .woocommerce-Price-currencySymbol,
.wd-product .wrap-price .price > .woocommerce-Price-amount bdi,
.wd-product .wrap-price .price ins,
.wd-product .wrap-price .price ins .woocommerce-Price-amount,
.wd-product .wrap-price .price ins .woocommerce-Price-currencySymbol,
.wd-product .wrap-price .price ins bdi {
    color: #d72222 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* Pretul vechi ramane negru, mic si taiat. */
.wd-product .wrap-price .price del,
.wd-product .wrap-price .price del .woocommerce-Price-amount,
.wd-product .wrap-price .price del .woocommerce-Price-currencySymbol,
.wd-product .wrap-price .price del bdi {
    color: #242424 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    opacity: 0.76;
}

.wd-product .wrap-price .price del {
    margin-right: 7px;
}

/* Grup compact sub pret: badge fin + economia realizata. */
.wd-product .wrap-price .price .onl-loop-sale-info {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: fit-content;
    margin-top: 7px;
}

.wd-product .wrap-price .price .onl-loop-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    padding: 5px 9px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #69b93f 0%, #3f8f24 100%);
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(63, 143, 36, 0.18);
    white-space: nowrap;
}

.wd-product .onl-loop-sale-badge__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    animation: onlLoopSaleDotPulse 1.7s ease-out infinite;
}

@keyframes onlLoopSaleDotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.48);
    }

    65% {
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.wd-product .wrap-price .price .onl-loop-sale-saving {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #276738;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.wd-product .wrap-price .price .onl-loop-sale-saving strong,
.wd-product .wrap-price .price .onl-loop-sale-saving .woocommerce-Price-amount,
.wd-product .wrap-price .price .onl-loop-sale-saving .woocommerce-Price-currencySymbol {
    color: #125826 !important;
    font-size: inherit;
    font-weight: 800 !important;
}

@media (max-width: 767px) {
    .wd-product .wrap-price .price > .woocommerce-Price-amount,
    .wd-product .wrap-price .price > .woocommerce-Price-amount .woocommerce-Price-currencySymbol,
    .wd-product .wrap-price .price > .woocommerce-Price-amount bdi,
    .wd-product .wrap-price .price ins,
    .wd-product .wrap-price .price ins .woocommerce-Price-amount,
    .wd-product .wrap-price .price ins .woocommerce-Price-currencySymbol,
    .wd-product .wrap-price .price ins bdi {
        font-size: inherit;
    }

    .wd-product .wrap-price .price del,
    .wd-product .wrap-price .price del .woocommerce-Price-amount,
    .wd-product .wrap-price .price del .woocommerce-Price-currencySymbol,
    .wd-product .wrap-price .price del bdi {
        font-size: 11px !important;
    }

    .wd-product .wrap-price .price .onl-loop-sale-info {
        gap: 3px;
        margin-top: 6px;
    }

    .wd-product .wrap-price .price .onl-loop-sale-badge {
        padding: 4px 8px;
        font-size: 8px;
    }

    .wd-product .wrap-price .price .onl-loop-sale-saving {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wd-product .onl-loop-sale-badge__dot {
        animation: none;
    }
}
