:root {
  --ink: #443447;
  --pink: #a43f69;
  --pink-dark: #843052;
  --blush: #fbeaf0;
  --sky: #f2edf8;
  --sage: #edf3eb;
  --white: #fff;
  --line: #eadfe7;
  --muted: #756777;
  --shadow: 0 8px 28px #65425b08;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fffafd; color: var(--ink); font: 14px/1.55 'Trebuchet MS', Arial, sans-serif; padding-bottom: 88px; }
a { color: inherit; }
button, input { font: inherit; }
button, a, input { min-height: 44px; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.demo { background: #f4e6ee; color: #6e4760; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .055em; padding: 7px 10px; }
.header { min-height: 78px; max-width: 1160px; margin: auto; padding: 9px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 400 27px/1 Georgia, 'Times New Roman', serif; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand small { display: block; color: var(--pink); font: 700 10px/1.4 'Trebuchet MS', Arial, sans-serif; margin-top: 4px; letter-spacing: .025em; }
.header nav { display: none; align-items: center; gap: 8px; }
.header nav a, .bottom-nav a { text-decoration: none; font-size: 12px; font-weight: 700; }
.header nav a { display: flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 99px; }
.header nav .active, .bottom-nav .active { color: var(--pink-dark); background: var(--blush); }
.cart-count { display: inline-grid; place-items: center; min-height: 20px !important; min-width: 20px; height: 20px; border-radius: 50%; background: var(--pink); color: white; font: 700 10px/1 Arial, sans-serif; }
.hero { position: relative; isolation: isolate; overflow: hidden; max-width: 1104px; margin: 0 12px; background: linear-gradient(115deg, #fbe7ee, #f3edf9 78%); border: 1px solid #f2e0ea; display: block; padding: 18px; border-radius: 28px 28px 42px 28px; }
.hero::before { content: ''; position: absolute; z-index: -1; width: 150px; height: 150px; right: -65px; top: -85px; border-radius: 50%; border: 24px solid #ffffff50; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.14; }
.hero h1 { font-size: 29px; letter-spacing: -.035em; margin: 5px 0 8px; max-width: 530px; }
.hero h1 em { color: var(--pink); font-style: italic; }
.hero p:not(.eyebrow) { margin: 0 0 12px; color: #6b586d; font-size: 12px; max-width: 420px; }
.hero img { display: none; width: 100%; aspect-ratio: 2.5; object-fit: contain; border-radius: 25px; border: 7px solid #fff; box-shadow: 0 12px 32px #6d41651a; }
.eyebrow { color: var(--pink); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; border-radius: 999px; padding: 11px 18px; text-decoration: none; font-size: 12px; font-weight: 700; min-height: 44px; }
.pink { background: var(--pink); color: #fff; box-shadow: 0 5px 14px #a43f6918; }
.pink span { color: #fff; }
.section { max-width: 1160px; margin: auto; padding: 24px 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.section-head h1, .section-head h2, .cart-page h1 { font-size: 28px; letter-spacing: -.025em; margin: 4px 0 0; }
.section-head > a { display: inline-flex; align-items: center; white-space: nowrap; font-size: 11px; color: var(--pink); font-weight: 700; text-decoration: none; padding: 0 0 0 8px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
.product-card { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; min-width: 0; box-shadow: var(--shadow); }
.product-card button.image { padding: 7px 7px 0; border: 0; width: 100%; display: block; background: #fff; cursor: pointer; }
.product-card img { width: 100%; display: block; aspect-ratio: 1.05; object-fit: contain; background: #f7f3f7; border-radius: 18px; }
.product-card:nth-child(4n+2) img { background: #f0f4ef; }
.product-card:nth-child(4n+3) img { background: #f5eff8; }
.card-body { padding: 10px; }
.card-category { font-size: 10px; line-height: 1.5; color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.card-body h3 { font-size: 13px; font-weight: 700; line-height: 1.35; margin: 5px 0 10px; min-height: 36px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.confirm { font-size: 11px; line-height: 1.5; color: #67516a; }
.availability { font-size: 10px; color: var(--muted); }
.add { flex: 0 0 44px; border: 1px solid #edcfdd; border-radius: 16px; width: 44px; height: 44px; background: var(--blush); color: var(--pink-dark); font-size: 23px; }
.note { font-size: 11px; line-height: 1.65; color: var(--muted); margin: 15px 0 0; }
.family { position: relative; background: var(--sage); max-width: 1104px; margin: 4px 12px 26px; padding: 25px 22px; border-radius: 32px 32px 48px 32px; border: 1px solid #e0e8de; }
.family .eyebrow { color: #536b54; }
.family h2 { font-size: 25px; letter-spacing: -.025em; max-width: 600px; margin: 9px 0 12px; }
.family p:not(.eyebrow) { color: #5e695e; max-width: 610px; font-size: 12px; margin-bottom: 0; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 0 16px; margin: 17px 0 12px; color: var(--pink); min-height: 48px; box-shadow: var(--shadow); }
.search input { border: 0; border-radius: 99px; background: transparent; width: 100%; min-width: 0; font-size: 16px; color: var(--ink); }
.search:focus-within { outline: 2px solid var(--pink); outline-offset: 2px; }
.search input:focus-visible { outline: none; }
.categories { display: flex; gap: 8px; overflow-x: auto; padding: 3px 2px 16px; scrollbar-width: thin; scrollbar-color: #ddc1d2 transparent; }
.categories button { flex-shrink: 0; white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font-size: 11px; color: #6c596f; }
.categories button.active { background: var(--pink); border-color: var(--pink); color: #fff; }
#result-count { font-size: 12px; color: var(--muted); }
.empty { text-align: center; padding: 30px 15px; color: var(--muted); background: #fff; border-radius: 24px; }
.cart-page { min-height: 55vh; }
.intro { color: var(--muted); font-size: 12px; max-width: 560px; }
.cart-line { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 62px; height: 74px; object-fit: contain; background: var(--sky); border-radius: 17px; }
.cart-line h3 { font-size: 13px; line-height: 1.4; margin: 0 0 3px; }
.cart-line small { font-size: 10px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.qty button, .remove { width: 44px; height: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 50%; color: var(--ink); }
.qty strong { min-width: 15px; text-align: center; }
.remove { border: 0; color: var(--pink); font-size: 22px; background: var(--blush); }
.summary { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: var(--sky); }
.summary h2 { font-size: 25px; margin: 0 0 14px; }
.summary > div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 12px; }
.summary .button { width: 100%; margin-top: 14px; }
.status { font-size: 11px; color: var(--pink-dark); overflow-wrap: anywhere; }
footer { background: #f3eaf1; color: var(--ink); padding: 27px 20px 30px; display: grid; gap: 12px; font-size: 11px; border-top: 1px solid var(--line); }
footer strong { display: block; font: 400 22px/1.3 Georgia, 'Times New Roman', serif; margin-bottom: 5px; }
footer span, footer small { color: #726075; }
footer a { display: inline-flex; align-items: center; width: fit-content; color: var(--pink-dark); font-weight: 700; text-underline-offset: 4px; }
footer small { max-width: 600px; font-size: 10px; }
.bottom-nav { position: fixed; z-index: 4; bottom: 10px; left: 10px; right: 10px; background: #fffffff7; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 25px; display: flex; justify-content: space-around; gap: 3px; box-shadow: 0 5px 30px #69415c20; }
.bottom-nav a { display: flex; align-items: center; justify-content: center; gap: 5px; flex: 1; min-width: 0; text-align: center; border-radius: 18px; }
dialog { width: min(94vw, 540px); max-height: 90dvh; border: 1px solid var(--line); border-radius: 30px; padding: 0; background: #fff; color: var(--ink); box-shadow: 0 20px 80px #5c3f5c44; }
dialog::backdrop { background: #44344799; }
.dialog-close { position: absolute; right: 12px; top: 12px; z-index: 2; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; width: 44px; box-shadow: var(--shadow); }
.dialog-gallery { padding: 12px 12px 0; }
.dialog-gallery .gallery-main { width: 100%; display: block; max-height: 320px; aspect-ratio: 1.25; object-fit: contain; border-radius: 22px; background: #f6f2f7; }
.gallery-controls { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; }
.gallery-thumb { flex: 0 0 58px; width: 58px; height: 58px; min-height: 44px; padding: 3px; border: 2px solid transparent; border-radius: 15px; background: #f6f2f7; }
.gallery-thumb.active { border-color: var(--pink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.photo-count { font-size: 11px; color: var(--muted); margin: 4px 0 0; text-align: right; }
.dialog-add { width: 100%; margin: 4px 0 10px; }
.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; }
.dialog-body { padding: 20px; }
.dialog-body h2 { font-size: 28px; margin: 6px 0 12px; }
.dialog-body p { color: var(--muted); font-size: 13px; }
.source { display: inline-flex; align-items: center; font-size: 11px; color: var(--pink-dark); text-underline-offset: 3px; }
body:has(dialog[open]) { overflow: hidden; }
@media (hover: hover) {
  .pink:hover { background: var(--pink-dark); }
  .add:hover { background: var(--pink); color: #fff; }
  .product-card:hover { border-color: #d8b5cb; box-shadow: 0 10px 28px #65425b12; }
  .header nav a:hover { background: var(--blush); }
}
@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .header { min-height: 94px; padding: 13px 28px; }
  .brand { font-size: 31px; }
  .brand img { width: 64px; height: 64px; }
  .header nav { display: flex; }
  .bottom-nav { display: none; }
  .hero { margin: 0 28px; padding: 34px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px; border-radius: 36px 36px 60px 36px; min-height: 290px; }
  .hero h1 { font-size: clamp(34px, 3.4vw, 46px); margin: 9px 0 15px; }
  .hero p:not(.eyebrow) { font-size: 14px; margin-bottom: 20px; }
  .hero img { display: block; transform: rotate(2deg); }
  .button { padding: 12px 21px; font-size: 13px; }
  .section { padding: 36px 28px; }
  .section-head { margin-bottom: 21px; }
  .section-head h1, .section-head h2, .cart-page h1 { font-size: 34px; }
  .section-head > a { font-size: 12px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .product-card { border-radius: 28px; }
  .product-card button.image { padding: 9px 9px 0; }
  .card-body { padding: 13px; }
  .card-body h3 { font-size: 14px; min-height: 39px; }
  .family { margin: 0 28px 36px; padding: 32px 36px; }
  .family h2 { font-size: 31px; }
  .family p:not(.eyebrow) { font-size: 13px; }
  footer { padding: 32px max(28px, calc((100% - 1104px)/2)); grid-template-columns: 1fr auto; align-items: center; }
  footer small { grid-column: 1/-1; }
  .cart-line { grid-template-columns: 78px 1fr auto; gap: 18px; }
  .cart-line img { width: 78px; height: 82px; }
  .cart-line h3 { font-size: 15px; }
  .summary { max-width: 560px; }
}
@media (min-width: 1160px) {
  .hero, .family { margin-left: auto; margin-right: auto; }
}
@media (max-width: 340px) {
  .header { padding-left: 12px; padding-right: 12px; }
  .hero { padding: 15px; }
  .hero h1 { font-size: 26px; }
  .section { padding-left: 12px; padding-right: 12px; }
  .card-body { padding: 9px; }
  .card-body h3 { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
