/*
 * Black Week campaign (inc/black-week.php). Plain CSS, enqueued only while
 * the campaign runs; assets/dist is not rebuilt.
 */

:root {
    --uw-bw-ink: #0d0c0b;
    --uw-bw-ink-2: #171513;
    --uw-bw-line: rgba(232, 223, 210, 0.14);
    --uw-bw-text: #f5f0e8;
    --uw-bw-muted: #bea888;
    --uw-bw-wood: #c9a678;
    --uw-bw-green: #15803d;
    --uw-bw-green-hi: #22c55e;
}

/* ---- Shared bits ------------------------------------------------------- */

.uw-bw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    background: var(--uw-bw-green);
    color: #fff;
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 10px 30px -10px rgba(21, 128, 61, 0.7);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.uw-bw-btn:hover {
    background: #166534;
    transform: translateY(-1px);
}

.uw-bw-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.uw-bw-countdown {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--uw-bw-text);
}

.uw-bw-countdown__end {
    font-weight: 600;
}

.uw-bw-countdown__left {
    color: var(--uw-bw-muted);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

/* ---- Front page hero ---------------------------------------------------- */

.uw-bw-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 70% at 85% 30%, rgba(201, 166, 120, 0.16), transparent 70%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(21, 128, 61, 0.14), transparent 70%),
        var(--uw-bw-ink);
    color: var(--uw-bw-text);
}

.uw-bw-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 80rem;
    margin: 0 auto;
}

.uw-bw-hero__copy {
    order: 2;
    padding: 2rem 1rem 3rem;
}

.uw-bw-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(3rem, 11vw, 6.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: #fff;
}

.uw-bw-hero__lead {
    max-width: 30rem;
    margin: 0 0 2rem;
    font-size: 1.125rem;
    line-height: 1.55;
    color: rgba(245, 240, 232, 0.85);
}

.uw-bw-hero__offers {
    display: grid;
    gap: 0;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--uw-bw-line);
}

.uw-bw-hero__offers li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.125rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--uw-bw-line);
}

.uw-bw-hero__amount {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--uw-bw-wood);
    font-variant-numeric: tabular-nums;
}

.uw-bw-hero__amount small {
    font-size: 0.55em;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--uw-bw-muted);
}

.uw-bw-hero__what {
    font-size: 1rem;
    color: var(--uw-bw-text);
}

.uw-bw-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.uw-bw-hero__media {
    order: 1;
    position: relative;
}

.uw-bw-hero__frame {
    position: relative;
    display: block;
    overflow: hidden;
}

.uw-bw-hero__frame--main {
    aspect-ratio: 4 / 3;
}

.uw-bw-hero__frame--main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 12, 11, 0) 55%, var(--uw-bw-ink) 100%);
    pointer-events: none;
}

.uw-bw-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uw-bw-hero__frame--second {
    display: none;
}

.uw-bw-hero__chip {
    position: absolute;
    z-index: 1;
    left: 1rem;
    bottom: 1.25rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    max-width: calc(100% - 2rem);
    padding: 0.5rem 0.875rem;
    border-radius: 0.625rem;
    background: rgba(13, 12, 11, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--uw-bw-line);
    font-size: 0.8125rem;
    color: var(--uw-bw-text);
}

.uw-bw-hero__chip strong {
    color: var(--uw-bw-green-hi);
    font-weight: 700;
}

@media (min-width: 640px) {
    .uw-bw-hero__copy {
        padding: 2.5rem 2rem 3.5rem;
    }

    .uw-bw-hero__offers {
        grid-template-columns: 1fr 1fr;
        gap: 0 2rem;
    }

    .uw-bw-hero__actions {
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
    }

    .uw-bw-hero__frame--main {
        aspect-ratio: 21 / 9;
    }
}

