:root {
  color-scheme: light;
  --ink: #111d32;
  --muted: #516076;
  --subtle: #5c6c82;
  --blue: #2358e8;
  --blue-dark: #1942b5;
  --blue-soft: #eaf0ff;
  --line: #e0e7f1;
  --page: #f5f7fb;
  --white: #fff;
  --radius: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color: var(--ink);
  background: var(--page);
}
.storefront, .admin-body {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #6e6e73;
  --blue: #0071e3;
  --blue-dark: #005ebc;
  --blue-soft: #eaf3fe;
  --line: #e3e3e8;
  --page: #f5f5f7;
  --radius: 20px;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; line-height: 1.5; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
::selection { background: #c7d5ff; color: #102044; }
:focus-visible { outline: 3px solid #4f77ff; outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg { width: 22px; height: 22px; flex: none; vertical-align: middle; }
p, h1, h2, h3, dl { margin: 0; }
img { display: block; max-width: 100%; }
.unstyled-list { margin: 0; padding: 0; list-style: none; }
.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 { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 15px; border-radius: 8px; color: #fff; background: var(--blue); transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.demo-banner { display: flex; gap: 8px; min-height: 35px; align-items: center; justify-content: center; padding: 5px 12px; color: #e4ebfb; background: #101c32; font-size: .79rem; letter-spacing: .015em; text-align: center; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #8cafff; }
.separator { color: #9faeca; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; white-space: nowrap; color: var(--ink); font-size: 1.54rem; font-weight: 800; letter-spacing: -.075em; line-height: 1; }
.brand > span:last-child > span { color: var(--blue); }
.brand-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--blue); }
.brand-icon svg { width: 21px; height: 21px; }
.main-nav { display: flex; gap: 32px; color: #3b485d; font-size: .93rem; font-weight: 650; }
.main-nav a:hover, .footer-admin:hover { color: var(--blue); }
.bag-button { justify-self: end; min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 13px; background: #fff; color: var(--ink); border: 1px solid #dbe4f1; border-radius: 10px; font-size: .91rem; font-weight: 700; }
.bag-button:hover { border-color: #a9b9d6; background: #f8faff; }
.bag-button svg { width: 19px; height: 19px; }
.bag-count { min-width: 24px; min-height: 24px; padding-inline: 4px; display: grid; place-items: center; color: var(--blue-dark); background: var(--blue-soft); font-size: .76rem; border-radius: 7px; }
.store { padding-top: 32px; }
.hero { position: relative; overflow: hidden; min-height: 410px; border-radius: 24px; isolation: isolate; color: #fff; background: #081024; }
.hero-art { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg,#081024 0%,#081024 24%,rgba(8,16,36,.64) 43%,transparent 68%),url('/media/hero.webp'); background-position: center, right 49%; background-repeat: no-repeat; background-size: cover, auto 145%; }
.hero-copy { position: relative; max-width: 555px; padding: 53px 0 52px 54px; }
.hero-kicker, .eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .115em; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid #52658a; background: #132443; border-radius: 100px; color: #dbe7ff; }
.hero-kicker span { width: 6px; height: 6px; border-radius: 50%; background: #80a7ff; }
.hero h1 { margin-top: 14px; color: #fff; font-size: clamp(3.1rem, 5.2vw, 5.0rem); line-height: .97; font-weight: 800; letter-spacing: -.074em; }
.hero-copy p { margin: 21px 0 28px; max-width: 370px; color: #d1dcf1; font-size: 1.05rem; line-height: 1.55; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: inherit; font-size: .91rem; font-weight: 750; line-height: 1.3; text-align: center; transition: background .16s, border-color .16s; }
.button svg { width: 17px; height: 17px; }
.button-bright { min-height: 47px; padding-inline: 20px; background: #fff; color: #143588; }
.button-bright:hover { background: #e4edff; }
.button-primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-outline { border-color: #d6e0ee; background: #fff; color: #1b2c47; }
.button-outline:hover { background: #eff4ff; border-color: #a9bce4; }
.button:disabled, .icon-button:disabled { opacity: .47; }
.full { width: 100%; }
.benefits { margin-top: 17px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.benefit { display: flex; gap: 12px; align-items: center; padding: 1px clamp(12px,2.4vw,30px); }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit-icon { width: 41px; height: 41px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: #edf2ff; }
.benefit-icon svg { width: 21px; height: 21px; }
.benefit strong, .benefit div > span { display: block; }
.benefit strong { font-size: .91rem; font-weight: 760; }
.benefit div > span { font-size: .82rem; color: var(--muted); }
.catalog { padding-top: 53px; scroll-margin-top: 17px; }
.section-heading { display: flex; gap: 17px; justify-content: space-between; align-items: flex-end; }
.eyebrow { color: var(--blue-dark); }
.section-heading h2, .how h2 { margin-top: 3px; font-size: clamp(2rem,4vw,2.85rem); line-height: 1.08; font-weight: 800; letter-spacing: -.056em; }
.section-heading h2 + p, .how h2 + p { margin-top: 8px; color: var(--muted); }
.search { min-width: 225px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #d7e0ee; background: #fff; color: var(--subtle); border-radius: 9px; }
.search svg, .sort svg { width: 18px; height: 18px; }
.search input { width: 100%; min-height: 43px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: #65738a; }
.search:focus-within { outline: 3px solid #4f77ff; outline-offset: 2px; }
.catalog-tools { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { min-height: 37px; padding: 6px 13px; border: 1px solid #dce5f1; color: #39475d; background: #fff; border-radius: 8px; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.filter:hover { border-color: #9fb0d4; }
.filter[aria-pressed=true] { color: #fff; background: var(--blue); border-color: var(--blue); }
.sort { position: relative; flex: none; }
.sort select { appearance: none; min-height: 38px; padding: 6px 33px 6px 11px; border: 1px solid #d7e0ee; background: #fff; color: #35435a; border-radius: 8px; font-size: .875rem; }
.sort > span:last-child { position: absolute; right: 9px; top: 9px; pointer-events: none; }
.catalog-count { min-height: 19px; margin-block: 17px 9px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.product-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 318px; background: #fff; border: 1px solid #e1e8f3; border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px #20325512; }
.product-media { position: relative; padding: 36px 18px 15px; display: grid; align-content: center; justify-items: center; width: 100%; height: 194px; background: #eff3fa; border: 0; color: var(--ink); }
.product-media:focus-visible { outline-offset: -4px; z-index: 1; }
.product-media img { width: 100%; height: 146px; object-fit: contain; mix-blend-mode: multiply; }
.condition { position: absolute; z-index: 1; top: 12px; left: 12px; background: #fff; border: 1px solid #dfe8f4; border-radius: 7px; padding: 3px 8px; color: #394a62; font-size: .72rem; font-weight: 750; }
.product-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 14px 15px 15px; }
.product-copy h3 { font-size: 1.12rem; letter-spacing: -.023em; line-height: 1.28; overflow-wrap: anywhere; }
.plain { background: transparent; border: 0; padding: 0; color: inherit; }
.product-title { text-align: left; font-weight: 750; }
.product-title:hover { color: var(--blue); }
.product-copy > p { margin-top: 4px; font-size: .85rem; color: var(--muted); }
.product-copy > p span { color: #74819a; }
.product-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 13px; }
.product-bottom strong { display: block; font-size: 1.23rem; letter-spacing: -.035em; line-height: 1.1; }
.stock { display: block; margin-top: 6px; color: #1b6845; font-size: .75rem; font-weight: 700; }
.stock.sold { color: #6d5261; }
.add-product { width: 39px; height: 39px; flex: none; display: grid; place-items: center; border: 0; border-radius: 9px; color: var(--blue); background: var(--blue-soft); }
.add-product:hover:not(:disabled) { color: white; background: var(--blue); }
.add-product:disabled { color: #767e90; background: #eceff4; }
.add-product svg { width: 20px; height: 20px; }
.placeholder-phone { display: grid; height: 100%; place-items: center; color: #798ba8; }
.placeholder-phone svg { width: 52px; height: 52px; }
.how { margin-block: 43px; background: #eaf0ff; border: 1px solid #d9e4fb; border-radius: var(--radius); padding: 27px 31px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.how h2 { font-size: clamp(1.6rem,3vw,2rem); }
.how h2 + p { max-width: 660px; }
.how .button { flex: none; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.footer-inner p, .footer-admin { color: var(--muted); font-size: .86rem; }
.footer-admin { font-weight: 650; }
.empty { display: grid; justify-items: center; align-content: center; gap: 9px; text-align: center; padding: 45px 23px; }
.empty > svg { width: 33px; height: 33px; color: var(--blue); }
.empty p { color: var(--muted); }
.empty .button { margin-top: 8px; }
.catalog-empty { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 12; display: flex; align-items: center; gap: 9px; max-width: min(460px,calc(100% - 44px)); padding: 11px 17px 11px 11px; color: #fff; background: #15213b; border-radius: 11px; box-shadow: 0 12px 35px #101c3240; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; }
.toast.visible { opacity: 1; transform: none; }
.toast > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: #354e7a; color: #e3ecff; }
.toast svg { width: 17px; height: 17px; }
dialog { margin: auto; padding: 0; border: 1px solid #d9e4f3; border-radius: 17px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #08132b36; }
dialog::backdrop { background: #081228a1; }
.product-dialog { width: min(710px,calc(100% - 30px)); max-height: calc(100% - 30px); }
#product-detail { display: grid; grid-template-columns: 1fr 1.07fr; position: relative; }
.icon-button { width: 39px; height: 39px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.icon-button:hover:not(:disabled) { background: #edf3ff; }
.icon-button svg { width: 19px; height: 19px; }
.modal-close { position: absolute; z-index: 1; right: 13px; top: 13px; }
.detail-media { min-height: 360px; display: grid; place-items: center; background: #edf2f9; padding: 22px; }
.detail-media img { width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: multiply; }
.detail-copy { padding: 35px 24px 23px; }
.detail-copy h2 { font-size: 1.8rem; line-height: 1.05; letter-spacing: -.05em; padding-right: 7px; margin-top: 5px; overflow-wrap: anywhere; }
.detail-price { margin: 14px 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.specs { margin-bottom: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.specs > div { padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.specs dt, .receipt dt { color: var(--muted); font-size: .8rem; }
.specs dd, .receipt dd { margin: 0; font-size: .9rem; font-weight: 700; }
.tiny { margin-top: 9px; color: var(--muted); font-size: .78rem; text-align: center; }
.bag-dialog { position: fixed; inset: 0 0 0 auto; width: min(473px,100%); max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; margin: 0; border-radius: 16px 0 0 16px; }
#bag-content { min-height: 0; height: 100%; display: flex; flex-direction: column; }
.bag-head { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 76px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; }
.bag-scroll, .bag-dialog .success { overflow: auto; }
.bag-scroll { flex: 1; padding: 18px 20px; }
.cart-list { margin: 0; padding: 0; list-style: none; }
.cart-list li { display: grid; grid-template-columns: 63px minmax(0,1fr) auto; gap: 11px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.cart-photo { width: 63px; height: 66px; display: grid; place-items: center; padding: 4px; background: #edf2fa; border-radius: 8px; }
.cart-photo img { max-height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.cart-photo .placeholder-phone svg { width: 28px; height: 28px; }
.cart-copy strong, .cart-copy small { display: block; }
.cart-copy small { color: var(--muted); font-size: .81rem; overflow-wrap: anywhere; }
.cart-end { display: grid; align-content: space-between; justify-items: end; font-size: .95rem; }
.remove { min-width: 32px; min-height: 32px; color: #53627b; }
.remove svg { width: 17px; height: 17px; }
.remove:hover { color: #b5213d; }
.stepper { width: fit-content; margin-top: 7px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.stepper span { min-width: 23px; text-align: center; font-size: .83rem; font-weight: 700; }
.stepper button { width: 33px; min-height: 32px; display: grid; place-items: center; padding: 0; background: #fff; color: #253750; border: 0; border-radius: 7px; }
.stepper button:hover:not(:disabled) { background: #eaf0ff; }
.stepper button:disabled { color: #a5b0c2; }
.stepper svg { width: 14px; height: 14px; }
.bag-footer { margin-top: auto; padding: 17px 20px 20px; border-top: 1px solid var(--line); }
.bag-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; font-weight: 700; }
.bag-total strong { font-size: 1.3rem; }
.payment-note { padding: 13px; color: #173473; background: #eaf0ff; border: 1px solid #d4e0ff; border-radius: 9px; }
.payment-note p { margin-top: 3px; font-size: .9rem; }
.methods { padding: 0; margin: 17px 0 0; border: 0; display: grid; gap: 9px; }
.methods legend { margin-bottom: 8px; font-weight: 750; }
.wallet-button { display: flex; align-items: center; justify-content: space-between; min-height: 49px; padding: 8px 13px; border: 2px solid #dae3f2; border-radius: 9px; font-size: 1.05rem; font-weight: 800; }
.wallet-button.apple { background: #14171c; color: #fff; border-color: #14171c; }
.wallet-button.google { background: #fff; color: #213045; }
.wallet-button[aria-pressed=true] { border-color: #547dff; box-shadow: 0 0 0 2px #ccd9ff; }
.wallet-button small { font-size: .75rem; font-weight: 650; }
.back-button { display: block; width: 100%; margin-top: 9px; min-height: 39px; font-weight: 650; color: var(--muted); }
.back-button:hover { color: var(--blue); }
.error { padding: 9px 11px; margin-bottom: 9px; border: 1px solid #f0c5d0; background: #fff0f3; color: #9c2141; border-radius: 8px; font-size: .87rem; }
.success-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #e6f6ee; color: #176b48; }
.success-icon svg { width: 30px; height: 30px; }
.receipt { display: grid; gap: 8px; width: 100%; margin-top: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; text-align: left; }
.receipt > div { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
@media (max-width: 1070px) {
  .shell { width: calc(100% - 58px); }
  .hero-copy { padding-left: 39px; }
  .hero-art { background-size: cover, auto 132%; }
}
@media (max-width: 860px) {
  .products { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero-art { background-size: cover, auto 121%; background-position: center, calc(100% + 50px) center; }
  .hero { min-height: 376px; }
  .hero-copy { padding-block: 43px; }
  .benefit { gap: 7px; }
  .benefit-icon { width: 32px; height: 32px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { min-height: 61px; gap: 9px; grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .store { padding-top: 15px; }
  .hero { min-height: 485px; border-radius: 17px; }
  .hero-art { background-image: linear-gradient(180deg,#081024 5%,#081024 26%,rgba(8,16,36,.66) 50%,transparent 72%),url('/media/hero.webp'); background-position: center, 76% calc(100% + 38px); background-size: cover, auto 71%; }
  .hero-copy { padding: 27px 19px 190px; }
  .hero h1 { font-size: clamp(2.8rem,10vw,4rem); }
  .hero-copy p { margin-block: 13px 16px; font-size: .97rem; max-width: 300px; }
  .benefits { display: block; margin-top: 11px; padding: 0 12px; }
  .benefit { padding: 8px 0; gap: 10px; }
  .benefit + .benefit { border-top: 1px solid var(--line); border-left: 0; }
  .catalog { padding-top: 35px; }
  .section-heading { display: grid; align-items: start; }
  .search { min-width: 0; }
  .catalog-tools { align-items: start; display: grid; justify-content: stretch; margin-top: 12px; }
  .sort { justify-self: start; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .product-card { min-height: 268px; border-radius: 12px; }
  .product-media { height: 143px; padding: 34px 8px 9px; }
  .product-media img { height: 101px; }
  .product-copy { padding: 10px; }
  .product-copy h3 { font-size: 1rem; }
  .product-copy > p { font-size: .78rem; }
  .product-bottom strong { font-size: 1.03rem; }
  .add-product { width: 34px; height: 34px; }
  .stock { font-size: .71rem; }
  .how { display: grid; margin-block: 28px; padding: 18px; }
  .how .button { justify-self: start; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  #product-detail { display: block; }
  .detail-media { min-height: 150px; height: min(210px,32vh); padding: 15px; }
  .detail-media img { max-height: 100%; }
  .detail-copy { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
