/* /seasonal/christmas-packaging/ on .com and .ca, /es/ and /fr/ twins: option B "Modern festive" (owner, 27 Nov 2026;
   preview research/christmas-2026/b/christmas.html). Brand navy (var(--ember)), one bold red, oversized type; the offer
   card floats over the hero photo (frosted glass with a solid fallback), then big white product tiles, 3-up, each with a
   red chip showing the item's own sale percentage (build.py, from data/sales.json). Loaded by templates/season_occasion.html
   only; the snowflake grid --xm-flake and --xm-red come from christmas.css (loaded on every page while the occasion runs). */
.xb-hero { background: linear-gradient(180deg, #fff 0%, var(--bone, #F4F6FB) 100%); position: relative; overflow: hidden; }
.xb-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--xm-flake, none) 0 0 / 120px 120px; opacity: .13;
  -webkit-mask: linear-gradient(90deg, #000 0, #000 20%, transparent 50%); mask: linear-gradient(90deg, #000 0, #000 20%, transparent 50%); }
.xb-hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.xb-kick { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ember, #1E3A8A); margin: 0 0 16px; }
.xb-kick::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--xm-red, #D7263D); flex: none; }
.xb-hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -.045em; line-height: .98; margin: 0 0 20px; font-weight: 800; max-width: 15ch; text-wrap: balance; }
.xb-hero h1 em { font-style: normal; color: var(--ember, #1E3A8A); }
.xb-greet { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; color: var(--ink, #111827); }
.xb-hero p.xb-p { color: var(--ink-2, #292F3D); max-width: 50ch; line-height: 1.6; margin: 0 0 18px; }
.xb-hero .answer { max-width: 50ch; margin: 0 0 22px; }
.xb-cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 0 0 20px; }
.xb-order { font-size: .92rem; color: var(--muted, #5C636D); max-width: 52ch; margin: 0; padding-left: 14px; border-left: 2px solid var(--xm-red, #D7263D); }
.xb-media { position: relative; }
.xb-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(17, 24, 39, .45); }
.xb-media .img-note { margin: 10px 0 0; }
.xb-card { position: absolute; left: -28px; bottom: 44px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 3px; align-items: center;
  max-width: min(92%, 400px); padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .95); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .06), 0 30px 60px -30px rgba(17, 24, 39, .5); color: var(--ink, #111827); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .xb-card { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); } }
.xb-card .xm-pct { grid-row: 1 / span 3; display: grid; place-items: center; align-content: center; width: 64px; height: 64px; border-radius: 12px; white-space: nowrap;
  background: var(--xm-red, #D7263D); color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1; }
.xb-card .xm-pct small { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: block; text-align: center; line-height: 1.2; margin-top: 2px; }
.xb-card p { grid-column: 2; margin: 0; }
.xb-card .xb-card-h { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.xb-card .xb-card-p { font-size: .86rem; color: var(--muted, #5C636D); line-height: 1.4; }

/* Product tiles: big white cards, 3-up, hover lift; the markup stays pl-card (price_guard checks every card). */
.xb-grid-sec { padding: 80px 0 72px; background: #fff; }
.xb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin: 0 0 36px; }
.xb-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.04em; margin: 0; line-height: 1; }
.xb-head p { margin: 0; max-width: 44ch; color: var(--muted, #5C636D); }
.xb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.xb-grid .card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; color: var(--ink, #111827); background: #fff; border: 1px solid var(--line, #C7CDDC); border-radius: 14px; overflow: hidden;
  box-shadow: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.xb-grid .card:hover, .xb-grid .card:focus-within { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(17, 24, 39, .4); border-color: transparent; }
.xb-grid .thumb { display: block; overflow: hidden; background: var(--bone, #F4F6FB); border-radius: 0; }
.xb-grid .thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; border-radius: 0; transition: transform .6s ease; }
.xb-grid .card:hover .thumb img { transform: scale(1.05); }
.xb-grid .body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.xb-grid h3 { margin: 0; font-weight: 700; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.01em; }
.xb-grid h3 a { text-decoration: none; color: inherit; }
.xb-grid h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole tile opens the product */
.xb-grid .card { position: relative; }
.xb-grid .xb-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .95rem; margin-top: auto; }
main .xb-grid .card .body p.pl-price, main .xb-grid .card .body p.pl-unit { display: inline; margin: 0; font-size: inherit; line-height: 1.3; }
main .xb-grid .card .body p.pl-price b { font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink, #111827); }
main .xb-grid .card .body p.pl-price s { color: var(--muted, #5C636D); font-weight: 400; margin-left: 4px; }
main .xb-grid .card .body p.pl-unit { color: var(--muted, #5C636D); font-size: .85rem; }
.xm-chip { margin-left: auto; font-style: normal; font-size: .78rem; font-weight: 700; color: #fff; background: var(--xm-red, #D7263D); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
html[lang^="fr"] .xm-chip span::after { content: "\202F"; }   /* French: "−40 %" with an unbreakable thin space */
.xb-note { margin: 28px 0 0; font-size: .85rem; color: var(--muted, #5C636D); max-width: 90ch; }
.xb-eyebrow { color: var(--ember, #1E3A8A); }
.xb-eyebrow::before { background: var(--xm-red, #D7263D); border-color: var(--xm-red, #D7263D); }
@media (max-width: 1000px) { .xb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 860px) { .xb-hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 40px; } .xb-media img { aspect-ratio: 4 / 3; }
  .xb-card { position: static; max-width: none; margin-top: 14px; } .xb-grid-sec { padding: 48px 0 44px; } .xb-head { margin-bottom: 24px; } }
@media (max-width: 560px) { .xb-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .xb-grid .body { padding: 12px 12px 14px; gap: 6px; } .xb-grid h3 { font-size: .95rem; }
  main .xb-grid .card .body p.pl-price b { font-size: 1.05rem; } .xm-chip { font-size: .7rem; padding: 2px 7px; } .xb-card { padding: 14px; } .xb-card .xm-pct { width: 56px; height: 56px; font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .xb-grid .card, .xb-grid .thumb img { transition: none; }
  .xb-grid .card:hover, .xb-grid .card:focus-within, .xb-grid .card:hover .thumb img { transform: none; } }
