:root {
  color-scheme: light;
  --paper: #fbf9f5;
  --ink: #291e2c;
  --muted: #65596a;
  --plum: #37243d;
  --lime: #e8f18c;
  --line: #ded7df;
  --heading: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 600 1rem/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid #6b3d81; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(100% - 96px, 1296px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 10; padding: 12px; background: white; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .header-actions, .main-nav { display: flex; align-items: center; }
.header-inner { min-height: 77px; justify-content: space-between; gap: 24px; }
.header-actions, .main-nav { gap: 28px; }
.header-actions { gap: 10px; }
.brand { font: 700 clamp(1.5rem, 2.35vw, 2rem)/1 var(--heading); letter-spacing: -.085em; }
.brand span { color: #76518c; margin-left: .08em; }
.main-nav a, .footer-inner a:not(.brand) { font-size: .875rem; font-weight: 800; }
.main-nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 5px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: 50%; padding: 0; background: transparent; }
.icon-button:hover, .icon-button[aria-pressed="true"] { background: #ede5ee; }
.icon-button[aria-pressed="true"] svg, .favorite[aria-pressed="true"] svg { fill: #76518c; color: #76518c; }
.cart-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: transparent; font-size: .875rem; font-weight: 800; }
.cart-toggle:hover { background: #ede5ee; }
[data-icon] { display: inline-grid; place-items: center; }
#cartCount { display: grid; place-items: center; min-width: 23px; min-height: 23px; border-radius: 4px; background: var(--lime); padding-inline: 4px; }
.hero { display: grid; grid-template-columns: 44% 56%; margin-top: 26px; min-height: clamp(385px, 34vw, 490px); overflow: hidden; border-radius: 13px; background: var(--plum); color: #fff8ff; }
.hero-copy { padding: clamp(27px, 3.9vw, 61px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-copy .hero-label { margin: 0 0 20px; font-size: .78rem; font-weight: 800; color: #e2cde9; letter-spacing: .13em; }
.hero h1 { font: 600 clamp(2.3rem, 4.48vw, 4.45rem)/1.13 var(--heading); letter-spacing: -.067em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy > p:not(.hero-label) { max-width: 31ch; margin: 20px 0 26px; color: #f0e3f1; }
.hero-media { position: relative; min-width: 0; min-height: 0; background: #6e484f; }
.hero-media img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 52%; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; padding: 10px 20px; line-height: 1.3; font-weight: 800; text-align: center; }
.button-lime { background: var(--lime); color: var(--ink); border-color: #d9e474; }
.button-lime:hover { background: #dbe675; }
.button-outline { border-color: #a598a9; background: transparent; }
.button-outline:hover, .text-button:hover { background: #eee6ef; }
.text-button { padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; font-weight: 800; }
.category-section { margin-top: 38px; }
.category-section h2, .catalog-heading h2, .delivery h2, .dialog-head h2 { font: 600 clamp(1.25rem, 2.04vw, 1.88rem)/1.2 var(--heading); letter-spacing: -.05em; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.category-tile { display: flex; align-items: center; gap: 9px; min-height: 66px; padding: 8px 11px; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: #f5eff5; font-size: .85rem; font-weight: 800; line-height: 1.26; }
.category-tile:nth-child(2n) { background: #f3f1e6; }
.category-tile:nth-child(3n) { background: #f6eae6; }
.category-tile:hover, .category-tile[aria-pressed="true"] { border-color: #7f6087; background: #eaddee; }
.category-tile svg { width: 26px; height: 26px; }
.catalog-section { margin-top: 48px; margin-bottom: 65px; }
.catalog-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; }
.catalog-heading p { color: var(--muted); font-size: .9rem; }
.catalog-toolbar { display: flex; gap: 9px; margin: 17px 0; }
.search-field, .select-field { display: flex; min-height: 45px; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.search-field { flex: 1; padding: 0 12px; gap: 10px; }
.search-field input, .select-field select { border: 0; background: transparent; color: inherit; width: 100%; padding-block: 9px; min-width: 0; }
.select-field { position: relative; }
.select-field select { appearance: none; padding-inline: 12px 32px; }
.select-field::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); position: absolute; top: calc(50% - 5px); right: 13px; pointer-events: none; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { position: relative; min-width: 0; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.product-card:hover { border-color: #ad95b2; }
.product-media { display: grid; place-items: center; position: relative; aspect-ratio: 1.3; background: #f3eef3; overflow: hidden; color: #785780; }
.product-media img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; padding: 12%; mix-blend-mode: multiply; }
.product-media .fallback { display: grid; place-items: center; }
.product-media .fallback svg { width: 55px; height: 55px; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 15px; }
.product-category { color: #694c74; font-size: .77rem; font-weight: 800; }
.product-card h3 { font-size: 1rem; line-height: 1.35; margin: 4px 0 12px; }
.product-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.product-bottom strong { font-size: 1.18rem; font-weight: 800; }
.add { border: 1px solid #ded5e2; border-radius: 6px; background: #f5eff6; }
.add:hover { background: var(--lime); }
.favorite { position: absolute; top: 9px; right: 9px; background: #fff; border: 1px solid var(--line); }
.load-more { display: flex; margin: 22px auto 0; }
.empty-state { text-align: center; border: 1px dashed #bfaec2; border-radius: 9px; padding: 38px 15px; }
.empty-state p { margin-top: 5px; color: var(--muted); }
.delivery { background: #eee5ef; border-radius: 10px; padding: 35px; display: grid; grid-template-columns: 1fr 2fr; gap: 20px; margin-bottom: 50px; }
.delivery details { padding: 11px 0; border-bottom: 1px solid #cbb9ce; }
.delivery summary { cursor: pointer; font-weight: 800; }
.delivery details p { margin-top: 7px; max-width: 63ch; }
.site-footer { background: var(--plum); color: #fff8ff; }
.footer-inner { min-height: 89px; display: flex; align-items: center; gap: 22px; justify-content: space-between; }
.footer-inner span { color: #ead9ef; }
.footer-inner .brand span { color: var(--lime); }
.product-detail { padding-block: 30px 65px; min-height: 66vh; }
.back { display: inline-block; margin-bottom: 22px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 5vw, 72px); align-items: center; }
.detail-media { width: 100%; border: 0; border-radius: 10px; padding: 0; }
.detail-media:not(:has(img:not([hidden]))) { cursor: default; }
.detail-media img { padding: 9%; }
.detail-copy h1 { font: 600 clamp(1.5rem, 3.2vw, 3rem)/1.23 var(--heading); letter-spacing: -.055em; margin: 10px 0 16px; }
.detail-copy .price { font-size: 1.6rem; font-weight: 800; }
.detail-copy .form-note { margin: 10px 0 19px; }
.detail-actions { display: flex; gap: 8px; align-items: center; }
.detail-actions .favorite { position: static; }
dialog { color: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); max-height: calc(100dvh - 32px); }
dialog::backdrop { background: #26172aae; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.close-button { flex: none; background: #f0e8f1; }
.cart-drawer { margin: 0 0 0 auto; inset: 0 0 0 auto; width: min(100%, 470px); max-width: 100%; max-height: 100dvh; height: 100%; border-radius: 0; padding: 21px; }
.cart-drawer[open] { display: flex; flex-direction: column; }
.cart-body { flex: 1; overflow: auto; }
.cart-empty { padding: 35px 0; text-align: center; color: var(--muted); }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row h3 { font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.cart-row .cart-item-price { font-size: .875rem; color: var(--muted); }
.cart-controls { display: flex; align-items: center; gap: 6px; }
.cart-controls button { width: 36px; height: 38px; border: 1px solid var(--line); border-radius: 5px; background: white; padding: 0; }
.cart-controls button:hover { background: var(--lime); }
.cart-footer, .checkout-total { border-top: 1px solid var(--line); padding-top: 14px; }
.cart-footer > div, .checkout-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-footer button, .checkout-dialog form > button { width: 100%; margin-top: 12px; }
.checkout-dialog { width: min(100% - 24px, 490px); padding: 22px; }
.checkout-dialog form { display: grid; gap: 11px; margin-top: 16px; }
.checkout-dialog form label { display: grid; gap: 3px; font-size: .9rem; }
.checkout-dialog input { width: 100%; min-height: 43px; border: 1px solid #a99bac; border-radius: 6px; background: white; padding: 7px 10px; }
.form-note { font-size: .89rem; color: var(--muted); }
.error { color: #a4224a; }
.checkout-result { display: grid; gap: 10px; margin-top: 16px; }
.payment-requisites { margin: 0; overflow-wrap: anywhere; }
.payment-requisites dt { font-size: .82rem; color: var(--muted); }
.payment-requisites dd { margin: 0 0 8px; }
.photo-dialog { width: min(100% - 20px, 800px); padding: 14px; background: white; }
.photo-dialog .close-button { position: absolute; right: 12px; top: 12px; }
.photo-dialog img { display: block; width: 100%; max-height: 75dvh; object-fit: contain; }
.toast { position: fixed; bottom: 19px; left: 50%; z-index: 6; transform: translateX(-50%); max-width: calc(100% - 22px); border-radius: 6px; background: var(--plum); color: white; padding: 9px 16px; text-align: center; font-size: .92rem; pointer-events: none; }
.toast:empty { display: none; }
@media (max-width: 1090px) {
  .shell { width: calc(100% - 54px); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { min-height: 63px; flex-wrap: wrap; gap: 3px 10px; padding-block: 8px; }
  .main-nav { order: 1; width: 100%; justify-content: space-between; gap: 8px; padding: 3px 0 5px; }
  .header-actions { gap: 3px; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 15px; }
  .hero-copy { padding: 25px 22px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.3rem); }
  .hero-media { aspect-ratio: 1.65; }
  .hero-copy .hero-label { margin-bottom: 13px; }
  .hero-copy > p:not(.hero-label) { margin: 11px 0 17px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .catalog-toolbar { flex-wrap: wrap; gap: 6px; }
  .search-field { flex-basis: 100%; }
  .catalog-section { margin-top: 34px; margin-bottom: 36px; }
  .category-section { margin-top: 30px; }
  .delivery { padding: 19px; grid-template-columns: 1fr; gap: 8px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { max-height: 410px; }
}
@media (max-width: 450px) {
  .cart-label, .footer-inner > span { display: none; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .category-tile { min-height: 54px; }
  .product-body { padding: 10px; }
  .product-card h3 { font-size: .9rem; }
  .favorite { top: 5px; right: 5px; }
  .cart-drawer { padding: 15px; }
  .footer-inner { gap: 10px; min-height: 68px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
