/* ===================================================================
   diam Systems — Christmas Festive Styles
   ===================================================================
   FESTIVE BLOCK START
   All rules here are gated behind .is-christmas on <body>.
   To remove: delete this file and the {% if christmas %} blocks in
   index.html, and the import in app.py.
   =================================================================== */

/* ----- Colour tokens (sampled from christmas-knit-bg.jpg) -----
   --xmas-red:    #b91c1c  (deep knit red)
   --xmas-cream:  #f5f0e8  (star motif cream)
   --xmas-green:  #1a4731  (forest-green trees)
   --xmas-pink:   #e8a0a8  (stripe pink)
   Bulb colours:  #f5a623 amber, #d94f3d red, #3bb86e green, #5b8dd9 blue, #c46bb0 pink
   ----------------------------------------------------------------- */

body.is-christmas {
    --xmas-red:   #b91c1c;
    --xmas-cream: #f5f0e8;
    --xmas-green: #1a4731;
    --xmas-pink:  #e8a0a8;
    --xmas-bulb-amber:  #f5a623;
    --xmas-bulb-red:    #d94f3d;
    --xmas-bulb-green:  #3bb86e;
    --xmas-bulb-blue:   #5b8dd9;
    --xmas-bulb-pink:   #c46bb0;
}

/* ===================================================================
   CHRISTMAS HERO SLIDE
   =================================================================== */

body.is-christmas .hero-slide--christmas {
    min-height: 75vh;
    position: relative;
    overflow: hidden;
    background-color: var(--xmas-red, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Full-bleed knit background */
body.is-christmas .hero-slide--christmas .xmas-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/christmas-knit-bg.jpg');
    background-size: cover;
    background-position: center 30%;  /* show star motifs */
    background-repeat: no-repeat;
    z-index: 0;
}

@media (max-width: 480px) {
    body.is-christmas .hero-slide--christmas .xmas-bg {
        background-position: center 20%;  /* keep stars visible at 390px */
    }
}

/* Soft scrim — passes WCAG AA for cream text on busy red knit */
body.is-christmas .hero-slide--christmas .xmas-scrim {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.38);
    z-index: 1;
}

/* ----- Fairy-light string ----- */

body.is-christmas .xmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 54px;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

/* The SVG wire + bulbs are inline in the template.
   Bulb <circle> elements get .xmas-bulb for twinkle. */

@media (prefers-reduced-motion: no-preference) {
    body.is-christmas:not(.dyslexia-mode) .xmas-bulb {
        animation: xmas-twinkle 4s ease-in-out infinite;
    }
    body.is-christmas:not(.dyslexia-mode) .xmas-bulb:nth-child(2n)   { animation-delay: 0.6s; }
    body.is-christmas:not(.dyslexia-mode) .xmas-bulb:nth-child(3n)   { animation-delay: 1.1s; }
    body.is-christmas:not(.dyslexia-mode) .xmas-bulb:nth-child(4n)   { animation-delay: 1.8s; }
    body.is-christmas:not(.dyslexia-mode) .xmas-bulb:nth-child(5n)   { animation-delay: 2.5s; }
    body.is-christmas:not(.dyslexia-mode) .xmas-bulb:nth-child(7n)   { animation-delay: 3.2s; }
}

/* opacity-only: no position/size change → no layout shift, no motion sickness */
@keyframes xmas-twinkle {
    0%, 100% { opacity: 1; }
    45%       { opacity: 0.45; }
    50%       { opacity: 0.65; }
    55%       { opacity: 0.45; }
}

/* Hard-off for reduced-motion and dyslexia mode */
@media (prefers-reduced-motion: reduce) {
    body.is-christmas .xmas-bulb { animation: none !important; }
}
body.is-christmas.dyslexia-mode .xmas-bulb { animation: none !important; }

/* ----- Slide content (centred) ----- */

body.is-christmas .xmas-slide__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(5rem, 10vw, 7rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
    max-width: 720px;
    margin: 0 auto;
}

