:root {
  --ink: #102d27;
  --ink-soft: #294841;
  --muted: #687b76;
  --green: #08745b;
  --green-dark: #075241;
  --green-deep: #0c392f;
  --mint: #e9f7f1;
  --mint-strong: #c8eddf;
  --cream: #fbfaf5;
  --gold: #d99736;
  --line: #dbe7e2;
  --bg: #f6f9f7;
  --white: #fff;
  --danger: #a84343;
  --shadow: 0 22px 70px rgba(7, 67, 52, .12);
  --soft-shadow: 0 10px 35px rgba(12, 57, 47, .07);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }

.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 max(24px, calc((100vw - 1200px) / 2)); background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(16,45,39,.08); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.24rem; letter-spacing: -.02em; }
.brand-logo-full { width: 205px; height: auto; display: block; flex: none; }
.brand-logo-slogan { width: 245px; height: auto; display: block; flex: none; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 650; }
.main-nav a:hover { color: var(--green); }
.city-pill { flex: none; background: var(--mint); color: var(--green-dark); padding: 9px 14px; border-radius: 99px; font-size: .84rem; font-weight: 750; }
.city-pill span { color: #26a47d; font-size: .65rem; margin-right: 5px; }

.search-hero { position: relative; overflow: hidden; padding: 82px 24px 0; background: linear-gradient(145deg, #fdfcf7 0%, #f2faf6 55%, #edf8f4 100%); border-bottom: 1px solid var(--line); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { width: 580px; height: 580px; left: -290px; top: -230px; background: radial-gradient(circle, rgba(192,237,218,.58), transparent 67%); }
.hero-glow-two { width: 480px; height: 480px; right: -210px; bottom: -170px; background: radial-gradient(circle, rgba(226,213,158,.23), transparent 69%); }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,.92fr) minmax(480px,1.08fr); align-items: center; gap: 64px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; text-transform: uppercase; letter-spacing: .125em; color: var(--green); font-size: .73rem; font-weight: 850; }
.eyebrow > span { width: 20px; height: 2px; background: var(--gold); border-radius: 3px; }
.hero-copy h1, .section-heading h2, .trust-copy h2, .safety-card h2, .results-heading h2, .legal-heading h1 { font-family: Georgia, "Times New Roman", serif; }
.hero-copy h1 { max-width: 620px; margin: 0; font-size: clamp(2.8rem, 5vw, 5.05rem); line-height: .99; letter-spacing: -.045em; font-weight: 500; }
.hero-copy h1 em { color: var(--green); font-style: normal; }
.lead { max-width: 610px; margin: 24px 0 25px; color: var(--muted); font-size: 1.08rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .85rem; font-weight: 650; }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust li span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--mint-strong); color: var(--green-dark); font-size: .7rem; }