@media (min-width: 1024px) {
    .uw-bw-hero__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: center;
        min-height: min(82vh, 52rem);
        padding: 0 2rem;
        gap: 3rem;
    }

    .uw-bw-hero__copy {
        order: 1;
        padding: 4.5rem 0;
    }

    .uw-bw-hero__media {
        order: 2;
        align-self: stretch;
        padding: 4rem 0 5.5rem;
    }

    .uw-bw-hero__frame--main {
        aspect-ratio: auto;
        height: 100%;
        min-height: 28rem;
        border-radius: 1.25rem;
        box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    }

    .uw-bw-hero__frame--main::after {
        background: linear-gradient(to top, rgba(13, 12, 11, 0.45), rgba(13, 12, 11, 0) 40%);
    }

    .uw-bw-hero__frame--second {
        display: block;
        position: absolute;
        left: -3.5rem;
        bottom: 2rem;
        width: 46%;
        aspect-ratio: 4 / 3;
        border-radius: 1rem;
        border: 4px solid var(--uw-bw-ink);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
    }

    .uw-bw-hero__frame--second .uw-bw-hero__chip {
        left: 0.625rem;
        bottom: 0.625rem;
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }

    .uw-bw-hero__frame--main .uw-bw-hero__chip {
        left: auto;
        right: 1.25rem;
        bottom: 1.25rem;
    }

    .uw-bw-hero__amount {
        font-size: 2.25rem;
    }
}

@media (min-width: 1600px) {
    .uw-bw-hero__inner {
        max-width: 96rem;
    }

    .uw-bw-hero__lead {
        font-size: 1.25rem;
    }
}

/* ---- Streamer ----------------------------------------------------------- */

.uw-bw-streamer {
    position: relative;
    background: var(--uw-bw-ink);
    color: var(--uw-bw-text);
    border-bottom: 1px solid rgba(201, 166, 120, 0.25);
}

.uw-bw-streamer[hidden] {
    display: none;
}

.uw-bw-streamer__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.75rem;
    min-height: 2.5rem;
    padding: 0.5rem 3rem;
    font-size: 0.875rem;
    line-height: 1.3;
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.uw-bw-streamer__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.uw-bw-streamer__tag {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--uw-bw-wood);
}

.uw-bw-streamer__text {
    font-weight: 600;
}

.uw-bw-streamer__cta {
    color: var(--uw-bw-green-hi);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.uw-bw-streamer__link:hover .uw-bw-streamer__cta {
    color: #86efac;
}

.uw-bw-streamer__close {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(245, 240, 232, 0.7);
    cursor: pointer;
}

.uw-bw-streamer__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.uw-bw-streamer__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 0;
}

/* ---- Badge -------------------------------------------------------------- */

.uw-bw-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.625rem;
    border-radius: 999px;
    background: var(--uw-bw-ink);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.55);
}

.uw-bw-badge--price {
    font-size: 0.75rem;
    padding: 0.4375rem 0.75rem;
    box-shadow: none;
    vertical-align: middle;
}

/* ---- Category page ------------------------------------------------------ */

.uw-bw-archive__header {
    background:
        radial-gradient(ellipse 50% 80% at 90% 0%, rgba(201, 166, 120, 0.16), transparent 70%),
        radial-gradient(ellipse 40% 70% at 0% 100%, rgba(21, 128, 61, 0.14), transparent 70%),
        var(--uw-bw-ink);
    color: var(--uw-bw-text);
}

.uw-bw-archive__header {
    position: relative;
    overflow: hidden;
}

.uw-bw-archive__art {
    display: none;
}

.uw-bw-archive__inner {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 2rem;
}

.uw-bw-archive__title {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.uw-bw-archive__intro {
    max-width: 42rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(245, 240, 232, 0.85);
}

.uw-bw-archive__intro p {
    margin: 0 0 0.75rem;
}

.uw-bw-archive__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.875rem;
    margin: 1.25rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.uw-bw-archive__sep {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--uw-bw-muted);
}

.uw-bw-archive__jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.uw-bw-archive__jump a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--uw-bw-line);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--uw-bw-text);
    text-decoration: none;
}

.uw-bw-archive__jump a:hover {
    border-color: var(--uw-bw-wood);
}

.uw-bw-archive__jump a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.uw-bw-archive__jump span {
    color: var(--uw-bw-muted);
    font-variant-numeric: tabular-nums;
}

