/* =========================================================================
   Pre-Christmas Delivery landing page — WDB-365.

   Scope: `.lp2.xmas-lp`, loaded ONLY by frontend/landingPage/xmas.blade.php.

   Tokens come from public/web/ds-tokens.css (already on main, scoped `.lp2, .hp2`),
   which is why the page root carries `lp2` as well as `xmas-lp`.

   The `.lp2-*` component rules below are the blue landing page's, ported from
   `feat/landing-page-v2` (MR !1243) rather than depended on: that branch is an
   unmerged draft, and this page must not wait on it or change the other 40
   landing pages. When !1243 lands, these can be promoted into landing-v2.css
   and this file keeps only the `.xmas-lp` block at the bottom.

   Where a rule differs from !1243 it is marked WDB-365 with the reason —
   every one of those is a bug in the branch, not a design change here.
   ========================================================================= */

/* ---------- base ---------- */
/* `overflow-x: clip`, NOT hidden. Per spec, `hidden` on one axis computes the other axis from
   `visible` to `auto`, which turns this element into a vertical scroll container — and then an
   in-page jump scrolls THIS box instead of the page. It has nothing to scroll, so clicking a
   carousel cell did nothing at all, with or without the script. `clip` trims the same overflow
   without creating a scroll container. (landing-v2.css has the same `hidden`.) */
.xmas-lp{font-family:var(--font-core);font-weight:var(--fw-medium);color:var(--text-body);background:var(--surface-page);-webkit-font-smoothing:antialiased;overflow-x:clip}
.xmas-lp *,.xmas-lp *::before,.xmas-lp *::after{box-sizing:border-box}
.xmas-lp img{max-width:100%}
.xmas-lp a{color:var(--text-link);text-decoration:none}
.xmas-lp a:hover{color:var(--text-link-hover)}
.xmas-lp h1,.xmas-lp h2,.xmas-lp h3,.xmas-lp p{margin:0}

/* Kim, 24 Aug: content lines up with the 247 logo. The site header container is
   1300px with the logo flush at its left edge, so max-width is the CONTENT box
   plus the gutters — landing-v2.css puts the padding inside 1280 and lands 34px in. */
.xmas-lp .lp2-wrap{max-width:calc(var(--container-narrow) + var(--gutter) * 2);margin:0 auto;padding:0 var(--gutter)}
.xmas-lp .lp2-center{text-align:center}

/* Display type is DEVANT at weight 500 — Devant ships in one weight, so never bold it.
   ds-tokens.css maps --font-display to Cocogoose, which is wrong for the 2026 redesign
   (see sale-lp.css, which uses --font-promo). Overridden locally rather than in the
   shared token file. */
.xmas-lp .lp2-display{font-family:var(--font-promo);font-weight:500;text-transform:uppercase;line-height:.85;letter-spacing:.011em}
.xmas-lp .lp2-h3{font:var(--fw-semibold) var(--fs-h3)/var(--lh-heading) var(--font-core);color:var(--text-heading)}
.xmas-lp .lp2-body{font:var(--type-body);color:var(--text-body)}
.xmas-lp .lp2-body p{margin:0 0 12px}
.xmas-lp .lp2-body p:last-child{margin-bottom:0}

/* ---------- spacing tokens owned by this page ---------- */
.xmas-lp{
  /* The gap above the type panel must match the gap above the heading (Kim, 19 Nov).
     One token drives both so they cannot drift apart. */
  --intro-gap:44px;
  /* Half the panel's height, so the grey/white cut passes through its middle. */
  --panel-overhang:70px;
}

/* ---------- buttons ---------- */
/* WDB-365: landing-v2.css writes these at (0,1,0), which loses to its own
   `a{color:var(--text-link)}` at (0,1,1) — the tertiary pill renders pink text and a
   primary anchor button would be pink-on-pink. Scoped here so the button owns its colour. */
.xmas-lp .lp2-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:none;cursor:pointer;border-radius:var(--radius-pill);font:var(--type-button);padding:15px 32px;min-height:48px;transition:var(--transition-hover),transform var(--dur-fast) var(--ease-standard)}
.xmas-lp .lp2-btn:active{transform:scale(var(--press-scale))}
.xmas-lp .lp2-btn:focus-visible{outline:2px solid var(--pink-500);outline-offset:2px}
/* Jason, 19 Nov: section CTAs in brand pink with white text. THIS PAGE ONLY — the other
   landing pages keep the design system's grey tertiary pill. */
