:root {
  --ink: #271f37; --muted: #625968; --paper: #fffdf8; --purple: #472f64; --purple-deep: #38244f;
  --line: #e8dfed; --lilac: #f0e9fb; --yellow: #f7e6a3; --white: #fff;
  --body: "DM Sans", sans-serif; --heading: "Nunito", sans-serif;
  background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #795492; outline-offset: 4px; }
img { display: block; width: 100%; }
button, select, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.06; }
p { line-height: 1.65; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 4; left: 1rem; top: .6rem; padding: .8rem; background: white; }
.topbar { background: var(--purple-deep); color: #fff; padding: .48rem max(4vw, 1rem); display: flex; justify-content: space-between; font-size: .88rem; }
.topbar a { text-decoration: none; }
.topbar a:hover, nav a:hover { text-decoration: underline; }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .65rem max(4vw, 1rem); gap: 1rem; min-height: 4.8rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; gap: .13em; width: fit-content; color: var(--ink); text-decoration: none; font: 1000 clamp(1.7rem, 3.25vw, 2.6rem)/1 var(--heading); letter-spacing: -.08em; }
.logo span { color: #7653a7; }
#categories, .actions { display: flex; align-items: center; gap: clamp(.6rem, 1.35vw, 1.5rem); }
#categories a { font-size: .94rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
#categories a:hover, #categories a[aria-current="page"] { text-decoration: underline; }
.actions { justify-self: end; gap: .3rem; }
.icon { display: inline-flex; justify-content: center; align-items: center; min-width: 2.75rem; min-height: 2.75rem; gap: .3rem; background: transparent; color: var(--ink); border: 0; padding: .25rem; }
.icon svg { width: 1.35rem; height: 1.35rem; }
#bag-count { font-size: .85rem; }
.hero { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); align-items: stretch; background: var(--lilac); min-height: 27rem; }
.hero-copy { display: flex; justify-content: center; align-items: flex-start; flex-direction: column; padding: clamp(2.2rem, 6vw, 7rem); padding-right: clamp(1.5rem, 4vw, 4rem); }
.hero h1 { font-size: clamp(3rem, 6.3vw, 7rem); font-weight: 1000; line-height: .96; letter-spacing: -.055em; }
.hero p { margin: 1.1rem 0 1.35rem; max-width: 30ch; }
.hero-art { height: 100%; max-height: 37rem; object-fit: cover; object-position: center; background: var(--yellow); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.25rem; border-radius: .6rem; border: 1px solid var(--purple); background: var(--purple); color: var(--white); font-weight: 700; text-decoration: none; }
.button:hover { background: var(--purple-deep); }
.button[disabled] { cursor: default; opacity: .58; }
.button.secondary { color: var(--purple); background: var(--white); }
.button.secondary:hover { background: var(--lilac); }
.wrap { max-width: 1440px; margin-inline: auto; padding: clamp(2.5rem, 5vw, 5rem) max(4vw, 1rem); }
.wrap.compact { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.section-head h2, .product-related h2 { font-size: clamp(1.9rem, 3.5vw, 3.1rem); letter-spacing: -.035em; }
.collection-grid, .product-grid { display: grid; gap: clamp(.65rem, 1.5vw, 1.4rem); }
.collection-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.collection-tile { text-align: center; background: #f5eefe; overflow: hidden; border-radius: .7rem; text-decoration: none; font-weight: 800; }
.collection-tile:nth-child(3n+2) { background: #fff0cc; }
.collection-tile:nth-child(3n) { background: #e8f4ec; }
.collection-tile img { aspect-ratio: 1.1; background: #f7f1f8; object-fit: cover; }
.collection-tile span { display: block; padding: .7rem .22rem; }
.collection-tile:hover span, .product-card:hover h3 { text-decoration: underline; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.8rem; }
.product-card { display: block; min-width: 0; text-decoration: none; }
.product-card img { aspect-ratio: 1; background: #f4eff4; object-fit: cover; border-radius: .55rem; }
.product-card h3 { margin-top: .65rem; font-size: clamp(1.02rem, 1.45vw, 1.24rem); font-weight: 900; }
.product-card p { margin-top: .2rem; color: var(--muted); font-size: .95rem; }
.footer { background: #ede3f8; padding: 2.8rem max(4vw, 1rem) 1rem; }
.footer-inner { display: grid; grid-template-columns: 1.35fr 1fr 1fr; max-width: 1290px; margin-inline: auto; gap: 1.3rem; }
.footer address, .info address { font-style: normal; line-height: 1.65; margin: .65rem 0; }
.footer-company > a:last-child { overflow-wrap: anywhere; }
.footer nav { display: flex; flex-direction: column; align-items: start; gap: .65rem; }
.footer nav a { text-decoration: none; }
.footer nav h2 { font-size: 1.1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; max-width: 1290px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid #d5c6e8; font-size: .87rem; }
.crumb { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.page-title, .info h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); letter-spacing: -.05em; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .7rem 1rem; margin: 1.2rem 0 1.35rem; border-block: 1px solid var(--line); padding: .7rem 0; }
.shop-toolbar label { display: inline-flex; align-items: center; gap: .5rem; }
select, input[type="search"] { border: 1px solid #aa9bb2; background: #fff; color: var(--ink); min-height: 2.7rem; border-radius: .4rem; padding: .5rem .65rem; }
select { appearance: none; padding-right: 1.9rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23472f64' stroke-width='2'/%3E%3C/svg%3E"); background-position: right .55rem center; background-repeat: no-repeat; }
.show-more { display: block; margin: 2rem auto 0; }
.product-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.gallery-main { aspect-ratio: 1; object-fit: contain; border-radius: .65rem; background: #f8f2f7; }
.thumbnails { display: flex; flex-wrap: wrap; gap: .48rem; margin-top: .6rem; }
.thumbnail { width: min(4.5rem, 15vw); padding: .16rem; background: transparent; border: 1px solid transparent; border-radius: .4rem; }
.thumbnail[aria-pressed="true"] { border-color: var(--purple); }
.thumbnail img { aspect-ratio: 1; object-fit: cover; border-radius: .26rem; }
.buy h1 { font-size: clamp(2.25rem, 4.6vw, 4.5rem); font-weight: 1000; letter-spacing: -.045em; }
.price { margin: .75rem 0 1rem; font-size: 1.3rem; font-weight: 800; }
.variant-set { border: 0; padding: 0; margin: 0 0 .95rem; }
.variant-set legend { padding: 0 0 .3rem; font-weight: 700; }
.variant-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.variant-options input { position: absolute; opacity: 0; }
.variant-options span { display: block; padding: .48rem .7rem; min-height: 2.5rem; border: 1px solid #ad9fba; border-radius: .37rem; cursor: pointer; }
.variant-options input:checked + span { background: var(--lilac); border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.variant-options input:focus-visible + span { outline: 2px solid #795492; outline-offset: 2px; }
.variant-options input:disabled + span { color: #736b77; text-decoration: line-through; opacity: .62; cursor: default; }
.buy .button { width: 100%; margin-top: .25rem; }
.product-tabs, .product-related { margin-top: clamp(2rem, 5vw, 4.8rem); }
.tab-list { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; border-bottom: 1px solid var(--line); }
.tab-list button { background: transparent; color: var(--muted); padding: .7rem .25rem; border: 0; border-bottom: 2px solid transparent; min-height: 2.75rem; }
.tab-list button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--purple); font-weight: 800; }
.tab-panel { padding-top: 1rem; }
.tab-panel p { max-width: 65ch; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.specs div { display: flex; flex-wrap: wrap; gap: .4rem .8rem; padding: .75rem; background: #f2ecf8; border-radius: .38rem; }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; }
.product-related h2 { margin-bottom: 1rem; }
.info { max-width: 920px; }
.info .intro { margin: .85rem 0 1rem; color: var(--muted); max-width: 70ch; }
.info h2 { margin: 1.45rem 0 .38rem; font-size: 1.4rem; }
.info section > p:first-child { margin-top: .85rem; }
.info section p + p { margin-top: .7rem; }
.info li { line-height: 1.65; }
.status-banner { max-width: 1440px; margin: 1rem auto 0; padding: .8rem max(4vw, 1rem); background: var(--lilac); }
dialog { width: min(92vw, 39rem); padding: 1.15rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .7rem; }
dialog::backdrop { background: #20133191; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 29rem); height: 100%; max-height: 100%; max-width: 100%; border-radius: 0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: .85rem; padding-bottom: .45rem; }
.dialog-head h2 { font-size: 1.7rem; }
.close { font-size: 1.6rem; }
.search-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.search-form input { flex: 1 1 10rem; min-width: 0; }
.bag-line { display: grid; grid-template-columns: 3.85rem minmax(0, 1fr) auto; align-items: start; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.bag-line img { aspect-ratio: 1; object-fit: cover; border-radius: .3rem; }
.bag-line a { font-weight: 700; }
.bag-line p, .small-text { font-size: .88rem; color: var(--muted); }
.quantity { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding-top: .3rem; }
.quantity button { min-width: 2rem; min-height: 2rem; border: 1px solid var(--line); background: transparent; border-radius: .25rem; color: var(--ink); }
.quantity [data-bag="remove"] { border: 0; text-decoration: underline; }
.total-line { display: flex; justify-content: space-between; gap: .6rem; margin: .95rem 0 .65rem; font-weight: 700; }
.paypal { display: block; width: 100%; background: #ffc43b; border-color: #db9f11; color: #112952; }
.paypal:hover:not([disabled]) { background: #ffb82b; }
.payment-note { margin-top: .45rem; }
@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; gap: .2rem .8rem; }
  #categories { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; padding: .45rem 0 .55rem; }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 22rem; }
}
@media (max-width: 620px) {
  .hero, .product-top, .specs { grid-template-columns: minmax(0, 1fr); }
  .hero-art { aspect-ratio: 1.5; height: auto; }
  .product-grid, .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-company { grid-column: 1 / -1; }
  .collection-tile span { font-size: .9rem; }
}
