/* The winter photo starts below the fixed header; hero galleries on other pages
   still use their original transparent-header layout. */
body.winter-theme:has(.winter-welcome) .yukka_header_spacer {
    display: block;
    height: var(--yukka-header-height, 105px);
}
body.winter-theme:has(.winter-welcome) .header:not(.is-stuck)::before,
body.winter-theme:has(.winter-welcome) .header:not(.is-stuck)::after {
    height: calc(var(--winter-gutter) * 1.65);
}
body.winter-theme .winter-welcome {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(420px, 33.7vw, 820px);
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
    color-scheme: light;
    color: #1b364b;
    background: #edf4f8;
}
.winter-welcome-photo,
.winter-welcome-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.winter-welcome-photo { z-index: -2; }
.winter-welcome-photo img {
    display: block;
    object-fit: cover;
    object-position: 72% 50%;
}
.winter-welcome::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(247 252 255 / 65%) 9%, rgb(248 252 255 / 60%) 25%, transparent 46%);
}
.winter-welcome-inner {
    width: min(1680px, 85%);
    margin-inline: auto;
    padding-block: clamp(36px, 3.5vw, 80px);
}
.winter-welcome-copy { width: min(40vw, 560px); }
body.winter-theme .winter-welcome h1 {
    --yukka-font-display: "Cormorant Garamond", Georgia, serif;
    margin: 0;
    color: #142f45;
    font: 600 clamp(43px, 3.8vw, 76px)/.98 var(--yukka-font-display);
    letter-spacing: -.037em;
    text-wrap: balance;
}
.winter-welcome-copy p {
    margin: 18px 0 25px;
    color: #223d50;
    font: 400 clamp(15px, 1.1vw, 20px)/1.45 var(--yukka-font-display);
}
.winter-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
body.winter-theme .winter-welcome-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 45px;
    padding: 9px clamp(14px, 1.5vw, 26px);
    border: 1px solid #8295a2;
    border-radius: 6px;
    background: rgb(255 255 255 / 83%);
    color: #193448;
    font: 400 clamp(14px, 1vw, 17px)/1.2 var(--yukka-font-display);
    text-decoration: none;
}
body.winter-theme .winter-welcome-actions a:first-child {
    border-color: transparent;
    color: white;
    background: linear-gradient(150deg, #629b0d, #487b08);
}
body.winter-theme .winter-welcome-actions a:hover { background: white; border-color: #526c7f; }
body.winter-theme .winter-welcome-actions a:first-child:hover { background: #437307; border-color: transparent; }
.winter-welcome-actions a:focus-visible { outline: 2px solid #204662; outline-offset: 3px; }
.winter-welcome-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 355px;
    margin: clamp(22px, 2.2vw, 38px) 0 0;
    padding: 0;
    list-style: none;
}
.winter-welcome-stats li {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 7px;
    text-align: center;
    color: #203b50;
    font: 400 14px/1.3 var(--yukka-font-display);
}
.winter-welcome-stats svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (min-width: 701px) and (max-width: 1099px) {
    .winter-welcome-copy { width: 43vw; }
    .winter-welcome-inner { width: 89%; }
    .winter-welcome::before {
        background: linear-gradient(90deg, rgb(246 251 255 / 94%), rgb(245 251 255 / 85%) 32%, transparent 57%);
    }
}
@media (max-width: 700px) {
    body.winter-theme .winter-welcome {
        min-height: 0;
        display: block;
        background: linear-gradient(160deg, #f6fafc, #eaf3f8);
    }
    .winter-welcome-photo {
        display: block;
        position: relative;
        z-index: 0;
        height: auto;
        aspect-ratio: 31 / 18;
    }
    .winter-welcome::before { display: none; }
    .winter-welcome-photo::before,
    .winter-welcome-photo::after {
        content: "";
        position: absolute;
        z-index: 1;
        top: 0;
        width: clamp(24px, 8vw, 48px);
        aspect-ratio: 310 / 510;
        background: url("../images/header-left.webp?v=2") left top / contain no-repeat;
        pointer-events: none;
    }
    .winter-welcome-photo::after {
        right: 0;
        background-image: url("../images/header-right.webp?v=2");
    }
    .winter-welcome-inner { width: auto; padding: 24px clamp(18px, 5vw, 36px) 26px; }
    .winter-welcome-copy { width: auto; }
    body.winter-theme .winter-welcome h1 { max-width: 520px; font-size: clamp(35px, 8vw, 49px); }
    .winter-welcome-copy p { margin: 12px 0 18px; }
    .winter-welcome-actions { gap: 8px; }
    body.winter-theme .winter-welcome-actions a { padding-inline: 13px; gap: 7px; }
    .winter-welcome-stats { margin-top: 20px; }
}

/* The transparent crest overlaps the photograph. Its base shares the colour
   of the frost at the top of the catalogue, across the full viewport. */
.winter-welcome:has(+ .yukka_home_storefront)::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: clamp(40px, 5vw, 92px);
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 55%, #f1f6fb 99%),
        url("../images/showcase-snow-edge.webp") center / 100% 100% no-repeat;
}
.winter-welcome:has(+ .yukka_home_storefront) .winter-welcome-inner {
    position: relative;
    z-index: 1;
}
body.winter-theme .yukka_home_storefront {
    --showcase-tree-width: clamp(50px, max(6vw, (100vw - 1320px) / 2 - 8px), 280px);
    --yukka-navy: #19394e;
    --yukka-ink: #19394e;
    --yukka-text: #2d4659;
    --yukka-muted: #526979;
    --yukka-highlight: #447809;
    --yukka-border: #cfdee8;
    color-scheme: light;
    color: var(--yukka-text);
    position: relative;
    isolation: isolate;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: clamp(28px, 3.2vw, 58px) 0 clamp(38px, 4.8vw, 84px);
    background: linear-gradient(#f1f6fb, #edf5fa 220px, #f1f7fb 78%, var(--yukka-bg-product));
}
.winter-theme .yukka_home_storefront_inner {
    width: min(1320px, calc(100% - clamp(32px, 8vw, 120px)));
    padding: 0;
}
.winter-theme .yukka_home_storefront_inner::before,
.winter-theme .yukka_home_storefront_inner::after {
    --frost-fade: to right;
    content: "";
    position: absolute;
    top: 50%;
    bottom: 0;
    z-index: -1;
    width: clamp(24px, max(7vw, (100vw - 1320px) / 2), 430px);
    pointer-events: none;
    background: url("../images/showcase-frost.webp") left top / auto 100% no-repeat;
    filter: brightness(.71) contrast(2.45);
    mask-image: linear-gradient(var(--frost-fade), black 24%, transparent),
        linear-gradient(transparent, black 8%, black 76%, transparent);
    mask-composite: intersect;
}
.winter-theme .yukka_home_storefront_inner::before {
    left: 0;
}
.winter-theme .yukka_home_storefront_inner::after {
    --frost-fade: to left;
    right: 0;
    background-position: right top;
}
.winter-theme .yukka_home_storefront::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .86;
    background:
        url("../images/showcase-firs-left.webp") left bottom / var(--showcase-tree-width) auto no-repeat,
        url("../images/showcase-firs-right.webp") right bottom / var(--showcase-tree-width) auto no-repeat;
}
@media (min-width: 821px) {
    .winter-theme .yukka_home_storefront_inner {
        width: min(1320px, 87%);
    }
}
.winter-theme .yukka_home_storefront_head {
    gap: clamp(14px, 2.5vw, 36px);
    margin-bottom: clamp(20px, 2vw, 34px);
}
.winter-theme .yukka_home_storefront .yukka_home_kicker { color: #496b7d; }
.winter-theme .yukka_home_storefront_title {
    margin-bottom: 10px;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.winter-theme .yukka_home_storefront_sub { max-width: 720px; line-height: 1.5; }
.winter-theme .yukka_home_storefront .yukka_home_popular_link { color: #304f64; border-color: #aabecb; }
.winter-theme .yukka_home_storefront .yukka_home_popular_link:hover { color: #447809; }
.winter-theme .yukka_home_storefront .yukka_product_grid_inner { gap: clamp(10px, 1.45vw, 23px); }
.winter-theme .yukka_home_storefront .yukka_product_card {
    --yukka-bg-product: #fff;
    padding: clamp(12px, 1.5vw, 25px);
    border: 1px solid #d3e1eb;
    border-radius: 12px;
    background: var(--winter-card-surface);
    box-shadow: inset 0 1px white, 0 4px 18px rgb(39 76 102 / 6%);
}
.winter-theme .yukka_home_storefront .yukka_product_card_photo_wrap {
    width: min(80%, 150px);
    align-self: center;
    filter: drop-shadow(0 5px 5px rgb(39 68 88 / 12%));
}
.winter-theme .yukka_home_storefront .yukka_product_card_prices { border-color: #d7e3ec; }
.winter-theme .yukka_home_storefront .yukka_product_card .yukka_product_card_name { color: var(--yukka-navy); }
.winter-theme .yukka_home_storefront .yukka_product_card .yukka_product_card_name:hover { color: var(--yukka-highlight); }
.winter-theme .yukka_home_storefront :focus-visible { outline: 2px solid #447809; outline-offset: 2px; }
@media (max-width: 820px) {
    body.winter-theme .yukka_home_storefront {
        --showcase-tree-width: clamp(44px, 14vw, 98px);
        padding-bottom: calc(var(--showcase-tree-width) * 635 / 550 + 10px);
    }
    .winter-theme .yukka_home_storefront_head .yukka_home_popular_link {
        align-self: center;
        margin: 0 0 9px;
    }
}
@media (max-width: 700px) {
    .winter-welcome:has(+ .yukka_home_storefront) .winter-welcome-inner { padding-bottom: 44px; }
    .winter-theme .yukka_home_storefront .yukka_product_card { padding: 12px; }
    .winter-theme .yukka_home_storefront_title { max-width: 18em; }
}