.xmas-lp .lp2-btn{background:var(--pink-500);color:#fff}
.xmas-lp .lp2-btn:hover{background:var(--pink-600);color:#fff}

/* ---------- hero ---------- */
.xmas-lp .lp2-hero{position:relative;background:var(--ink-800)}
.xmas-lp .lp2-hero img{display:block;width:100%;height:530px;object-fit:cover}
.xmas-lp .lp2-hero--noimage{min-height:320px}
.xmas-lp .lp2-hero__title{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0 var(--gutter);pointer-events:none}
.xmas-lp .lp2-hero__title h1{font-size:var(--fs-display-page);color:#fff;text-align:center;text-shadow:0 2px 24px rgba(0,0,0,.25);max-width:20ch}

/* ---------- cut-off band (treatment A, signed off 19 Nov) ---------- */
.xmas-lp .lp2-cutoff{background:var(--pink-500);color:#fff;padding:40px 0}
.xmas-lp .lp2-cutoff__inner{display:flex;align-items:center;justify-content:center;gap:48px;flex-wrap:wrap;text-align:center}
.xmas-lp .lp2-cutoff__lead{text-align:left}
.xmas-lp .lp2-cutoff__eyebrow{font:var(--type-eyebrow);text-transform:uppercase;letter-spacing:var(--ls-eyebrow);opacity:.9;display:block;margin-bottom:8px}
.xmas-lp .lp2-cutoff__date{font-family:var(--font-promo);font-weight:500;text-transform:uppercase;line-height:.85;letter-spacing:.011em;font-size:var(--fs-display-lg);display:block}
.xmas-lp .lp2-cutoff__rule{width:1px;align-self:stretch;background:rgba(255,255,255,.4)}
.xmas-lp .lp2-cutoff__note{font:var(--fw-medium) var(--fs-body)/1.45 var(--font-core);max-width:40ch;text-align:left;opacity:.95}
.xmas-lp .lp2-cutoff__note strong{font-weight:var(--fw-bold)}

/* ---------- intro band + type panel ---------- */
.xmas-lp .lp2-intro{background:var(--surface-band);padding:var(--intro-gap) 0 0;margin-bottom:var(--panel-overhang)}
.xmas-lp .lp2-intro__copy{margin:18px auto 0;max-width:105ch}
.xmas-lp .lp2-intro__more{display:none}
.xmas-lp .lp2-intro__copy.is-expanded .lp2-intro__short{display:none}
.xmas-lp .lp2-intro__copy.is-expanded .lp2-intro__more{display:block}
.xmas-lp .lp2-readmore{color:var(--text-link);cursor:pointer}

/* The panel is pushed down by --panel-overhang so it straddles the grey/white cut, which
   means the VISUAL gap above it is (in-flow space + overhang). For that to equal --intro-gap
   the in-flow space has to be the difference, which is negative — hence margin, not padding. */
.xmas-lp .lp2-typepanel__wrap{padding-top:0;margin-top:calc(var(--intro-gap) - var(--panel-overhang));transform:translateY(var(--panel-overhang))}
/* Kim's design: no more than 6 cells on screen with the dots underneath, the rest swiped.
   `flex: 1 0 16.6667%` does both jobs — with more than six it overflows and scrolls at exactly
   a sixth each, with fewer the cells grow to fill the panel instead of leaving a gap. */
.xmas-lp .lp2-typepanel{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-raised);display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.xmas-lp .lp2-typepanel::-webkit-scrollbar{display:none}
.xmas-lp .lp2-typepanel__cell{flex:1 0 16.6667%;min-width:0;scroll-snap-align:start;text-align:center;padding:26px 12px 22px;border-left:var(--border-hairline);transition:var(--transition-hover)}
.xmas-lp .lp2-typepanel__cell:first-child{border-left:none}
.xmas-lp .lp2-typepanel__cell:hover{background:var(--grey-050)}
.xmas-lp .lp2-typepanel__cell img{height:58px;width:auto;display:block;margin:0 auto 14px}
.xmas-lp .lp2-typepanel__cell span{font:var(--fw-medium) var(--fs-body-sm)/1.35 var(--font-core);display:block}
/* Kim, 19 Nov: carousel titles black, not pink. landing-v2.css already says ink-800 — it
   loses to `a{color:…}`, the same (0,1,1) bug as the buttons. */
.xmas-lp .lp2-typepanel__cell,.xmas-lp .lp2-typepanel__cell:hover{color:var(--ink-800)}

/* Pagination dots, homepage style: pink pill for the current page, outlined for the rest.
   The script renders none when the panel does not overflow, so an empty row costs nothing. */
.xmas-lp .lp2-typepanel__dots{display:flex;justify-content:center;gap:7px;padding-top:14px}
.xmas-lp .lp2-typepanel__dot{appearance:none;-webkit-appearance:none;padding:0;cursor:pointer;width:20px;height:9px;border-radius:var(--radius-pill);background:#fff;border:1px solid var(--grey-300);transition:background-color var(--dur-base) var(--ease-standard),border-color var(--dur-base) var(--ease-standard)}
.xmas-lp .lp2-typepanel__dot:hover{border-color:var(--pink-500)}
.xmas-lp .lp2-typepanel__dot:focus-visible{outline:2px solid var(--pink-500);outline-offset:3px}
.xmas-lp .lp2-typepanel__dot.is-active{background:var(--pink-500);border-color:var(--pink-500)}

/* ---------- product blocks ---------- */
.xmas-lp .lp2-block{padding:56px 0;scroll-margin-top:24px}
.xmas-lp .lp2-block+.lp2-block{border-top:var(--border-hairline)}
.xmas-lp .lp2-block__desc{margin:18px auto 40px;max-width:88ch}
.xmas-lp .lp2-block__cta{margin-top:44px}
.xmas-lp .lp2-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:40px}
/* Kim, 19 Nov: the cut-off date in each section intro, bold pink. */
.xmas-lp .lp2-date{color:var(--pink-500);font-weight:var(--fw-bold)}

/* ---------- the site's own product card ----------------------------------------------
   Option 1 (Jason, 24 Nov): the grid below the top of the page is
   `frontend/product/includes/product.blade.php`, the same card the rest of the site uses, at
   the same image size. These keep this page's base rules from leaking into it — everything
   else about the card is the site's own CSS, deliberately. */
.xmas-lp .product_section{margin-top:8px}
.xmas-lp .product_section a{color:inherit}
.xmas-lp .product_section a:hover{color:inherit}

/* ---------- product card (flat) — PARKED -----------------------------------------------
   Kept for when the larger image sets are re-output and checked, at which point
   includes/xmas/card.blade.php goes back into section.blade.php and these apply again.
   Nothing renders them today. */
.xmas-lp .lp2-product{display:block;color:inherit;background:transparent}
.xmas-lp .lp2-product:hover{color:inherit}
.xmas-lp .lp2-product__media{position:relative;overflow:hidden}
/* WDB-365: landing-v2.css writes this as `.lp2-product__media>img`, which out-specifies
   EVERY overlay image in the box — the same-day sticker and the Christmas badge both get
   blown up to the full card width. The photo gets its own class instead. */
.xmas-lp .lp2-product__photo{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;background:var(--grey-100);transition:transform var(--dur-slow) var(--ease-standard)}
.xmas-lp .lp2-product:hover .lp2-product__photo{transform:scale(1.02)}
.xmas-lp .lp2-rosette{position:absolute;z-index:2;top:0;right:0;width:116px;height:116px;background:var(--pink-500);border-radius:0 0 0 116px;color:#fff;display:flex;flex-direction:column;align-items:flex-end;padding:12px 11px 0 0;pointer-events:none}
.xmas-lp .lp2-rosette b{font:var(--fw-semibold) 28px/1 var(--font-core)}
.xmas-lp .lp2-rosette b i{font-style:normal;font-size:17px}
.xmas-lp .lp2-rosette span{font:var(--fw-semibold) 17px/1 var(--font-core);margin-top:2px}
.xmas-lp .lp2-rosette--amount b{font-size:24px}
.xmas-lp .lp2-offer{position:absolute;z-index:2;top:0;right:0;width:99px;height:84px;background:var(--sale-black);color:#fff;border-radius:0 0 0 49px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4px 8px 8px;pointer-events:none}
.xmas-lp .lp2-offer em{font:var(--fw-semibold) 15px/1.15 var(--font-core);font-style:normal}
.xmas-lp .lp2-offer strong{font:var(--fw-bold) 23px/1.1 var(--font-core)}
.xmas-lp .lp2-product__sticker{position:absolute;z-index:2;left:6px;bottom:10px;width:46%;height:auto}
/* The Pre Xmas Delivery label (prolabel `xmas-delivery`, derived from the supplier link's
   flag by WDB-308). Native 92.86x101, fixed px not a percentage — Kim, 24 Aug: pro labels
   keep their size as the card grows. Bottom-right is the one corner the design leaves free. */
.xmas-lp .lp2-xmas{position:absolute;z-index:3;right:8px;bottom:8px;width:93px;height:auto;pointer-events:none;filter:drop-shadow(0 1px 3px rgba(0,0,0,.18))}
.xmas-lp .lp2-product__body{display:flex;gap:14px;align-items:flex-start;padding:14px 2px 0}
.xmas-lp .lp2-product__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:18px}
.xmas-lp .lp2-product__name{font:var(--fw-medium) var(--fs-body)/1.35 var(--font-core);color:var(--ink-800);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.xmas-lp .lp2-price{font:var(--fw-medium) var(--fs-body)/1.2 var(--font-core);color:var(--text-body)}
.xmas-lp .lp2-price strong{color:var(--text-price);font-weight:var(--fw-bold)}
.xmas-lp .lp2-product__swatch{width:92px;height:92px;object-fit:cover;flex:0 0 auto;background:var(--grey-100)}

/* ---------- FAQ ---------- */
.xmas-lp .lp2-faq{padding:56px 0 72px;border-top:var(--border-hairline);scroll-margin-top:24px}
/* Kim, 21 Nov: "Need to know" the same size as "Sun 21 Dec", on both breakpoints. Both now
   take --fs-display-lg (60px desktop / 38px mobile) and both are Devant, so they match. */
.xmas-lp .lp2-faq__title{font-size:var(--fs-display-lg);color:var(--pink-500);margin-bottom:40px}
.xmas-lp .lp2-faq__list{display:grid;gap:14px;list-style:none;margin:0;padding:0}
.xmas-lp .lp2-faq__q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:none;cursor:pointer;border-radius:var(--radius-pill);box-shadow:var(--shadow-card);padding:20px 30px;text-align:left;font:var(--fw-medium) var(--fs-body)/1.3 var(--font-core);color:var(--ink-800)}
.xmas-lp .lp2-faq__q:focus-visible{outline:2px solid var(--pink-500);outline-offset:2px}
.xmas-lp .lp2-faq__q img{width:22px;height:22px;flex:0 0 auto}
.xmas-lp .lp2-faq__a{margin:18px 30px 22px;max-width:92ch;line-height:1.55}
.xmas-lp .lp2-faq__item.is-closed .lp2-faq__a{display:none}

/* ---------- tablet ---------- */
@media (max-width:1024px){
  .xmas-lp .lp2-grid{grid-template-columns:repeat(3,1fr);gap:28px}
  .xmas-lp .lp2-hero img{height:420px}
}

/* ---------- mobile ---------- */
@media (max-width:820px){
  .xmas-lp{--intro-gap:28px;--panel-overhang:68px}
  .xmas-lp .lp2-hero img{height:300px}
  .xmas-lp .lp2-intro__copy{margin-top:12px}
  .xmas-lp .lp2-cutoff{padding:28px 0}
  .xmas-lp .lp2-cutoff__inner{gap:18px;flex-direction:column}
  .xmas-lp .lp2-cutoff__lead,.xmas-lp .lp2-cutoff__note{text-align:center}
  .xmas-lp .lp2-cutoff__rule{width:72px;height:1px;align-self:center}
  /* three cells on a phone rather than six */
  .xmas-lp .lp2-typepanel__cell{flex:1 0 33.3333%;padding:20px 8px 16px}
  .xmas-lp .lp2-typepanel__cell img{height:48px;margin-bottom:10px}
  .xmas-lp .lp2-block{padding:36px 0}
  .xmas-lp .lp2-block__desc{margin:12px auto 24px}
  .xmas-lp .lp2-block__cta{margin-top:28px}
  /* WDB-365: landing-v2.css sets white-space:nowrap, and the label is CMS-entered, so a long
     one ("Shop All Pre-Christmas Twist&Fit Roller Blinds") runs off the side of a phone. */
  .xmas-lp .lp2-btn{white-space:normal;text-align:center;padding:14px 22px}
  .xmas-lp .lp2-grid{grid-template-columns:repeat(2,1fr);gap:20px 14px}
  .xmas-lp .lp2-rosette{width:84px;height:84px;border-radius:0 0 0 84px;padding:9px 8px 0 0}
  .xmas-lp .lp2-rosette b{font-size:21px}
  .xmas-lp .lp2-rosette b i{font-size:13px}
  .xmas-lp .lp2-rosette span{font-size:13px}
  .xmas-lp .lp2-rosette--amount b{font-size:18px}
  .xmas-lp .lp2-offer{width:78px;height:66px;border-radius:0 0 0 39px}
  .xmas-lp .lp2-offer em{font-size:12px}
  .xmas-lp .lp2-offer strong{font-size:18px}
  .xmas-lp .lp2-xmas{width:64px;right:6px;bottom:6px}
  .xmas-lp .lp2-product__body{gap:10px;padding-top:10px}
  .xmas-lp .lp2-product__info{gap:10px}
  .xmas-lp .lp2-product__swatch{width:56px;height:56px}
  .xmas-lp .lp2-faq{padding:40px 0 48px}
  .xmas-lp .lp2-faq__title{margin-bottom:24px}
  .xmas-lp .lp2-faq__q{padding:16px 20px;gap:12px}
  .xmas-lp .lp2-faq__a{margin:14px 20px 18px}
}
