body.dcbf-seasonal.discats-navigation-lab .middle-header {
    background:
        radial-gradient(ellipse at 16% 0, #b43c6370, transparent 58%),
        radial-gradient(ellipse at 90% 42%, #168b827c, transparent 55%),
        linear-gradient(110deg, #111c2b 30%, #25354b),
        #111c2b !important;
}

/* Reuse the shared fade height and keep the navigation on white. */
body.dcbf-seasonal.discats-navigation-lab .dcl-nav-r8 {
    background: linear-gradient(180deg,
        transparent 0,
        #e8dce6ba calc(var(--hdr-fade) * .6),
        #fff var(--hdr-fade), #fff 100%) !important;
}

body.dcbf-seasonal .dcl-nav-r8 .dcbf-nav-campaign {
    isolation: isolate;
    min-height: 44px;
    padding-inline: 13px;
    color: #ffd8e5 !important;
}

.dcl-nav-r8 .dcbf-nav-campaign::before {
    content: "";
    position: absolute;
    inset: 4px 0;
    z-index: -1;
    border: 1px solid #825770;
    border-radius: 999px;
    background: linear-gradient(115deg, #141d2c 20%, #3d2a40);
}

.dcl-nav-r8 .dcbf-nav-campaign::after {
    content: none;
}

.dcl-nav-r8 .dcbf-nav-campaign:is(:hover, [aria-current="page"])::before {
    border-color: #961d45;
    background: #8c2347;
}

@media (901px <= width <= 1200px) {
    body.dcbf-seasonal .dcl-nav-inner:has(.dcbf-nav-campaign) {
        width: 94%;
        gap: 8px;
    }

    body.dcbf-seasonal .dcl-nav-main:has(.dcbf-nav-campaign) {
        gap: 3px;
    }

    body.dcbf-seasonal .dcl-nav-inner:has(.dcbf-nav-campaign) .dcl-nav-link {
        padding-inline: 5px;
        font-size: 14px;
    }

    body.dcbf-seasonal .dcl-nav-inner:has(.dcbf-nav-campaign) .dcl-nav-utility .dcl-nav-link {
        font-size: 13px;
    }

    body.dcbf-seasonal .dcl-nav-inner:has(.dcbf-nav-campaign) .dcl-nav-has-panel > .dcl-nav-link {
        padding-inline-end: 2px;
    }

    body.dcbf-seasonal .dcl-nav-inner:has(.dcbf-nav-campaign) .dcbf-nav-campaign {
        padding-inline: 11px;
    }
}

/* The native border owns the solid rim and its real corner curve. */
:is(.inner-post-box.dcbf-sale-card, .products > .dcbf-classic-sale) {
    position: relative;
    --dcbf-rim-width: 4px;
}

:is(.inner-post-box.dcbf-sale-card, .products > .dcbf-classic-sale:not(:has(.dcbf-sale-card, .dccl-collector))) {
    border-block-color: #172535 !important;
}

.products > .dcbf-classic-sale:not(:has(.dcbf-sale-card, .dccl-collector)) {
    border-block: 4px solid transparent;
    border-radius: 10px;
}

/* WooCommerce also calls the classic loop hook in some block templates. */
:is(.wc-block-product, .products > .dcbf-classic-sale):has(> :is(.dcbf-sale-card, .dccl-collector)) > :is(.dcbf-rim, .dcbf-campaign-badge) {
    display: none !important;
}

.dcbf-campaign-badge {
    position: absolute !important;
    inset: -4px auto auto 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-sizing: border-box;
    display: inline-flex;
    width: max-content;
    max-width: calc(100% - 12px);
    margin: 0 !important;
    padding: 3px 8px;
    border: 1px solid #437d7c;
    border-radius: 4px;
    background: #172535;
    color: #a1f7ed;
    font: 700 10px/1.2 var(--wp--preset--font-family--quicksand, Quicksand), sans-serif;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 640px) {
    .dcbf-campaign-badge {
        inset-block-start: -11px;
        padding-inline: 6px;
        font-size: 9px;
        letter-spacing: .035em;
    }
}

:is(.inner-post-box.dcbf-sale-card, .products > .dcbf-classic-sale) > .dcbf-rim {
    position: absolute;
    inset: calc(-1 * var(--dcbf-rim-width)) 0;
    z-index: 1;
    height: auto;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        linear-gradient(104deg, transparent 41%, #e9325833 46%, #e93258e0 50%, #e9325840 54%, transparent 59%),
        repeating-linear-gradient(118deg, #ffffff24 0 1px, transparent 1px 3px, #0505077a 3px 5px, transparent 5px 8px),
        linear-gradient(90deg, #172535, #25454f 54%, #172535);
    background-size: 280% 100%, 100% 100%, 100% 100%;
    background-position: 15% 50%, 0 0, 0 0;
    animation: dcbf-graphite-drift 9s ease-in-out infinite alternate paused;
}
:is(.inner-post-box.dcbf-sale-card, .products > .dcbf-classic-sale) > .dcbf-rim--top {
    mask-image: linear-gradient(#000 var(--dcbf-rim-width), transparent var(--dcbf-rim-width));
}
:is(.inner-post-box.dcbf-sale-card, .products > .dcbf-classic-sale) > .dcbf-rim--bottom {
    mask-image: linear-gradient(to top, #000 var(--dcbf-rim-width), transparent var(--dcbf-rim-width));
    animation-delay: -4.5s;
}
@supports not (mask-image: linear-gradient(#000, transparent)) {
    :is(.inner-post-box.dcbf-sale-card, .products > .dcbf-classic-sale) > .dcbf-rim { display: none; }
}
:is(.inner-post-box.dcbf-sale-card, .products > .dcbf-classic-sale)[data-dcbf-visible] > .dcbf-rim {
    animation-play-state: running;
}
html:is([data-dcbf-motion="off"], [data-dcbf-paused]) :is(.dcbf-sale-card, .dcbf-classic-sale) > .dcbf-rim {
    animation-play-state: paused;
}

@keyframes dcbf-graphite-drift {
    from { background-position: 0 50%, 0 0, 0 0; }
    to { background-position: 100% 50%, 0 0, 0 0; }
}

/* The theme can emit WooCommerce's standard sale marker alongside its custom overlay. */
.dcbf-sale-card .discats-badge-wrapper:has(.discats-card-badge-layer > .dcbf-percent-badge) .wp-block-woocommerce-product-sale-badge {
    display: none !important;
}

body.dcbf-seasonal :is(.dcbf-sale-card .discats-card-badge-layer > .dcbf-percent-badge, .products > .dcbf-classic-sale .onsale, .onsale.dcbf-detail-sale) {
    background: linear-gradient(115deg, #6a183a, #8f2449) !important;
    border: 1px solid #ec7496;
    color: #fff !important;
    box-shadow: 0 3px 8px #13131338 !important;
}

.dcbf-percent-badge {
    border-radius: 4px;
    font-weight: 700;
}

.dcbf-card-reference {
    display: block;
    margin-block-start: .12em;
    color: #405463;
    font-size: .78rem;
    line-height: 1.3;
}

.dcbf-duplicate-reference[hidden] {
    display: none !important;
}

body.dcbf-seasonal .onsale.dcbf-detail-sale {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    inset: 10px 10px auto auto;
    z-index: 2;
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: .42em .7em;
    border-radius: 6px;
    font-size: clamp(.78rem, 1.15vw, 1rem);
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    white-space: nowrap;
    pointer-events: none;
}

.wp-block-woocommerce-product-image-gallery:has(.dcbf-detail-sale) {
    position: relative;
}

.dp-buy:has(.dp-purchase > .dcbf-overview-price) > .dp-price {
    display: none;
}

.dp-purchase > .dcbf-overview-price {
    margin-block-end: 14px;
}

.dp-buy .dcbf-price-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    padding: 12px 16px;
    border: 1px solid #f3c6d4;
    border-inline-start: 4px solid #8c2347;
    border-radius: 9px;
    background: #fff3f6;
    color: #253d4e;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

.dp-buy .dcbf-price-label {
    color: #8c2347;
    font-size: .9rem;
    font-weight: 700;
}

.dp-buy .dcbf-price-amounts,
.dp-buy .dcbf-price-amounts .price {
    color: inherit;
    font: inherit;
}

.dp-buy .dcbf-price-amounts del {
    color: #5e4b58;
    opacity: 1;
    font-size: .62em;
    font-weight: 500;
}

.dp-buy .dcbf-price-amounts ins {
    color: inherit;
    background: transparent;
    text-decoration: none;
}

.dp-buy .dcbf-price-amounts .dcpc-reference {
    color: #5e4b58;
    font-size: .8rem;
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    :is(.dcbf-sale-card, .dcbf-classic-sale) > .dcbf-rim {
        animation: none !important;
        background-position: 48% 50%, 0 0, 0 0;
    }
}
@media (forced-colors: active) {
    :is(.dcbf-sale-card, .dcbf-classic-sale) > .dcbf-rim {
        display: none;
    }
}
