/*
 * /store and /bundles. Every colour, radius and duration is a token from css/oos.css; this file
 * places the shared components and adds the parts these two pages own (oos-store-*, oos-bundles-*).
 */

/* Visually hidden heading. overflow:clip instead of hidden, so it never reads as cut-off text. */
.oos-store-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:clip;clip-path:inset(50%);white-space:nowrap;border:0}

.oos-store .oos-pagehero__copy p,.oos-store .oos-sechd__lead,.oos-store-route__text,.oos-bundles .oos-sechd__lead,.oos-bundles-hero__lead,.oos-bundles-item__text,.oos-bundles-note p{text-wrap:pretty}

/* ---------- Store hero: a compact page hero so the cards stay above the fold ---------- */
.oos-store-hero{padding:32px 0 30px}
.oos-store-hero__in{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:center;gap:48px;min-height:0}
.oos-store-hero h1{font-size:clamp(36px,3.7vw,54px);line-height:1}
.oos-store-hero .oos-pagehero__copy{padding-bottom:0}
.oos-store-hero .oos-pagehero__copy p{max-width:660px;margin-top:14px;font-size:18px}
.oos-store-hero .oos-trust{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:0;padding:0;border-top:0}
.oos-store-hero .oos-trust span{display:block;margin-top:2px;line-height:1.4}

/* ---------- Toolbar: filter chips with counts, sort ---------- */
.oos-store-catalog{padding-top:22px}
.oos-store-toolbar{gap:12px 16px;margin-bottom:20px}
html.oos-no-js .oos-store-toolbar{display:none}
.oos-store-filters{flex-wrap:nowrap}
.oos-store-filters button{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 16px;white-space:nowrap}
.oos-store-filters button span{margin-left:0;transition:color var(--dur-quick)}
.oos-store-filters button.is-active span{color:var(--lemon)}
.oos-store-search{flex:1 1 240px;max-width:380px}
.oos-store-sort{display:flex;align-items:center;gap:10px;margin-left:auto}
.oos-store-sort label{font:600 14px/1 var(--font-sans);color:var(--ink-faint)}
.oos-store-sort .oos-select{min-width:196px;height:44px;border-radius:var(--radius-key);background-color:var(--surface);border-color:var(--line);color:var(--ink);transition:border-color var(--dur-quick)}
.oos-store-sort .oos-select:hover{border-color:var(--line-strong)}

/* ---------- Grid: three cards a row, the bundle takes two ---------- */
.oos-store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-6)}
.oos-store-grid > .oos-bundle{grid-column:span 2}
.oos-store-grid > .oos-bundle .oos-bundle__copy{padding:30px}
.oos-store-grid > .oos-bundle .oos-bundle__title{font-size:clamp(30px,2.9vw,40px);letter-spacing:-.025em}
.oos-store-grid > .oos-bundle{grid-template-columns:1fr;align-content:center}
.oos-store-grid > .oos-bundle .oos-bundle__copy{padding-bottom:22px}
.oos-store-grid > .oos-bundle .oos-bundle__media{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto;gap:12px;padding:0 30px 30px;min-height:0}
.oos-store-empty{margin-top:var(--space-6)}
.oos-store-empty > .oos-i{width:30px;height:30px;color:var(--lilac)}
.oos-store-empty p{max-width:340px}
.oos-store-empty .oos-key{margin-top:8px}

/* A bundle that would start in a row's last column stacks into one column instead of leaving a gap. */
@media (min-width:1101px){
  .oos-store-grid > .oos-bundle:nth-child(3n of :not([hidden])){grid-column:auto;grid-template-columns:1fr}
  .oos-store-grid > .oos-bundle:nth-child(3n of :not([hidden])) .oos-bundle__media{grid-template-columns:1fr 1fr;gap:10px;padding:0 18px 18px;min-height:0}
}

