:root {
  --ink: #1b1837;
  --muted: #53516c;
  --paper: #fbf7ef;
}
* { box-sizing: border-box; }
.shop2 { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 500 1rem/1.4 Fredoka,system-ui,sans-serif; }
.shop2 a { color: inherit; }
.shop2 :focus-visible { outline: 3px solid #9d266b; outline-offset: 3px; }
.shop2-main { width: min(100% - 32px,1150px); margin-inline: auto; padding: 8px 0 45px; }
.shop2-category-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 12px 0 16px; }
.shop2-category-heading h1,.shop2-catalog-heading h1 { margin: 0; font-size: clamp(1.9rem,5.7vw,3.7rem); letter-spacing: -.035em; line-height: 1.03; }
.shop2-carousel-controls { display: flex; flex: none; gap: 6px; }
.shop2-carousel-controls[hidden] { display: none; }
.shop2-carousel-controls button {
  width: clamp(35px,8vw,43px); height: clamp(35px,8vw,43px);
  border: 1px solid #afa3b2; border-radius: 50%; background: #fffaf5; color: #1b1837;
  cursor: pointer; font: 650 1.2rem/1 Fredoka,system-ui,sans-serif;
}
.shop2-carousel-controls button:hover:not(:disabled) { background: #efe4ff; border-color: #885aaa; }
.shop2-carousel-controls button:disabled { opacity: .38; cursor: default; }
.shop2-categories {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(185px,27vw,270px);
  gap: clamp(10px,1.4vw,16px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #c3abc9 transparent;
  scrollbar-width: thin;
  padding: 3px 3px 14px;
  scroll-padding-inline: 3px;
}
.shop2-category {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--category-border);
  border-radius: 21px;
  background: var(--category-tint);
  color: #21193c !important;
  text-decoration: none;
  scroll-snap-align: start;
  box-shadow: 0 3px 9px #20153f13;
}
.shop2-category:focus-visible { outline-offset: -4px; }
.category-sleep { --category-tint:#e1edff; --category-border:#a8d0fe; --portrait-position:17%; --portrait-zoom:1.18; --portrait-origin:63%; }
.category-mental { --category-tint:#fff0d4; --category-border:#e8ba77; --portrait-position:51%; --portrait-zoom:1.9; --portrait-origin:32%; }
.category-routine { --category-tint:#eee4ff; --category-border:#ccb4ef; --portrait-position:61%; --portrait-zoom:1.4; --portrait-origin:52%; }
.category-nutrition { --category-tint:#dcf5ee; --category-border:#9bd7c6; --portrait-position:56%; --portrait-zoom:1.7; --portrait-origin:35%; }
.category-performance { --category-tint:#ffe4df; --category-border:#f2aca1; --portrait-position:40%; --portrait-zoom:1.65; --portrait-origin:31%; }
.shop2-category-title { display: grid; min-height: 70px; align-content: center; padding: 9px 13px; font-size: clamp(1.21rem,2.4vw,1.65rem); line-height: 1.08; }
.shop2-category-title small { font-size: .7em; margin-top: 4px; }
.shop2-portrait { position: relative; display: block; overflow: hidden; aspect-ratio: .9; background: var(--category-tint); }
.shop2-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: var(--portrait-position) center; scale: var(--portrait-zoom); transform-origin: 50% var(--portrait-origin); transition: scale .22s ease; }
.shop2-category:hover img { scale: calc(var(--portrait-zoom) * 1.035); }
.shop2-catalog-heading { margin: 7px 0 15px; }
.shop2-catalog-heading h1 { font-size: clamp(1.72rem,5vw,2.9rem); }
.track-apprendre { --track-tint: #fff2c1; --track-surface: #fff8db; --track-accent: #ffda67; --track-edge: #c69222; --track-ink: #493500; }
.track-equiper { --track-tint: #d9f6dc; --track-surface: #ebfae9; --track-accent: #a8e2ab; --track-edge: #5ba875; --track-ink: #16472d; }
.track-booster { --track-tint: #ffdbd3; --track-surface: #fff0ed; --track-accent: #ff9e8e; --track-edge: #cd7165; --track-ink: #6a251e; }
.shop2-tracks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(5px,1.3vw,12px); }
.shop2-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px,1vw,10px);
  min-width: 0;
  min-height: 48px;
  padding: 5px 3px;
  border: 1px solid var(--track-edge);
  border-radius: 15px;
  background: var(--track-tint);
  color: var(--track-ink) !important;
  font-size: clamp(.88rem,2.4vw,1.3rem);
  font-weight: 650;
  text-decoration: none;
}
.shop2-track[aria-current],.shop2-track:hover { background: var(--track-accent); }
.shop2-track[aria-current] { box-shadow: inset 0 -2px var(--track-edge); }
.shop2-icon { display: grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 10px; background: var(--track-accent); font-size: 1.25rem; }
.shop2-back { display: inline-flex; align-items: center; width: fit-content; min-height: 42px; padding: 4px 12px; border: 1px solid #cdbfd6; border-radius: 99px; text-decoration: none; }
.shop2-back:hover { background: #f4e9ff; }
.shop2-catalog-footer { display: grid; gap: 9px; justify-items: start; margin-top: 27px; }
.shop2-catalog-footer img { display: block; width: min(100%,330px); height: auto; border-radius: 15px; }

.shop2-heading { margin: 8px 0 16px; }
.shop2-heading h1 { margin: 0; font-size: clamp(2rem,6vw,3.5rem); line-height: 1; }
.shop2-heading p { margin: 7px 0 0; }
.shop2-kicker { letter-spacing: .08em; font-size: .8rem; font-weight: 650; }
.shop2-detail,.shop2-resource {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--track-edge); border-radius: 17px;
  color: var(--track-ink); background: var(--track-tint);
}
.shop2-detail { padding: clamp(14px,4vw,24px); }
.shop2-subnav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.shop2-subnav a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 5px 12px;
  border: 1px solid #cbbcd4; border-radius: 99px; text-decoration: none;
}
.shop2-subnav a[aria-current],.shop2-subnav a:hover { color: var(--track-ink); background: var(--track-accent); border-color: var(--track-edge); }
.shop2-resources { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.shop2-resource { align-items: flex-start; }
.shop2-resource h2 { margin: 0; font-size: 1.18rem; line-height: 1.14; }
.shop2-resource p { margin: 6px 0; }
.shop2-resource a { display: inline-flex; align-items: center; min-height: 38px; font-weight: 650; text-underline-offset: 4px; }
html[data-theme="dark"] { --ink: #fbedff; --muted: #d5cadd; --paper: #171323; }
html[data-theme="dark"] .shop2-back:hover { background: #392a47; }
@media (max-width:700px) { .shop2-resources { grid-template-columns: 1fr; } }
@media (max-width:475px) {
  .shop2-main { width: calc(100% - 24px); }
  .shop2-track .shop2-icon { width: 24px; height: 26px; font-size: 1.03rem; }
}
@media (prefers-reduced-motion: reduce) { .shop2-portrait img { transition: none; } }

.shop2-category-back,.shop2-rewards-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  text-underline-offset: 4px;
  font-weight: 650;
}
.shop2-catalog-heading .shop2-rewards-link { margin-top: 2px; }
.shop2-fiche {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.12fr);
  align-items: center;
  gap: clamp(12px,4vw,35px);
  margin-top: 12px;
  padding: clamp(12px,4vw,30px);
  border: 1px solid color-mix(in srgb,var(--ink) 18%,transparent);
  border-radius: 20px;
  background: color-mix(in srgb,var(--paper) 89%,var(--ink));
}
.shop2-fiche .shop2-object-stage { min-height: 145px; border-radius: 15px; }
.shop2-fiche .sleep-product-symbol { font-size: clamp(3.3rem,10vw,6rem); }
.shop2-fiche-domain { font-weight: 650; margin: 0 0 5px; }
.shop2-fiche h1 { margin: 0; font-size: clamp(1.65rem,5vw,3.2rem); line-height: 1.05; }
.shop2-fiche h2 { margin-bottom: 0; font-size: 1.15rem; }
@media (max-width: 540px) { .shop2-fiche { grid-template-columns: 1fr; } }

/* Shop 2: full illustrations, large tiles and a pearlescent domain card. */
.shop2-main { width:min(100% - 36px,1240px); padding:18px 0 60px; }
.shop2-category-heading { margin:12px 0 24px; }
.shop2-categories { grid-auto-columns:clamp(180px,27vw,250px); gap:18px; padding:4px 4px 20px; }
@media(min-width:1050px){.shop2-categories{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:unset;overflow:visible;}}
.shop2-category { border-radius:24px; background:linear-gradient(145deg,#fff,var(--category-tint)); }
.shop2-category-title { min-height:76px; padding:14px 14px 9px; }
.shop2-portrait { aspect-ratio:1.27; padding:8px; background:transparent; }
.shop2-portrait img { object-fit:contain; object-position:center; scale:1; transform-origin:center; border-radius:15px; }
.shop2-category:hover img { scale:1.02; }
.shop2-rewards-link { display:none !important; }
.shop2-catalog-heading { margin:0 0 26px; }
.shop2-category-back,.shop2-back { margin:0 0 13px; text-decoration:none; }
.shop2-pearl-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr); align-items:center; gap:clamp(14px,4vw,44px); border:1px solid var(--pearl-edge,#b5d6ee); border-radius:27px; padding:clamp(20px,4vw,46px); color:#19163d; background:linear-gradient(135deg,#fff 5%,var(--pearl-tint,#e1f0ff) 68%,#fff 100%); box-shadow:0 8px 28px #19163d0e; }
.shop2-pearl-hero h1 { font-size:clamp(1.8rem,4.9vw,3.5rem); }
.shop2-pearl-hero img { display:block; width:100%; height:auto; max-height:240px; object-fit:contain; border-radius:18px; }
[data-shop-theme="mental"] { --pearl-tint:#fff0d4; --pearl-edge:#e8ba77; }
[data-shop-theme="routine"] { --pearl-tint:#eee4ff; --pearl-edge:#ccb4ef; }
[data-shop-theme="nutrition"] { --pearl-tint:#dcf5ee; --pearl-edge:#9bd7c6; }
[data-shop-theme="performance"] { --pearl-tint:#ffe4df; --pearl-edge:#f2aca1; }
.shop2-tracks { gap:clamp(10px,2vw,22px); }
.shop2-track { flex-direction:column; min-height:clamp(112px,17vw,185px); padding:18px 8px; border-radius:24px; border-bottom-width:4px; font-size:clamp(1rem,2.4vw,1.8rem); box-shadow:0 6px 18px #19163d0b; }
.shop2-track .shop2-icon { width:clamp(38px,7vw,70px); height:clamp(38px,7vw,70px); border-radius:17px; font-size:clamp(1.5rem,4vw,2.7rem); }
.shop2-path .shop2-main { background:var(--track-surface); border-radius:27px; padding:clamp(16px,4vw,32px); margin-block:16px 44px; }
.shop2-resources { gap:18px; }.shop2-resource { padding:20px; border-radius:20px; }
@media(max-width:600px){.shop2-main{width:calc(100% - 24px)} .shop2-pearl-hero{grid-template-columns:1fr;text-align:center} .shop2-pearl-hero img{max-height:175px} .shop2-track{padding:14px 5px} }

.shop2 .shop2-main { padding-top:24px; }
.shop2 .shop2-category { display:flex;flex-direction:column; }
.shop2 .shop2-portrait { aspect-ratio:1.12; padding:12px; }
.shop2 .shop2-portrait img { object-fit:contain; scale:1!important; }
.shop2 .shop2-category-title { min-height:82px; }
.shop2 .shop2-pearl-hero { background:radial-gradient(ellipse at 12% 10%,#fff 0%,transparent 62%),linear-gradient(130deg,#fff,var(--pearl-tint,#e1f0ff) 60%,#fff 100%); }
.shop2 .shop2-track { min-height:clamp(130px,19vw,210px); }
.shop2 .shop2-track[aria-current] { outline:2px solid var(--track-edge); outline-offset:2px; }
.shop2 .shop2-track .shop2-icon { margin-bottom:4px; }
@media(max-width:600px){.shop2 .shop2-track{min-height:116px}.shop2 .shop2-portrait{padding:9px}}

/* Horizontal, animated category cards: the full composition enlarges on hover. */
.shop2 #shop2-carousel { display:flex; flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; gap:20px; padding:25px 12px 35px; scrollbar-width:thin; scroll-padding-inline:12px; }
.shop2 #shop2-carousel .shop2-category { flex:0 0 clamp(270px,32vw,385px); scroll-snap-align:center; transition:transform .25s ease,box-shadow .25s ease; }
.shop2 #shop2-carousel .shop2-category-title { min-height:60px; display:flex; align-items:center; justify-content:center; padding:12px 7px; }
.shop2 #shop2-carousel .shop2-category-title strong { font-size:clamp(.96rem,1.5vw,1.25rem); white-space:nowrap; text-align:center; }
.shop2 #shop2-carousel .shop2-portrait { aspect-ratio:1.3; overflow:hidden; }
.shop2 #shop2-carousel .shop2-portrait img { transition:transform .35s cubic-bezier(.2,.8,.2,1); transform:scale(1); object-fit:contain; }
@media(hover:hover) and (prefers-reduced-motion:no-preference){.shop2 #shop2-carousel .shop2-category:hover {transform:translateY(-8px);box-shadow:0 16px 30px #19163d25;}.shop2 #shop2-carousel .shop2-category:hover img {transform:scale(1.24);}}
.shop2 #shop2-carousel .shop2-category:focus-visible {outline:3px solid #e7b625;}
@media(max-width:420px){.shop2 #shop2-carousel .shop2-category{flex-basis:min(85vw,320px)}}
