:root {
    --discover-blue: #0799ed;
    --discover-blue-dark: #087fc4;
    --discover-blue-soft: #eaf7ff;
    --discover-ink: #0d2740;
    --discover-muted: #6d7f92;
    --discover-line: #dce8f0;
    --discover-green: #098c5a;
    --discover-green-soft: #edf9f3;
    --discover-warn: #9b5c0d;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #fff; }
body { min-width: 320px; color: var(--discover-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.discover-page { width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; padding-bottom: calc(30px + env(safe-area-inset-bottom)); background: #fff; }
.discover-brand-link { color: inherit; text-decoration: none; }
.discover-header-actions { display: flex; gap: 7px; align-items: center; }
.discover-account { text-decoration: none; }

.discover-hero { padding: 16px 16px 17px; background: #fff; }
.discover-page.has-results .discover-hero { position: sticky; z-index: 900; top: calc(69px + env(safe-area-inset-top, 0px)); padding-block: 9px; border-bottom: 1px solid #e5edf2; box-shadow: 0 5px 14px rgba(16, 48, 72, .07); }
.discover-page.has-results .discover-try { display: none; }
.discover-page.has-results .discover-search-control { min-height: 50px; border-width: 1px; box-shadow: none; }
.discover-page.has-results .discover-search-control input { min-height: 48px; }
.discover-page.has-results .discover-submit { width: 48px; height: 48px; border-radius: 15px; }
.discover-page.has-results .discover-search-row { grid-template-columns: minmax(0, 1fr) 48px; }
.discover-search-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 9px; align-items: center; }
.discover-search-control { display: grid; min-height: 58px; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; border: 2px solid #addcf7; border-radius: 17px; background: #fff; box-shadow: 0 7px 20px rgba(8, 127, 196, .08); }
.discover-search-control:focus-within { border-color: var(--discover-blue); box-shadow: 0 0 0 4px rgba(7, 153, 237, .11); }
.discover-search-control input { width: 100%; min-width: 0; min-height: 54px; padding: 0 0 0 14px; border: 0; outline: 0; color: var(--discover-ink); background: transparent; font-size: 16px; font-weight: 750; }
.discover-search-control input::placeholder { color: #92a0ad; font-size: 13px; font-weight: 550; }
.discover-search-control input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.discover-clear, .discover-voice { display: grid; width: 34px; height: 38px; padding: 0; place-items: center; border: 0; color: #718293; background: transparent; font-size: .95rem; }
.discover-voice { color: var(--discover-blue-dark); }
.discover-voice.listening { color: #fff; border-radius: 50%; background: #e25555; animation: discover-pulse 1.2s infinite; }
@keyframes discover-pulse { 50% { box-shadow: 0 0 0 5px rgba(226, 85, 85, .15); } }

.discover-submit { display: grid; width: 54px; height: 54px; padding: 0; place-items: center; border: 0; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #0799ed, #078bd8); box-shadow: 0 8px 18px rgba(7,153,237,.28); font-size: 1.22rem; font-weight: 900; }
.discover-submit:active { transform: scale(.96); }
.discover-submit:disabled { opacity: .6; }
.discover-location-actions { display: flex; gap: 7px; align-items: center; justify-content: space-between; margin-top: 7px; }
.discover-location-chip { display: inline-flex; max-width: 56%; min-height: 34px; gap: 5px; align-items: center; margin: 0; padding: 4px 9px; border: 1px solid #dceaf2; border-radius: 999px; color: #526b7d; background: #f8fbfd; font-size: .68rem; font-weight: 850; text-align: left; }
.discover-location-chip:disabled { opacity: .65; }
.discover-location-chip > i:first-child { color: var(--discover-blue-dark); font-size: .75rem; }
.discover-location-chip > i:last-child { color: #8293a0; font-size: .58rem; }
.discover-location-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-location-chip.identified > i:first-child { color: var(--discover-green); }
.discover-page.has-results .discover-location-actions { margin-top: 5px; }
.discover-page.has-results .discover-location-chip { min-height: 31px; padding-block: 3px; }
.discover-nearby-stores-button { display: inline-flex; min-height: 34px; gap: 6px; align-items: center; justify-content: center; padding: 4px 10px; border: 1px solid #acdafa; border-radius: 999px; color: #0879ba; background: #eef9ff; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.discover-nearby-stores-button > i:last-child { font-size: .55rem; transition: transform .18s ease; }
.discover-nearby-stores-button.active { color: #fff; border-color: var(--discover-blue); background: var(--discover-blue); }
.discover-nearby-stores-button.active > i:last-child { transform: rotate(90deg); }
.discover-try { margin-top: 14px; padding: 12px; border-radius: 15px; background: #f7fafc; }
.discover-try-title { display: block; margin-bottom: 7px; color: #65798c; font-size: .67rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.discover-try-title i { margin-right: 4px; color: var(--discover-blue-dark); }
.discover-examples { display: grid; gap: 2px; }
.discover-examples button { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 4px; border: 0; border-bottom: 1px solid #e5edf2; color: #3f586d; background: transparent; font-size: .73rem; font-weight: 800; text-align: left; }
.discover-examples button:last-child { border-bottom: 0; }
.discover-examples button i { flex: 0 0 auto; color: var(--discover-blue-dark); font-size: .75rem; }
.discover-examples button:active { color: var(--discover-blue-dark); }

.discover-status { margin: 0 16px 14px; padding: 12px 14px; border-radius: 13px; color: #9b3b16; background: #fff4ed; font-size: .82rem; font-weight: 750; line-height: 1.45; }
.discover-nearby-stores { margin: 0 12px 16px; padding: 13px; border: 1px solid #d8eaf5; border-radius: 17px; background: linear-gradient(180deg, #f5fbff, #fff); box-shadow: 0 7px 20px rgba(21, 83, 121, .08); scroll-margin-top: 150px; }
.discover-nearby-stores-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.discover-nearby-stores-heading span { color: var(--discover-blue-dark); font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.discover-nearby-stores-heading h2 { margin: 2px 0 0; color: var(--discover-ink); font-size: 1.18rem; font-weight: 900; }
.discover-nearby-stores-heading button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #d9e8f1; border-radius: 10px; color: #607789; background: #fff; }
.discover-nearby-store-list { display: grid; gap: 8px; }
.discover-nearby-store-card { display: grid; min-width: 0; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid #dce9f1; border-radius: 13px; color: inherit; background: #fff; box-shadow: 0 3px 10px rgba(18, 65, 94, .05); text-decoration: none; }
.discover-nearby-store-logo { display: grid; width: 52px; height: 52px; overflow: hidden; place-items: center; border-radius: 12px; color: #087fc4; background: #eaf7ff; font-size: 1.15rem; }
.discover-nearby-store-logo img { width: 100%; height: 100%; object-fit: cover; }
.discover-nearby-store-copy { display: flex; min-width: 0; flex-direction: column; }
.discover-nearby-store-copy strong { overflow: hidden; color: #102f49; font-size: .88rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.discover-nearby-store-copy small { display: -webkit-box; overflow: hidden; margin-top: 2px; color: #748897; font-size: .65rem; font-weight: 650; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.discover-nearby-store-copy b { display: inline-flex; width: fit-content; gap: 3px; align-items: center; margin-top: 5px; color: #087ebf; font-size: .64rem; font-weight: 900; }
.discover-nearby-store-card > i { color: #82a1b5; font-size: .72rem; }
.discover-nearby-store-state { display: flex; min-height: 92px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 14px; border-radius: 12px; color: #6c8090; background: rgba(255,255,255,.75); font-size: .72rem; font-weight: 750; text-align: center; }
.discover-nearby-store-state > i { color: #80bfe2; font-size: 1.3rem; }
.discover-store-spinner { animation: discover-store-spin .9s linear infinite; }
@keyframes discover-store-spin { to { transform: rotate(360deg); } }
.discover-nearby-store-state strong { color: #344d60; font-size: .82rem; }
.discover-nearby-store-state.error > i { color: #d56a49; }
.discover-status.loading { color: #0870ae; background: var(--discover-blue-soft); }
.discover-interpretation { margin: 0 12px 12px; overflow: hidden; border: 1px solid #dfeaf1; border-left: 3px solid var(--discover-blue); border-radius: 13px; background: #fff; box-shadow: 0 4px 13px rgba(21, 55, 78, .05); }
.discover-interpretation-toggle { display: grid; width: 100%; min-height: 46px; grid-template-columns: minmax(0, 1fr) 26px; grid-template-rows: auto auto; gap: 1px 7px; align-items: center; padding: 5px 9px; border: 0; color: var(--discover-text); background: #fff; text-align: left; }
.discover-interpretation-label { color: #6a7d8f; font-size: .58rem; font-weight: 850; letter-spacing: .01em; }
.discover-interpretation-query { display: block; overflow: hidden; font-size: .84rem; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.discover-interpretation-chevron { display: grid; width: 28px; height: 28px; grid-column: 2; grid-row: 1 / 3; place-items: center; border-radius: 9px; color: var(--discover-blue-dark); background: var(--discover-blue-soft); font-size: .76rem; transition: transform .18s ease; }
.discover-interpretation-toggle[aria-expanded="true"] .discover-interpretation-chevron { transform: rotate(180deg); }
.discover-interpretation-content { padding: 0 10px 10px; border-top: 1px solid #edf2f5; }
.discover-constraint-group { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 6px; align-items: start; margin-top: 8px; }
.discover-constraint-group > strong { padding-top: 4px; color: #6b7d8f; font-size: .56rem; font-weight: 900; text-transform: uppercase; letter-spacing: .045em; }
.discover-chips { display: flex; height: 24px; min-width: 0; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.discover-constraint-group.show-all .discover-chips { height: auto; flex-wrap: wrap; overflow: visible; }
.discover-chips span { display: inline-flex; min-height: 24px; flex: 0 0 auto; gap: 3px; align-items: center; padding: 3px 7px; border: 1px solid #b9dff5; border-radius: 999px; color: #0874b5; background: #f8fcff; font-size: .62rem; font-weight: 850; line-height: 1.15; white-space: nowrap; }
.discover-constraint-group.preferred .discover-chips span { border-color: #e0e6eb; color: #5d6c7e; background: #f8fafb; }
.discover-constraint-more { min-height: 24px; padding: 0 2px; border: 0; color: var(--discover-blue-dark); background: transparent; font-size: .6rem; font-weight: 900; }
.discover-constraint-more[hidden] { display: none; }
.discover-unparsed { margin: 8px 0 0 68px; color: var(--discover-warn); font-size: .66rem; font-weight: 700; line-height: 1.3; }

.discover-results { padding: 0 12px 20px; }
.discover-results-heading { display: flex; align-items: end; justify-content: space-between; padding: 0 4px 11px; }
.discover-results-heading span { color: var(--discover-blue-dark); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.discover-results-heading h2 { margin: 3px 0 0; font-size: 1.36rem; font-weight: 900; letter-spacing: -.02em; }
.discover-results-heading > strong { padding-bottom: 2px; color: var(--discover-muted); font-size: .76rem; }
.discover-product-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.discover-product-card { min-width: 0; overflow: hidden; border: 1px solid #e0e9ef; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(21, 55, 78, .07); }
.discover-product-main { display: grid; grid-template-columns: minmax(118px, 42%) minmax(0, 1fr); align-items: start; }
.discover-product-media { min-width: 0; }
.discover-product-gallery { position: relative; width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 4; align-self: start; overflow: hidden; color: #8da0ae; background: #f4f7f9; font-size: 1.5rem; }
.discover-gallery-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; }
.discover-gallery-track::-webkit-scrollbar { display: none; }
.discover-gallery-slide { display: grid; min-width: 100%; height: 100%; flex: 0 0 100%; place-items: center; overflow: hidden; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; scroll-snap-align: start; scroll-snap-stop: always; }
.discover-gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.discover-gallery-dots { position: absolute; right: 8px; bottom: 31px; left: 8px; display: flex; gap: 5px; align-items: center; justify-content: center; pointer-events: none; }
.discover-gallery-dot { width: 6px; height: 6px; border: 1px solid rgba(255,255,255,.96); border-radius: 50%; background: rgba(19,43,61,.35); box-shadow: 0 1px 3px rgba(16,24,40,.25); transition: width .18s ease, background .18s ease; }
.discover-gallery-dot.active { width: 14px; border-radius: 999px; background: #fff; }
.discover-stock-badge { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 5px 7px; color: #08734d; background: rgba(242,255,249,.94); font-size: .59rem; font-weight: 900; text-align: center; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.discover-product-copy { min-width: 0; padding: 14px 12px 11px; }
.discover-product-copy h3 { display: -webkit-box; overflow: hidden; margin: 0 0 7px; font-size: 1rem; font-weight: 900; letter-spacing: -.01em; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.discover-price { display: flex; flex-wrap: wrap; gap: 2px 7px; align-items: baseline; margin-bottom: 10px; }
.discover-price strong { font-size: 1.18rem; font-weight: 900; }
.discover-mrp { color: #8797a5; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.discover-price del { font-size: inherit; }
.discover-product-tags { display: grid; gap: 6px; }
.discover-product-tags span { display: flex; width: fit-content; max-width: 100%; gap: 6px; align-items: flex-start; padding: 6px 9px; border-radius: 8px; color: #50687d; background: #f2f6f8; font-size: .77rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; white-space: normal; }
.discover-product-tags i { flex: 0 0 auto; color: #667d91; }
.discover-details-toggle { display: inline-flex; min-height: 30px; gap: 4px; align-items: center; margin-top: 6px; padding: 0 3px; border: 0; color: var(--discover-blue-dark); background: transparent; font-size: .7rem; font-weight: 900; }
.discover-details-toggle i { font-size: .56rem; transition: transform .18s ease; }
.discover-details-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.discover-product-tags-more { margin-top: 5px; }
.discover-store-detail { position: relative; display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 3px; margin: 6px 6px 8px; overflow: hidden; padding: 8px 8px 7px; border: 1px solid #e1ebf1; border-radius: 10px; color: inherit; background: #fbfdfe; box-shadow: none; text-decoration: none; }
.discover-store-detail::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: #8bd3f7; content: ""; }
.discover-store-detail-kicker { display: flex; gap: 4px; align-items: center; color: #688295; font-size: .48rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.discover-store-detail-kicker::before { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--discover-green); box-shadow: 0 0 0 2px rgba(9, 140, 90, .12); content: ""; }
.discover-store-detail-heading { display: flex; min-width: 0; gap: 5px; align-items: center; justify-content: space-between; }
.discover-store-detail-title { display: -webkit-box; min-width: 0; overflow: hidden; color: #203d54; font-family: "Outfit", Inter, sans-serif; font-size: .84rem; font-weight: 900; letter-spacing: -.012em; line-height: 1.15; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.discover-store-detail-location { display: -webkit-box; overflow: hidden; color: #718593; font-size: .55rem; font-weight: 650; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.discover-pass-trigger.discover-pass-inline-right { display: flex; width: fit-content; min-height: 32px; gap: 5px; align-items: center; justify-content: center; margin: 7px 0 0; padding: 0 11px; border-radius: 8px; font-size: .66rem; box-shadow: 0 3px 8px rgba(7, 153, 237, .14); }
.discover-store-detail-action { display: inline-flex; width: fit-content; min-height: 24px; gap: 5px; align-items: center; margin-top: 1px; padding: 0; color: #087ebf; font-size: .67rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.discover-store-detail-action i { font-size: .54rem; }
.discover-close-match { border-top: 1px solid #f0e5d5; background: #fffcf7; }
.discover-close-match-toggle { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; padding: 7px 10px; border: 0; color: #9a5b0b; background: transparent; text-align: left; }
.discover-close-match-toggle strong { display: inline-flex; gap: 4px; align-items: center; font-size: .66rem; font-weight: 900; }
.discover-close-match-toggle > i { font-size: .64rem; transition: transform .18s ease; }
.discover-close-match-toggle[aria-expanded="true"] > i { transform: rotate(180deg); }
.discover-close-match-content { display: grid; gap: 7px; padding: 0 10px 10px; }
.discover-close-match-content[hidden] { display: none; }
.discover-close-match-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.discover-close-match-chips span { padding: 5px 7px; border: 1px solid #eadcca; border-radius: 8px; color: #6f5b45; background: #fff; font-size: .61rem; font-weight: 700; line-height: 1.2; }
.discover-close-match-chips strong { color: #493a2c; font-weight: 900; }
.discover-close-match-chips b { padding-inline: 2px; color: #bf6b2b; }
.discover-suggestions { margin: 14px 4px 0; padding: 12px; border-radius: 12px; color: #536778; background: #f5f8fa; font-size: .74rem; font-weight: 700; line-height: 1.45; }
.discover-suggestions div + div { margin-top: 5px; }
.discover-load-more { width: calc(100% - 8px); min-height: 48px; margin: 14px 4px 0; border: 1px solid #a9dbf7; border-radius: 12px; color: var(--discover-blue-dark); background: #fff; font-weight: 900; }
.discover-empty { padding: 35px 20px 44px; text-align: center; }
.discover-empty > span { display: grid; width: 58px; height: 58px; margin: 0 auto 13px; place-items: center; border-radius: 18px; color: var(--discover-blue-dark); background: var(--discover-blue-soft); font-size: 1.45rem; }
.discover-empty h2 { margin: 0; font-size: 1.22rem; font-weight: 900; }
.discover-empty p { margin: 7px 0 0; color: var(--discover-muted); font-size: .83rem; font-weight: 600; }

@media (max-width: 350px) {
    .discover-hero { padding-inline: 12px; }
    .discover-results { padding-inline: 8px; }
    .discover-interpretation, .discover-status { margin-inline: 8px; }
    .discover-product-main { grid-template-columns: 108px minmax(0, 1fr); }
    .discover-product-copy { padding: 12px 10px 10px; }
    .discover-store-detail { margin-inline: 5px; }
}