/* ---------- Where to start ---------- */
.oos-store-start .oos-sechd{max-width:760px}
.oos-store-start__panel{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 290px;border-radius:var(--radius-xl);background:var(--surface);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.oos-store-start__routes{display:grid;gap:4px;padding:12px}
.oos-store-route{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;padding:22px 22px 24px;border-radius:var(--radius-lg);transition:background var(--dur-quick)}
.oos-store-route + .oos-store-route::before{content:'';position:absolute;left:22px;right:22px;top:-2px;height:1px;background:var(--line)}
.oos-store-route:hover{background:var(--surface-hover)}
.oos-store-route:hover::before,.oos-store-route:hover + .oos-store-route::before{opacity:0}
.oos-store-route__for{display:block;margin-bottom:8px;font:700 12px/1 var(--font-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--lilac)}
.oos-store-route__name{font:700 24px/1.15 var(--font-sans);letter-spacing:-.015em;color:var(--ink)}
.oos-store-route__name a::after{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit}
.oos-store-route__name a:focus-visible{outline:0}
.oos-store-route:has(a:focus-visible){outline:2.5px solid var(--focus);outline-offset:3px}
.oos-store-route__text{max-width:520px;margin-top:6px;font-size:15px;line-height:1.5;color:var(--ink-soft)}
.oos-store-route__chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px}
.oos-store-route__side{display:flex;align-items:center;gap:18px}
.oos-store-route__side .oos-price{align-items:flex-end;text-align:right}
.oos-store-route__go{display:grid;place-items:center;width:44px;height:44px;border-radius:var(--radius-key);background:var(--surface-hover);color:var(--ink);transition:background var(--dur-quick),color var(--dur-quick)}
.oos-store-route__go .oos-i{transition:transform var(--dur-base) var(--ease-out)}
.oos-store-route:hover .oos-store-route__go{background:var(--surface-high);color:var(--lemon)}
.oos-store-route:hover .oos-store-route__go .oos-i{transform:translateX(3px)}
.oos-store-start__art{right:22px;bottom:0;width:262px}
html.oos-no-js .oos-store-start__art,html.oos-no-js .oos-bundles-hero__cast{opacity:1;transform:none}