body.is-christmas .xmas-slide__heading {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--xmas-cream, #f5f0e8);
    margin: 0 0 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

body.is-christmas .xmas-slide__sub {
    font-family: 'Inter Display', sans-serif;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--xmas-cream, #f5f0e8);
    opacity: 0.88;
    margin: 0 0 2rem;
    max-width: 480px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

body.is-christmas .xmas-slide__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--xmas-cream, #f5f0e8);
    color: var(--xmas-red, #b91c1c);
    border: 2px solid var(--xmas-cream, #f5f0e8);
    padding: 0.9rem 2.25rem;
    font-family: 'Inter Display', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

body.is-christmas .xmas-slide__btn:hover {
    background: transparent;
    color: var(--xmas-cream, #f5f0e8);
}

/* Dark mode — keep button readable */
:root[data-theme="dark"] body.is-christmas .xmas-slide__btn {
    background: var(--xmas-cream, #f5f0e8);
    color: #1a1a1a;
}
:root[data-theme="dark"] body.is-christmas .xmas-slide__btn:hover {
    background: transparent;
    color: var(--xmas-cream, #f5f0e8);
}

/* ===================================================================
   GIFT ROW SECTION
   =================================================================== */

body.is-christmas .xmas-gift-section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 4rem);
    background: var(--background);
    border-top: 1px solid var(--border);
}

body.is-christmas .xmas-gift-section__header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

body.is-christmas .xmas-gift-section__eyebrow {
    display: block;
    font-family: 'Inter Display', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--xmas-green, #1a4731);
    margin-bottom: 0.6rem;
}

:root[data-theme="dark"] body.is-christmas .xmas-gift-section__eyebrow {
    color: var(--xmas-pink, #e8a0a8);
}

body.is-christmas .xmas-gift-section__title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.9rem, 4.5vw, 3.25rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
}

body.is-christmas .xmas-gift-section__sub {
    font-family: 'Inter Display', sans-serif;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    font-weight: 300;
    color: var(--text-muted);
    margin: 0.6rem 0 0;
    font-style: normal;
}

/* ----- Card grid ----- */

body.is-christmas .xmas-gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    body.is-christmas .xmas-gift-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    body.is-christmas .xmas-gift-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Standard gift card ----- */

body.is-christmas .xmas-gift-card {
    display: flex;
    flex-direction: column;
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.is-christmas .xmas-gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

body.is-christmas .xmas-gift-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface, #fafafa);
}

body.is-christmas .xmas-gift-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

body.is-christmas .xmas-gift-card:hover .xmas-gift-card__img img {
    transform: scale(1.04);
}

body.is-christmas .xmas-gift-card__body {
    padding: clamp(1.1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

body.is-christmas .xmas-gift-card__tag {
    font-family: 'Inter Display', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--xmas-green, #1a4731);
}

:root[data-theme="dark"] body.is-christmas .xmas-gift-card__tag {
    color: var(--xmas-pink, #e8a0a8);
}

body.is-christmas .xmas-gift-card__name {
    font-family: 'Inter Display', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 400;
    color: var(--text);
    margin: 0;
    text-transform: lowercase;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

body.is-christmas .xmas-gift-card__tagline {
    font-family: 'Inter Display', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0.1rem 0 0.5rem;
    flex: 1;
}

body.is-christmas .xmas-gift-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

body.is-christmas .xmas-gift-card__price {
    font-family: 'Inter Display', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
}

body.is-christmas .xmas-gift-card__arrow {
    font-size: 0.8rem;
    color: var(--xmas-green, #1a4731);
    font-weight: 500;
}

:root[data-theme="dark"] body.is-christmas .xmas-gift-card__arrow {
    color: var(--xmas-pink, #e8a0a8);
}

/* ----- Featured (dark forest-green throw card) ----- */

body.is-christmas .xmas-gift-card--feature {
    background: var(--xmas-green, #1a4731);
    border-color: var(--xmas-green, #1a4731);
    color: var(--xmas-cream, #f5f0e8);
    grid-column: span 1;
}

body.is-christmas .xmas-gift-card--feature .xmas-gift-card__img {
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.is-christmas .xmas-gift-card--feature .xmas-gift-card__tag {
    color: var(--xmas-pink, #e8a0a8);
}

body.is-christmas .xmas-gift-card--feature .xmas-gift-card__name {
    color: var(--xmas-cream, #f5f0e8);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

body.is-christmas .xmas-gift-card--feature .xmas-gift-card__tagline {
    color: rgba(245,240,232,0.75);
}

body.is-christmas .xmas-gift-card--feature .xmas-gift-card__footer {
    border-top-color: rgba(245,240,232,0.2);
}

body.is-christmas .xmas-gift-card--feature .xmas-gift-card__price {
    color: var(--xmas-cream, #f5f0e8);
}

body.is-christmas .xmas-gift-card--feature .xmas-gift-card__arrow {
    color: var(--xmas-pink, #e8a0a8);
}

/* Dark mode override — feature card keeps its dark green */
:root[data-theme="dark"] body.is-christmas .xmas-gift-card--feature {
    background: #163827;
    border-color: #163827;
}

/* ===================================================================
   CHRISTMAS FOOTER BAND (top of footer — integrated)
   FESTIVE: remove this block + the {%- if christmas %} in base.html to strip.
   =================================================================== */

/* The band sits flush at the top of <footer> before the grid */
body.is-christmas .site-footer {
    padding-top: 0; /* band provides its own top spacing */
}

body.is-christmas .xmas-footer-band {
    background: var(--xmas-green, #1a4731);
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
    padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 5vw, 5rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    /* Escape the footer's side padding to go full-width */
    margin-left: calc(-1 * clamp(1.5rem, 4vw, 4rem));
    margin-right: calc(-1 * clamp(1.5rem, 4vw, 4rem));
    margin-top: calc(-1 * clamp(2.5rem, 5vw, 4rem));
}

body.is-christmas .xmas-footer-band__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ---- Left side: star + italic greeting ---- */

body.is-christmas .xmas-footer-band__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

body.is-christmas .xmas-footer-band__star {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    /* tint to cream to match the band text */
    filter: brightness(0) invert(1) opacity(0.88) drop-shadow(0 0 5px rgba(245,166,35,0.5));
}

body.is-christmas .xmas-footer-band__greeting {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--xmas-cream, #f5f0e8);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ---- Right side: info chips ---- */

body.is-christmas .xmas-footer-band__right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.is-christmas .xmas-footer-band__chip {
    font-family: 'Inter Display', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: rgba(245, 240, 232, 0.82);
    background: rgba(245, 240, 232, 0.1);
    border: 1px solid rgba(245, 240, 232, 0.18);
    border-radius: 100px;
    padding: 0.3rem 0.85rem;
    white-space: nowrap;
    line-height: 1.4;
}

/* ---- Dark mode: deepen the green ---- */
:root[data-theme="dark"] body.is-christmas .xmas-footer-band {
    background: #0d2419;
    border-bottom-color: rgba(245, 240, 232, 0.08);
}

/* ---- Mobile: stack vertically, chips wrap naturally ---- */
@media (max-width: 640px) {
    body.is-christmas .xmas-footer-band__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }
    body.is-christmas .xmas-footer-band__chip {
        font-size: 0.7rem;
    }
}

/* Keep the full-bleed escape in sync with .site-footer's mobile padding
   (1.5rem 1rem below 768px) — the default clamp() margins resolve larger
   than that padding and would bleed past the viewport. */
@media (max-width: 768px) {
    body.is-christmas .xmas-footer-band {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-top: -1.5rem;
    }
}

/* ===================================================================
   SUBTLE LOGO GLOW (star logo in header)
   =================================================================== */

body.is-christmas .header-logo__img,
body.is-christmas .footer__logo-icon {
    filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.45));
    transition: filter 0.3s ease;
}

/* ===================================================================
   FESTIVE BLOCK END
   =================================================================== */

/* ===================================================================
   diam Systems — Gifts Page (Christmas)
   FESTIVE BLOCK — part of christmas.css
   =================================================================== */

/* ===== GIFTS PAGE HERO ===== */

body.is-christmas .xmas-gifts-hero {
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 4rem) clamp(2rem, 4vw, 3rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

body.is-christmas .xmas-gifts-hero__eyebrow {
    display: block;
    font-family: 'Inter Display', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    color: var(--xmas-green, #1a4731);
    margin-bottom: 0.75rem;
}

:root[data-theme="dark"] body.is-christmas .xmas-gifts-hero__eyebrow {
    color: var(--xmas-pink, #e8a0a8);
}

body.is-christmas .xmas-gifts-hero__heading {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 1rem;
}

body.is-christmas .xmas-gifts-hero__sub {
    font-family: 'Inter Display', sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

body.is-christmas .xmas-gifts-hero__sub--light {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.4rem;
}

/* ===== SIDEBAR LAYOUT ===== */

body.is-christmas .xmas-gifts-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem);
}

/* ===== LEFT SIDEBAR ===== */

body.is-christmas .xmas-sidebar {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: 80px; /* below fixed site header */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}
body.is-christmas .xmas-sidebar::-webkit-scrollbar { display: none; }

/* Mobile toggle button — hidden on desktop */
body.is-christmas .xmas-sidebar__toggle {
    display: none;
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Inter Display', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: border-color 0.15s;
}
body.is-christmas .xmas-sidebar__toggle svg {
    transition: transform 0.2s ease;
}
body.is-christmas .xmas-sidebar__toggle:hover {
    border-color: var(--xmas-green, #1a4731);
}

/* Panel — always visible on desktop */
body.is-christmas .xmas-sidebar__panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.is-christmas .xmas-sidebar__count {
    font-family: 'Inter Display', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-muted);
    padding: 0 0 0.75rem;
    margin: 0;
}

body.is-christmas .xmas-sidebar__rule {
    height: 1px;
    background: var(--border);
    margin: 0 0 1.25rem;
}

body.is-christmas .xmas-sidebar__section {
    padding: 0 0 1.5rem;
}

body.is-christmas .xmas-sidebar__heading {
    font-family: 'Inter Display', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

body.is-christmas .xmas-sidebar__reset {
    font-family: 'Inter Display', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--xmas-green, #1a4731);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s;
    margin-top: 0.5rem;
}
body.is-christmas .xmas-sidebar__reset:hover { opacity: 0.6; }

:root[data-theme="dark"] body.is-christmas .xmas-sidebar__heading {
    color: var(--text-muted);
}
:root[data-theme="dark"] body.is-christmas .xmas-sidebar__reset {
    color: var(--xmas-pink, #e8a0a8);
}

/* ===== SORT RADIO OPTIONS ===== */

body.is-christmas .xmas-sort-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.is-christmas .xmas-sort-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter Display', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
}

body.is-christmas .xmas-sort-option input[type="radio"] {
    accent-color: var(--xmas-green, #1a4731);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}

:root[data-theme="dark"] body.is-christmas .xmas-sort-option input[type="radio"] {
    accent-color: var(--xmas-pink, #e8a0a8);
}

/* ===== MAIN CONTENT AREA ===== */

body.is-christmas .xmas-gifts-main {
    flex: 1;
    min-width: 0;
}

/* ===== MOBILE: stack sidebar above grid ===== */

@media (max-width: 768px) {
    body.is-christmas .xmas-gifts-body {
        flex-direction: column;
        gap: 1.25rem;
        padding: 0 clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 4rem);
    }

    body.is-christmas .xmas-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }

    body.is-christmas .xmas-sidebar__toggle {
        display: flex;
    }

    body.is-christmas .xmas-sidebar__panel {
        display: none;
        margin-top: 0.75rem;
        padding: 1rem;
        background: var(--background);
        border: 1px solid var(--border);
        border-radius: 6px;
    }

    body.is-christmas .xmas-sidebar__panel.is-open {
        display: flex;
    }
}

/* ===== DUAL RANGE SLIDER ===== */

body.is-christmas .xmas-price-slider {
    position: relative;
    width: 200px;
    height: 20px;
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    body.is-christmas .xmas-price-slider {
        width: 100%;
        max-width: 300px;
    }
}

body.is-christmas .xmas-price-slider__track {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    pointer-events: none;
}

body.is-christmas .xmas-price-slider__fill {
    position: absolute;
    height: 100%;
    background: var(--xmas-green, #1a4731);
    border-radius: 2px;
    /* left and width set by JS via CSS custom properties */
    left: var(--fill-left, 0%);
    width: var(--fill-width, 100%);
}

:root[data-theme="dark"] body.is-christmas .xmas-price-slider__fill {
    background: var(--xmas-pink, #e8a0a8);
}

body.is-christmas .xmas-price-slider__thumb {
    position: absolute;
    width: 100%;
    height: 2px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    outline: none;
    border: none;
    margin: 0;
    padding: 0;
}

body.is-christmas .xmas-price-slider__thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--background);
    border: 2px solid var(--xmas-green, #1a4731);
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
    z-index: 2;
}

body.is-christmas .xmas-price-slider__thumb::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--background);
    border: 2px solid var(--xmas-green, #1a4731);
    cursor: pointer;
    pointer-events: all;
}

body.is-christmas .xmas-price-slider__thumb::-webkit-slider-thumb:hover,
body.is-christmas .xmas-price-slider__thumb:focus::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(26, 71, 49, 0.12);
}

:root[data-theme="dark"] body.is-christmas .xmas-price-slider__thumb::-webkit-slider-thumb {
    border-color: var(--xmas-pink, #e8a0a8);
}
:root[data-theme="dark"] body.is-christmas .xmas-price-slider__thumb::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px rgba(232, 160, 168, 0.15);
}

body.is-christmas .xmas-price-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter Display', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.1rem;
    min-width: 200px;
}

@media (max-width: 600px) {
    body.is-christmas .xmas-price-labels { min-width: 0; width: 100%; max-width: 300px; }
}

/* ===== SORT SELECT ===== */

body.is-christmas .xmas-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

body.is-christmas .xmas-filter-select {
    font-family: 'Inter Display', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    min-width: 160px;
}

body.is-christmas .xmas-filter-select:focus {
    border-color: var(--xmas-green, #1a4731);
}

:root[data-theme="dark"] body.is-christmas .xmas-filter-select:focus {
    border-color: var(--xmas-pink, #e8a0a8);
}

body.is-christmas .xmas-select-caret {
    position: absolute;
    right: 0.6rem;
    pointer-events: none;
    color: var(--text-muted);
}

/* ===== GIFTS PAGE GRID ===== */

body.is-christmas .xmas-gifts-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
}

@media (max-width: 540px) {
    body.is-christmas .xmas-gifts-page-grid {
        grid-template-columns: 1fr;
    }
}

/* On the gifts page, cards are a bit larger */
body.is-christmas .xmas-gifts-page__card .xmas-gift-card__img {
    aspect-ratio: 3 / 2;
}

body.is-christmas .xmas-gifts-page__card .xmas-gift-card__name {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

body.is-christmas .xmas-gifts-page__card .xmas-gift-card__tagline {
    font-size: 0.9rem;
}

/* Filtered out */
body.is-christmas .xmas-gift-card[hidden] {
    display: none !important;
}

/* ===== EMPTY STATE ===== */

body.is-christmas .xmas-gifts-empty {
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
}

body.is-christmas .xmas-gifts-empty__text {
    font-family: 'Inter Display', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

body.is-christmas .xmas-gifts-empty__reset {
    text-decoration: none;
    padding: 0.7rem 1.75rem;
    border: 1px solid var(--xmas-green, #1a4731);
    color: var(--xmas-green, #1a4731);
    background: none;
    font-size: 0.85rem;
}
