.dk_sale_tile, .dk_sale_standalone, .dk_sale_corner_tr {
    position: relative;
}

.product.dk_sale_tile {
    overflow: hidden;
}

.dk_sale_badge, .dk_sale_row_badge, .dk_sale_percent {
    display: inline-block;
    border-radius: 999px;
    padding: 0.28em 0.74em;
    background: #d92d20;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.dk_sale_percent {
    font-size: 0.85rem;
    padding: 0.24em 0.66em;
}

/* Right-bottom red corner triangle on category and subcategory tiles */
.dk_sale_tile > .dk_sale_badge {
    position: absolute;
    right: -1px;
    bottom: -1px;
    top: auto;
    z-index: 2;
    width: 92px;
    height: 92px;
    padding: 0;
    border-radius: 0 0 16px 0;
    background: linear-gradient(to top left, #d92d20 0% 50%, transparent 50.6% 100%);
    overflow: hidden;
    pointer-events: none;
}

.dk_sale_tile > .dk_sale_badge > .dk_sale_badge_text {
    position: absolute;
    bottom: 23px;
    right: 0;
    width: 62px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-align: center;
    color: #fff;
    transform: rotate(-45deg);
    transform-origin: center;
}

/* Smaller subcategory product tiles (186x188 desktop, 169/139 mobile) */
.subcategory_product_img.dk_sale_tile > .dk_sale_badge {
    width: 78px;
    height: 78px;
}

.subcategory_product_img.dk_sale_tile > .dk_sale_badge > .dk_sale_badge_text {
    bottom: 18px;
    right: -1px;
    width: 54px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

/* Right-top red corner triangle on standalone series cards and home carousel cards */
.dk_sale_standalone > .dk_sale_badge,
.dk_sale_corner_tr > .dk_sale_badge {
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: auto;
    z-index: 2;
    width: 98px;
    height: 98px;
    padding: 0;
    border-radius: 0 14px 0 0;
    background: linear-gradient(to bottom left, #d92d20 0% 50%, transparent 50.6% 100%);
    overflow: hidden;
    pointer-events: none;
}

.dk_sale_corner_tr > .dk_sale_badge {
    width: 92px;
    height: 92px;
    border-radius: 0 16px 0 0;
}

.dk_sale_standalone > .dk_sale_badge > .dk_sale_badge_text,
.dk_sale_corner_tr > .dk_sale_badge > .dk_sale_badge_text {
    position: absolute;
    top: 26px;
    right: 1px;
    width: 64px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-align: center;
    color: #fff;
    transform: rotate(45deg);
    transform-origin: center;
}

.dk_sale_corner_tr > .dk_sale_badge > .dk_sale_badge_text {
    top: 24px;
    right: 0;
    width: 60px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.dk_sale_standalone:has(> .dk_sale_badge) > .subcategory_item_title {
    padding-inline-end: 92px;
}

.dk_sale_buy_wrap {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.dk_sale_buy_wrap > .dk_sale_row_badge {
    position: absolute;
    top: -10px;
    right: -11px;
    z-index: 3;
    margin: 0;
    padding: 0.17em 0.52em;
    font-size: 0.76rem;
    line-height: 1.15;
    white-space: nowrap;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(2, 24, 47, 0.22);
}

@media (max-width: 767px) {
    .dk_sale_standalone > .dk_sale_badge,
    .dk_sale_corner_tr > .dk_sale_badge {
        width: 82px;
        height: 82px;
    }

    .dk_sale_standalone > .dk_sale_badge > .dk_sale_badge_text,
    .dk_sale_corner_tr > .dk_sale_badge > .dk_sale_badge_text {
        top: 22px;
        right: 1px;
        width: 54px;
        font-size: 0.72rem;
    }

    .dk_sale_tile > .dk_sale_badge {
        width: 78px;
        height: 78px;
    }

    .dk_sale_tile > .dk_sale_badge > .dk_sale_badge_text {
        bottom: 18px;
        right: -1px;
        width: 54px;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }

    .subcategory_product_img.dk_sale_tile > .dk_sale_badge {
        width: 66px;
        height: 66px;
    }

    .subcategory_product_img.dk_sale_tile > .dk_sale_badge > .dk_sale_badge_text {
        bottom: 15px;
        right: -2px;
        width: 46px;
        font-size: 0.6rem;
        letter-spacing: 0.03em;
    }

    .dk_sale_standalone:has(> .dk_sale_badge) > .subcategory_item_title {
        padding-inline-end: 76px;
    }

    td.dkmt-actions:has(.dk_sale_row_badge) {
        padding-top: 8px;
        padding-right: 6px;
    }

    .dk_sale_buy_wrap > .dk_sale_row_badge {
        top: -8px;
        right: -6px;
    }
}

.dk_sale_prices {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 8px;
}

.dk_sale_prices strong {
    color: #a6231a;
    white-space: nowrap;
}

.dk_sale_old {
    color: #5d6671;
    white-space: nowrap;
}

.dk_sale_order_email {
    max-inline-size: min(100%, calc(100vw - 3rem));
    overflow-wrap: anywhere;
}

/* Home promo carousel: unified white card, larger photo, short specs */
.dk_sale_carousel {
    overflow: hidden;
}

.dk_sale_carousel .stock {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(2, 24, 47, 0.08);
}

.dk_sale_carousel .stock_top {
    background: #fff;
    border-radius: 0;
    height: 245px;
    padding: 14px 16px 8px;
}

.dk_sale_carousel .stock_img {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.dk_sale_carousel .stock_img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dk_sale_carousel .stock_action {
    left: 16px;
    bottom: 12px;
}

.dk_sale_carousel .dk_sale_card_body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 4px 18px 18px;
    text-align: left;
}

.dk_sale_carousel .stock_text {
    display: block;
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    color: #02182F;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.25s;
}

.dk_sale_carousel .stock_text:hover {
    color: #2c7a93;
}

.dk_sale_carousel .dk_sale_specs {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #364152;
}

.dk_sale_carousel .dk_sale_specs li {
    margin: 0;
    overflow-wrap: anywhere;
}

.dk_sale_carousel .dk_sale_spec_k {
    font-weight: 700;
    color: #02182F;
}

.dk_sale_carousel .stock_price {
    min-height: auto;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e7edf4;
}

.dk_sale_carousel .stock_price .dk_sale_prices {
    justify-content: flex-start;
}

.dk_sale_carousel .dk_sale_old {
    color: #5d6671;
}

@media (max-width: 1199px) {
    .dk_sale_carousel .stock_top {
        height: 225px;
    }
}

@media (max-width: 767px) {
    .dk_sale_carousel .stock_top {
        height: 210px;
        padding: 12px 14px 6px;
    }

    .dk_sale_carousel .dk_sale_card_body {
        padding: 4px 14px 16px;
    }

    .dk_sale_carousel .dk_sale_specs {
        font-size: 0.82rem;
    }
}

.dk_sale_carousel .swiper-controls .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
    background: rgba(255, 255, 255, 0.78);
}

.dk_clients_light .clients .swiper-slide:not(:last-child)::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='117' height='17' viewBox='0 0 117 17' fill='none'%3E%3Crect y='7.5' width='40' height='2' rx='1' fill='%23B8C6D6'/%3E%3Ccircle cx='58.5' cy='8.5' r='8.5' fill='%236AC6DD'/%3E%3Crect x='77' y='7.5' width='40' height='2' rx='1' fill='%23B8C6D6'/%3E%3C/svg%3E");
}

.dk_sale_carousel .stocks_controls .swiper_pagination.swiper-pagination-bullets-dynamic {
    display: flex;
    gap: 0;
    position: relative;
    left: auto;
    transform: none;
}

/* Swiper still measures the first bullet even when it leaves the visible group. */
.dk_sale_carousel .stocks_controls .swiper_pagination.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    flex: 0 0 8px;
    width: 8px;
    margin: 0 4px;
    position: absolute;
    visibility: hidden;
    transition-property: transform, background-color;
}

/* Center the visible group, including the scaled neighbors. */
.dk_sale_carousel .stocks_controls .swiper_pagination.swiper-pagination-bullets-dynamic :is(
    .swiper-pagination-bullet-active,
    .swiper-pagination-bullet-active-main,
    .swiper-pagination-bullet-active-prev,
    .swiper-pagination-bullet-active-prev-prev,
    .swiper-pagination-bullet-active-next,
    .swiper-pagination-bullet-active-next-next
) {
    position: static;
    visibility: visible;
}

.dk_sale_carousel .stocks_controls .swiper_pagination.swiper-pagination-lock {
    display: none;
}

/* Five main bullets and two neighbors on each side fit in the allotted width. */
.dk_sale_carousel .stocks_controls .swiper_pagination.swiper-pagination-bullets-dynamic:not(:has(> :nth-child(10))) .swiper-pagination-bullet {
    position: static;
    transform: none;
    visibility: visible;
}