/* ---------- Bundle hero: the offer as one panel, the cast breaking out of its top ---------- */
.oos-bundles-hero{padding-top:30px}
.oos-bundles-hero__crumbs{margin:-12px 0 50px}
.oos-bundles-hero__crumbs a{display:inline-flex;align-items:center;min-height:40px}
.oos-bundles-hero__panel{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);grid-template-rows:auto 1fr;grid-template-areas:"copy stage" "buy stage";align-items:center;border-radius:var(--radius-xl);background:var(--night-raised);box-shadow:var(--shadow-float)}
.oos-bundles-hero__panel::before{content:'';position:absolute;inset:0;z-index:4;border-radius:inherit;padding:1.5px;background:var(--oos-sunset);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.oos-bundles-hero__copy{grid-area:copy;position:relative;z-index:5;padding:44px 44px 0}
.oos-bundles-hero__title{margin-top:18px;font:800 clamp(40px,4.3vw,60px)/.98 var(--font-sans);letter-spacing:-.03em;color:var(--ink)}
.oos-bundles-hero__title span{color:var(--pink)}
.oos-bundles-hero__lead{max-width:470px;margin-top:16px;font-size:17px;line-height:1.55;color:var(--ink-soft)}
.oos-bundles-hero__buy{grid-area:buy;position:relative;z-index:5;align-self:start;padding:30px 44px 40px}
.oos-bundles-hero__keyprice{display:inline-flex;gap:8px}
.oos-bundles-hero__add:has([data-price-inline]:empty) .oos-bundles-hero__keyprice{display:none}
.oos-bundles-gift{margin:14px 0 0;padding:0;border:0}
.oos-bundles-gift > label{width:max-content;max-width:100%;min-height:40px}
/* A 40px hit area around the 20px box: the transparent border is part of the input. */
.oos-bundles-gift .oos-check{width:40px;height:40px;margin:-10px;border:10px solid transparent;border-radius:16px;background-clip:padding-box;box-shadow:inset 0 0 0 1.5px var(--line-strong)}
.oos-bundles-gift .oos-check:checked{box-shadow:inset 0 0 0 1.5px var(--outline)}
.oos-bundles-gift .oos-check:focus-visible{outline-offset:-7px;border-radius:16px}
.oos-bundles-gift .oos-field{max-width:420px}
.oos-bundles-hero__pay{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:18px;font:500 13px/1 var(--font-sans);color:var(--ink-faint)}

/* The receipt: four prices, the bundle price, what's left over. In front of the cast on desktop. */
.oos-bundles-receipt{grid-area:stage;position:relative;z-index:8;align-self:center;justify-self:stretch;width:auto;margin:44px 44px 44px 8px;padding:16px 22px 18px;border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-float),inset 0 0 0 1px var(--line)}
.oos-bundles-receipt > div{display:flex;align-items:baseline;gap:12px}
.oos-bundles-receipt dt,.oos-bundles-receipt dd{margin:0}
.oos-bundles-receipt__row{padding:6px 0}
.oos-bundles-receipt__row dt{display:flex;align-items:baseline;gap:10px;min-width:0;font:600 15px/1.3 var(--font-sans);color:var(--ink)}
.oos-bundles-receipt__row dt a{position:relative;z-index:1;color:inherit;transition:color var(--dur-quick)}
.oos-bundles-receipt__row dt a:hover{color:var(--pink)}
.oos-bundles-receipt__row dt small{font:500 11px/1 var(--font-mono);letter-spacing:.04em;color:var(--ink-faint)}
.oos-bundles-receipt__row::after{content:'';order:1;flex:1;min-width:16px;border-bottom:1.5px dotted var(--line-strong);transform:translateY(-4px)}
.oos-bundles-receipt__row dd{order:2;font:800 16px/1 var(--font-sans);letter-spacing:-.01em;color:var(--ink-soft);white-space:nowrap}
.oos-bundles-receipt__total{flex-wrap:wrap;justify-content:space-between;margin-top:10px;padding-top:16px;border-top:1px dashed var(--line-strong)}
.oos-bundles-receipt__total dt{font:700 15px/1.3 var(--font-sans);color:var(--ink)}
.oos-bundles-receipt__total .oos-price--lg{justify-content:flex-end;font-size:40px;text-align:right}
.oos-bundles-receipt__total .oos-price--lg small{font-size:14px}
.oos-bundles-receipt__note{flex-basis:100%}
.oos-bundles-receipt__save{justify-content:space-between;margin-top:8px;font:700 15px/1.3 var(--font-sans);color:var(--ink-soft)}
.oos-bundles-receipt__save dd{font:800 16px/1 var(--font-sans);color:var(--mint)}
.oos-bundles-receipt:has([data-bundle-save-amount]:empty) .oos-bundles-receipt__save,
.oos-bundles-hero__panel:has([data-bundle-save][hidden]) .oos-bundles-receipt__save{display:none}

/* The stage: a setting sun, two palms, the cast in front. */
.oos-bundles-hero__stage{grid-area:stage;position:relative;min-height:560px}
.oos-bundles-hero__scene{position:absolute;inset:0;overflow:hidden;border-radius:0 var(--radius-xl) var(--radius-xl) 0}
.oos-bundles-hero .oos-stage.oos-bundles-hero__sun{left:50%;top:6%;bottom:auto;width:min(470px,84%);transform:translateX(-50%)}
.oos-bundles-hero__palm{position:absolute;bottom:22%;width:26%;height:auto;color:var(--frame)}
.oos-bundles-hero__palm--l{left:-5%}
.oos-bundles-hero__palm--r{right:-6%;width:22%;transform:scaleX(-1)}
.oos-bundles-hero__cast{left:0;right:0;bottom:44px;height:calc(100% + 40px);margin-inline:auto}
.oos-bundles-hero__cast .oos-bundles-hero__fig{position:absolute;bottom:0;width:auto;max-width:none}
.oos-bundles-hero__cast .oos-bundles-hero__fig--driver{left:1%;height:88%;z-index:2}
.oos-bundles-hero__cast .oos-bundles-hero__fig--staff{left:25%;height:79%;z-index:1}
.oos-bundles-hero__cast .oos-bundles-hero__fig--owner{left:44%;height:81%;z-index:1}
.oos-bundles-hero__cast .oos-bundles-hero__fig--passenger{right:0;height:87%;z-index:2}

