/* Loaded only for the annual Nairobi festive season. */
:root[data-festive] {
    --jd-primary: #875022;
    --jd-primary-dark: #481021;
    --jd-primary-soft: #f6eedf;
    --jd-page: #fcfaf5;
    --season-ink: #481021;
    --season-gold: #e9c988;
    --season-green: #153d32;
    --season-photo: url("../images/festive/christmas-1280.webp");
}
:root[data-festive="new-year"] {
    --jd-primary: #12605c;
    --jd-primary-dark: #0c3034;
    --jd-primary-soft: #e7f1ec;
    --season-ink: #0c3034;
    --season-photo: url("../images/festive/new-year-1280.webp");
}
#site-header .header-top { background: var(--season-ink); }
#site-header .header-middle { border-bottom: 2px solid #cfaa6c; }
.jd-season-greeting {
    display: flex; justify-content: center; align-items: center; gap: 12px; padding: 5px 14px;
    color: #65431f; background: #faf1de; font: italic 16px/1.4 Georgia, serif;
}
.jd-season-greeting span { font: 12px/1 Georgia, serif; }
.jd-home-hero { padding: clamp(18px, 3vw, 44px) 0; background: #f7f0e4; }
.jd-home-hero .container { grid-template-columns: minmax(0, 2.55fr) minmax(220px, 1fr); gap: clamp(18px, 2vw, 32px); }
.jd-home-hero .jd-hero-content {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    min-height: clamp(385px, 33vw, 540px); padding: clamp(25px, 3vw, 54px);
    background: linear-gradient(90deg,rgba(20,8,10,.85),rgba(20,8,10,.53) 42%,transparent 72%), var(--season-photo) center / cover, var(--season-ink);
    border-radius: 5px;
}
.jd-season-copy { width: 54%; }
.jd-home-hero .jd-season-edition { margin: 0 0 18px; font-size: 12px; letter-spacing: .12em; font-weight: 700; color: var(--season-gold); text-transform: uppercase; }
.jd-home-hero .jd-season-copy h1 { font: 500 clamp(46px,5.2vw,88px)/.99 Georgia, serif; letter-spacing: -.052em; color: #fff9e9; }
.jd-home-hero .jd-season-intro { color: #fff8ef; font-size: 16px; line-height: 1.5; }
.jd-hero-actions .btn { font-size: 13px; }
.jd-home-hero .jd-hero-visual { min-height: 0; padding: 10px; }
.jd-home-hero .jd-hero-carousel-track { min-height: 337px; }
.jd-home-hero .jd-hero-product-card {
    padding: 25px 19px 14px; border: 1px solid #d5c29a; border-radius: 4px;
    background: #fff9e8 url("../images/festive/gift-paper.webp") center / 100% 100%;
    box-shadow: 0 10px 24px #42240c21;
}
.jd-home-hero .jd-hero-product-card img { height: 200px; border: 5px solid ivory; background: #fff; border-radius: 2px; }
.jd-home-hero .jd-hero-product-label { color: var(--season-ink); }
.jd-home-hero .jd-hero-carousel-controls { margin-top: 12px; }
.jd-home-hero .jd-hero-control { color: var(--season-ink); border-color: #cbb995; background: #fffaf0; }
.jd-home-hero .jd-hero-dot { background: #b6a98d; }
.jd-home-hero .jd-hero-dot.is-active { background: var(--season-ink); }
.jd-gift-mount { padding: clamp(12px,1.65vw,26px); background: #fff7e3 url("../images/festive/gift-paper.webp") center / 100% 100%; }
.jd-category-card .jd-gift-mount img { display: block; border: 4px solid #fffdf6; border-radius: 1px; background: #fff; box-shadow: 0 2px 7px #39260b24; }
.jd-category-card { background: #fffdf8; border-color: #e2d5c0; }
.jd-category-card:nth-child(even) .jd-gift-mount img { transform: rotate(1.7deg); }
.jd-category-card:nth-child(odd) .jd-gift-mount img { transform: rotate(-1.7deg); }
.jd-section.jd-flash-sale { background: #fbf4e7; }
.jd-flash-sale .jd-section-head {
    align-items: center; padding: clamp(24px, 4vw, 58px); min-height: 154px; border-radius: 5px;
    background: linear-gradient(90deg,#102d27 15%, #102d27e8 42%,#102d2733 82%), var(--season-photo) right 43% / cover;
}
.jd-flash-sale .jd-flash-heading .section-title { color: #fff8e8; font: 500 clamp(29px, 3.4vw, 54px)/1.1 Georgia,serif; }
.jd-flash-heading i { color: var(--season-gold); font-size: .58em; vertical-align: middle; }
.jd-flash-sale .jd-section-link { padding: 8px 13px; border-radius: 4px; background: #fff7e7; color: #294336; }
.jd-flash-sale .jd-browsing-card { border-top: 3px solid #bd9956; }
.jd-flash-sale .jd-flash-clock { background: var(--season-ink); }
.jd-shop-page { --shop-blue: var(--jd-primary); }
.footer { border-top: 3px solid #cba567; background: #112e29 !important; }
.footer .footer-bottom { background: #0b211e; }
.jd-admin-page .header-dashboard { border-bottom: 2px solid #c6a264; }
.jd-login-premium .login-box { border-top: 3px solid #c6a264; }
@media (max-width: 991.98px) {
    .jd-home-hero .container { grid-template-columns: 1fr; }
    .jd-home-hero .jd-hero-visual { display: none; }
}
@media (max-width: 640px) {
    :root[data-festive="christmas"] { --season-photo: url("../images/festive/christmas-640.webp"); }
    :root[data-festive="new-year"] { --season-photo: url("../images/festive/new-year-640.webp"); }
    .jd-home-hero .jd-hero-content {
        min-height: 410px; padding: 26px 20px; justify-content: flex-end;
        background: linear-gradient(0deg,rgba(17,10,15,.98),rgba(17,10,15,.78) 38%,transparent 78%), var(--season-photo) 74% top / cover;
    }
    .jd-season-copy { width: 100%; }
    .jd-home-hero .jd-season-edition { margin-bottom: 8px; }
    .jd-home-hero .jd-season-copy h1 { margin-bottom: 8px; }
    .jd-home-hero .jd-season-intro { max-width: 32ch; margin-bottom: 16px; }
    .jd-home-hero .jd-hero-actions { display: flex; gap: 8px; }
    .jd-home-hero .jd-hero-actions .btn { width: auto; min-height: 42px; padding: 10px 13px; }
    .jd-flash-sale .jd-section-head { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
}

[data-festive] .jd-services-page__hero, [data-festive] .jd-about-hero,
[data-festive] .contact-page-redesign__hero, [data-festive] .jd-client-review-hero {
    background: linear-gradient(95deg, #102e29 8%, #17392fed 45%, #163b3094), var(--season-photo) right center / cover;
}
[data-festive] .jd-services-page__hero::before { background: none; }
[data-festive] .main .page-header { background: #f6eedf; }
[data-festive] .jd-services-page__cta, [data-festive] .jd-about-cta { background: linear-gradient(115deg, #102d27, #285643); }
[data-festive] body.jd-login-premium { background: linear-gradient(105deg,#f9f3e9 30%,#f7ede3e8 62%,#f4dfc0bb), var(--season-photo) right center / cover; }

@media (max-width: 991.98px) {
    .jd-home-hero .jd-hero-visual { display: block; padding: 0; }
    .jd-home-hero .jd-hero-carousel { width: 100%; }
    .jd-home-hero .jd-hero-carousel-track { min-height: 110px; }
    .jd-home-hero .jd-hero-product-card { display: grid; grid-template-columns: 82px minmax(0,1fr); grid-template-rows: auto auto auto; align-content: center; column-gap: 14px; padding: 10px 24px; box-shadow: none; }
    .jd-home-hero .jd-hero-product-card.is-active { transform: none; }
    .jd-home-hero .jd-hero-product-card img { grid-row: 1 / 4; height: 82px; }
    .jd-home-hero .jd-hero-product-label { margin: 0; }
    .jd-home-hero .jd-hero-product-card strong { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; }
    .jd-home-hero .jd-hero-carousel-controls { margin-top: 6px; }
}

/* Gift-wrap treatment for shopping actions. */
:root[data-festive] {
    --gift-bright: #9e2940;
    --gift-shade: #5c1426;
    --gift-edge: #ab8150;
    --gift-foil: linear-gradient(90deg,#bc8648,#ffe5a6 42%,#d4a45e 78%,#efcb8d);
}
:root[data-festive="new-year"] {
    --gift-bright: #23665e;
    --gift-shade: #0b3439;
    --gift-edge: #a78e56;
}
[data-festive] :is(.jd-hero-actions .btn-light,.jd-flash-sale .jd-section-link,.jd-service-btn--light) {
    color: #332615; background: linear-gradient(120deg,#fff4ce,#e9c88b); border: 1px solid #eed59b;
    box-shadow: inset 0 1px 0 #fff9e3, 0 2px 5px #25130221;
}
[data-festive] :is(.jd-shop-page__details-link,.jd-home-product-card__details,.btn-outline-primary) {
    color: var(--season-ink); background: #fffaf0; border-color: #c9af86;
}
[data-festive] :is(.jd-catalog-filters .btn-primary,.contact-page-redesign__submit,.cart-card .btn-block:not(.btn-outline-primary)) {
    color: white; border-color: var(--gift-edge); background-image: linear-gradient(105deg,var(--season-green),#235244);
}
[data-festive] body :is(.add-to-cart-btn,#add-to-cart-modal-confirm) {
    color: #fffaf2; border: 1px solid var(--gift-edge);
    background: var(--gift-foil) right 14px center / 7px 100% no-repeat,
        linear-gradient(110deg,var(--gift-bright),var(--gift-shade) 80%);
    box-shadow: inset 0 1px 0 #ffffff24, 0 2px 4px #32121c24;
}
[data-festive] body :is(.add-to-cart-btn:not(.jd-browsing-add),#add-to-cart-modal-confirm) {
    position: relative; padding-inline: 12px 39px; border-radius: 7px; min-height: 44px;
}
[data-festive] body :is(.add-to-cart-btn:not(.jd-browsing-add),#add-to-cart-modal-confirm)::after {
    content: ""; position: absolute; left: auto; right: 6px; top: 50%; margin: -7px 0 0;
    width: 23px; height: 14px; pointer-events: none;
    background: conic-gradient(from 35deg,#e5b667,#fff2c6,#bc823c,#efc984,#fff2c6,#b87c36,#e5b667);
    clip-path: polygon(0 14%,14% 5%,46% 41%,55% 41%,86% 5%,100% 14%,92% 73%,65% 64%,76% 100%,52% 75%,29% 100%,36% 64%,8% 73%);
}
[data-festive] body .jd-browsing-add { background-size: 3px 100%, auto; background-position: right 5px center, center; }
@media (hover:hover) {
    [data-festive] body :is(.add-to-cart-btn,#add-to-cart-modal-confirm,.jd-hero-actions .btn-light,.jd-flash-sale .jd-section-link):hover {
        filter: brightness(1.12); box-shadow: 0 3px 8px #39231338;
    }
}
[data-festive] body :is(.add-to-cart-btn,#add-to-cart-modal-confirm):active { box-shadow: inset 0 2px 4px #180b10a6; }
[data-festive] :is(.add-to-cart-btn,.btn,.jd-section-link,.jd-service-btn,.jd-shop-page__details-link,.jd-home-product-card__details):focus-visible {
    outline: 3px solid var(--season-ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff5d6;
}
[data-festive] body :is(.add-to-cart-btn,#add-to-cart-modal-confirm):is(:disabled,.disabled,[aria-disabled=true]) { opacity: .65; cursor: default; filter: none; }
/* The base primary-button shorthand is important, including inside the cart dialog. */
[data-festive] #add-to-cart-modal-confirm {
    background: var(--gift-foil) right 14px center / 7px 100% no-repeat,
        linear-gradient(110deg,var(--gift-bright),var(--gift-shade) 80%) !important;
}

/* Paper gift tags lead directly to the catalog's price and stock filters. */
.jd-gift-budgets { padding-block: clamp(18px,3vw,38px); }
.jd-gift-budgets-inner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 16px 24px; padding: clamp(16px,2.5vw,32px);
    border-block: 1px solid #c6aa77; background: #faf4e8;
}
.jd-gift-budgets h2 { margin: 0; color: var(--season-ink); font: 500 clamp(24px,2.6vw,36px)/1.12 Georgia,serif; }
.jd-budget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jd-budget-tags a {
    display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 14px;
    border: 1px solid #c4a570; border-radius: 18px 4px 4px 18px;
    background: #fffcf3; color: var(--season-ink); font-size: 14px; font-weight: 700;
}
.jd-budget-tags a::before {
    content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%;
    background: var(--season-ink); box-shadow: 0 0 0 2px #e4cca0;
}
.jd-budget-tags a:hover { background: var(--season-ink); color: #fff9ee; }
.jd-budget-tags a:focus-visible { outline: 3px solid var(--season-ink); outline-offset: 2px; }
[data-festive] .add-to-cart-modal-dialog { border: 1px solid #b99a60; background: #fffdf7; }
[data-festive] .add-to-cart-modal-header {
    min-height: 56px; display: flex; align-items: center; padding: 12px 60px 12px 22px;
    color: #fff9eb; font: 500 24px/1.2 Georgia,serif;
    background: linear-gradient(90deg,var(--season-ink) 25%,transparent 96%), var(--season-photo) right 42% / cover;
}
[data-festive] .add-to-cart-modal-close {
    width: 40px; height: 40px; top: 8px; right: 8px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid #d8bd89; background: var(--season-ink); color: #fff;
}
[data-festive] .add-to-cart-image { flex: 0 0 auto; padding: 8px; background: #f8ebd2 url("../images/festive/gift-paper.webp") center / 100% 100%; }
[data-festive] .add-to-cart-image img { display: block; object-fit: contain; background: white; border-radius: 2px; }
[data-festive] .add-to-cart-details { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .jd-budget-tags { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .jd-budget-tags a { padding-inline: 10px; font-size: 13px; }
    [data-festive] .add-to-cart-image img { width: clamp(68px,20vw,102px); height: clamp(68px,20vw,102px); }
}
.jd-budget-amount { white-space: nowrap; }
@media (max-width: 575.98px) {
    .jd-budget-tags a > span { font-size: 11px; font-weight: 500; line-height: 1.3; }
    .jd-budget-amount { display: block; font-size: 14px; }
}
[data-festive] #add-to-cart-modal-cancel { color: var(--season-ink); border-color: #b89c73; background: #fffaf0; }