.uw-bw-archive__group {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
    scroll-margin-top: 6rem;
}

.uw-bw-archive__group:last-of-type {
    padding-bottom: 4rem;
}

.uw-bw-archive__group-title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a3c2e;
}

@media (min-width: 640px) {
    .uw-bw-archive__inner {
        padding: 3.5rem 2rem 2.75rem;
    }
}

@media (min-width: 1024px) {
    .uw-bw-archive__art {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 48%;
        object-fit: cover;
        opacity: 0.55;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
        mask-image: linear-gradient(to right, transparent, #000 45%);
    }

    .uw-bw-archive__inner {
        padding: 4.5rem 2rem 3.25rem;
    }

    .uw-bw-archive__group-title {
        font-size: 1.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uw-bw-btn {
        transition: none;
    }

    .uw-bw-btn:hover {
        transform: none;
    }
}

/* The client-side cut-off hides campaign elements with [hidden]; keep that
   stronger than the display values above. */
[data-uw-bw][hidden] {
    display: none !important;
}

/* Product page (single-product-vildmark.php): the image corner holder
   loses its red pill, and the buy panel gets the badge above "Dine valg". */
.uw-vm-sale.uw-vm-sale--bw {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.uw-bw-panel-badge {
    margin: 0 0 0.75rem;
}

/* ---- Front page Classic block (template-parts/black-week-classic.php) --- */

.uw-bwc {
    background: var(--uw-bw-ink-2);
    border-top: 1px solid var(--uw-bw-line);
    color: var(--uw-bw-text);
}

.uw-bwc__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.uw-bwc__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
}

.uw-bwc__lead {
    max-width: 34rem;
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: rgba(245, 240, 232, 0.85);
}

.uw-bwc__photo {
    margin: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    aspect-ratio: 4 / 3;
    background: #0d0c0b;
}

.uw-bwc__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uw-bwc__list {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.uw-bwc__row {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    grid-template-areas:
        "thumb name chev"
        "thumb prices chev"
        "thumb save chev";
    align-items: center;
    column-gap: 0.875rem;
    row-gap: 0.125rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--uw-bw-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.uw-bwc__row:hover,
.uw-bwc__row:focus-visible {
    border-color: rgba(201, 166, 120, 0.55);
    background: rgba(255, 255, 255, 0.06);
}

.uw-bwc__thumb {
    grid-area: thumb;
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #fff;
}

.uw-bwc__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.uw-bwc__name {
    grid-area: name;
    font-weight: 600;
    color: #fff;
}

.uw-bwc__cap {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(245, 240, 232, 0.6);
}

.uw-bwc__prices {
    grid-area: prices;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.uw-bwc__now {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--uw-bw-wood);
}

.uw-bwc__was {
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.55);
}

.uw-bwc__save {
    grid-area: save;
    justify-self: start;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--uw-bw-green-hi);
}

.uw-bwc__chev {
    grid-area: chev;
    color: var(--uw-bw-muted);
}

.uw-bwc__more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-weight: 600;
    color: var(--uw-bw-wood);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.uw-bwc__more:hover {
    color: #fff;
}

@media (min-width: 640px) {
    .uw-bwc__row {
        grid-template-columns: 4rem minmax(0, 1fr) auto auto;
        grid-template-areas: "thumb name save chev" "thumb prices save chev";
    }

    .uw-bwc__thumb {
        width: 4rem;
        height: 4rem;
    }

    .uw-bwc__save {
        justify-self: end;
        padding: 0.25rem 0.625rem;
        border-radius: 999px;
        background: rgba(34, 197, 94, 0.12);
    }
}

@media (min-width: 1024px) {
    .uw-bwc__inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-areas: "photo head" "photo list";
        align-items: start;
        column-gap: 3.5rem;
        row-gap: 1.5rem;
        padding: 4.5rem 2rem;
    }

    .uw-bwc__head {
        grid-area: head;
    }

    .uw-bwc__photo {
        grid-area: photo;
        align-self: stretch;
        aspect-ratio: auto;
        min-height: 26rem;
    }

    .uw-bwc__list-wrap {
        grid-area: list;
    }
}