/* ---------- Trust row under the hero ---------- */
.oos-bundles-trust{margin-top:var(--space-10);padding:26px 4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}

/* ---------- What's inside ---------- */
.oos-bundles-inside__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-6)}
.oos-bundles-item{position:relative;display:flex;flex-direction:column;border-radius:var(--radius-lg);background:var(--surface);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);transition:transform var(--dur-base) var(--ease-out),background .3s,box-shadow var(--dur-base) var(--ease-out)}
.oos-bundles-item:hover{transform:translateY(-6px);background:var(--surface-hover);box-shadow:var(--shadow-lift),inset 0 0 0 1px rgba(201,194,241,.1)}
.oos-bundles-item__media{position:relative;aspect-ratio:16/10;background:var(--frame)}
.oos-bundles-item:hover .oos-media__img{transform:scale(1.05)}
.oos-bundles-item__n{position:absolute;left:12px;top:12px;z-index:4;display:inline-grid;place-items:center;height:26px;padding:0 8px;border-radius:var(--radius-chip);background:var(--night);font:500 12px/1 var(--font-mono);color:var(--lilac);box-shadow:inset 0 0 0 1px var(--line-strong)}
.oos-bundles-item__body{display:flex;flex-direction:column;flex:1;gap:10px;padding:18px 20px 20px}
.oos-bundles-item__title{font:700 21px/1.15 var(--font-sans);letter-spacing:-.015em;color:var(--ink)}
.oos-bundles-item__title a::after{content:'';position:absolute;inset:0;z-index:1}
.oos-bundles-item__text{font-size:15px;line-height:1.5;color:var(--ink-soft)}
.oos-bundles-item__facts{list-style:none;display:grid;gap:6px;margin:2px 0 0;padding:0}
.oos-bundles-item__facts li{display:flex;gap:8px;font-size:13.5px;line-height:1.4;color:var(--ink-faint)}
.oos-bundles-item__facts .oos-i{width:15px;height:15px;margin-top:1px;color:var(--lilac)}
.oos-bundles-item__ft{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px}
.oos-bundles-item__ft .oos-price{font-size:22px}
.oos-bundles-item__go{display:inline-flex;align-items:center;gap:6px;font:700 14px/1 var(--font-sans);color:var(--ink-soft);transition:color var(--dur-quick)}
.oos-bundles-item__go .oos-i{width:16px;height:16px;transition:transform var(--dur-base) var(--ease-out)}
.oos-bundles-item:hover .oos-bundles-item__go{color:var(--ink)}
.oos-bundles-item:hover .oos-bundles-item__go .oos-i{transform:translateX(3px)}

