/* Store composition. Type, controls and colours use TinyBook's shared system. */
.shop-page { background:var(--white); color:var(--ink); }
.shop-page *, .shop-page *::before, .shop-page *::after { box-sizing:border-box; }
.shop-page [hidden] { display:none !important; }
.shop-page .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.shop-page ::selection { background:#d9eaff; color:var(--ink); }
.shop-page :focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
.shop-page input { accent-color:var(--blue); caret-color:var(--blue); }
.shop-page a { text-underline-offset:4px; }
.shop-page main { min-height:55vh; }
.shop-page p,.shop-page figure { margin:0; }
.shop-wrap { width:100%; max-width:var(--content-max); margin-inline:auto; padding-inline:var(--page-gutter); }
.shop-navigation { position:sticky; top:0; z-index:20; background:var(--white); border-bottom:1px solid var(--line); }
.shop-navigation .nav-inner { display:flex; justify-content:space-between; min-height:64px; margin:auto; }
.shop-nav-links { display:flex; gap:28px; align-items:center; }
.shop-nav-links>a { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); text-decoration:none; }
.shop-nav-links>a:hover { color:var(--link-blue); }
.shop-bag-link { gap:7px; }
.shop-bag-count { display:inline-grid; place-items:center; min-width:22px; height:22px; padding-inline:5px; border-radius:50%; background:var(--wash); font-size:12px; font-variant-numeric:tabular-nums; }
.shop-announcement { background:var(--surface-store-announcement); padding:11px var(--page-gutter); text-align:center; }
.shop-announcement p { font-size:12px; line-height:1.5; color:#344960; }
.shop-hero { display:grid; grid-template-columns:42% 58%; min-height:570px; background:var(--surface-store-hero); }
.shop-hero-copy { padding:64px 32px 72px max(40px,calc((100vw - 980px)/2)); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:28px; }
.shop-hero h1 { margin:0; }
.shop-hero-description { font-size:var(--type-lead-size); line-height:1.45; letter-spacing:-.01em; }
.shop-hero-photo { min-width:0; min-height:100%; }
.shop-hero-photo img { width:100%; height:100%; max-height:650px; object-fit:cover; object-position:66% 50%; display:block; }
.shop-collection { padding-block:88px 96px; scroll-margin-top:88px; }
.shop-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:36px; }
.shop-section-heading h2 { margin:0 0 16px; }
.shop-section-heading p { color:var(--secondary); }
.shop-filters { flex:none; }
.shop-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.shop-product { min-width:0; scroll-margin-top:100px; }
.shop-product-link { display:block; color:inherit; text-decoration:none; }
.shop-product-image { position:relative; overflow:hidden; border-radius:12px; background:var(--wash); }
.shop-product-image>img { width:100%; height:auto; aspect-ratio:1; object-fit:cover; display:block; transition:transform 400ms cubic-bezier(.16,1,.3,1); }
.shop-product-link:hover .shop-product-image>img { transform:scale(1.035); }
.shop-product-open { position:absolute; bottom:12px; right:12px; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--white); color:var(--ink); }
.shop-product-open .ui-icon { width:16px; height:16px; }
.shop-product-caption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding-top:20px; }
.shop-product-caption h3 { width:100%; margin:0; }
.shop-product-link:hover h3 { color:var(--link-blue); }
.shop-product-price { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; font-size:14px; font-variant-numeric:tabular-nums; }
.shop-price-note { color:var(--secondary); font-size:12px; font-weight:400; letter-spacing:0; }
.shop-product-description { margin-top:8px !important; color:var(--secondary); }
.shop-editorial { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:56px; padding-block:0 96px; }
.shop-editorial-photo { overflow:hidden; border-radius:12px; }
.shop-editorial-photo img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; object-position:60% 50%; }
.shop-editorial-copy { display:flex; flex-direction:column; align-items:flex-start; gap:22px; }
.shop-editorial-copy h2 { margin:0; }
.shop-editorial-copy p { max-width:35ch; color:var(--secondary); }
.shop-giving { text-align:center; display:flex; flex-direction:column; align-items:center; gap:20px; padding-block:64px 88px; border-top:1px solid var(--line); }
.shop-giving-mark img { display:block; }
.shop-giving h2 { margin:0; }
.shop-giving p { max-width:58ch; color:var(--secondary); }
.shop-footer { background:var(--wash); padding:44px 0 24px; }
.shop-footer-top { display:flex; justify-content:space-between; align-items:center; gap:20px; padding-bottom:28px; border-bottom:1px solid var(--line); }
.shop-footer-top p { color:var(--secondary); }
.shop-footer nav { display:flex; flex-wrap:wrap; gap:10px 28px; margin:18px 0; }
.shop-footer nav a { min-height:44px; display:inline-flex; align-items:center; color:var(--ink); }
.shop-fineprint { max-width:78ch; color:var(--secondary); }
.shop-copyright { margin-top:16px !important; color:var(--secondary); }
.shop-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:22px 0; font-size:12px; }
.shop-breadcrumb a { display:inline-flex; min-height:44px; align-items:center; color:var(--link-blue); }
.shop-breadcrumb .ui-icon { width:12px; height:12px; color:var(--secondary); }
.shop-product-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:56px; align-items:start; padding-bottom:88px; }
.shop-gallery { min-width:0; }
.shop-gallery-panels figure { margin:0; }
.shop-gallery-panels figure+figure { margin-top:24px; }
.shop-gallery-panels img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:12px; }
.shop-gallery-enlarge { display:block; cursor:zoom-in; }
.shop-gallery-panels figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:12px 0; color:var(--secondary); }
.shop-gallery-panels figcaption a { color:var(--link-blue); }
.shop-gallery-nav { display:flex; gap:12px; margin-top:12px; }
.shop-thumbnail { background:none; border:2px solid transparent; border-radius:10px; padding:4px; color:var(--secondary); cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:6px; }
.shop-thumbnail[aria-pressed="true"] { border-color:var(--blue); color:var(--ink); }
.shop-thumbnail img { width:72px; height:72px; object-fit:cover; border-radius:5px; }
.shop-thumbnail span { font-size:12px; }
.shop-product-info { padding-top:4px; }
.shop-product-info h1 { margin:0 0 18px; }
.shop-product-subtitle { color:var(--secondary); }
.shop-detail-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; margin-top:24px !important; }
.shop-detail-price>[data-product-price] { font-size:28px; font-weight:600; letter-spacing:-.03em; }
.shop-product-story { margin-top:24px !important; max-width:45ch; }
.shop-product-form { margin-top:28px; }
.shop-options { margin:0 0 20px; padding:0; border:0; }
.shop-options legend { margin-bottom:12px; font-size:14px; font-weight:600; }
.shop-options legend span { font-weight:400; color:var(--secondary); margin-left:8px; }
.shop-option-list { display:flex; flex-wrap:wrap; gap:8px; }
.shop-option { position:relative; display:block; cursor:pointer; }
.shop-option input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.shop-option .segment { display:flex; align-items:center; justify-content:center; border:1px solid var(--control-border); background:var(--white); min-width:44px; min-height:44px; padding:10px 15px; border-radius:8px; color:var(--ink); }
.shop-option input:checked+.segment { border:2px solid var(--blue); padding:9px 14px; background:var(--surface-store-announcement); }
.shop-option input:focus-visible+.segment { outline:3px solid var(--blue); outline-offset:4px; }
.shop-option input:disabled+.segment { color:var(--secondary); text-decoration:line-through; background:var(--wash); cursor:default; }
.shop-add { width:100%; }
.shop-form-note { color:var(--secondary); margin-top:12px !important; text-align:center; }
.shop-form-error { color:#a32116; margin-block:12px !important; }
.shop-product-giving { display:flex; align-items:center; gap:8px; margin:28px 0; color:var(--link-blue); font-size:14px; text-decoration:none; }
.shop-product-giving .ui-icon { width:14px; height:14px; }
.shop-product-details details { border-top:1px solid var(--line); padding-block:2px; }
.shop-product-details details:last-child { border-bottom:1px solid var(--line); }
.shop-product-details summary { padding-block:16px; }
.shop-product-details details>p,.shop-product-details details>ul { margin:0 0 22px; padding-left:0; color:var(--secondary); }
.shop-product-details details>ul { padding-left:18px; }
.shop-product-details li+li { margin-top:8px; }
.shop-product-details a { color:var(--link-blue); }
.shop-related { border-top:1px solid var(--line); padding-block:64px 88px; }
.shop-related h2 { margin:0 0 32px; }
.shop-product-grid-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.shop-sticker-scene { position:relative; overflow:hidden; border-radius:12px; }
.shop-sticker-scene .scene-sticker { position:absolute; width:18%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:0; }
.shop-sticker-scene .scene-sticker-0 { left:15%; top:28%; transform:rotate(-14deg); }
.shop-sticker-scene .scene-sticker-1 { left:41%; top:28%; transform:rotate(9deg); }
.shop-sticker-scene .scene-sticker-2 { left:66%; top:28%; transform:rotate(-9deg); }
.shop-sticker-scene .scene-sticker-3 { left:18%; top:53%; transform:rotate(8deg); }
.shop-sticker-scene .scene-sticker-4 { left:44%; top:53%; transform:rotate(-7deg); }
.shop-sticker-scene .scene-sticker-5 { left:68%; top:53%; transform:rotate(9deg); }
.shop-page-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:56px 0 40px; }
.shop-page-heading h1 { margin:0; }
.shop-bag-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr); gap:56px; padding-bottom:88px; }
.shop-bag-line { display:grid; grid-template-columns:96px 1fr; gap:20px; padding:24px 0; border-top:1px solid var(--line); }
.shop-bag-line:last-child { border-bottom:1px solid var(--line); }
.shop-bag-line>a>img { width:96px; height:96px; object-fit:cover; border-radius:8px; }
.shop-bag-line h2 { margin:0; }
.shop-bag-line h2 a { color:var(--ink); text-decoration:none; }
.shop-bag-line-meta { color:var(--secondary); font-size:14px; margin-top:4px !important; }
.shop-bag-line-controls { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; margin-top:12px; }
.shop-quantity { display:flex; align-items:center; gap:8px; font-size:12px; }
.shop-quantity input { width:64px; min-height:44px; border:1px solid var(--control-border); border-radius:8px; background:var(--white); color:var(--ink); padding:8px; font:inherit; font-size:14px; font-variant-numeric:tabular-nums; }
.shop-remove { background:none; border:0; padding:0; color:var(--link-blue); min-height:44px; cursor:pointer; font:inherit; font-size:12px; text-decoration:underline; text-underline-offset:4px; }
.shop-bag-line-price { font-size:14px; margin-left:auto !important; font-variant-numeric:tabular-nums; }
.shop-bag-summary { background:var(--wash); border-radius:12px; padding:28px; align-self:start; }
.shop-bag-summary h2 { margin:0 0 24px; }
.shop-bag-summary dl { margin:0 0 16px; }
.shop-bag-summary dl>div { display:flex; justify-content:space-between; gap:16px; }
.shop-bag-summary dd { margin:0; font-weight:600; font-variant-numeric:tabular-nums; }
.shop-bag-summary>p { color:var(--secondary); font-size:14px; line-height:1.45; }
.shop-bag-summary .shop-bag-giving { color:var(--ink); margin-top:16px; }
.shop-checkout { width:100%; margin-top:24px; }
.shop-empty { padding:48px 0; display:flex; flex-direction:column; align-items:flex-start; gap:24px; }
.shop-empty h2 { margin:0; }
.shop-empty p { color:var(--secondary); }
.shop-bag-layout:has(.shop-bag-summary[hidden]) { grid-template-columns:1fr; }
.shop-notice { background:var(--wash); padding:20px; margin-bottom:20px !important; border-radius:12px; }
.shop-help { padding-block:64px 88px; max-width:780px; }
.shop-help h1 { margin:0 0 24px; }
.shop-help-lead { color:var(--secondary); }
.shop-help section { margin-top:48px; }
.shop-help section h2 { margin:0 0 16px; }
.shop-help section p { color:var(--secondary); }
.shop-help>.text-link { margin-top:32px; }
.shop-help a { color:var(--link-blue); }
.shop-toast { position:fixed; z-index:30; left:50%; bottom:24px; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px); padding:14px 22px; border-radius:12px; background:var(--ink); color:var(--white); box-shadow:0 6px 24px #0002; font-size:14px; text-align:center; }
@media (max-width:1199px) {
  .shop-hero { min-height:510px; }
  .shop-hero-copy { padding-left:40px; }
}
@media (max-width:899px) {
  .shop-hero { grid-template-columns:44% 56%; min-height:460px; }
  .shop-hero-copy { padding-block:44px; padding-inline:32px 20px; }
  .shop-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:36px 24px; }
  .shop-product-grid-three { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  .shop-editorial { gap:32px; }
  .shop-product-layout { gap:32px; }
  .shop-bag-layout { gap:28px; grid-template-columns:minmax(0,1.25fr) minmax(240px,1fr); }
}
@media (max-width:650px) {
  .shop-navigation .nav-inner { flex-wrap:nowrap; gap:16px; padding-block:8px; min-height:60px; }
  .shop-nav-links { gap:20px; }
  .shop-nav-giving { display:none !important; }
  .shop-announcement { padding-block:9px; }
  .shop-announcement p { max-width:35ch; margin:auto; }
  .shop-hero { grid-template-columns:1fr; min-height:0; }
  .shop-hero-photo { grid-row:1; min-height:0; }
  .shop-hero-photo img { height:auto; max-height:none; aspect-ratio:4 / 3; object-position:70% 43%; }
  .shop-hero-copy { padding:32px var(--page-gutter) 40px; gap:20px; }
  .shop-hero-copy h1 br { display:none; }
  .shop-hero-description br { display:none; }
  .shop-hero-description { max-width:24ch; }
  .shop-collection { padding-block:52px 56px; }
  .shop-section-heading { flex-direction:column; align-items:flex-start; gap:24px; margin-bottom:24px; }
  .shop-section-heading h2 { margin-bottom:12px; }
  .shop-product-grid { gap:28px 16px; }
  .shop-product-caption { padding-top:14px; }
  .shop-product-price { gap:4px 8px; }
  .shop-product-image { border-radius:10px; }
  .shop-product-open { width:24px; height:24px; bottom:8px; right:8px; }
  .shop-product-open .ui-icon { width:14px; height:14px; }
  .shop-product-caption h3 { overflow-wrap:normal; }
  .shop-editorial { grid-template-columns:1fr; padding-bottom:56px; gap:28px; }
  .shop-editorial-photo img { aspect-ratio:4 / 3; }
  .shop-editorial-copy { gap:18px; }
  .shop-giving { padding-block:48px 56px; gap:20px; }
  .shop-footer { padding-top:32px; }
  .shop-footer-top { align-items:flex-start; flex-direction:column; gap:16px; padding-bottom:20px; }
  .shop-footer nav { gap:4px 20px; }
  .shop-breadcrumb { padding:12px 0; }
  .shop-product-layout { grid-template-columns:1fr; gap:32px; padding-bottom:56px; }
  .shop-product-info { padding-top:0; }
  .shop-product-info h1 { margin-bottom:12px; }
  .shop-detail-price { margin-top:18px !important; }
  .shop-product-story { margin-top:20px !important; }
  .shop-gallery-nav { gap:8px; }
  .shop-related { padding-block:40px 56px; }
  .shop-related h2 { margin-bottom:24px; }
  .shop-product-grid-three { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; }
  .shop-page-heading { align-items:flex-start; flex-direction:column; gap:12px; margin:36px 0 20px; }
  .shop-bag-layout { grid-template-columns:1fr; gap:28px; padding-bottom:56px; }
  .shop-bag-summary { padding:24px; }
  .shop-bag-line { grid-template-columns:80px 1fr; gap:16px; }
  .shop-bag-line>a>img { width:80px; height:80px; }
  .shop-empty { padding-top:24px; }
  .shop-help { padding-block:40px 56px; }
}
@media (prefers-reduced-motion:reduce) {
  .shop-page *, .shop-page *::before, .shop-page *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
