:root {
  color-scheme: light;
  --paper: #fbf8f0;
  --white: #fffefa;
  --ink: #262441;
  --muted: #625e72;
  --line: #e9e2d8;
  --purple: #5539a0;
  --lilac: #ece3ff;
  --peach: #ffe5d5;
  --green: #dcecdc;
  --shadow: 0 16px 55px #2d233815;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 270px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #754cdb; outline-offset: 4px; }
.wrap { width: min(1220px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; inset: 12px auto auto 12px; padding: 8px 14px; background: var(--white); }

.topbar { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; min-height: 80px; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font: 800 1.12rem 'Manrope', sans-serif; letter-spacing: -0.055em; }
.brand b { color: var(--purple); }
.brand-mark { width: 36px; height: 36px; display: grid; grid-template: repeat(2, 1fr) / repeat(2, 1fr); gap: 3px; padding: 4px; transform: rotate(-9deg); }
.brand-mark i { border-radius: 50% 50% 0 50%; background: #8d71d8; }
.brand-mark i:nth-child(2) { border-radius: 50% 50% 50% 0; background: #f3a98d; }
.brand-mark i:nth-child(3) { border-radius: 50% 0 50% 50%; background: #83a88f; }
.brand-mark i:nth-child(4) { border-radius: 0 50% 50% 50%; background: #ebc065; }
.nav { display: flex; gap: 24px; align-items: center; font-weight: 600; white-space: nowrap; }
.nav a:hover, .footer-link:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.search { margin-inline-start: auto; width: min(290px, 100%); display: flex; align-items: center; gap: 6px; background: #f5f1eb; border: 1px solid transparent; border-radius: 999px; }
.search:focus-within { border-color: #8e75c4; }
.search input { background: transparent; border: 0; outline: none; width: 100%; min-width: 0; padding: 9px 13px 9px 0; font-size: 1rem; }
.search-icon { border: 0; background: transparent; width: 38px; height: 40px; flex: 0 0 38px; display: grid; place-items: center; padding: 0 0 0 8px; }
.search-icon span { border: 1.7px solid currentColor; border-radius: 50%; display: block; width: 13px; height: 13px; position: relative; }
.search-icon span::after { content: ''; width: 6px; height: 1.7px; background: currentColor; position: absolute; top: 9px; left: 8px; transform: rotate(45deg); transform-origin: left center; }
.saved-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .93rem; font-weight: 600; white-space: nowrap; }
.saved-button:hover { border-color: #bcaadf; }
.heart { color: var(--purple); font: 1.35rem/1 system-ui, sans-serif; }
.saved-count { background: var(--lilac); min-width: 1.4em; border-radius: 50%; padding-inline: 3px; }

.hero { margin-top: 28px; position: relative; min-height: 420px; display: grid; grid-template-columns: 1.02fr 1fr; border-radius: 32px; align-items: center; gap: 30px; overflow: hidden; isolation: isolate; background: #eee6ff; padding: 43px clamp(32px, 5.4vw, 82px) 52px; }
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.hero::before { width: 445px; height: 445px; border-radius: 50%; background: #e1d4fc; right: -112px; top: -166px; }
.hero::after { width: 340px; height: 140px; border: 1px solid #c1abec; border-radius: 50%; right: -115px; bottom: -65px; transform: rotate(-20deg); }
.hero[data-slide='1'] { background: #ffe9da; }
.hero[data-slide='1']::before { background: #ffdac4; }
.hero[data-slide='2'] { background: #e2efe1; }
.hero[data-slide='2']::before { background: #ccdfcb; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #5639a0; font-size: .94rem; font-weight: 700; margin-bottom: 12px; }
.eyebrow span { font-family: system-ui, sans-serif; }
.hero h1 { font-size: clamp(2.6rem, 5.1vw, 4.75rem); font-weight: 700; line-height: 1.01; letter-spacing: -0.038em; }
.hero-copy > p:not(.eyebrow) { max-width: 29ch; color: #4b435b; font-size: clamp(1.02rem, 1.6vw, 1.24rem); line-height: 1.46; margin: 18px 0 24px; }
.primary, .secondary { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 8px 18px; font-weight: 600; }
.primary { background: var(--purple); color: white; }
.primary:hover { background: #422780; }
.secondary { background: var(--white); border-color: var(--line); }
.secondary:hover { border-color: #bcaadf; background: #f5eeff; }
.hero-visual { position: relative; width: 100%; max-width: 455px; justify-self: center; }
.hero-frame { background: var(--white); padding: 11px; border-radius: 27px; box-shadow: var(--shadow); transform: rotate(3deg); }
.hero-frame button { width: 100%; padding: 0; border: 0; border-radius: 18px; background: #f9f5f1; overflow: hidden; }
.hero-frame img { width: 100%; height: 268px; object-fit: contain; background: #faf7f2; }
.sparkle { position: absolute; top: -29px; left: -29px; z-index: 1; color: #7556b5; font: 2.6rem/1 system-ui, sans-serif; text-shadow: 0 1px white; }
.hero-photo-label { position: absolute; bottom: -12px; right: -12px; z-index: 2; border: 1px solid #ffffff99; border-radius: 99px; background: #fffef7; box-shadow: 0 4px 12px #2d233810; color: #4f4267; padding: 6px 13px; font: 800 .75rem/1.5 'Manrope', sans-serif; transform: rotate(-3deg); }
.hero-controls { display: flex; position: absolute; bottom: 14px; inset-inline-start: 50%; transform: translateX(-50%); align-items: center; gap: 2px; }
.hero-controls button { width: 25px; height: 26px; background: transparent; border: 0; display: grid; place-items: center; padding: 0; }
.hero-controls button::before { content: ''; width: 8px; height: 8px; background: #6e5b8761; border-radius: 99px; }
.hero-controls button[aria-current='true']::before { width: 19px; background: var(--purple); }

.categories, .products { scroll-margin-top: 22px; }
.categories { padding: 29px 0 30px; border-bottom: 1px solid var(--line); }
.categories h2 { font-size: 1.06rem; margin-bottom: 10px; }
.category-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.category-bar button { display: inline-flex; align-items: center; min-height: 39px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); padding: 5px 15px; font-size: .96rem; font-weight: 600; }
.category-bar button:hover { border-color: #bcaadf; }
.category-bar button[aria-pressed='true'] { color: #412575; background: var(--lilac); border-color: #d9c6f8; }
.products { padding: 28px 0 60px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.1; }
.result-count { color: var(--muted); margin-top: 5px; }
.sort { display: block; position: relative; flex: none; }
.sort::after { content: ''; pointer-events: none; position: absolute; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); right: 14px; top: 14px; }
.sort select { appearance: none; border-radius: 10px; background: var(--white); border: 1px solid var(--line); padding: 7px 31px 7px 10px; cursor: pointer; font-size: .93rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 19px; position: relative; overflow: hidden; }
.card:hover { border-color: #d3c5e9; box-shadow: 0 8px 25px #40325b0e; }
.card-photo { display: block; width: 100%; aspect-ratio: 1.13; padding: 0; border: 0; background: #f6f1e8; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .23s ease; }
.card-photo:hover img { transform: scale(1.035); }
.card-save, .close, .gallery-arrow { display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--purple); }
.card-save { width: 39px; height: 39px; position: absolute; top: 10px; right: 10px; font: 1.43rem/1 system-ui, sans-serif; box-shadow: 0 3px 12px #32294b15; }
.card-save[aria-pressed='true'] { background: var(--lilac); }
.card-copy { min-height: 91px; padding: 12px 14px 15px; }
.card-code, .detail-code { display: inline-block; color: #6b5a80; letter-spacing: .05em; font: 800 .72rem/1.3 'Manrope', sans-serif; }
.card-name { text-align: left; display: block; padding: 0; border: 0; background: transparent; font-weight: 700; line-height: 1.27; }
.card-name:hover { color: var(--purple); }
.card-price { margin-top: 6px; color: var(--purple); font-weight: 700; }
.empty-state { text-align: center; background: var(--white); border: 1px dashed #dacceb; border-radius: 17px; padding: 34px 16px; }
.empty-state p { margin: 6px 0 14px; }
.more { margin-top: 26px; text-align: center; }
.footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-link { color: var(--purple); font-size: .92rem; font-weight: 600; }

dialog { color: var(--ink); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--white); width: min(870px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: 0 22px 90px #26244132; }
dialog::backdrop { background: #2c234e8a; }
.close { position: absolute; z-index: 2; inset: 12px 12px auto auto; height: 37px; width: 37px; font: 1.5rem/1 system-ui, sans-serif; }
.detail-layout { display: grid; grid-template-columns: 1.06fr 1fr; gap: 26px; padding: 26px; }
.gallery { min-width: 0; }
.gallery-main { position: relative; border-radius: 15px; overflow: hidden; background: #f6f0e7; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 39px; height: 39px; font: 1.7rem/1 system-ui, sans-serif; }
.previous { left: 10px; }.next { right: 10px; }
.thumbs { display: flex; gap: 7px; padding: 8px 5px 4px; overflow: auto; }
.thumbs button { flex: 0 0 53px; width: 53px; height: 53px; padding: 0; background: #f6f0e7; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.thumbs button[aria-pressed='true'] { border: 2px solid var(--purple); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.detail-copy { padding: 12px 9px 0 0; }
.detail-copy h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.15; margin: 7px 0 10px; }
.detail-copy > p:not(.detail-code) { color: var(--muted); }
.detail-copy .detail-price { font-weight: 700; color: var(--purple) !important; font-size: 1.5rem; margin: 0 0 12px; }
.detail-facts { margin: 14px 0 17px; }.detail-facts:empty { display: none; }
.detail-facts div { display: grid; grid-template-columns: minmax(5rem, .7fr) 1fr; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.detail-facts dt { font-weight: 600; }.detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.saved-dialog { width: min(510px, calc(100% - 24px)); padding: 24px; }
.saved-dialog h2 { margin-inline-end: 40px; }
#saved-empty { color: var(--muted); margin-top: 7px; }
#saved-list { padding: 0; margin: 8px 0 14px; list-style: none; }
#saved-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 10px 0; }
#saved-list .saved-product-link { color: var(--ink); display: flex; align-items: center; gap: 10px; text-align: left; border: 0; padding: 0; background: transparent; line-height: 1.2; font-weight: 600; }
#saved-list img { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; background: #f6f0e7; border-radius: 7px; }
#saved-list .remove { border: 0; background: transparent; color: var(--purple); font-size: .88rem; flex: 0 0 auto; }
.toast { position: fixed; z-index: 5; bottom: 15px; left: 50%; transform: translateX(-50%); color: white; background: var(--ink); padding: 7px 15px; border-radius: 8px; }
dialog .toast { position: sticky; bottom: 12px; width: fit-content; margin: 0 auto 12px; transform: none; }

@media (max-width: 960px) {
  .header-inner { gap: 16px; }.nav { gap: 15px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 360px; }.hero-frame img { height: 219px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { display: grid; padding: 11px 0; min-height: 0; grid-template-columns: 1fr auto; gap: 8px 10px; }
  .nav { display: none; }.search { grid-row: 2; grid-column: span 2; width: 100%; }
  .saved-button { justify-self: end; grid-row: 1; grid-column: 2; }
  .hero { padding: 27px 28px 40px; min-height: 290px; gap: 20px; margin-top: 16px; border-radius: 22px; }
  .hero-frame { padding: 6px; border-radius: 17px; }.hero-frame button { border-radius: 12px; }.hero-frame img { height: 170px; }
  .sparkle { left: -16px; top: -17px; font-size: 1.65rem; }.hero-photo-label { right: -7px; bottom: -8px; }
  .categories { padding: 20px 0; }.products { padding-top: 22px; }
  .grid { gap: 10px; }.card { border-radius: 14px; }.card-copy { padding: 10px 10px 12px; }
  .detail-layout { gap: 15px; padding: 18px; }
}
@media (max-width: 515px) {
  .wrap { width: calc(100% - 28px); }
  .brand { font-size: 1rem; gap: 5px; }.brand-mark { width: 33px; height: 33px; }
  .saved-button { padding-inline: 9px; }.saved-label { display: none; }
  .hero { grid-template-columns: 1fr 0.85fr; gap: 11px; padding: 24px 18px 36px; min-height: 257px; }
  .eyebrow { font-size: .78rem; margin-bottom: 8px; gap: 4px; }
  .hero h1 { font-size: clamp(1.9rem, 8.3vw, 2.85rem); }
  .hero-copy > p:not(.eyebrow) { font-size: .93rem; margin: 10px 0 12px; }
  .hero .primary { font-size: .9rem; padding: 5px 8px; min-height: 36px; }.hero-frame img { height: 133px; }
  .hero::before { width: 245px; height: 245px; inset: -100px -120px auto auto; }
  .hero-controls { bottom: 5px; }.hero-photo-label { padding: 3px 6px; font-size: .63rem; }
  .category-bar { gap: 6px; }.category-bar button { padding: 4px 10px; min-height: 34px; font-size: .9rem; }
  .sort select { font-size: .82rem; }.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-save { width: 34px; height: 34px; inset: 7px 7px auto auto; font-size: 1.2rem; }
  .card-name { font-size: .98rem; }.card-code { font-size: .65rem; }
  .detail-layout { grid-template-columns: 1fr; padding: 13px; gap: 9px; }.detail-copy { padding: 4px; }
  .gallery-main img { aspect-ratio: 1.22; }
  .footer-link { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