.search-card { margin: 0; padding: 30px; background: rgba(255,255,255,.96); border: 1px solid rgba(8,116,91,.17); border-radius: 28px; box-shadow: var(--shadow); }
.search-card-heading { display: flex; align-items: center; gap: 13px; }
.search-step { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 13px; color: #fff; background: var(--green); font-weight: 850; }
.search-card-heading p { margin: 0 0 2px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; font-weight: 800; }
.search-card-heading label { display: block; font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.search-modes { display: flex; gap: 8px; margin: 20px 0 12px; }
.search-modes span { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #f9fbfa; color: var(--ink-soft); padding: 7px 10px; border-radius: 9px; font-size: .78rem; font-weight: 650; }
.search-modes i { color: var(--green); font-style: normal; font-weight: 850; }
.location-option { margin: 0 0 12px; }
.location-option button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbf9; color: var(--ink); text-align: left; cursor: pointer; }
.location-option button:hover { border-color: #8fbbae; }
.location-option button[aria-pressed="true"] { border-color: #60c4a0; background: #eaf8f2; box-shadow: inset 0 0 0 1px #aee4d0; }
.location-option button:disabled { cursor: wait; opacity: .7; }
.location-pin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--mint); color: var(--green); font-size: 1.15rem; }
.location-option button[aria-pressed="true"] .location-pin { background: var(--green); color: #fff; }
.location-option button > span:nth-child(2) { display: grid; min-width: 0; }
.location-option strong { font-size: .82rem; }
.location-option small { color: var(--muted); font-size: .71rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location-option b { color: var(--green); font-size: .72rem; }
.location-divider { display: flex; align-items: center; gap: 10px; margin: 11px 0; color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.location-divider::before, .location-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.city-option { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbf9; }
.city-option > label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .82rem; font-weight: 800; }
.city-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.city-row input { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #b8cbc4; border-radius: 9px; background: #fff; color: var(--ink); outline: 0; }
.city-row input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,116,91,.1); }
.city-row button { border: 0; border-radius: 9px; padding: 0 13px; background: var(--ink-soft); color: #fff; cursor: pointer; font-size: .76rem; font-weight: 800; }
.city-row button:hover { background: var(--green-dark); }
.city-option.active { border-color: #60c4a0; background: #eaf8f2; box-shadow: inset 0 0 0 1px #aee4d0; }
.city-option small { display: block; margin-top: 7px; color: var(--muted); font-size: .69rem; }
.search-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; border: 2px solid #95b9ad; border-radius: 15px; background: #fff; padding: 6px; transition: border .2s, box-shadow .2s; }
.search-row:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(8,116,91,.11); }
.search-icon { width: 20px; height: 20px; margin-left: 10px; border: 2px solid var(--muted); border-radius: 50%; position: relative; }
.search-icon:after { content: ""; width: 8px; height: 2px; position: absolute; right: -6px; bottom: -3px; background: var(--muted); transform: rotate(45deg); border-radius: 2px; }
.search-row input { width: 100%; min-width: 0; padding: 14px 8px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1rem; }
.search-row button, .price-row button, .cookie-actions button { min-height: 48px; border: 0; border-radius: 10px; background: var(--green); color: #fff; padding: 0 18px; cursor: pointer; font-weight: 800; }
.search-row button { display: flex; align-items: center; gap: 15px; }
.search-row button b { font-size: 1.2rem; }
.search-row button:hover, .price-row button:hover, .primary-link:hover, .cookie-actions button:hover { background: var(--green-dark); }
button:disabled { cursor: wait; opacity: .62; }
.search-help { margin: 11px 2px 0; color: var(--muted); font-size: .79rem; }
.search-help span { color: var(--green); }
.quick-search { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; color: var(--muted); font-size: .78rem; }
.quick-search button { border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px; background: #f9fbfa; color: var(--ink-soft); cursor: pointer; font-size: .76rem; }
.quick-search button:hover { border-color: var(--green); color: var(--green); }

.source-bar { position: relative; z-index: 1; max-width: 1200px; margin: 70px auto 0; min-height: 92px; display: flex; align-items: center; gap: 34px; border-top: 1px solid rgba(8,116,91,.13); }
.source-intro { display: grid; flex: none; padding-right: 28px; border-right: 1px solid var(--line); }
.source-intro strong { font-size: .92rem; }
.source-intro span { color: var(--muted); font-size: .72rem; }
.source-list { flex: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pharmacy { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .8rem; font-weight: 750; }
.pharmacy i { width: 9px; height: 9px; border-radius: 50%; background: #64748b; }
.pharmacy-ahorro i, .pharmacy-guadalajara i { background: #e11d48; }
.pharmacy-bazar i { background: #2563eb; }
.pharmacy-yza i { background: #f97316; }
.pharmacy-value i { background: #16a34a; }
.pharmacy-benavides i { background: #0067a9; }
.pharmacy-similares i { background: #f58220; }
.pharmacy-especializadas i { background: #7b2f83; }

.results-section { max-width: 1100px; margin: 0 auto; padding: 72px 24px 82px; scroll-margin-top: 80px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.results-heading h2 { margin: 0; font-size: clamp(2rem,4vw,3.15rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; }
.muted { color: var(--muted); margin: 7px 0 0; }
.sort-control { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.sort-control select { min-width: 174px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 11px 38px 11px 12px; }
.status.notice { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #ecd9aa; border-radius: 11px; background: #fff9e9; color: #715817; font-size: .84rem; }
.status.loading { margin-bottom: 18px; color: var(--green); font-weight: 750; }
.location-context { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 13px 15px; border: 1px solid #9edbc5; border-radius: 12px; background: #ebfaf4; color: var(--green-dark); }
.location-context > span { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 10px; background: var(--green); color: #fff; }
.location-context strong { font-size: .84rem; }
.location-context p { margin: 1px 0 0; color: #41675d; font-size: .76rem; }
.location-context.location-error { border-color: #e5b6a6; background: #fff2ed; color: #803c29; }
.location-context.location-error > span { background: #b9573d; }
.location-context.location-error p { color: #775248; }

.search-feature { display: grid; grid-template-columns: 178px 1fr; align-items: center; gap: 28px; margin: 20px 0; padding: 24px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg,#fff,#f0faf5); box-shadow: var(--soft-shadow); }
.feature-product-image { width: 178px; height: 150px; display: grid; place-items: center; border-radius: 16px; background: #fff; border: 1px solid #e8efec; overflow: hidden; }
.feature-product-image img { max-width: 92%; max-height: 92%; object-fit: contain; }
.feature-product-image img.image-fallback { width: 68px; height: 68px; opacity: .34; }
.search-feature h3 { margin: 0 0 7px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(1.35rem,3vw,2rem); line-height: 1.15; }
.search-feature p:not(.eyebrow) { margin: 0 0 12px; color: var(--muted); }
.feature-source { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--mint); color: var(--green-dark); font-size: .76rem; font-weight: 750; }

.comparison-stats { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; margin: 18px 0; border: 1px solid var(--line); border-radius: 18px 18px 0 0; background: #fff; }
.comparison-stats > div { display: grid; justify-items: center; padding: 18px 12px; text-align: center; border-right: 1px solid var(--line); }
.comparison-stats > div:last-child { border-right: 0; }
.comparison-stats strong { font-size: 1.16rem; color: var(--ink); }
.comparison-stats span { margin-top: 2px; color: var(--muted); font-size: .73rem; }
.coverage { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin: 0 0 18px; }
.coverage-item { display: grid; gap: 3px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); text-decoration: none; font-size: .71rem; }
.coverage-item span { display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coverage-item i { width: 7px; height: 7px; flex: none; margin-right: 6px; border-radius: 50%; background: #8ca09a; }
.coverage-item strong { color: var(--muted); font-size: .68rem; }
.coverage-item.found i { background: #159a65; }
.coverage-item.found strong { color: var(--green); }
.coverage-item.no_matches i { background: #d99b23; }
.coverage-item.no_price i { background: #be7b23; }
.coverage-item.no_price strong { color: #87530f; }
.coverage-item.outside_zone i { background: #8b96a0; }
.coverage-item.outside_zone strong { color: #687681; }
.coverage-item.unavailable i { background: #a7b0ad; }
.coverage-item:hover { border-color: #8fb5a8; }

.results-grid { display: grid; gap: 9px; }
.result-card { min-height: 150px; display: grid; grid-template-columns: 120px minmax(0,1fr) auto; grid-template-rows: auto 1fr auto; gap: 5px 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgba(14,66,53,.035); transition: transform .2s, border-color .2s, box-shadow .2s; }
.result-card:hover { transform: translateY(-1px); border-color: #b7d4c9; box-shadow: var(--soft-shadow); }
.result-card.cheapest { border-color: #7dd8b6; background: linear-gradient(90deg,#f0fbf6 0,#fff 26%); box-shadow: inset 4px 0 0 #22b886, var(--soft-shadow); }
.product-image { grid-column: 1; grid-row: 1 / 4; width: 120px; min-height: 116px; display: grid; place-items: center; align-self: stretch; border: 1px solid #e8efec; border-radius: 12px; overflow: hidden; background: #fff; }
.product-image img { max-width: 94%; max-height: 125px; object-fit: contain; }
.product-image img.image-fallback { width: 48px; height: 48px; opacity: .28; }
.card-top { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-name { display: flex; align-items: center; font-size: .78rem; font-weight: 800; }
.store-name i { width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #64748b; }
.store-name i.store-dot-ahorro, .store-name i.store-dot-guadalajara { background: #e11d48; }
.store-name i.store-dot-bazar { background: #2563eb; }
.store-name i.store-dot-yza { background: #f97316; }
.store-name i.store-dot-farmavalue { background: #16a34a; }
.store-name i.store-dot-benavides { background: #0067a9; }
.store-name i.store-dot-similares { background: #f58220; }
.store-name i.store-dot-especializadas { background: #7b2f83; }
.card-badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: end; }
.best-badge, .price-badge { padding: 4px 7px; border-radius: 6px; font-size: .67rem; font-weight: 800; }
.best-badge { background: #eef3f1; color: var(--ink-soft); }
.price-badge { background: #c9f3e3; color: #06684f; }
.product-copy { grid-column: 2; align-self: center; }
.product-copy h3 { margin: 5px 0 4px; font-size: 1.08rem; line-height: 1.25; }
.presentation { margin: 0; color: var(--green); font-size: .79rem; font-weight: 700; }
.nearby-branch { margin: 6px 0 0; color: #46685f; font-size: .73rem; font-weight: 650; }
.nearby-branch span { color: var(--green); }
.description { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: var(--muted); font-size: .78rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.price-row { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: end; justify-content: center; gap: 12px; min-width: 158px; padding-left: 20px; border-left: 1px solid var(--line); }
.price-row > div { display: grid; justify-items: end; }
.price-row small { color: var(--muted); font-size: .68rem; }
.price-row strong { font-family: Georgia,"Times New Roman",serif; font-size: 1.48rem; line-height: 1.2; }
.price-row button { min-height: 40px; padding: 0 13px; font-size: .75rem; }
.card-footer { grid-column: 2 / 4; display: flex; justify-content: space-between; gap: 18px; padding-top: 8px; border-top: 1px solid #edf2ef; font-size: .72rem; }
.availability { color: var(--muted); }
.availability i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #22a06b; }
.verify-link { color: var(--green); font-weight: 750; text-decoration: none; }
.verify-link:hover { text-decoration: underline; }

.section-shell { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.how-section { padding-top: 95px; padding-bottom: 105px; }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.center-heading { margin-left: auto; margin-right: auto; text-align: center; }
.center-heading .eyebrow { justify-content: center; }
.section-heading h2 { margin: 0; font-size: clamp(2.25rem,4vw,3.65rem); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; }
.section-heading > p:last-child { color: var(--muted); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.steps-grid article { position: relative; min-height: 270px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--soft-shadow); }
.steps-grid article > span { position: absolute; right: 24px; top: 20px; color: #dce9e4; font-family: Georgia,"Times New Roman",serif; font-size: 2.5rem; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); color: var(--green); font-size: 1.5rem; }
.steps-grid h3 { margin: 24px 0 9px; font-size: 1.08rem; }
.steps-grid p { margin: 0; color: var(--muted); font-size: .88rem; }

.trust-section { padding: 100px 0; background: var(--green-deep); color: #fff; }
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.eyebrow-light { color: #8be2c4; }
.trust-copy h2 { margin: 0; max-width: 500px; font-size: clamp(2.3rem,4vw,3.7rem); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; }
.trust-copy > p:not(.eyebrow) { color: #bdd2cb; max-width: 540px; }
.text-link-light { display: inline-flex; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; border-bottom: 1px solid #71988b; padding-bottom: 4px; }
.trust-points { display: grid; gap: 12px; }
.trust-points article { display: flex; gap: 15px; padding: 21px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.055); }
.trust-points article > span { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #69d4ae; color: #073d31; font-weight: 900; }
.trust-points h3 { margin: 1px 0 4px; font-size: .98rem; }
.trust-points p { margin: 0; color: #bdd2cb; font-size: .83rem; }

.safety-section { padding-top: 80px; padding-bottom: 80px; }
.safety-card { display: grid; grid-template-columns: auto 1fr; gap: 27px; align-items: center; padding: 34px 40px; border: 1px solid #ead8ae; border-radius: var(--radius); background: #fffaf0; }
.safety-mark { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px; background: #f2dfb9; color: #8e671e; font-size: 2rem; font-weight: 300; }
.safety-card h2 { margin: 0; font-size: clamp(1.65rem,3vw,2.4rem); font-weight: 500; letter-spacing: -.025em; }
.safety-card p:last-child { max-width: 900px; margin-bottom: 0; color: #6e624b; }

.site-footer { padding: 54px 24px 30px; background: #092c25; color: #c1d2cc; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 70px; }
.brand-light { color: #fff; }
.brand-light small { color: #9dbbb1; }
.footer-logo-panel { width: min(330px,100%); display: block; padding: 9px 13px; border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.footer-logo-panel img { width: 100%; height: auto; display: block; }
.footer-brand p { max-width: 420px; color: #98b2aa; font-size: .86rem; }
.footer-grid h2 { margin: 0 0 14px; color: #fff; font: 800 .76rem/1.2 Inter,"Segoe UI",sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid > div:not(.footer-brand) a { color: #c1d2cc; text-decoration: none; font-size: .82rem; }
.footer-grid a:hover { color: #fff; }
.footer-note { max-width: 1200px; margin: 38px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 5px; }
.footer-note p { margin: 0; color: #819f96; font-size: .72rem; }

.order-dialog { width: min(620px,calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.order-dialog::backdrop { background: rgba(5,29,23,.65); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 15px; top: 13px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: #eef4f1; font-size: 1.35rem; cursor: pointer; }
.order-dialog #dialog-content { padding: 34px; }
.dialog-loading { text-align: center; padding: 30px 10px; }
.spinner { width: 40px; height: 40px; margin: 0 auto; border: 4px solid var(--mint); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.dialog-header { display: flex; align-items: center; gap: 14px; padding-right: 32px; }
.dialog-header h2 { margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: 1.7rem; line-height: 1.15; }
.dialog-check { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 1.4rem; font-weight: 800; }
.selected-product { display: grid; grid-template-columns: 1fr auto; margin: 24px 0; padding: 16px; border-radius: 12px; background: #f2f8f5; }
.selected-product span { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
.selected-product b { color: var(--green); font-size: 1.1rem; }
.branch-details { margin: 0; }
.branch-details div { display: grid; grid-template-columns: 105px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.branch-details dt { color: var(--muted); font-size: .82rem; }
.branch-details dd { margin: 0; font-weight: 650; }
.confirm-note { margin: 18px 0; color: var(--muted); font-size: .8rem; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary-link, .secondary-link { padding: 12px 14px; border-radius: 10px; text-align: center; text-decoration: none; font-weight: 800; }
.primary-link { background: var(--green); color: #fff; }
.secondary-link { border: 1px solid var(--green); color: var(--green); }
.empty { grid-column: 1 / -1; padding: 50px; border: 1px dashed #9bb9ae; border-radius: 18px; background: #fff; text-align: center; }
.empty strong { font-size: 1.25rem; }
.skeleton { border-radius: 6px; background: linear-gradient(90deg,#eaf0ed,#f5f8f6,#eaf0ed); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton.line { height: 16px; margin: 9px 0; }
.skeleton.line.short { width: 42%; }
.skeleton.line.title { width: 70%; height: 28px; margin-top: 24px; }
.skeleton.block { height: 70px; margin-top: 20px; }

.cookie-notice { position: fixed; z-index: 100; left: 50%; bottom: 18px; width: min(920px,calc(100% - 28px)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid #b9d8cd; border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 18px 70px rgba(5,41,32,.24); backdrop-filter: blur(12px); }
.cookie-notice strong { display: block; font-size: .94rem; }
.cookie-notice p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.cookie-actions a { color: var(--green); font-size: .78rem; font-weight: 750; }
.cookie-actions button { min-height: 40px; padding: 0 17px; }

.legal-page { background: #f7faf8; }
.topbar-compact { position: relative; }
.legal-shell { max-width: 900px; margin: 0 auto; padding: 54px 24px 80px; }
.back-link { color: var(--green); text-decoration: none; font-size: .83rem; font-weight: 750; }
.legal-heading { margin: 38px 0 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-heading h1 { margin: 0; font-size: clamp(2.5rem,6vw,4.4rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.legal-heading > p:last-child { color: var(--muted); }
.legal-alert { margin-bottom: 25px; padding: 17px 20px; border: 1px solid #e2b56c; border-radius: 12px; background: #fff7e7; color: #6c4a12; }
.legal-alert p { margin: 5px 0 0; font-size: .86rem; }
.legal-content { padding: 20px 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--soft-shadow); }
.legal-content section { padding: 22px 0; border-bottom: 1px solid #eaf0ed; }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin: 0 0 10px; font-size: 1.12rem; }
.legal-content p, .legal-content li { color: #455f58; font-size: .9rem; }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--green); }
.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.legal-table th, .legal-table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: #f1f7f4; }
code { padding: 2px 5px; border-radius: 5px; background: #edf3f0; color: #24483f; }

@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .lead { margin-left: auto; margin-right: auto; }
  .eyebrow, .hero-trust { justify-content: center; }
  .search-card { max-width: 700px; margin: 0 auto; }
  .source-bar { flex-direction: column; align-items: stretch; gap: 18px; padding: 25px 0; }
  .source-intro { border-right: 0; padding-right: 0; text-align: center; }
  .source-list { justify-content: center; }
  .coverage { grid-template-columns: repeat(3,1fr); }
  .result-card { grid-template-columns: 100px minmax(0,1fr); }
  .product-image { width: 100px; }
  .price-row { grid-column: 2; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; border-left: 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
  .card-footer { grid-column: 2; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: auto; }
  .trust-grid { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 640px) {
  .topbar { min-height: 68px; padding: 0 15px; }
  .brand { font-size: 1.06rem; }
  .brand-logo-full { width: 165px; }
  .brand-logo-slogan { width: 190px; }
  .city-pill { max-width: 135px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .69rem; }
  .search-hero { padding: 50px 15px 0; }
  .hero-copy h1 { overflow-wrap: anywhere; font-size: clamp(2.35rem,11vw,3.2rem); }
  .lead { font-size: .96rem; }
  .hero-trust { display: grid; justify-content: start; width: fit-content; margin: 0 auto; text-align: left; }
  .search-card { padding: 20px 16px; border-radius: 20px; }
  .search-card-heading label { font-size: 1.08rem; }
  .search-modes { flex-wrap: wrap; }
  .location-option small { white-space: normal; }
  .city-row { grid-template-columns: 1fr; }
  .city-row button { min-height: 42px; }
  .search-row { grid-template-columns: auto 1fr; }
  .search-row button { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .source-bar { margin-top: 45px; }
  .source-list { gap: 10px 14px; }
  .results-section { padding: 50px 14px 65px; }
  .results-heading { align-items: stretch; flex-direction: column; }
  .sort-control select { width: 100%; }
  .search-feature { grid-template-columns: 100px 1fr; gap: 15px; padding: 16px; }
  .feature-product-image { width: 100px; height: 105px; }
  .search-feature h3 { font-size: 1.16rem; }
  .comparison-stats { grid-template-columns: 1fr; border-radius: 14px; }
  .comparison-stats > div { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 9px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .comparison-stats > div:last-child { border-bottom: 0; }
  .coverage { grid-template-columns: 1fr 1fr; }
  .result-card { grid-template-columns: 82px minmax(0,1fr); gap: 6px 13px; padding: 13px; }
  .product-image { width: 82px; min-height: 96px; grid-row: 1 / 3; }
  .product-image img { max-height: 92px; }
  .card-top { align-items: start; }
  .card-badges { display: none; }
  .product-copy h3 { font-size: .94rem; }
  .description { display: none; }
  .price-row { grid-column: 1 / 3; }
  .price-row strong { font-size: 1.3rem; }
  .price-row button { min-height: 43px; }
  .card-footer { grid-column: 1 / 3; }
  .availability { display: none; }
  .how-section { padding-top: 68px; padding-bottom: 70px; }
  .section-shell { padding-left: 15px; padding-right: 15px; }
  .trust-section { padding: 70px 0; }
  .safety-section { padding-top: 55px; padding-bottom: 55px; }
  .safety-card { grid-template-columns: 1fr; padding: 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cookie-notice { align-items: stretch; flex-direction: column; gap: 13px; bottom: 10px; }
  .cookie-actions { justify-content: space-between; }
  .dialog-actions { grid-template-columns: 1fr; }
  .branch-details div { grid-template-columns: 90px 1fr; }
  .order-dialog #dialog-content { padding: 28px 20px; }
  .selected-product { grid-template-columns: 1fr; }
  .selected-product b { margin-top: 6px; }
  .legal-shell { padding: 38px 15px 60px; }
  .legal-content { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
