/* Christmas 2026 - a South African summer Christmas (Nathan, 2026-12-02: "christmas vibe with the trees lights, tinsel,
   but sun, beaches, umbrellas, blow up beach ball, maybe some bush holiday vibes"; mockups approved the same day). Loaded by
   _Layout ONLY while Shared.Domain.Christmas.ThemeOn (2 Dec to the end of Boxing Day), with html.theme-christmas; never on
   the admin pages. The brand navy becomes evergreen through the site's own custom properties, so headings, links and the
   nav follow; the yellow stays (the sun), and red stays red - it means "sale" on this site. */

:root.theme-christmas {
    --navy: #0B4A2F;
    --navy-800: #083823;
    --ring: 0 0 0 3px rgba(11,74,47,.22);
    --xm-green: #0B4A2F;
    --xm-green-dark: #083823;
    --xm-gold: #FFD23F;
    --xm-tint: #F0F8F2;
    --xm-tinsel: repeating-linear-gradient(90deg, #E8B520 0 3px, #FFE27A 3px 5px, #C9961A 5px 7px, #FFF1B0 7px 8px);
}

/* Gold tinsel along the very top, and a Santa hat on the logo's S. */
.theme-christmas .sw-topstrip { height: 6px; background: var(--xm-tinsel); }
.theme-christmas .sw-brand .mark { position: relative; }
.theme-christmas .sw-brand .mark::after {
    content: ""; position: absolute; top: -16px; left: -12px; width: 32px; height: 26px; pointer-events: none;
    transform: rotate(-16deg);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M5 18 C7 7 16 1 25 5 C21 8 21 12 24 18 Z' fill='%23E4022E'/%3E%3Crect x='2' y='15' width='25' height='6' rx='3' fill='%23fff'/%3E%3Ccircle cx='25.5' cy='5' r='3.6' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.theme-christmas .sw-footer .sw-brand .mark::after { display: none; }

/* ---------- The strip under the header: fairy lights on green ---------- */
.xm-strip { position: relative; background: linear-gradient(90deg, var(--xm-green-dark), var(--xm-green) 50%, var(--xm-green-dark)); color: #fff; border-bottom: 3px solid var(--red); }
.xm-lights { position: absolute; top: 0; left: 0; width: 100%; height: 26px; display: block; pointer-events: none; }
.xm-strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 28px 22px 11px; text-align: center; }
.xm-merry { font-family: 'Pacifico', cursive; font-size: 1.35rem; color: var(--xm-gold); line-height: 1.25; }
.xm-strip-text { font-weight: 600; font-size: .95rem; }
.xm-left { display: inline-block; background: var(--red); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 5px 12px; white-space: nowrap; line-height: 1.2; }
.xm-left-gold { background: var(--xm-gold); color: var(--xm-green); font-size: .9rem; padding: 8px 16px; }
.xm-strip-cta { color: #fff; font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.xm-strip-cta:hover { color: var(--xm-gold); }
@media (max-width: 575.98px) {
    .xm-strip-in { gap: 4px 10px; padding: 28px 14px 10px; }
    .xm-merry { width: 100%; font-size: 1.2rem; }
    .xm-strip-text { font-size: .88rem; line-height: 1.45; }
}

/* ---------- The home page hero: a summer sky, the scene beside the headline ---------- */
.theme-christmas .hero { background: linear-gradient(180deg, #A8E0F4 0%, #D4F1FA 48%, #FFF6E0 82%, #F7E4B4 100%); color: var(--text); }
.theme-christmas .hero::before, .theme-christmas .hero::after { display: none; }
.theme-christmas .hero h1 { color: var(--xm-green); }
.theme-christmas .hero h1 .foil { color: var(--red); }
.theme-christmas .hero p.lead { color: var(--text); }
.theme-christmas .hero .btn-outline-light2 { background: #fff; border-color: var(--xm-green); color: var(--xm-green); }
.theme-christmas .hero .btn-outline-light2:hover { background: var(--xm-tint); }
/* The rating and follow pills were drawn for the navy hero: white pills with dark text on the sky. */
.theme-christmas .hero-a .hero-rating .g-rating,
.theme-christmas .hero-a .hero-rating .tp-rating,
.theme-christmas .hero-a .hero-rating .fb-follow { background: #fff; color: var(--text); border-color: #DCE3EA; }
.theme-christmas .hero-a .hero-rating .g-rating:hover,
.theme-christmas .hero-a .hero-rating .tp-rating:hover,
.theme-christmas .hero-a .hero-rating .fb-follow:hover { color: var(--text); }
.theme-christmas .hero-a .hero-rating .g-sep { background: rgba(11,74,47,.2); }
.theme-christmas .hero-rail .hs-slide { box-shadow: 0 8px 22px rgba(11,74,47,.14); }
.theme-christmas .hero-rail .hs-dot::before { background: rgba(11,74,47,.28); }
.theme-christmas .hero-rail .hs-dot.on::before { background: var(--red); }
.theme-christmas .hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.theme-christmas .hero-top .hero-copy { flex: 1 1 520px; min-width: 0; }
.theme-christmas .hero-stack .hero-copy h1 { white-space: normal; }
.xm-hero-scene { flex: 1 1 400px; max-width: 540px; min-width: 0; margin: 0 auto; }
.xm-hero-scene svg { display: block; width: 100%; height: auto;
    /* soft edges, so the beach melts into the sky instead of ending in a box */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 96%, transparent 100%), linear-gradient(180deg, #000 76%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 96%, transparent 100%), linear-gradient(180deg, #000 76%, transparent 100%);
    mask-composite: intersect; }
@media (max-width: 575.98px) { .xm-hero-scene { max-width: 420px; } }

/* ---------- Shared bits ---------- */
.xm-kicker { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 4px; }
.xm-gold { color: var(--xm-gold); }

/* ---------- The Christmas special (home page) ---------- */
.xm-special { margin: 28px 0 8px; padding: 24px 26px 26px; border-radius: 18px; background: #fff; border: 2px solid var(--xm-green); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.xm-special::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--xm-tinsel); }
.xm-special-head { margin: 8px 0 18px; }
.xm-special-title { font-family: 'Pacifico', cursive; font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--xm-green); margin: 0 0 6px; line-height: 1.3; }
.xm-special-sub { margin: 0; color: var(--text); max-width: 70ch; }
.xm-deals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xm-deal { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.xm-deal:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.xm-deal-img { position: relative; display: block; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; background: var(--bg-2); }
.xm-deal-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; padding: 10px; }
.xm-off { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: .95rem; border-radius: 999px; padding: 5px 11px; }
.xm-deal-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.xm-deal-name { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--xm-green); line-height: 1.25; }
.xm-deal-price { font-size: 1.05rem; }
.xm-deal-price s { color: var(--muted); margin-right: 4px; }
.xm-deal-price strong { color: var(--red); font-size: 1.25rem; }
.xm-deal-note { font-size: .8rem; color: var(--muted); }
/* On a phone the three cards are rows - picture left, price right - so none sits alone on a line. */
@media (max-width: 575.98px) {
    .xm-special { padding: 22px 16px 18px; }
    .xm-deals { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .xm-deal { flex-direction: row; align-items: center; }
    .xm-deal-img { flex: 0 0 104px; width: 104px; aspect-ratio: 3 / 4; }
    .xm-deal-img img { padding: 6px; }
    .xm-off { top: 6px; left: 6px; font-size: .74rem; padding: 3px 8px; }
    .xm-deal-body { padding: 10px 12px; }
}

/* ---------- "Want it under the tree?" (home page) ---------- */
.xm-delivery { position: relative; overflow: hidden; margin: 24px 0 8px; border-radius: 20px; color: #fff;
               background: radial-gradient(120% 140% at 85% 0%, #14663F 0%, var(--xm-green) 55%, var(--xm-green-dark) 100%);
               padding: 48px 32px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.xm-delivery-copy { flex: 1 1 480px; min-width: 0; }
.xm-delivery .xm-kicker { color: var(--xm-gold); }
.xm-delivery-title { font-family: 'Pacifico', cursive; font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: #fff; margin: 4px 0 10px; line-height: 1.3; }
.xm-delivery-text { font-size: 1.05rem; line-height: 1.55; color: #E9F5EE; margin: 0 0 10px; max-width: 62ch; }
.xm-delivery-paxi { font-size: .9rem; color: #B9D9C6; margin: 0 0 18px; }
.xm-delivery-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.xm-btn-line { border: 1.5px solid rgba(255,255,255,.6); color: #fff; font-weight: 800; }
.xm-btn-line:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.xm-cal-wrap { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto; }
.xm-cal { width: 180px; display: flex; flex-direction: column; text-align: center; border-radius: 16px; overflow: hidden; background: #fff; color: var(--xm-green);
          box-shadow: 0 14px 30px rgba(0,0,0,.28); transform: rotate(3deg); font-family: 'Montserrat', sans-serif; }
.xm-cal-head { background: var(--red); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; padding: 10px; }
.xm-cal-day { font-weight: 900; font-size: 4.6rem; line-height: 1; padding-top: 12px; }
.xm-cal-month { font-weight: 800; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 0 14px; }
@media (max-width: 575.98px) { .xm-delivery { padding: 44px 18px 24px; } }

/* ---------- "Want it for Christmas?" on item and collection pages ---------- */
.xm-orderby { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px;
              border: 2px solid var(--xm-green); border-radius: 14px; background: var(--xm-tint); padding: 18px 18px 16px; }
.xm-orderby::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--xm-tinsel); }
.xm-orderby-icon { flex: 0 0 44px; width: 44px; height: 44px; display: block; }
.xm-orderby-icon svg { width: 100%; height: 100%; display: block; }
.xm-orderby-body { flex: 1; min-width: 0; }
.xm-orderby-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--xm-green); margin: 0; }
.xm-orderby-text { margin: 4px 0 10px; font-size: .95rem; line-height: 1.5; }
.xm-orderby-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.xm-orderby-paxi { font-size: .84rem; color: #4F5F56; }
.xm-orderby-compact { align-items: center; padding: 15px 16px 12px; margin: 14px 0 6px; }
.xm-orderby-compact .xm-orderby-icon { flex-basis: 34px; width: 34px; height: 34px; }
.xm-orderby-compact .xm-orderby-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.xm-orderby-compact .xm-orderby-text { margin: 0; flex: 1 1 320px; }
.xm-orderby-compact .xm-orderby-title { font-size: 1rem; }
.xm-orderby-late { border-color: #D98E00; background: #FFF7E6; }
.xm-orderby-late .xm-orderby-title { color: #7A4A00; }
.xm-orderby-late .xm-orderby-text { color: #4A3A1A; margin-bottom: 0; }
.xm-orderby-clock { color: #B26B00; }

/* ---------- Checkout: PUDO for Christmas ---------- */
.xm-checkout { border-left: 3px solid var(--xm-green); padding-left: 10px; }
