:root { font-family: Arial, Helvetica, sans-serif; color: #262626; font-synthesis: none; --red: #e60000; --scale: 1; }
:root[data-standalone="true"] { background: #0c0c0b; }
:root[data-standalone="true"][data-theme="light"] { background: #f5f3ec; }
* { box-sizing: border-box; }
body { margin: 0; background: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #e60000; outline-offset: 3px; }
button { color: inherit; }
[hidden] { display: none !important; }
.stage { min-height: 100svh; display: grid; place-items: center; padding: 44px 36px; overflow: hidden; background: transparent; }
.phone-wrap { width: calc(375px * var(--scale)); height: calc(812px * var(--scale)); position: relative; isolation: isolate; }
.phone-wrap::before { content: ''; position: absolute; inset: -12% -25%; z-index: -2; background: radial-gradient(ellipse at 50% 55%, #9296890c 0, transparent 66%); pointer-events: none; }
.phone-wrap::after { content: ''; position: absolute; width: 65%; height: 20px; left: 17.5%; bottom: -16px; z-index: -1; background: #00000032; border-radius: 50%; filter: blur(15px); pointer-events: none; }
.phone { position: absolute; width: 375px; height: 812px; left: 0; top: 0; background: #fff; border: 1px solid #d3d3d3; border-radius: 25px; box-shadow: 0 20px 60px #19191412, 0 3px 12px #19191408; overflow: hidden; transform: scale(var(--scale)); transform-origin: left top; display: flex; flex-direction: column; }
.app-header { background: #fff; flex: none; padding: 16px 16px 0; height: 105px; z-index: 3; }
.status-bar { height: 13px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; }
.status-elements { display: flex; gap: 5px; align-items: center; }
.status-bar img { display: block; }
.search-row { display: flex; align-items: center; gap: 10px; height: 48px; margin-top: 20px; }
.icon-button { display: flex; align-items: center; justify-content: center; border: 0; padding: 0; background: transparent; flex: none; }
.back { width: 24px; height: 40px; }
.search-box { width: 309px; height: 40px; border: 1px solid #dedede; border-radius: 8px; display: flex; gap: 4px; align-items: center; padding: 0 11px; background: #fff; }
.search-box:focus-within { border-color: #c7c7c7; }
.search-box .submit { width: 24px; height: 30px; }
.search-box input { flex: 1; width: 0; min-width: 0; height: 35px; border: 0; outline: none; color: #262626; padding: 0; font-size: 14px; background: transparent; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: #777; opacity: 1; }
.search-box input::-webkit-search-cancel-button { display: none; }
.clear-query { width: 20px; height: 32px; margin-left: 4px; }
.search-actions { display: flex; gap: 16px; align-items: center; margin-left: 2px; }
.app-tabs { display: flex; flex: none; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #e6e6e6; height: 62px; background: #fff; padding: 0 12px; gap: 12px; }
.app-tabs::-webkit-scrollbar, .categories::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
.tab { height: 62px; display: flex; align-items: center; gap: 5px; flex: none; border: 0; background: #fff; font-size: 16px; position: relative; padding: 0 9px; white-space: nowrap; }
.tab[aria-selected="true"]::after { content: ''; position: absolute; bottom: 0; height: 4px; background: var(--red); left: 0; right: 0; }
.screen-content { flex: 1; min-height: 0; overflow-y: auto; background: #f8f8f8; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 33px; }
.screen-content::-webkit-scrollbar { display: none; }
.phone[data-screen="landing"] .screen-content, .phone[data-screen="suggestions"] .screen-content { background: #fff; }
.home-indicator { position: absolute; bottom: 8px; left: 121px; width: 134px; height: 5px; border-radius: 5px; background: #262626; z-index: 8; pointer-events: none; }
.landing { padding: 16px 16px 30px; }
.section-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 0 0 16px; }
h2 { font-size: 18px; line-height: 24px; font-weight: 700; margin: 0; }
.heading-count { font-size: 12px; font-weight: 400; color: #737373; margin-left: 6px; }
.clear-recent { border: 0; background: none; font-size: 14px; padding: 3px 0 3px 8px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { border: 1px solid #e3e3e3; background: #fff; border-radius: 20px; min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 14px; line-height: 18px; }
.chip:hover { background: #f8f8f8; }
.chip img { flex: none; }
.landing-block + .landing-block { margin-top: 24px; }
.categories { display: flex; gap: 8px; margin-left: -16px; margin-right: -16px; padding: 0 16px 3px; overflow-x: auto; scrollbar-width: none; }
.category { display: flex; flex-direction: column; align-items: center; width: 80px; flex: none; padding: 0; border: 0; background: #fff; font-size: 14px; line-height: 18px; white-space: nowrap; }
.category:nth-child(2) { width: 102px; }
.category-art { width: 70px; height: 70px; display: block; position: relative; overflow: hidden; margin-bottom: 8px; }
.category-art img { display: block; width: 70px; height: 70px; object-fit: cover; }
.category-art.wallet img { position: absolute; left: 5.89px; top: 6.65px; width: 56.497px; height: 56.497px; }
.category-art.charger img { position: absolute; left: -9.093px; top: -1.82px; width: 87.997px; height: 87.997px; }
.category-art.router img { object-fit: contain; }
.no-history { font-size: 12px; color: #777; margin: 0; }
.suggestion-summary { color: #777; font-size: 11px; margin: 5px 16px 7px; }
.suggestion-list { margin: 0; padding: 0 16px; list-style: none; }
.suggestion-item { display: flex; align-items: center; min-height: 52px; gap: 12px; }
.suggestion-main { border: 0; background: #fff; padding: 8px 0; display: flex; align-items: center; gap: 16px; text-align: left; flex: 1; font-size: 16px; line-height: 20px; }
.suggestion-main img { flex: none; }
.suggestion-main strong { font-weight: 700; }
.suggestion-side { border: 0; background: #fff; width: 32px; height: 40px; display: flex; align-items: center; justify-content: center; }
.typing-empty { padding: 24px 16px; color: #666; font-size: 14px; line-height: 20px; }
.keyboard { flex: none; height: 336px; width: 375px; background: #d1d6dd; padding: 6px 2px 45px; position: relative; }
.predictive { display: grid; grid-template-columns: repeat(3, 1fr); height: 42px; margin: 0 0 4px; align-items: center; text-align: center; font-size: 16px; color: #0d0d0d; }
.predictive span + span { border-left: 1px solid #bec3ca; }
.predictive span:first-child { background: #e8ebef; margin: 0 5px 0 0; padding: 11px 2px; border-radius: 4px; }
.key-row { display: flex; gap: 6px; margin-bottom: 11px; justify-content: center; }
.key { border: 0; border-radius: 5px; background: #fff; box-shadow: 0 1px 0 #7b838b; min-width: 0; height: 42px; width: 31px; padding: 0; color: #000; font-size: 25px; line-height: 42px; }
.key.shift, .key.erase { width: 43px; background: #aab4c1; font-size: 23px; }
.key.shift { margin-right: 7px; }
.key.erase { margin-left: 7px; }
.key-row.bottom { gap: 6px; }
.key.abc { width: 89px; background: #aab4c1; font-size: 14px; }
.key.space { flex: 1; font-size: 16px; }
.key.search { width: 88px; background: #007aff; color: #fff; font-size: 16px; }
.keyboard-symbols { display: flex; justify-content: space-between; padding: 15px 19px 0; }
.result-section { padding: 12px 16px; background: #fff; margin-top: 8px; }
.result-section h2 { font-size: 20px; font-weight: 600; }
.result-section .section-heading { margin-bottom: 16px; }
.see-all { border: 0; background: none; color: var(--red); font-size: 14px; line-height: 18px; padding: 4px 0 4px 8px; }
.services-list { display: flex; flex-direction: column; gap: 16px; }
.service-card { border: 0; background: #fff; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; text-align: left; min-height: 42px; font-size: 16px; line-height: 20px; }
.service-icon { width: 42px; height: 42px; background: #f2f2f2; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.service-title { flex: 1; }
.service-description { display: block; color: #777; font-size: 14px; margin-top: 2px; }
.service-card > img { flex: none; }
.filters { display: flex; gap: 8px; overflow: auto; scrollbar-width: none; padding: 16px; background: #fff; position: relative; }
.filter-chip { flex: none; display: flex; align-items: center; gap: 5px; border: 0; border-radius: 22px; background: #f2f2f2; height: 34px; font-size: 14px; padding: 0 14px; }
.filter-chip.selected { color: #00697c; background: #e4f0f1; }
.filter-chip.filter-main { border: 1px solid #aaa; background: #fff; margin-left: auto; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card { display: block; border: 0; background: #fff; padding: 0; text-align: left; min-width: 0; font-size: 14px; line-height: 18px; }
.product-image { height: 157px; width: 100%; border-radius: 12px; background: #f2f2f2; position: relative; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.tag { position: absolute; top: 8px; left: 8px; border-radius: 16px; padding: 2px 6px; font-size: 12px; line-height: 14px; z-index: 1; }
.tag.sponsored { color: #eb6100; background: #f6f1dd; }
.tag.seller { color: #562649; background: #f6e4f2; }
.tag.new { color: #00697c; background: #d9e9eb; }
.device-image { margin-top: 36px; width: 90px; height: 113px; position: relative; overflow: hidden; }
.device-image img { width: 90px; height: 113px; object-fit: cover; display: block; }
.device-image.crop img { position: absolute; width: 195.525px; height: 140px; top: -12.701px; left: -52.767px; }
.product-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0; min-height: 36px; }
.product-price { display: block; font-weight: 700; font-size: 16px; line-height: 22px; }
.from { display: block; font-size: 14px; color: #777; line-height: 16px; }
.old-price { font-size: 12px; font-weight: 400; color: #777; text-decoration: line-through; margin-left: 3px; }
.merchant-summary { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 24px; font-size: 14px; line-height: 16px; }
.merchant-logos { display: flex; flex: none; padding-right: 0; }
.merchant-logos img { width: 24px; height: 24px; object-fit: cover; border: .7px solid #ddd; border-radius: 50%; background: #fff; position: relative; }
.merchant-logos img + img { margin-left: -9px; }
.store-count { color: #777; text-decoration: underline; text-underline-offset: 2px; }
.store-name { font-weight: 700; }
.promotions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promotion-card { padding: 0; border: 1px solid #dfdfdf; border-radius: 4px; background: #fff; text-align: left; overflow: hidden; font-size: 14px; line-height: 16px; }
.promotion-art { height: 126px; position: relative; overflow: hidden; background: #af0000; display: block; }
.promotion-art .pattern { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.promotion-art .promo-image { position: absolute; width: 126px; height: 126px; object-fit: cover; left: calc(50% - 63px); top: 0; }
.promotion-art.second { background: #606060; }
.promotion-art.second .pattern { filter: grayscale(1); opacity: .78; }
.promotion-art.second .promo-image { width: 235px; height: 126px; top: 0; left: -72px; object-fit: cover; }
.promotion-badge { position: absolute; left: 8px; bottom: -1px; width: 64px; height: 54px; }
.promotion-badge .ellipse { position: absolute; left: 0; bottom: -19px; }
.promotion-badge .circle { position: absolute; left: 17px; top: 24px; }
.promotion-badge .promo-logo { position: absolute; width: 28px; height: 28px; left: 18.5px; top: 25.5px; }
.promotion-copy { display: block; padding: 8px; }
.promotion-copy strong { display: block; margin-bottom: 4px; }
.promotion-copy small { display: block; font-size: 12px; line-height: 15px; }
.empty-state { text-align: center; background: #fff; min-height: 560px; padding: 90px 16px 30px; }
.empty-state img { width: 130px; height: 150px; object-fit: contain; margin-bottom: 24px; }
.empty-state h2 { font-size: 18px; line-height: 24px; margin-bottom: 8px; overflow-wrap: anywhere; }
.empty-state p { font-size: 12px; line-height: 18px; color: #555; margin: 0 0 18px; }
.merchant-list { display: flex; flex-direction: column; gap: 16px; }
.merchant-card { border: 1px solid #dedede; background: #fff; border-radius: 12px; padding: 12px; display: flex; gap: 12px; align-items: center; text-align: left; font-size: 12px; width: 100%; }
.merchant-card > img { width: 48px; height: 48px; object-fit: contain; }
.merchant-info { flex: 1; line-height: 20px; }
.merchant-info strong { display: block; font-size: 14px; font-weight: 400; }
.merchant-info small { display: block; color: #666; font-size: 12px; }
.merchant-card .price { font-weight: 700; white-space: nowrap; }
.comparison-image { width: 100%; height: 130px; object-fit: contain; background: #f2f2f2; border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.comparison-title { font-size: 14px; line-height: 20px; margin: 0 0 24px; }
.comparison-price { margin: -8px 0 24px; }
.screen-overlay { position: absolute; inset: 0; z-index: 20; background: #0005; display: flex; align-items: flex-end; }
.detail-sheet { background: #fff; border-radius: 20px 20px 0 0; padding: 24px 20px 40px; width: 100%; position: relative; }
.detail-sheet h2 { padding-right: 35px; margin-bottom: 16px; font-size: 20px; line-height: 26px; }
.detail-sheet p { font-size: 14px; color: #555; line-height: 21px; margin: 12px 0 24px; }
.sheet-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; background: #f2f2f2; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.primary-action { border: 0; border-radius: 8px; color: #fff; background: var(--red); padding: 12px 16px; min-height: 44px; font-size: 14px; font-weight: 700; width: 100%; }
.filter-options { display: grid; gap: 16px; font-size: 14px; margin: 24px 0; }
.filter-options label { display: flex; align-items: center; gap: 10px; }
.filter-options input { accent-color: var(--red); width: 18px; height: 18px; }
.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; }
@media (max-width: 539px) {
  .stage { padding: 24px 16px; }
}
@media (max-width: 360px) {
  .stage { padding: 20px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
