/**
 * Sale slider / top deals (Slick carousel).
 * Ported from legacy custom.css — do not use flex scroll on .topdeals_container (Slick owns layout).
 */

.topdeals-title,
.vgl-homepage__sale-slider .section-title {
    margin-bottom: var(--vgl-space-4);
    color: var(--vgl-color-text);
    font-size: var(--vgl-font-size-xl);
}

.sales_slider_container {
    margin-block: var(--vgl-space-6);
    min-height: 220px;
}

.topdeals_container br {
    display: none;
}

.topdeals_container .slick-track > p {
    display: none !important;
}

.topdeals_container {
    position: relative;
    max-width: 1190px;
    margin: 0 auto;
    max-height: 800px;
}

.topdeals_container.low_wide {
    max-width: 850px;
    margin-bottom: 20px;
    margin-top: 10px;
    max-height: 405px;
}

.topdeals_container .topdeal_wrapper {
    padding: 0 7px;
    outline: none;
}

.topdeals_container > .topdeal_wrapper {
    opacity: 0;
}

.topdeals_container.slick-initialized > .topdeal_wrapper {
    opacity: 1;
}

.topdeals_container .topdeal_product {
    height: 390px;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 15px;
    border: 1px solid #e9e9e9;
    background-color: var(--vgl-color-surface, #fff);
    border-radius: var(--vgl-radius-sm, 3px);
    text-align: center;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.topdeals_container .topdeal_product:hover {
    border-color: #d7d7d7;
    box-shadow: 0 1px 5px #ddd;
}

.topdeals_container .prod_img {
    display: block;
    text-align: center;
    height: 170px;
}

.topdeals_container .prod_img img {
    max-width: 90%;
    padding: 10px 0;
    display: inline-block;
    max-height: 100%;
}

.topdeals_container .topdeal_product .prices .prev_price {
    font-size: 16px;
    padding-left: 15px;
    width: 49%;
    display: inline-block;
    text-decoration: line-through;
    color: var(--vgl-color-text-muted, #676767);
}

.price-reduction,
.price-changing.price-reduction,
.merchant-price-reduction.price-reduction {
    background-color: var(--vgl-color-accent, #f2504e);
    color: #fff;
    border-radius: 7px;
    text-align: center;
    transform: rotate(8deg);
    font-weight: 700;
}

.topdeals_container .topdeal_product .prices .price-changing,
.single-product .price-reduction {
    display: inline-block;
    width: 48%;
}

.topdeals_container .topdeal_product .prices .price-changing.price-reduction,
.topdeals_container .price-reduction {
    background-color: var(--vgl-color-accent, #f2504e);
    color: #fff;
    border-radius: 7px;
    text-align: center;
    transform: rotate(8deg);
    font-weight: 700;
    font-size: 22px;
    padding: 5px;
}

.topdeals_container .topdeal_product .prices .current_price {
    width: 100%;
    font-size: 22px;
    text-align: center;
    margin-top: 10px;
    color: var(--vgl-color-accent, #f2504e);
    font-weight: 600;
}

.topdeal_product .vgl-button.red {
    display: inline-block;
    width: 90%;
    margin: 10px auto 0;
    font-size: 15px;
}

.topdeal_product .top_merchant {
    display: block;
    text-align: center;
}

.topdeal_product .top_merchant > img {
    max-width: 80%;
    max-height: 55px;
    margin-top: 20px;
    display: inline-block;
}

/* Slick arrows inside sale slider */
.topdeals_container .slick-prev,
.topdeals_container .slick-next {
    z-index: 2;
    width: 36px;
    height: 36px;
}

.topdeals_container .slick-prev::before,
.topdeals_container .slick-next::before {
    color: var(--vgl-color-secondary, #006bbd);
    font-size: 28px;
}

.vgl-homepage__sale-slider .topdeals_container {
    width: 100%;
    margin-left: 0;
}

.vgl-homepage__sale-slider .topdeals_container.low_wide .slick-list {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .topdeal_product .top_merchant > img {
        margin-top: 0;
    }

    .topdeals_container .topdeal_product {
        height: auto;
        min-height: 360px;
    }
}

@media (min-width: 768px) {
    .vgl-homepage .topdeals_container .slick-next::before {
        position: relative;
        left: -5px;
    }

    .vgl-homepage .topdeals_container .slick-prev::before {
        position: relative;
        right: -5px;
    }
}
