/* Wonder Aisle outer retail system. Loaded after the shared and generated styles. */
:root {
  --wonder-ink: #172554;
  --wonder-yellow: #ffd43b;
  --wonder-canvas: #f5f6f8;
  --wonder-line: #dfe3ea;
}

body { background: var(--wonder-canvas); color: var(--wonder-ink); }
.site-header { overflow: visible; border-bottom: 4px solid var(--wonder-yellow); background: var(--wonder-ink); color: #fff; }
.site-header::after { display: none; }
.site-navigation { width: min(calc(100% - 2rem), 1440px); min-height: 4.5rem; gap: 1.25rem; }
.site-brand { flex: 0 0 auto; gap: .65rem; }
.site-brand-badge { width: 2.65rem; height: 2.65rem; padding: .2rem; border: 0; border-radius: .55rem; background: var(--wonder-yellow); box-shadow: none; }
.site-brand-copy strong { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.25rem; font-weight: 900; letter-spacing: -.045em; }
.site-brand-copy small { color: rgb(255 255 255 / 70%); font-size: .6rem; letter-spacing: .06em; }
.site-links { gap: .15rem; }
.site-links a { border-radius: .35rem; color: rgb(255 255 255 / 84%); font-size: .82rem; }
.site-links a:hover, .site-links a.is-current { border-color: transparent; background: rgb(255 255 255 / 13%); color: #fff; }
.site-links a.is-current { box-shadow: inset 0 -3px 0 var(--wonder-yellow); }
.site-links .site-saved-link { border-color: rgb(255 255 255 / 28%); }
.site-saved-link > span { color: var(--wonder-yellow); }
.site-shop-menu-item { position: relative; }
.site-shop-menu > summary { display: flex; min-height: 2.25rem; align-items: center; gap: .3rem; padding: .45rem .7rem; border-radius: .35rem; color: rgb(255 255 255 / 84%); font-size: .82rem; font-weight: 700; cursor: pointer; list-style: none; }
.site-shop-menu > summary::-webkit-details-marker { display: none; }
.site-shop-menu > summary:hover, .site-shop-menu > summary.is-current, .site-shop-menu[open] > summary { background: rgb(255 255 255 / 13%); color: #fff; }
.site-shop-menu > summary.is-current { box-shadow: inset 0 -3px 0 var(--wonder-yellow); }
.site-shop-menu > summary > span { transition: transform .16s ease; }
.site-shop-menu[open] > summary > span { transform: rotate(180deg); }
.site-shop-menu-panel { position: absolute; z-index: 50; top: calc(100% + .35rem); right: 0; display: grid; width: min(34rem, calc(100vw - 1rem)); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; padding: .55rem; border: 1px solid var(--wonder-line); border-radius: .6rem; background: #fff; box-shadow: 0 1rem 2.5rem rgb(11 20 48 / 24%); }
.site-shop-menu-panel::before { content: ""; position: absolute; right: 0; bottom: 100%; width: 100%; height: .4rem; }
.site-links .site-shop-menu-link { display: grid; min-width: 0; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: center; gap: .65rem; padding: .55rem; color: var(--wonder-ink); text-align: left; }
.site-links .site-shop-menu-link:hover, .site-links .site-shop-menu-link.is-current { background: #f2f4f8; color: var(--wonder-ink); box-shadow: none; }
.site-shop-menu-link strong, .site-shop-menu-link small { display: block; overflow: hidden; text-overflow: ellipsis; }
.site-shop-menu-link strong { font-size: .86rem; line-height: 1.2; white-space: nowrap; }
.site-shop-menu-link small { margin-top: .18rem; color: #647087; font-size: .7rem; line-height: 1.25; white-space: nowrap; }
.site-shop-menu-icon { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 1px solid color-mix(in srgb, var(--menu-shop-accent, var(--wonder-ink)) 24%, white); border-radius: .55rem; color: var(--menu-shop-accent, var(--wonder-ink)); background: color-mix(in srgb, var(--menu-shop-accent, var(--wonder-ink)) 10%, white); }
.site-shop-menu-icon svg { width: 1.55rem; height: 1.55rem; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body .site-header .site-links .site-shop-menu-link { display: grid; min-width: 0; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: center; gap: .65rem; padding: .55rem; color: var(--wonder-ink); }
body .site-header .site-shop-menu-link > span:last-child { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; white-space: normal; }
body .site-header .site-shop-menu-link strong { display: block; width: 100%; min-width: 0; color: var(--wonder-ink); line-height: 1.2; white-space: normal; }
body .site-header .site-shop-menu-link small { display: block; width: 100%; min-width: 0; margin-top: .18rem; color: #647087; line-height: 1.25; white-space: normal; }
body .site-header .site-shop-menu-icon { width: 2.4rem; min-width: 2.4rem; height: 2.4rem; flex: 0 0 2.4rem; }
body .site-header .site-shop-menu-icon svg { width: 1.55rem; min-width: 1.55rem; height: 1.55rem; flex: 0 0 1.55rem; }
.store-search { min-width: 12rem; max-width: 38rem; flex: 1 1 25rem; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: stretch; }
.store-search input, .store-search select, .store-search button { min-height: 2.7rem; border: 0; font: inherit; }
.store-search input { min-width: 0; padding: .55rem .8rem; border-radius: .35rem 0 0 .35rem; color: var(--wonder-ink); }
.store-search select { max-width: 10rem; padding: .45rem .55rem; border-left: 1px solid var(--wonder-line); color: var(--wonder-ink); background: #fff; }
.store-search button { padding-inline: .9rem; border-radius: 0 .35rem .35rem 0; background: var(--wonder-yellow); color: var(--wonder-ink); font-weight: 850; cursor: pointer; }
.store-search input:focus-visible, .store-search select:focus-visible, .store-search button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.site-frame { width: min(calc(100% - 2rem), 1440px); }
.site-main { padding-block: 1.25rem 3rem; }
.site-footer { border-top-color: var(--wonder-line); background: #fff; }
.site-footer > div { width: min(calc(100% - 2rem), 1440px); }

/* The directory is a bright store entrance; the aisles below carry the detail. */
.wonder-home-market { gap: 1.25rem; }
.wonder-home-market .wonder-home-hero { min-height: 0; border: 0; border-radius: .75rem; background: var(--wonder-ink); box-shadow: none; }
.wonder-home-market .wonder-home-hero-copy { padding: clamp(1.5rem, 5vw, 3.5rem); }
.wonder-home-market .wonder-home-kicker { color: var(--wonder-yellow); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wonder-home-market .wonder-home-hero h1 { max-width: 12ch; color: #fff; font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.35rem, 6vw, 5rem); font-weight: 950; letter-spacing: -.065em; }
.wonder-home-market .wonder-home-lead { max-width: 48ch; color: rgb(255 255 255 / 78%); }
.wonder-home-market .wonder-home-primary-action { border-radius: .35rem; background: var(--wonder-yellow); color: var(--wonder-ink); }
.wonder-home-market .wonder-home-primary-action:hover { background: #ffe478; }
.wonder-home-market .wonder-home-section-heading h2 { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 900; letter-spacing: -.055em; }
.wonder-home-market .wonder-aisle-card { border: 1px solid var(--wonder-line); border-radius: .6rem; background: #fff; box-shadow: 0 .35rem 1.1rem rgb(23 37 84 / 5%); }
.wonder-home-market .wonder-aisle-card-media { min-height: 260px; }
.wonder-home-market .wonder-aisle-card-copy { padding: 1.2rem 1.35rem; }
.wonder-home-market .wonder-aisle-card h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.045em; }
.wonder-home-market .wonder-aisle-card-copy > p:not(.wonder-aisle-status) { color: #536079; }
.wonder-home-market .wonder-aisle-enter { color: var(--wonder-ink); font-weight: 850; }
.wonder-home-market .wonder-aisle-enter:hover { color: #3f62ca; }
.wonder-home-market .wonder-aisle-number { background: var(--wonder-yellow); color: var(--wonder-ink); }
.wonder-home-partner-note { color: #647087; }
.wonder-home-welcome h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .42em; margin: 0; color: #fff; font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 900; letter-spacing: -.045em; }
.wonder-home-welcome h1 small { color: rgb(255 255 255 / 72%); font-size: .58em; font-weight: 650; letter-spacing: -.015em; }

/* Theme tokens keep each inner shop recognisable while the outer canvas stays retail. */
.shop-shell[data-theme="playful-curator"], .shop-shell[data-theme="playful"] {
  --theme-brand: #7350ad; --theme-accent: #d9c7f4; --theme-canvas: #f8f5ff; --theme-surface: #fff; --theme-text: #291b45;
  --shop-primary: #7350ad; --shop-accent: #d9c7f4; --ds-color-canvas: #f8f5ff; --ds-color-surface: #fff; --ds-color-text: #291b45; --ds-color-line: #ded5ed; --ds-color-muted: #625a70;
}
.shop-shell[data-theme="robotic-department"] {
  --theme-brand: #1556c0; --theme-accent: #59d8ef; --theme-canvas: #f2f8fc; --theme-surface: #fff; --theme-text: #10233f;
  --shop-primary: #1556c0; --shop-accent: #59d8ef; --ds-color-canvas: #f2f8fc; --ds-color-surface: #fff; --ds-color-text: #10233f; --ds-color-line: #c8d9e6; --ds-color-muted: #526579;
}
.shop-shell[data-theme="space-explorer"] {
  --theme-brand: #3856c7; --theme-accent: #9ee7ff; --theme-canvas: #eef2ff; --theme-surface: #fff; --theme-text: #111b44;
  --shop-primary: #3856c7; --shop-accent: #9ee7ff; --ds-color-canvas: #eef2ff; --ds-color-surface: #fff; --ds-color-text: #111b44; --ds-color-line: #cbd5f5; --ds-color-muted: #596481;
  --ds-font-display: ui-rounded, "Trebuchet MS", var(--ds-font-body);
  --ds-radius-sm: .65rem; --ds-radius-md: .9rem; --ds-radius-lg: 1.25rem; --ds-radius-xl: 1.7rem;
  --ds-shadow-sm: 0 .55rem 1.6rem rgb(31 43 112 / 10%); --ds-shadow-md: 0 1rem 2.5rem rgb(31 43 112 / 15%);
}
.shop-shell[data-theme="brick-builder"] {
  --theme-brand: #d9282f; --theme-accent: #ffd447; --theme-canvas: #fff8e8; --theme-surface: #fff; --theme-text: #33251d;
  --shop-primary: #d9282f; --shop-accent: #ffd447; --ds-color-canvas: #fff8e8; --ds-color-surface: #fff; --ds-color-text: #33251d; --ds-color-line: #ecd9b9; --ds-color-muted: #756454;
  --ds-font-display: ui-rounded, "Trebuchet MS", var(--ds-font-body); --ds-radius-sm: .35rem; --ds-radius-md: .55rem; --ds-radius-lg: .8rem; --ds-radius-xl: 1rem;
  --ds-shadow-sm: 0 .35rem 0 rgb(51 37 29 / 12%); --ds-shadow-md: 0 .7rem 1.4rem rgb(51 37 29 / 14%);
}
.shop-shell[data-theme="train-heritage"] {
  --shop-primary: var(--theme-brand); --shop-accent: var(--theme-accent); --ds-color-canvas: var(--theme-canvas); --ds-color-surface: var(--theme-surface); --ds-color-text: var(--theme-text);
  --ds-font-display: ui-rounded, "Trebuchet MS", var(--ds-font-body); --ds-radius-sm: .35rem; --ds-radius-md: .55rem; --ds-radius-lg: .75rem;
}
.shop-shell[data-theme="rc-performance"] {
  --shop-primary: var(--theme-brand); --shop-accent: var(--theme-accent); --ds-color-canvas: var(--theme-canvas); --ds-color-surface: var(--theme-surface); --ds-color-text: var(--theme-text);
  --ds-font-display: ui-rounded, "Trebuchet MS", var(--ds-font-body); --ds-radius-sm: .3rem; --ds-radius-md: .5rem; --ds-radius-lg: .7rem;
}
.shop-shell[data-theme="fantasy-enchanted"] {
  --theme-brand: #5B2A86; --theme-accent: #F2A65A; --theme-canvas: #F5EEFF; --theme-surface: #fff; --theme-text: #241533;
  --shop-primary: #5B2A86; --shop-accent: #F2A65A; --ds-color-canvas: #F5EEFF; --ds-color-surface: #fff; --ds-color-text: #241533; --ds-color-line: #decce9; --ds-color-muted: #665776;
  --ds-font-display: ui-rounded, "Trebuchet MS", var(--ds-font-body); --ds-radius-sm: .45rem; --ds-radius-md: .7rem; --ds-radius-lg: .95rem; --ds-radius-xl: 1.2rem;
  --ds-shadow-sm: 0 .35rem 1rem rgb(91 42 134 / 12%); --ds-shadow-md: 0 .8rem 1.8rem rgb(91 42 134 / 15%);
}
.shop-shell[data-theme="craft-workshop"] {
  --theme-brand: #176B67; --theme-accent: #E58C6B; --theme-canvas: #FFF8EC; --theme-surface: #fff; --theme-text: #173B3A;
  --shop-primary: #176B67; --shop-accent: #E58C6B; --ds-color-canvas: #FFF8EC; --ds-color-surface: #fff; --ds-color-text: #173B3A; --ds-color-line: #c9dfdc; --ds-color-muted: #4f6b69;
  --ds-font-display: ui-rounded, "Trebuchet MS", var(--ds-font-body); --ds-radius-sm: .35rem; --ds-radius-md: .55rem; --ds-radius-lg: .75rem; --ds-radius-xl: 1rem;
  --ds-shadow-sm: 0 .3rem .8rem rgb(23 107 103 / 10%); --ds-shadow-md: 0 .7rem 1.5rem rgb(23 107 103 / 13%);
}
.shop-shell[data-theme="halloween-autumn"] {
  --theme-brand: #35234A; --theme-accent: #F47B20; --theme-canvas: #FFF5E9; --theme-surface: #fff; --theme-text: #241A2D;
  --shop-primary: #35234A; --shop-accent: #F47B20; --ds-color-canvas: #FFF5E9; --ds-color-surface: #fff; --ds-color-text: #241A2D; --ds-color-line: #e6d8c9; --ds-color-muted: #695d70;
}
.shop-shell[data-theme="christmas-winter"] {
  --theme-brand: #174735; --theme-accent: #C8393B; --theme-canvas: #F2F8F4; --theme-surface: #fff; --theme-text: #20352A;
  --shop-primary: #174735; --shop-accent: #C8393B; --ds-color-canvas: #F2F8F4; --ds-color-surface: #fff; --ds-color-text: #20352A; --ds-color-line: #d2e1d7; --ds-color-muted: #596b60;
}
.shop-shell[data-theme="playful-curator"] .shop-masthead, .shop-shell[data-theme="playful"] .shop-masthead { background: #fff; border-top-color: #7350ad; }
.shop-shell[data-theme="robotic-department"] .shop-masthead { background: #fff; border-top-color: #1556c0; }
.shop-shell[data-theme="space-explorer"] .shop-masthead { background: linear-gradient(115deg, #101a4b, #202b71 68%, #3856c7); border-top-color: #9ee7ff; color: #fff; }
.shop-shell[data-theme="space-explorer"] .shop-masthead a { color: #d9f7ff; }
.shop-shell[data-theme="space-explorer"] .shop-masthead .shop-breadcrumb { color: rgb(217 247 255 / 78%); }
.shop-shell[data-theme="space-explorer"] .shop-masthead h1 { color: #fff; }
.shop-shell[data-theme="space-explorer"] .shop-masthead .shop-search input { background: #fff; color: #111b44; }
.shop-shell[data-theme="space-explorer"] .shop-search button { background: #9ee7ff; color: #101a4b; }
.shop-shell[data-theme="space-explorer"] .shop-masthead .saved-list-link { border-color: #9ee7ff; }
.shop-shell[data-theme="space-explorer"] .shop-category-link { border-radius: 1rem; }
.shop-shell[data-theme="space-explorer"] .product-card { border-radius: 1rem; }
.shop-shell[data-theme="space-explorer"] .product-card-media { background: linear-gradient(145deg, #f9fbff, #e9edff); }
.shop-shell[data-theme="brick-builder"] .shop-masthead { background: #fff; border-top-color: #d9282f; }
.shop-shell[data-theme="fantasy-enchanted"] .shop-masthead { background: linear-gradient(110deg, #40205f, #5B2A86 68%, #7640a1); border-top: 4px solid #F2A65A; color: #fff; }
.shop-shell[data-theme="fantasy-enchanted"] .shop-masthead,
.shop-shell[data-theme="fantasy-enchanted"] .shop-masthead h1 { color: #fff; }
.shop-shell[data-theme="fantasy-enchanted"] .shop-masthead .shop-breadcrumb,
.shop-shell[data-theme="fantasy-enchanted"] .shop-masthead .shop-breadcrumb a,
.shop-shell[data-theme="fantasy-enchanted"] .shop-masthead .saved-list-link { color: rgb(255 255 255 / 86%); }
.shop-shell[data-theme="fantasy-enchanted"] .shop-search button { background: #F2A65A; color: #241533; }
.shop-shell[data-theme="fantasy-enchanted"] .product-card-media { background: linear-gradient(145deg, #fff, #f0e5fb); }
.shop-shell[data-theme="fantasy-enchanted"] .affiliate-product-link { background: #5B2A86; color: #fff; }
.shop-shell[data-theme="craft-workshop"] .shop-masthead { background: linear-gradient(110deg, #104d4a, #176B67 68%, #25837d); border-top: 4px solid #E58C6B; color: #fff; }
.shop-shell[data-theme="craft-workshop"] .shop-masthead,
.shop-shell[data-theme="craft-workshop"] .shop-masthead h1 { color: #fff; }
.shop-shell[data-theme="craft-workshop"] .shop-masthead .shop-breadcrumb,
.shop-shell[data-theme="craft-workshop"] .shop-masthead .shop-breadcrumb a,
.shop-shell[data-theme="craft-workshop"] .shop-masthead .saved-list-link { color: rgb(255 255 255 / 86%); }
.shop-shell[data-theme="craft-workshop"] .shop-search button { background: #E58C6B; color: #173B3A; }
.shop-shell[data-theme="craft-workshop"] .product-card-media { background: linear-gradient(145deg, #fff, #fff1df); }
.shop-shell[data-theme="craft-workshop"] .affiliate-product-link { background: #176B67; color: #fff; }
.shop-shell[data-theme="train-heritage"] .shop-masthead { background: linear-gradient(110deg, color-mix(in srgb, var(--shop-primary) 88%, black), var(--shop-primary)); border-top: 4px solid var(--shop-accent); }
.shop-shell[data-theme="train-heritage"] .shop-masthead,
.shop-shell[data-theme="train-heritage"] .shop-masthead h1 { color: #fff; }
.shop-shell[data-theme="train-heritage"] .shop-masthead .shop-breadcrumb,
.shop-shell[data-theme="train-heritage"] .shop-masthead .shop-breadcrumb a,
.shop-shell[data-theme="train-heritage"] .shop-masthead .saved-list-link { color: rgb(255 255 255 / 84%); }
.shop-shell[data-theme="train-heritage"] .shop-search button { background: var(--shop-accent); color: var(--ds-color-text); }
.shop-shell[data-theme="train-heritage"] .product-card { border-color: var(--ds-color-line); border-radius: .35rem; }
.shop-shell[data-theme="train-heritage"] .product-card-media { background: linear-gradient(145deg, var(--ds-color-surface), color-mix(in srgb, var(--shop-accent) 18%, var(--ds-color-canvas))); }
.shop-shell[data-theme="rc-performance"] .shop-masthead { background: linear-gradient(110deg, color-mix(in srgb, var(--shop-primary) 88%, black), var(--shop-primary)); border-top: 4px solid var(--shop-accent); }
.shop-shell[data-theme="rc-performance"] .shop-masthead,
.shop-shell[data-theme="rc-performance"] .shop-masthead h1 { color: #fff; }
.shop-shell[data-theme="rc-performance"] .shop-masthead .shop-breadcrumb,
.shop-shell[data-theme="rc-performance"] .shop-masthead .shop-breadcrumb a,
.shop-shell[data-theme="rc-performance"] .shop-masthead .saved-list-link { color: rgb(255 255 255 / 84%); }
.shop-shell[data-theme="rc-performance"] .shop-search button { background: var(--shop-accent); color: var(--ds-color-text); }
.shop-shell[data-theme="rc-performance"] .product-card { border-color: var(--ds-color-line); border-radius: .35rem; }
.shop-shell[data-theme="rc-performance"] .product-card-media { background: linear-gradient(145deg, var(--ds-color-surface), color-mix(in srgb, var(--shop-accent) 18%, var(--ds-color-canvas))); }
.shop-shell[data-theme="brick-builder"] .shop-masthead h1 { color: #33251d; }
.shop-shell[data-theme="brick-builder"] .shop-search button { background: #ffd447; color: #33251d; }
.shop-shell[data-theme="brick-builder"] .shop-category-link { border-radius: .35rem; }
.shop-shell[data-theme="brick-builder"] .product-card { border-radius: .45rem; border-color: #ecd9b9; box-shadow: 0 .25rem 0 rgb(51 37 29 / 9%); }
.shop-shell[data-theme="brick-builder"] .product-card-media { background: linear-gradient(145deg, #fff4cf, #ffe5df); }
.shop-shell[data-theme="brick-builder"] .affiliate-product-link { background: #d9282f; color: #fff; }
.shop-shell[data-theme="playful-curator"] .shop-category-link, .shop-shell[data-theme="playful"] .shop-category-link { border-radius: 1rem; }
.shop-shell[data-theme="robotic-department"] .shop-category-link { border-radius: .25rem; }
.shop-shell[data-theme="playful-curator"] .product-card, .shop-shell[data-theme="playful"] .product-card { border-radius: .85rem; }
.shop-shell[data-theme="robotic-department"] .product-card { border-radius: .2rem; }
.product-detail, .collection-shell { border-radius: .65rem; }
/* Product details use the same outer canvas as the home and catalogue pages. */
.product-detail { max-width: none; }
.product-detail[data-theme="playful-curator"], .product-detail[data-theme="playful"] { background: #f8f5ff; }
.product-detail[data-theme="robotic-department"] { background: #f2f8fc; }
.product-detail[data-theme="playful-curator"] .product-detail-media img, .product-detail[data-theme="playful"] .product-detail-media img, .product-detail[data-theme="robotic-department"] .product-detail-media img { background: #fff; object-fit: contain; }
.collection-shell[data-theme="playful-curator"], .collection-shell[data-theme="playful"] { background: #f8f5ff; }
.collection-shell[data-theme="robotic-department"] { background: #f2f8fc; }
.collection-shell[data-theme="train-heritage"], .product-detail[data-theme="train-heritage"] { background: var(--theme-canvas); }
.collection-shell[data-theme="rc-performance"], .product-detail[data-theme="rc-performance"] { background: var(--theme-canvas); }
.collection-shell[data-theme="space-explorer"], .product-detail[data-theme="space-explorer"] { background: #eef2ff; }
.product-detail[data-theme="space-explorer"] .product-detail-media img { background: #fff; object-fit: contain; }
.collection-shell[data-theme="fantasy-enchanted"], .product-detail[data-theme="fantasy-enchanted"] { background: #F5EEFF; }
.collection-shell[data-theme="craft-workshop"], .product-detail[data-theme="craft-workshop"] { background: #FFF8EC; }
.product-detail[data-theme="fantasy-enchanted"] .product-detail-media img,
.product-detail[data-theme="craft-workshop"] .product-detail-media img { background: #fff; object-fit: contain; }

.wonder-aisle-card-space .wonder-aisle-card-media { background: #101a4b; }
.wonder-space-preview { position: absolute; inset: 0; display: block; overflow: hidden; background: radial-gradient(circle at 76% 20%, rgb(158 231 255 / 28%) 0 1px, transparent 2px), radial-gradient(circle at 18% 32%, rgb(255 255 255 / 75%) 0 1px, transparent 2px), linear-gradient(135deg, #101a4b, #202b71 60%, #3856c7); background-size: 116px 92px, 83px 71px, auto; }
.wonder-space-preview-stars { position: absolute; inset: 1.25rem 1.5rem auto; color: #d9f7ff; font-size: 1.15rem; letter-spacing: .4rem; opacity: .86; }
.wonder-space-preview-orbit { position: absolute; left: 50%; top: 51%; width: 10.5rem; height: 4rem; border: 2px solid rgb(158 231 255 / 62%); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.wonder-space-preview-planet { position: absolute; left: 50%; top: 51%; width: 5.3rem; height: 5.3rem; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #d9f7ff 0 4%, #9ee7ff 5% 19%, #6289e8 50%, #3856c7 100%); box-shadow: 0 0 2rem rgb(158 231 255 / 44%); transform: translate(-50%, -50%); }
.wonder-space-preview small { position: absolute; right: 1rem; bottom: .85rem; color: #d9f7ff; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wonder-aisle-card-bricks .wonder-aisle-card-media { background: #fff1c7; }
.wonder-bricks-preview { position: absolute; inset: 0; display: block; overflow: hidden; background: linear-gradient(160deg, #fff9e8, #ffd9c8); }
.wonder-bricks-preview::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: 0; height: 28%; background: repeating-linear-gradient(90deg, #d9282f 0 2.5rem, #b91f2a 2.5rem 2.7rem); box-shadow: 0 -4px 0 rgb(51 37 29 / 12%); }
.wonder-bricks-sun { position: absolute; top: 1.25rem; right: 2rem; width: 4rem; height: 4rem; border-radius: 50%; background: #ffd447; box-shadow: 0 0 0 .65rem rgb(255 212 71 / 30%); }
.wonder-bricks-building { position: absolute; left: 16%; bottom: 20%; width: 9rem; height: 7rem; background: #d9282f; border: .3rem solid #33251d; border-bottom-width: .45rem; box-shadow: inset 0 -.55rem rgb(145 25 35 / 35%); }
.wonder-bricks-building::before { content: ""; position: absolute; left: -.5rem; right: -.5rem; top: -1.25rem; height: 1.2rem; background: repeating-linear-gradient(90deg, #ffd447 0 1.1rem, transparent 1.1rem 1.65rem); }
.wonder-bricks-building i { position: relative; display: inline-block; width: 1.55rem; height: 1.7rem; margin: 1.3rem .45rem; background: #9ee7ff; border: .2rem solid #33251d; }
.wonder-bricks-building b { position: absolute; left: 3.2rem; bottom: 0; width: 2.1rem; height: 3.1rem; background: #ffd447; border: .25rem solid #33251d; border-bottom: 0; }
.wonder-bricks-figure { position: absolute; right: 18%; bottom: 20%; width: 3.3rem; height: 6.5rem; }
.wonder-bricks-figure::before { content: ""; position: absolute; top: 0; left: .45rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #4cbe72; border: .25rem solid #33251d; }
.wonder-bricks-figure::after { content: ""; position: absolute; top: 2.2rem; left: 0; width: 3.3rem; height: 2.6rem; border-radius: .35rem; background: #4634a8; border: .25rem solid #33251d; }
.wonder-bricks-figure i, .wonder-bricks-figure b { position: absolute; bottom: 0; width: .75rem; height: 2rem; background: #33251d; border-radius: .2rem; }
.wonder-bricks-figure i { left: .45rem; } .wonder-bricks-figure b { right: .45rem; }
.wonder-bricks-preview small { position: absolute; right: 1rem; bottom: .85rem; z-index: 1; color: #fff; text-shadow: 0 1px 2px rgb(51 37 29 / 70%); font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 900px) {
  .site-navigation { flex-wrap: wrap; padding-block: .7rem; }
  .store-search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (max-width: 600px) {
  .site-navigation { width: min(calc(100% - 1rem), 1440px); }
  .site-links { max-width: 100%; }
  .store-search select { max-width: 8rem; }
  .store-search button { padding-inline: .7rem; }
  .site-frame { width: min(calc(100% - 1rem), 1440px); }
  .site-shop-menu-panel { position: fixed; top: auto; right: .5rem; left: .5rem; width: auto; grid-template-columns: 1fr; max-height: min(72vh, 31rem); overflow-y: auto; }
}

/* CSS isolation adds an attribute selector to the shared layout rules. Keep the
   store shell selectors anchored on body so the retail skin wins consistently. */
body .site-header { overflow: visible; border-bottom-color: var(--wonder-yellow); background: var(--wonder-ink); }
body .site-header.site-header { overflow: visible; border-bottom-color: var(--wonder-yellow); background: var(--wonder-ink); }
body .site-header .site-navigation { width: min(calc(100% - 2rem), 1440px); }
body .site-header.site-header .site-navigation { width: min(calc(100% - 2rem), 1440px); min-width: 0; }
body .site-header .site-brand-copy strong { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.25rem; font-weight: 900; letter-spacing: -.045em; }
body .site-header .site-brand-copy small { font-family: ui-sans-serif, system-ui, sans-serif; }
body .site-header .site-links a { font-family: ui-sans-serif, system-ui, sans-serif; }
body .site-header .store-search input, body .site-header .store-search select, body .site-header .store-search button { font-family: ui-sans-serif, system-ui, sans-serif; }

.immersive-page { height: 100vh; height: 100dvh; overflow: hidden; background: #10172b; }
.immersive-frame, .immersive-frame .site-main { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; overflow: hidden; }
.discover-page { position: relative; width: 100%; height: 100%; min-height: 0; margin: 0; overflow: hidden; color: #fff; background: #10172b; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.discover-page > .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; border: 0 !important; white-space: nowrap !important; }
.discover-close { position: fixed; z-index: 20; top: max(.8rem, env(safe-area-inset-top)); right: max(.8rem, env(safe-area-inset-right)); display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgb(255 255 255 / 55%); border-radius: 50%; color: #fff; background: rgb(12 18 35 / 68%); box-shadow: 0 .4rem 1.4rem rgb(0 0 0 / 22%); font: 300 2.35rem/1 ui-sans-serif, system-ui, sans-serif; text-decoration: none; backdrop-filter: blur(10px); }
.discover-close:hover { color: #fff; background: rgb(23 37 84 / 92%); }
.discover-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.discover-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.discover-header h1 { margin: 0; color: var(--wonder-ink); font: 900 clamp(2rem, 5vw, 3.4rem)/.95 ui-sans-serif, system-ui, sans-serif; letter-spacing: -.06em; }
.discover-header p:last-child { max-width: 32rem; margin: 0; color: #576071; font-size: 1rem; }
.discover-feed { width: 100%; height: 100%; margin: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scrollbar-gutter: stable; }
.discover-card { width: min(100%, 760px); height: 100%; min-height: 100%; margin: 0 auto; overflow: hidden; background: #eef1f5; scroll-snap-align: start; scroll-snap-stop: always; }
.discover-card-media { position: relative; display: grid; width: 100%; height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; background: linear-gradient(145deg, #f7f8fb, #dfe5ed); }
.discover-card-media img { display: block; box-sizing: border-box; width: 100%; height: 100%; min-width: 0; min-height: 0; grid-row: 1; object-fit: contain; object-position: 50% 50%; padding: max(4.1rem, calc(env(safe-area-inset-top) + 3.3rem)) clamp(.5rem, 2vw, 1.25rem) clamp(.35rem, 1vw, .65rem); }
.discover-card-shop { position: absolute; top: max(.85rem, env(safe-area-inset-top)); left: max(.85rem, env(safe-area-inset-left)); max-width: calc(100% - 5.5rem); padding: .35rem .65rem; overflow: hidden; border-radius: 999px; color: #172554; background: rgb(255 255 255 / 88%); font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(8px); }
.discover-card-overlay { position: relative; z-index: 1; grid-row: 2; margin: 0 max(.65rem, env(safe-area-inset-right)) max(.65rem, env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left)); padding: .9rem; border: 1px solid rgb(255 255 255 / 22%); border-radius: .85rem; color: #fff; background: rgb(12 18 35 / 82%); box-shadow: 0 .7rem 2rem rgb(0 0 0 / 25%); backdrop-filter: blur(12px); }
.discover-card-overlay h2 { margin: 0; font-family: inherit; font-size: clamp(1rem, 2.7vw, 1.3rem); font-weight: 850; line-height: 1.18; letter-spacing: -.02em; }
.discover-card-overlay > p { margin: .35rem 0 .75rem; font-size: 1rem; font-weight: 850; }
.discover-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .55rem; align-items: stretch; }
.discover-card-actions .product-save-form { min-width: 0; margin: 0; }
.discover-save, .discover-view { display: inline-flex; width: 100%; min-height: 2.875rem; align-items: center; justify-content: center; padding: .55rem .7rem; border: 1px solid rgb(255 255 255 / 48%); border-radius: .55rem; color: #fff; background: rgb(255 255 255 / 12%); font: 800 .9rem/1.15 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: center; text-decoration: none; }
.discover-save { gap: .35rem; cursor: pointer; }
.discover-save.is-saved { background: rgb(255 255 255 / 24%); }
.discover-view { color: #172554; background: #fff; }
.discover-load-more { display: flex; min-height: 7rem; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; background: #10172b; scroll-snap-align: end; }
.discover-end, .discover-empty { margin: 1.5rem auto; color: #576071; text-align: center; }
.discover-empty { padding: 3rem 1rem; border: 1px dashed #c9d0db; border-radius: .8rem; }
.discover-empty h2 { margin: 0 0 .4rem; color: var(--wonder-ink); }
@media (max-width: 700px) { .discover-card { width: 100%; } .discover-card-media img { padding-right: .35rem; padding-bottom: .35rem; padding-left: .35rem; } }
@media (prefers-reduced-motion: reduce) { .discover-feed { scroll-snap-type: none; } }
body .site-footer, body .cookie-consent { --ds-color-brand: var(--wonder-ink); --ds-color-on-brand: #fff; --ds-color-line: var(--wonder-line); --ds-color-surface: #fff; --ds-color-text: var(--wonder-ink); --ds-color-muted: #536079; --ds-color-success: var(--wonder-ink); }
body .site-header .site-links { min-width: 0; flex-shrink: 1; }
body .site-header .store-search { min-width: 0; }
body .wonder-home-market .wonder-home-hero { min-height: 0; height: 280px; grid-template-columns: minmax(0, 1.08fr) minmax(220px, .92fr); align-items: stretch; overflow: hidden; }
body .wonder-home-market .wonder-home-hero-copy { padding: clamp(1.3rem, 3vw, 2.25rem); }
body .wonder-home-market .wonder-home-lead { font-family: ui-sans-serif, system-ui, sans-serif; }
body .wonder-home-market .wonder-home-hero-image { position: relative; min-height: 0; height: auto; overflow: hidden; border-radius: 0 .75rem .75rem 0; }
body .wonder-home-market .wonder-home-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
body .wonder-home-market .wonder-home-hero h1 { max-width: none; font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.2rem, 4vw, 3rem); }
body .wonder-home-market .wonder-home-hero { height: auto; min-height: 280px; }
body .wonder-home-market .wonder-home-hero-neutral { height: auto; min-height: 0; grid-template-columns: 1fr; }
body .wonder-home-market .wonder-home-hero-neutral .wonder-home-hero-copy { padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(1.25rem, 4vw, 3rem); }
body .wonder-home-market .wonder-home-hero-neutral h1 { max-width: 22ch; font-size: clamp(2rem, 4vw, 3rem); }
body .wonder-home-market .wonder-home-hero-neutral .wonder-home-lead { max-width: 70ch; }
body .wonder-home-market .wonder-home-section-heading .wonder-home-kicker { color: var(--wonder-ink); }
body .wonder-home-market .wonder-aisle-enter { background: var(--wonder-ink); color: #fff; border-radius: .4rem; }
body .wonder-home-market .wonder-aisle-enter:hover { background: #284587; color: #fff; }
body .wonder-home-market .wonder-aisle-number { display: none; }
body .wonder-home-market .wonder-aisle-image-grid { background: var(--wonder-line); }

/* Wide product-detail composition: gallery, information and purchase decision stay visible together. */
.site-frame:has(.product-detail) { width: calc(100% - clamp(2rem, 4vw, 4rem)); max-width: none; }
body .product-detail .product-detail-grid { grid-template-columns: minmax(24rem, 1.05fr) minmax(38rem, 1.55fr); gap: clamp(1.5rem, 2.5vw, 3rem); align-items: start; }
body .product-detail .product-featured-image img { max-height: min(68vh, 46rem); object-fit: contain; }
body .product-detail .product-detail-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .72fr); gap: 0 clamp(1.25rem, 2vw, 2rem); align-items: start; padding-block: 0; }
body .product-detail .product-detail-copy > * { grid-column: 1; min-width: 0; }
body .product-detail .product-detail-copy > h1 { margin-top: .25rem; }
body .product-detail .product-purchase-panel { position: sticky; top: 1.25rem; grid-column: 2; grid-row: 1 / span 20; max-width: none; margin: 0; border-width: 2px; box-shadow: 0 .65rem 1.5rem rgb(23 37 84 / 10%); }
body .product-detail .product-primary-cta { min-height: 3rem; font-size: 1rem; }
body .product-detail .product-gallery { grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr)); max-height: 11rem; overflow-y: auto; }
body .product-detail .product-purchase-panel .canonical-offers { min-width: 0; padding: .75rem; }
body .product-detail .product-purchase-panel .canonical-offers ul { min-width: 0; gap: 0; }
body .product-detail .product-purchase-panel .canonical-offers li { grid-template-columns: minmax(0, 1fr); gap: .2rem; padding: .65rem 0; overflow-wrap: anywhere; }
body .product-detail .product-purchase-panel .canonical-offers li span:first-child { grid-column: 1; grid-row: 1; }
body .product-detail .product-purchase-panel .canonical-offers li strong { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
body .product-detail .product-purchase-panel .canonical-offers li span:not(:first-child) { grid-column: 1; grid-row: 3; white-space: normal; }
body .product-detail .product-purchase-panel .canonical-offers li a { grid-column: 1 / -1; grid-row: 4; justify-self: start; white-space: normal; }
@media (max-width: 1180px) {
  body .product-detail .product-detail-grid { grid-template-columns: minmax(19rem, .9fr) minmax(0, 1.1fr); }
  body .product-detail .product-detail-copy { display: block; }
  body .product-detail .product-purchase-panel { position: static; max-width: 34rem; margin: var(--ds-space-4) 0 var(--ds-space-5); }
}
@media (max-width: 767px) {
  .site-frame:has(.product-detail) { width: calc(100% - 1rem); }
  body .product-detail .product-detail-grid { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-4); }
  body .product-detail .product-featured-image img { max-height: 28rem; }
}

@media (max-width: 767px) {
  body .site-header .site-navigation { width: min(calc(100% - 1rem), 1440px); }
  body .wonder-home-market .wonder-home-hero { height: auto; min-height: 0; grid-template-columns: 1fr; }
  body .wonder-home-market .wonder-home-hero-image { height: 180px; max-height: 180px; border-radius: 0 0 .75rem .75rem; }
}