/* ---------- The honest note ---------- */
.oos-bundles-note{padding-top:var(--space-16)}
.oos-bundles-note__panel{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;padding:26px 30px;border-radius:var(--radius-xl);border:1px dashed var(--line-strong)}
.oos-bundles-note__icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--surface);color:var(--lilac)}
.oos-bundles-note__icon .oos-i{width:24px;height:24px}
.oos-bundles-note__title{font:700 20px/1.25 var(--font-sans);letter-spacing:-.01em;color:var(--ink)}
.oos-bundles-note p{max-width:660px;margin-top:6px;font-size:15.5px;line-height:1.55;color:var(--ink-soft)}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .oos-store-hero__in{grid-template-columns:1fr;gap:28px}
  .oos-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .oos-store-grid > .oos-bundle:nth-child(2n of :not([hidden])){grid-column:auto;grid-template-columns:1fr}
  .oos-store-grid > .oos-bundle:nth-child(2n of :not([hidden])) .oos-bundle__media{grid-template-columns:1fr 1fr;gap:10px;padding:0 18px 18px;min-height:0}
  .oos-store-start__panel{grid-template-columns:minmax(0,1fr) 210px}
  .oos-store-start__art{right:12px;width:190px}
  /* One column: the stage on top, then the offer. The key comes before the receipt so it stays in the first screen. */
  .oos-bundles-hero__crumbs{margin-bottom:64px}
  .oos-bundles-hero__panel{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"copy" "buy" "receipt"}
  .oos-bundles-hero__stage{min-height:340px}
  .oos-bundles-hero__scene{border-radius:var(--radius-xl) var(--radius-xl) 0 0}
  .oos-bundles-hero__cast{bottom:0;width:min(600px,100%);height:calc(100% + 56px)}
  .oos-bundles-hero .oos-stage.oos-bundles-hero__sun{top:10%;width:min(440px,78%)}
  .oos-bundles-hero__copy{padding:30px 36px 0}
  .oos-bundles-hero__buy{width:100%;max-width:620px;padding:24px 36px 0}
  .oos-bundles-receipt{grid-area:receipt;align-self:auto;justify-self:stretch;width:auto;margin:28px 36px 36px;box-shadow:inset 0 0 0 1px var(--line)}
  .oos-bundles-receipt__row{padding:0}
  .oos-bundles-receipt__row dt a{display:inline-flex;align-items:center;min-height:40px}
  .oos-bundles-inside__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .oos-store-hero{padding:30px 0 30px}
  .oos-store-hero .oos-trust{grid-template-columns:1fr 1fr;gap:16px}
  .oos-store-catalog{padding-top:20px}
  .oos-store-toolbar{flex-direction:column;align-items:stretch}
  .oos-store-filters button{flex:1;justify-content:center;padding:0 10px}
  .oos-store-search{max-width:none;flex-basis:auto}
  .oos-store-sort{margin-left:0}
  .oos-store-sort .oos-select{flex:1;min-width:0}
  .oos-store-grid{grid-template-columns:1fr}
  .oos-store-grid > .oos-bundle{grid-column:auto}
  .oos-store-grid > .oos-bundle .oos-bundle__title{font-size:28px}
  .oos-store-grid > .oos-bundle .oos-bundle__media{grid-template-columns:1fr 1fr;gap:10px;padding:0 18px 18px}
  .oos-store-grid > .oos-bundle .oos-bundle__copy{padding:24px 22px 20px}
  .oos-store-start__panel{grid-template-columns:1fr}
  .oos-store-start__routes{padding:8px}
  .oos-store-route{grid-template-columns:1fr;gap:16px;padding:20px 16px}
  .oos-store-route + .oos-store-route::before{left:16px;right:16px}
  .oos-store-route__side{justify-content:space-between}
  .oos-store-start__art{display:none}
  .oos-bundles-hero{padding-top:22px}
  .oos-bundles-hero__crumbs{margin-bottom:50px}
  .oos-bundles-hero__copy{padding:22px 18px 0}
  .oos-bundles-hero__stage{min-height:224px}
  .oos-bundles-hero__cast{height:calc(100% + 44px)}
  .oos-bundles-hero__buy{padding:20px 18px 0}
  .oos-bundles-receipt{margin:22px 12px 12px;padding:12px 14px 14px}
  .oos-bundles-receipt__total .oos-price--lg{font-size:34px}
  .oos-bundles-trust{padding:22px 0}
  .oos-bundles-inside__grid{grid-template-columns:1fr}
  .oos-bundles-note__panel{grid-template-columns:1fr;gap:14px;padding:22px 20px}
}
@media (max-width:420px){
  .oos-store-hero .oos-trust{grid-template-columns:1fr;gap:14px}
  .oos-bundles-receipt__row dt small{display:none}
}
@media (max-width:400px){
  .oos-bundles-hero__long,.oos-bundles-hero__add > .oos-i{display:none}
  .oos-bundles-hero__add{padding:0 20px}
}

/* Bundle hero: first-order code on top of the bundle saving */
.oos-bundles-promo{display:flex;align-items:flex-start;gap:12px;max-width:520px;margin-top:22px;padding:14px 16px;border-radius:14px;background:rgba(253,245,196,.05);box-shadow:inset 0 0 0 1px rgba(253,245,196,.18)}
.oos-bundles-promo__icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:rgba(253,245,196,.12);color:var(--lemon)}
.oos-bundles-promo__icon .oos-i{width:19px;height:19px}
.oos-bundles-promo p{margin:0;font-size:14.5px;line-height:1.75;color:var(--ink-soft)}
.oos-bundles-promo b{color:var(--ink)}
.oos-bundles-promo .oos-code{height:32px;margin:0 2px;vertical-align:middle}
