﻿:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #17131b; background: #f7f5f8; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
button, input, select { font: inherit; }
button, a, select, label[for="image-input"] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.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; }
.page-shell { max-width: 1080px; margin: 0 auto; background: #fff; min-height: calc(100vh - 86px); box-shadow: 0 0 36px #350b4112; }
.explorer-header { position: relative; padding: 16px 18px 12px; color: white; background: radial-gradient(ellipse at 75% 52%, #b800b0 0%, #77008e 42%, #4d0084 100%); }
.topbar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.icon-button { position: relative; display: grid; place-items: center; flex: none; width: 35px; height: 38px; padding: 2px; border: 0; color: white; background: transparent; }
.icon-button svg { width: 29px; height: 29px; }
.logo { display: flex; align-items: center; gap: 7px; min-width: 0; margin-right: auto; line-height: 1; }
.logo-bag { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; color: #fff; background: #ff7900; box-shadow: 0 4px 10px #41006444; }
.logo-bag svg { width: 28px; height: 28px; }
.logo strong { display: block; color: #ffb000; font-size: 23px; letter-spacing: -.8px; }
.logo small { display: block; margin-top: 3px; white-space: nowrap; font-size: 11px; font-weight: 700; }
.market-select { position: relative; flex: none; }
.market-select select { max-width: 140px; min-width: 85px; border: 0; border-radius: 24px; padding: 9px 24px 9px 11px; appearance: none; background: #fff; color: #18111b; font-size: 12px; font-weight: 700; }
.market-select::after, .filter::after { content: ''; position: absolute; width: 7px; height: 7px; border-right: 2px solid #ed3b1b; border-bottom: 2px solid #ed3b1b; transform: rotate(45deg); pointer-events: none; right: 12px; top: calc(50% - 5px); }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 2px solid white; border-radius: 50%; color: #5b1286; background: #f6e2fc; }
.avatar svg { width: 24px; height: 24px; }
.cart-count { position: absolute; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; top: -3px; right: -3px; border-radius: 20px; background: #f33520; color: #fff; font-size: 12px; font-weight: 800; }
.quick-menu { position: absolute; z-index: 3; top: 62px; left: 18px; width: 190px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 8px 30px #23003844; color: #25172c; }
.quick-menu a { display: block; border-radius: 8px; padding: 10px; font-weight: 700; }
.quick-menu a:hover, .quick-menu a[aria-current] { color: #6a008f; background: #f7eaf9; }
.heading { display: flex; align-items: center; gap: 9px; margin: 19px 0 12px; }
.heading svg { width: 32px; height: 32px; color: #ffbf00; stroke-width: 3; }
.heading h1 { margin: 0; font-size: clamp(24px, 4vw, 35px); letter-spacing: -.9px; line-height: 1.12; }
.search-bar { display: flex; align-items: center; gap: 11px; width: 100%; padding: 4px 4px 4px 14px; border-radius: 40px; background: #fff; color: #1c1820; box-shadow: 0 3px 8px #34004027; }
.search-bar > svg { flex: none; width: 25px; height: 25px; stroke-width: 2.5; }
.search-bar input[type="search"] { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: transparent; color: #3a0c53; font-size: 15px; }
.search-bar input::placeholder { color: #71557b; opacity: 1; }
.search-bar:focus-within { outline: 3px solid #ffc756; }
.image-search { display: grid; place-items: center; flex: none; width: 58px; height: 37px; border-radius: 28px; background: #ff7900; color: #fff; cursor: pointer; }
.image-search svg { width: 23px; height: 23px; }
.categories, .filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.category { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 75px; padding: 7px 2px; border: 2px solid transparent; border-radius: 18px; color: #211b22; background: #f8edf9; font-size: clamp(10px, 1.6vw, 14px); font-weight: 800; }
.category span { font-size: 35px; line-height: 1; }
.category[aria-pressed="true"] { border-color: #ff9500; background: #fff7e6; box-shadow: 0 0 0 2px #ffffff80; }
.filter { position: relative; display: flex; align-items: center; gap: 5px; min-width: 0; height: 40px; padding-left: 9px; border: 2px solid #fff; border-radius: 23px; color: #17111a; background: #f8effb; box-shadow: 0 2px 6px #41005633; }
.filter > span { flex: none; font-size: 19px; line-height: 1; }
.filter select { width: 100%; min-width: 0; height: 100%; padding: 0 18px 0 0; border: 0; appearance: none; background: transparent; color: inherit; font-size: clamp(10px, 1.5vw, 13px); font-weight: 800; cursor: pointer; }
.filter::after { right: 9px; width: 6px; height: 6px; }
.explorer-main { padding: 15px 18px 22px; }
.promo { position: relative; overflow: hidden; border-radius: 16px; background: #6f00a8; }
.promo img { display: block; width: 100%; height: auto; }
.promo span { position: absolute; right: 8px; bottom: 7px; padding: 4px 7px; border-radius: 6px; background: #23032eaa; color: #fff; font-size: 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; }
.section-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: clamp(17px, 3vw, 23px); letter-spacing: -.5px; }
.section-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; color: white; background: #ff7900; }
.section-icon svg { width: 22px; height: 22px; }
.see-all { display: flex; align-items: center; gap: 3px; flex: none; padding: 5px 0; border: 0; background: none; color: #ec6900; font-weight: 800; font-size: 13px; }
.see-all svg { width: 19px; height: 19px; }
.demo-note { margin: 7px 0 0; color: #786b7b; font-size: 11px; }
.results-status { min-height: 0; margin: 3px 0 8px; color: #6b5b71; font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.product-card { min-width: 0; padding: 4px; border: 1px solid #e8e4e9; border-radius: 13px; background: white; box-shadow: 0 2px 6px #3a17400e; }
.product-image { position: relative; overflow: hidden; border-radius: 9px; background: #f4f1f3; aspect-ratio: 1.63; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-image-link { display: block; width: 100%; height: 100%; }
.favorite { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 31px; height: 31px; padding: 4px; border: 0; border-radius: 50%; background: #fffffff0; color: #17131b; }
.favorite svg { width: 23px; height: 23px; }
.favorite[aria-pressed="true"] { color: #f13c40; }
.favorite[aria-pressed="true"] svg { fill: currentColor; }
.product-info { padding: 6px 5px 3px; }
.product-name { overflow: hidden; margin: 0; color: #18131a; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.product-price { margin: 3px 0 0; color: #e72b22; font-size: 15px; font-weight: 900; }
.add-cart { display: flex; justify-content: center; align-items: center; gap: 5px; width: 100%; min-height: 34px; margin-top: 6px; padding: 5px 4px; border: 0; border-radius: 9px; background: #ff7600; color: #fff; font-size: 12px; font-weight: 800; }
.add-cart:hover, .image-search:hover { background: #e86400; }
.add-cart svg { width: 18px; height: 18px; flex: none; }
.empty-state { padding: 24px 16px; border-radius: 12px; background: #f8f2fa; color: #594c5d; line-height: 1.5; }
.bottom-nav { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; max-width: 1080px; min-height: 72px; margin: 0 auto; padding: 6px 6px calc(5px + env(safe-area-inset-bottom)); border: 1px solid #eee8ef; border-bottom: 0; border-radius: 23px 23px 0 0; background: #fff; box-shadow: 0 -3px 16px #2b0d360e; }
.bottom-nav a { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; max-width: 150px; padding: 5px 2px; border-radius: 40px; font-size: 12px; font-weight: 800; }
.bottom-nav a svg { width: 25px; height: 25px; stroke-width: 2.2; }
.bottom-nav a[aria-current="page"] { background: #ff7900; color: #fff; box-shadow: 0 3px 8px #e9750055; }
.bottom-cart .cart-count { top: 2px; right: calc(50% - 25px); }
.toast { position: fixed; z-index: 8; right: 16px; bottom: calc(85px + env(safe-area-inset-bottom)); left: 16px; width: fit-content; max-width: min(460px, calc(100% - 32px)); margin: auto; padding: 12px 16px; border-radius: 12px; background: #261232; color: white; box-shadow: 0 8px 22px #0003; font-size: 14px; }
.cart-main { padding: 24px 18px; }
.cart-main h1 { margin-top: 0; }
.cart-list { display: grid; gap: 10px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #eee8ef; border-radius: 14px; background: #fff; }
.cart-item img { width: 84px; height: 60px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info strong, .cart-item-info span { display: block; }
.cart-item-info span { margin-top: 4px; color: #de2924; font-weight: 800; }
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f4e8f7; color: #64008c; font-weight: 800; }
.cart-total { margin: 20px 0; font-size: 18px; font-weight: 800; }
.back-link { display: inline-block; padding: 12px 18px; border-radius: 24px; background: #ff7900; color: white; font-weight: 800; }
:focus-visible { outline: 3px solid #fcbf22; outline-offset: 3px; }
@media (max-width: 600px) {
  .explorer-header { padding: 12px 12px 11px; }
  .topbar { gap: 6px; }
  .logo { gap: 4px; }
  .logo-bag { width: 30px; height: 33px; border-radius: 6px; }
  .logo-bag svg { width: 23px; height: 23px; }
  .logo strong { font-size: 17px; letter-spacing: -.6px; }
  .logo small { font-size: 9px; }
  .icon-button { width: 27px; height: 32px; }
  .icon-button svg { width: 24px; height: 24px; }
  .market-select select { max-width: 78px; min-width: 70px; padding: 8px 16px 8px 6px; font-size: 10px; }
  .market-select::after { right: 7px; width: 5px; height: 5px; }
  .avatar { width: 30px; height: 30px; }
  .avatar svg { width: 19px; height: 19px; }
  .heading { margin-top: 16px; }
  .categories, .filters { gap: 6px; }
  .category { min-height: 68px; border-radius: 14px; }
  .category span { font-size: 29px; }
  .filter { padding-left: 5px; }
  .filter > span { font-size: 15px; }
  .filter select { padding-right: 13px; }
  .filter::after { right: 6px; }
  .explorer-main { padding: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 340px) { .topbar { gap: 3px; } .logo strong { font-size: 15px; } .logo small { font-size: 8px; } .notification-button { width: 23px; } .heading h1 { font-size: 22px; } .filter > span { display: none; } }
