:root {
  --ink: #272247;
  --muted: #686176;
  --purple: #6259b9;
  --line: #e5e0ef;
  --paper: #fbf9fd;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
body:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #9384db; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1280px; margin: auto; padding-inline: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px; background: white; z-index: 10; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.announcement { text-align: center; background: #ece7f6; color: #554b78; padding: 8px 16px; font-size: 12px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { object-fit: contain; max-height: 65px; max-width: 100%; }
.header nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.header nav [aria-current] { color: var(--purple); box-shadow: inset 0 -2px var(--purple); }
.primary, .subtle { display: inline-block; border-radius: 9px; padding: 12px 18px; min-height: 44px; font-weight: 600; text-align: center; }
.primary { border: 0; background: var(--purple); color: white; }
.primary:hover { background: #51469f; }
.subtle { background: transparent; border: 1px solid var(--line); color: var(--ink); }
#cart-count { border-radius: 20px; background: #ffffff26; padding: 2px 7px; margin-left: 4px; }
h1, h2, h3 { line-height: 1.2; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; margin: 0 0 18px; }
h1 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.03em; max-width: 650px; }
h2 { font-size: 32px; }
p { color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; background: radial-gradient(ellipse at 85% 50%, #e2ddef, transparent 60%), linear-gradient(120deg, #f2eff9, #eef4f5); border-radius: 18px; padding-block: 30px; }
.hero p:last-child { margin-bottom: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--purple); margin: 0 0 12px; }
.hero-art { text-align: center; }
.hero-art img { width: 170px; max-width: 80%; }
.catalogue { padding-block: 36px; scroll-margin-top: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0; }
label { font-size: 13px; font-weight: 600; display: block; color: var(--muted); }
input { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); background: white; border-radius: 7px; padding: 10px; color: var(--ink); margin-top: 6px; font-size: 16px; }
.catalogue-search { width: min(300px, 100%); flex-shrink: 0; }
.catalogue-search input { border-radius: 30px; padding-inline: 18px; margin: 0; }
.browse-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; background: var(--paper); padding-block: 12px; border-bottom: 1px solid var(--line); }
#families { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; padding: 4px 3px 8px; scrollbar-width: thin; scrollbar-color: #d4cbe7 transparent; }
.family-button { flex-shrink: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 30px; background: white; padding: 9px 20px; color: var(--ink); font-size: 14px; min-height: 44px; }
.family-button:hover { background: #eee8f7; }
.family-button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: white; }
#open-cart { flex-shrink: 0; }
.browse-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: 13px; }
.text-button { border: 0; background: none; color: var(--purple); padding: 10px 0; min-height: 44px; text-decoration: underline; }
#status:empty, #cart-notice:empty, .detail-notice:empty { display: none; }
.family-heading { margin: 12px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid + .family-heading { margin-top: 36px; }
.card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.image-button { display: block; padding: 0; border: 0; width: 100%; background: none; }
.photo { aspect-ratio: 1; background: linear-gradient(140deg, #f4f1f8, #ecebf1); display: grid; place-items: center; position: relative; overflow: hidden; width: 100%; }
.photo > span { font-size: 13px; color: var(--muted); padding: 16px; text-align: center; }
.photo img { position: absolute; width: 100%; height: 100%; object-fit: contain; background: #f4f1f8; padding: 12px; }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 12px; color: var(--purple); }
.card h3 { font-size: 17px; margin: 6px 0; }
.card h3 button { padding: 4px 0; min-height: 44px; background: none; border: 0; text-align: left; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.presentation { font-size: 13px; margin: 2px 0 16px; }
.card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.card-bottom strong { font-size: 14px; }
.add { background: #efebf8; border: 0; border-radius: 7px; padding: 10px 14px; min-height: 44px; color: var(--purple); font-size: 14px; font-weight: 600; }
.add:hover { background: #ded5f2; }
footer { padding-block: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
dialog { color: var(--ink); background: white; border: 0; border-radius: 16px; width: min(640px, calc(100% - 24px)); max-width: calc(100% - 24px); max-height: 90vh; max-height: 90dvh; padding: 24px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 25px 100px #201d4933; }
dialog::backdrop { background: #211d4680; backdrop-filter: blur(3px); }
.dialog-toolbar, .cart-head { position: sticky; top: -24px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: white; padding-block: 8px; }
.dialog-toolbar { justify-content: flex-end; }
.close { flex-shrink: 0; border: 0; background: #eeeaf5; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; color: var(--ink); }
.cart-head h2 { margin: 0; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 145px); gap: 18px; border-bottom: 1px solid var(--line); padding-block: 16px; }
.cart-item p { font-size: 13px; margin: 4px 0; }
.cart-item input { width: 88px; margin-bottom: 8px; }
.cart-item > div:last-child { justify-self: end; max-width: 100%; }
.cart-item > div:last-child strong { font-size: 14px; }
.remove { background: none; border: 0; padding: 8px 0; min-height: 44px; color: #99425e; font-size: 14px; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding: 20px 0 8px; }
.fine { font-size: 13px; }
.full { width: 100%; margin-top: 12px; }
.empty { text-align: center; padding-block: 24px; }
.fact { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.fact h3 { font-size: 16px; margin: 0; }
.fact p { white-space: pre-line; font-size: 15px; margin: 8px 0; }
#detail .photo { max-height: 280px; aspect-ratio: 4/3; margin-bottom: 20px; }
#detail h2 { margin-block: 10px; }
#toast { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 20px; border-radius: 10px; opacity: 0; pointer-events: none; z-index: 5; width: max-content; max-width: calc(100% - 32px); text-align: center; }
#toast.visible { opacity: 1; }
#cart-notice, .detail-notice { font-size: 14px; color: #6852a1; }
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { margin-inline: 20px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 28px; }
}
@media (max-width: 650px) {
  .wrap { padding-inline: 16px; }
  .header { flex-direction: column; gap: 8px; padding-block: 12px 8px; }
  .brand img:first-child { width: 35px; }
  .brand img:last-child { width: 125px; }
  .header nav { justify-content: center; gap: 4px 20px; font-size: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 22px; margin-inline: 16px; }
  .hero-art { display: none; }
  h1 { font-size: clamp(29px, 7.8vw, 38px); }
  .hero p { font-size: 15px; }
  .hero .eyebrow { font-size: 10px; }
  .catalogue { padding-block: 26px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 26px; }
  .catalogue-search { width: 100%; margin-top: 16px; }
  .browse-bar { gap: 8px; }
  .family-button { padding: 9px 14px; }
  #open-cart { font-size: 14px; padding: 10px 12px; }
  .family-heading { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 16px; }
  .card-bottom { display: block; }
  .add { width: 100%; margin-top: 12px; }
  dialog { padding: 16px; }
  .dialog-toolbar, .cart-head { top: -16px; }
  .cart-head h2, #detail h2 { font-size: 28px; }
  .cart-item { grid-template-columns: minmax(0, 1fr) minmax(0, 105px); gap: 12px; }
}
@media (max-width: 359px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .photo { aspect-ratio: 4/3; }
  .browse-bar { flex-wrap: wrap; }
  #families { flex-basis: 100%; }
  #open-cart { width: 100%; }
  .cart-item { grid-template-columns: minmax(0, 1fr); }
  .cart-item > div:last-child { justify-self: stretch; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px; }
}