:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(8, 63, 76, .07);
  --shadow-md: 0 12px 34px rgba(8, 63, 76, .10);
  --shadow-float: 0 20px 60px rgba(8, 63, 76, .18);
}

html { scroll-behavior: smooth; }
body { background: linear-gradient(180deg, #f7fafb 0, var(--bg) 420px); letter-spacing: -.006em; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .ghost, .primary { min-height: 44px; }
.primary, .ghost { border-radius: var(--radius-sm); transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.primary { box-shadow: 0 5px 14px rgba(245,154,10,.2); }
.primary:active, .ghost:active { transform: translateY(1px); }

header { border-bottom: 1px solid rgba(186,209,215,.75); box-shadow: 0 8px 28px rgba(8,63,76,.07); }
.head { height: 68px; gap: var(--space-4); }
.brand-logo-frame { width: 170px; }
.search { height: 46px; max-width: 760px; margin-inline: auto; border-radius: 12px; box-shadow: var(--shadow-sm); }
.search select { max-width: 156px; background: #f8fbfc; font-size: .84rem; }
.search button { width: 72px; }
.favorites-action, #accountBtn, .head > .primary { min-height: 46px; }
.market-view-switch-frame { box-shadow: none; border-bottom: 1px solid var(--line); }
.market-view-switch { min-height: 50px; }
.market-view-tab { min-height: 50px; border-bottom-width: 2px; font-size: .94rem; }
.market-view-tab[aria-selected='true'] { background: var(--view-soft); box-shadow: none; }
.market-view-tab[aria-selected='true']::after { height: 3px; bottom: 0; }

#marketplaceMain { padding-block: var(--space-5) var(--space-7); }
.market-shell { gap: var(--space-5); align-items: start; }
.category-rail { position: sticky; top: 142px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.category-all, .category-child { border-radius: 9px; }
.market-main { min-width: 0; }
.discovery-hero { min-height: 250px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.discovery-hero::after { background: linear-gradient(90deg, rgba(229,246,244,.97) 0%, rgba(229,246,244,.82) 44%, rgba(229,246,244,.10) 72%); }
.discovery-hero-content { max-width: 520px; }
.discovery-hero h1 { font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.03; letter-spacing: -.045em; }
.discovery-hero p { font-size: 1.05rem; }
.discovery-hero-cta { min-height: 48px; border-radius: 12px; box-shadow: 0 10px 24px rgba(8,63,76,.2); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin: 0 0 var(--space-4); }
.section-heading h1, .section-heading h2, .section-heading h3 { margin: 0; color: var(--petrol-dark); letter-spacing: -.025em; }
.section-heading h1 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
.section-heading h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.section-heading p { margin: 6px 0 0; color: var(--sub); }
.section-eyebrow { display: block; margin-bottom: 5px; color: var(--petrol); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.section-count { flex: none; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--sub); font-size: .8rem; font-weight: 700; }
.listing-section-heading { margin-top: var(--space-6); }

.filter-panel { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.filter { gap: 12px; padding: var(--space-4); }
.filter input, .filter select, .city-picker-trigger { min-height: 46px; border-radius: var(--radius-sm); }
.filter .primary { min-height: 46px; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); padding-bottom: var(--space-6); }
.listing { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.photo { height: auto; aspect-ratio: 4/3; }
.photo-open { width: 100%; height: 100%; }
.photo img { transition: transform .25s ease; }
.listing:hover .photo img { transform: scale(1.02); }
.pill { border: 1px solid rgba(255,255,255,.7); border-radius: 999px; box-shadow: var(--shadow-sm); }
.fav { width: 42px; height: 42px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.body { padding: 16px; }
.body h2 { min-height: 43px; margin-bottom: 12px; }
.title-open { text-align: left; line-height: 1.4; }
.price { font-size: 1.3rem; letter-spacing: -.02em; }
.meta { padding-top: 11px; border-top: 1px solid #edf3f5; }

.empty, .loading, .web-popular-loading, .buula-catalog-empty { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: #fbfdfd; }
.empty strong, .loading strong { color: var(--ink); font-size: 1.02rem; }
.empty button { margin-top: 5px; }

.web-search-page { padding-top: 0; }
.web-search-panel { max-width: 1320px; }
.web-search-hero { min-height: 230px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.web-search-brand { margin-bottom: var(--space-4); }
.web-search-hero .compare-search { height: 58px; max-width: 900px; border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.13); }
.web-search-hero .compare-search button { min-width: 140px; border-radius: 11px; }
.web-results-main, .web-result-filter-panel { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.web-popular-head { align-items: flex-end; }
.discovery-categories { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.discovery-category { flex-basis: 126px; min-height: 122px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.discovery-toolbar { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbfc; }
.web-popular-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-4); }
.web-popular-product { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.web-popular-photo { aspect-ratio: 4/3; height: auto; background: #f8fafb; }
.web-popular-copy strong { font-size: .96rem; }
.web-popular-offer { min-height: 64px; }
.web-popular-more, .discovery-more { min-height: 44px; }

.buula-product-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.buula-product-summary { padding: 22px; background: linear-gradient(135deg, #fff, #f4f9fa); }
.buula-product-image { width: 132px; height: 132px; background: #fff; border-radius: var(--radius-md); }
.buula-product-copy h2 { font-size: 1.2rem; }
.buula-lowest-price { padding: 14px; border-radius: var(--radius-md); background: var(--petrol-soft); }
.buula-offer { padding: 16px 20px; }
.buula-best { border-radius: 999px; }
.buula-store-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }

.store-directory { margin-bottom: var(--space-6); padding: clamp(18px,3vw,30px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.public-store-sources { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 16px; scrollbar-width: none; }
.store-source-chip { flex: none; min-height: 38px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); padding: 7px 12px; font-weight: 750; cursor: pointer; }
.store-source-chip[aria-pressed="true"] { border-color: var(--petrol); background: var(--petrol); color: #fff; }
.public-store-rows { display: grid; gap: var(--space-4); }
.featured-store-row { padding: clamp(14px,2vw,20px); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.featured-store-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }.featured-store-head h2,.featured-store-head p { margin: 0; }.featured-store-head p { color: var(--sub); font-size: .85rem; }
.featured-store-products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.featured-store-products > .empty { grid-column: 1 / -1; }
.featured-store-product { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }.featured-store-product img { display:block; width:100%; aspect-ratio:1; object-fit:contain; border-radius:8px; background:#f8fafb; }.featured-store-product strong { display:-webkit-box; margin-top:8px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:.86rem; }.featured-store-product b { display:block; margin-top:5px; color:var(--petrol-dark); }.featured-store-product small { color:#17643a; font-weight:750; }.store-products-loading { color:var(--sub); padding:12px 0; }
.public-store-mark { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 12px; background: var(--petrol-soft); color: var(--petrol-dark); font-size: 1.1rem; font-weight: 900; }
.public-store-card strong { font-size: 1rem; }
.public-store-card span { margin-top: 5px; color: var(--sub); font-size: .82rem; }
.public-store-card .public-store-source { color: var(--petrol-dark); font-weight: 750; }
.public-store-card small { margin-top: auto; padding-top: 10px; color: var(--petrol); font-weight: 750; }
.store-card-skeleton { height: 148px; border-radius: var(--radius-md); background: linear-gradient(100deg,#edf3f4 30%,#f8fbfb 50%,#edf3f4 70%); background-size: 300% 100%; animation: skeleton-shift 1.3s ease infinite; }
.public-store-detail { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.public-store-detail[hidden] { display: none; }
.store-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.store-detail-head h2 { margin: 0; }
.store-detail-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.store-detail-product { display: grid; grid-template-columns: 82px 1fr; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.store-detail-product img { width: 82px; height: 82px; object-fit: contain; background: #f8fafb; border-radius: 9px; }
.store-detail-product strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; }
.store-detail-product b { display: block; margin-top: 8px; color: var(--petrol-dark); }
.store-deal-badge { display: inline-block; margin: 7px 7px 0 0; padding: 3px 7px; border-radius: 999px; background: #dff4e7; color: #17643a; font-size: .72rem; font-weight: 800; }
.store-former-price { color: var(--sub); font-size: .8rem; }
.store-models { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.store-model { border-radius: var(--radius-md); }

.modal { backdrop-filter: blur(4px); }
.sheet { border-radius: var(--radius-lg); box-shadow: var(--shadow-float); }
#detail .sheet { width: min(1120px,100%); }
#detail .content { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.85fr); gap: 0 28px; }
#detail .detail-gallery { grid-column: 1; grid-row: 1 / span 4; }
#detail .detail-top, #detail .facts, #detail .seller-card, #detail .detail-actions, #detail .contact { grid-column: 2; }
#detail .detail-top { flex-direction: column; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
#detail .detail-section, #detail .detail-attributes { grid-column: 1 / -1; }
#detail .detail-photo { height: auto; aspect-ratio: 4/3; }
#detail .seller-card { margin-top: 8px; }
.detail-attributes { border-radius: var(--radius-md); }
.facts span { border: 1px solid var(--line); background: #f8fbfc; }
.account-listing-row, .draft-row, .conversation-row { border-radius: var(--radius-sm); }

footer { background: #fff; border-top: 1px solid var(--line); }
.foot { min-height: 94px; }
.footer-links { gap: 18px; }

@keyframes skeleton-shift { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (hover: none) {
  .listing:hover, .web-popular-product:hover, .public-store-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .listing:hover .photo img, .web-popular-product:hover .web-popular-photo img { transform: none; }
}
@media (max-width: 1100px) {
  .featured-store-products { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .store-detail-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .web-popular-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  #marketplaceMain { padding-block: 14px 88px; }
  .wrap { width: min(100% - 24px, 1320px); }
  .market-shell { display: block; }
  .category-rail { position: static; margin-bottom: 12px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-panel[open]::before { content: ''; position: fixed; inset: 0; z-index: 45; background: rgba(8,31,37,.58); backdrop-filter: blur(2px); }
  .filter-panel[open] .filter { position: fixed; right: 0; bottom: 0; left: 0; z-index: 46; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: min(82vh,720px); overflow-y: auto; padding: 20px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -18px 50px rgba(8,63,76,.22); }
  .mobile-filter-close { grid-column: 1/-1; justify-self: end; min-height: 40px; border: 0; background: var(--soft); border-radius: 999px; padding: 7px 12px; color: var(--ink); font-weight: 750; }
  body.filter-sheet-open .mobile-bottom-nav,
  body.filter-sheet-open .mobile-chat-button { display: none !important; }
  #detail .content { display: block; }
  #detail .detail-top { margin-top: 18px; }
  .featured-store-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  body { background: #f4f8f9; }
  .head { height: 58px; gap: 8px; }
  .brand-logo-frame { width: 116px; height: 34px; }
  .brand-logo { width: 130px; transform: translate(-4px,-7px); }
  .head .search, .favorites-action, #accountBtn, .head > .primary { display: none; }
  .market-view-switch-frame { display: none; }
  .mobile-home { padding-top: 2px; }
  .mobile-home-search { min-height: 50px; border-radius: 13px; box-shadow: var(--shadow-sm); }
  .mobile-mode-grid { gap: 12px; }
  .mobile-mode-card { min-height: 160px; border-radius: 18px; box-shadow: var(--shadow-md); }
  .mobile-home-section { margin-top: 28px; }
  .mobile-home-section h2 { font-size: 1.3rem; }
  .mobile-featured-card { border-radius: 14px; box-shadow: var(--shadow-sm); }
  .mobile-bottom-nav { min-height: 66px; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 25px rgba(8,63,76,.12); }
  .mobile-bottom-nav button { min-height: 58px; }
  .mobile-nav-label { font-size: .72rem; }
  .mobile-chat-button { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .discovery-hero { min-height: 205px; padding: 20px; background-position: 64% center; }
  .discovery-hero h1 { font-size: 2rem; }
  .listing-section-heading { margin-top: 22px; }
  .section-count { display: none; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .listing { display: grid; grid-template-columns: 132px minmax(0,1fr); min-height: 154px; }
  .photo { height: 100%; aspect-ratio: auto; }
  .body { padding: 13px; min-width: 0; }
  .body h2 { min-height: auto; margin-bottom: 9px; font-size: .95rem; }
  .price { font-size: 1.08rem; }
  .meta { flex-direction: column; gap: 2px; padding-top: 8px; font-size: .74rem; }
  .pill { max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; top: 8px; left: 8px; }
  .fav { width: 38px; height: 38px; top: 8px; right: 8px; }
  .filter-panel[open] .filter { grid-template-columns: 1fr; }
  .filter-panel[open] .filter > * { grid-column: 1; }
  .web-search-hero { min-height: 190px; padding: 20px 14px; border-radius: 16px; }
  .web-search-brand { transform: scale(.86); margin-inline: -22px; }
  .web-search-hero .compare-search { height: 52px; }
  .web-search-hero .compare-search button { min-width: 76px; }
  .web-results-main { padding: 14px; border-radius: 16px; }
  .web-popular-head { align-items: flex-start; }
  .web-popular-head span { text-align: left; }
  .discovery-toolbar { display: block; }
  .discovery-modes { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .discovery-modes button { flex: none; }
  .discovery-toolbar label { margin-top: 8px; }
  .web-popular-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; }
  .web-popular-product { flex: 0 0 min(82vw,330px); scroll-snap-align: start; }
  .buula-product-summary { grid-template-columns: 90px 1fr; padding: 15px; }
  .buula-product-image { width: 90px; height: 90px; }
  .buula-lowest-price { grid-column: 1/-1; }
  .buula-offer { grid-template-columns: 1fr auto; gap: 8px; }
  .buula-stock, .buula-best { justify-self: start; }
  .buula-store-link { grid-column: 1/-1; width: 100%; }
  .featured-store-products { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 2px 12px; }.featured-store-product { flex:0 0 min(62vw,230px); scroll-snap-align:start; }.featured-store-head { align-items:center; }.featured-store-head .ghost { padding:8px; }
  .store-detail-products { grid-template-columns: 1fr; }
  .store-models-head { display: block; }
  .store-models-head .primary { width: 100%; margin-top: 12px; }
  .sheet { border-radius: 18px 18px 0 0; max-height: 94dvh; align-self: end; }
  .modal { padding: 0; align-items: flex-end; }
  .content { padding: 16px; }
  .sheet-head { padding: 14px 16px; }
  .detail-photo { max-height: 52vh; }
  .detail-attributes { grid-template-columns: 1fr; }
  .detail-attributes div, .detail-attributes div:nth-child(odd), .detail-attributes div:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-attributes div:last-child { border-bottom: 0; }
  .contact { position: sticky; bottom: -16px; z-index: 2; margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
  .foot { align-items: flex-start; gap: 14px; padding-block: 24px 96px; }
  .footer-links { justify-content: flex-start; gap: 10px 16px; }
}

/* BUU'la: compact comparison workspace */
#webSearchView.web-search-page {
  padding-block: 14px 36px;
}
#webSearchView .web-search-panel {
  gap: 12px;
}
#webSearchView .web-search-hero {
  min-height: 0;
  padding: 14px 22px 16px;
  border-radius: 16px;
}
#webSearchView .web-search-brand {
  width: auto;
  margin-bottom: 10px;
  gap: 9px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1;
}
#webSearchView .web-search-brand img {
  width: clamp(88px, 8.5vw, 112px);
  filter: drop-shadow(0 4px 7px rgba(2,31,38,.24));
}
#webSearchView .web-search-hero .compare-search {
  width: min(100%, 900px);
  height: 48px;
  padding: 4px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(4,39,48,.16);
}
#webSearchView .web-search-hero .compare-search input {
  min-height: 40px;
  padding-inline: 14px;
  font-size: .92rem;
}
#webSearchView .web-search-hero .compare-search button {
  min-width: 104px;
  min-height: 40px;
  border-radius: 9px;
}
#webSearchView .web-results-main,
#webSearchView .web-result-filter-panel {
  border-radius: 14px;
}
#webSearchView .web-results-main {
  padding: 14px;
}
#webSearchView .web-popular-head {
  margin-bottom: 10px;
}
#webSearchView .web-popular-head h2 {
  font-size: 1.08rem;
}
#webSearchView .web-popular-head span {
  font-size: .75rem;
}
#webSearchView .discovery-categories {
  gap: 7px;
  padding: 2px 0 10px;
}
#webSearchView .discovery-category {
  flex-basis: 92px;
  min-height: 76px;
  gap: 3px;
  padding: 7px 6px;
  border-radius: 10px;
  font-size: .72rem;
  line-height: 1.15;
}
#webSearchView .discovery-category img {
  width: 38px;
  height: 32px;
}
#webSearchView .discovery-category strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
#webSearchView .discovery-category small {
  font-size: .62rem;
  white-space: nowrap;
}
#webSearchView .discovery-deals {
  margin-top: 4px;
  padding: 10px;
  border-radius: 12px;
}
#webSearchView .discovery-deals h3 {
  font-size: .94rem;
}
#webSearchView .discovery-deal-rail {
  gap: 8px;
  padding-bottom: 3px;
}
#webSearchView .discovery-deal {
  flex-basis: 210px;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  min-height: 76px;
  padding: 8px;
  border-radius: 9px;
}
#webSearchView .discovery-deal img {
  width: 48px;
  height: 58px;
}
#webSearchView .discovery-deal strong {
  font-size: .72rem;
  line-height: 1.25;
}
#webSearchView .discovery-deal b {
  margin-top: 4px;
  font-size: .84rem;
}
#webSearchView .discovery-discount {
  margin: 3px 0;
  padding: 2px 5px;
  font-size: .62rem;
}
#webSearchView .discovery-toolbar {
  margin: 10px 0 4px;
  padding: 6px;
  gap: 8px;
  border-radius: 10px;
}
#webSearchView .discovery-modes {
  gap: 4px;
}
#webSearchView .discovery-modes button {
  min-height: 40px;
  padding: 7px 11px;
  font-size: .76rem;
}
#webSearchView .discovery-toolbar select {
  min-height: 40px;
  padding: 7px 30px 7px 9px;
  font-size: .76rem;
}
#webSearchView .discovery-status {
  min-height: 32px;
  margin-bottom: 5px;
  font-size: .72rem;
}
#webSearchView .web-popular-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
#webSearchView .web-popular-product {
  border-radius: 11px;
}
#webSearchView .web-popular-photo {
  height: 118px;
  aspect-ratio: auto;
}
#webSearchView .web-popular-photo img {
  padding: 6px;
}
#webSearchView .web-popular-count {
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  font-size: .6rem;
}
#webSearchView .web-popular-copy {
  padding: 8px 9px 9px;
}
#webSearchView .web-popular-copy strong {
  min-height: 2.5em;
  font-size: .79rem;
  line-height: 1.25;
}
#webSearchView .web-popular-copy small {
  margin-top: 4px;
  font-size: .64rem;
}
#webSearchView .web-popular-copy .discovery-reference {
  display: none;
}
#webSearchView .web-popular-offer {
  min-height: 50px;
  gap: 5px;
  padding: 6px 8px;
}
#webSearchView .web-popular-offer-meta,
#webSearchView .web-popular-offer-price {
  gap: 1px;
}
#webSearchView .web-popular-offer-meta em,
#webSearchView .web-popular-offer-meta span,
#webSearchView .web-popular-offer-price small {
  font-size: .59rem;
}
#webSearchView .web-popular-offer-meta em {
  padding: 1px 5px;
}
#webSearchView .web-popular-offer-meta strong {
  font-size: .69rem;
}
#webSearchView .web-popular-offer-price strong {
  font-size: .74rem;
}
#webSearchView .web-popular-more {
  min-height: 40px;
  padding: 7px 8px;
  font-size: .69rem;
}
#webSearchView .discovery-checked {
  padding: 6px 8px;
  font-size: .59rem;
}
#webSearchView .discovery-more {
  margin: 16px auto 6px;
}
#webSearchView .discovery-note {
  margin-top: 14px;
  font-size: .68rem;
}

/* Search results use compact, scannable comparison rows. */
#webSearchView .buula-catalog-results {
  gap: 9px;
}
#webSearchView .buula-product-card {
  border-radius: 12px;
}
#webSearchView .buula-product-summary {
  grid-template-columns: 92px minmax(0,1fr) 160px;
  gap: 12px;
  padding: 11px 13px;
}
#webSearchView .buula-product-image {
  width: 92px;
  height: 92px;
  border-radius: 9px;
}
#webSearchView .buula-product-copy h2 {
  font-size: .98rem;
  line-height: 1.25;
}
#webSearchView .buula-product-copy p {
  margin-top: 4px;
  font-size: .72rem;
}
#webSearchView .buula-lowest-price {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
}
#webSearchView .buula-lowest-price span,
#webSearchView .buula-lowest-price small {
  font-size: .67rem;
}
#webSearchView .buula-lowest-price strong {
  font-size: 1.02rem;
}
#webSearchView .buula-offer {
  grid-template-columns: minmax(145px,1fr) minmax(90px,auto) minmax(130px,auto) auto auto;
  gap: 9px;
  min-height: 58px;
  padding: 8px 12px;
}
#webSearchView .buula-offer-store strong {
  font-size: .82rem;
}
#webSearchView .buula-offer-store small,
#webSearchView .buula-stock {
  font-size: .68rem;
}
#webSearchView .buula-offer-price strong {
  font-size: .88rem;
}
#webSearchView .buula-price-history,
#webSearchView .buula-offer-price del {
  font-size: .62rem;
}
#webSearchView .buula-best {
  padding: 4px 7px;
  font-size: .64rem;
}
#webSearchView .buula-store-link {
  min-height: 40px;
  padding-inline: 11px;
  font-size: .72rem;
}

@media (min-width: 1240px) {
  #webSearchView .web-popular-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  #webSearchView .web-popular-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
@media (max-width: 700px) {
  #webSearchView.web-search-page {
    padding-block: 0 82px;
  }
  #webSearchView .web-search-panel {
    gap: 8px;
  }
  #webSearchView .web-search-hero {
    padding: 10px 12px 12px;
    border-radius: 0 0 14px 14px;
  }
  #webSearchView .web-search-brand {
    margin: 0 auto 7px;
    gap: 6px;
    font-size: 1.08rem;
  }
  #webSearchView .web-search-brand img {
    width: 72px;
  }
  #webSearchView .web-search-hero .compare-search {
    height: 46px;
    gap: 3px;
    padding: 3px;
  }
  #webSearchView .web-search-hero .compare-search input {
    min-height: 40px;
    min-width: 0;
    padding-inline: 9px;
    font-size: .82rem;
  }
  #webSearchView .web-search-hero .compare-search button {
    min-width: 64px;
    min-height: 40px;
    padding-inline: 9px;
    font-size: .76rem;
  }
  #webSearchView .web-results-main {
    padding: 10px;
    border-width: 0;
    border-radius: 0;
  }
  #webSearchView .web-popular-head {
    align-items: center;
    margin-bottom: 8px;
  }
  #webSearchView .web-popular-head h2 {
    font-size: 1rem;
  }
  #webSearchView .discovery-categories {
    margin-inline: -10px;
    padding-inline: 10px;
  }
  #webSearchView .discovery-category {
    flex-basis: 80px;
    min-height: 68px;
    padding: 6px 4px;
    font-size: .66rem;
  }
  #webSearchView .discovery-category img {
    width: 32px;
    height: 27px;
  }
  #webSearchView .discovery-category small {
    font-size: .56rem;
  }
  #webSearchView .discovery-deals {
    margin-inline: -2px;
    padding: 8px;
  }
  #webSearchView .discovery-deals .web-popular-head {
    margin-bottom: 6px;
  }
  #webSearchView .discovery-deal {
    flex-basis: 178px;
    grid-template-columns: 40px 1fr;
    min-height: 66px;
    padding: 6px;
  }
  #webSearchView .discovery-deal img {
    width: 40px;
    height: 48px;
  }
  #webSearchView .discovery-toolbar {
    align-items: stretch;
    margin-top: 8px;
    padding: 5px;
  }
  #webSearchView .discovery-modes {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    overflow: visible;
    padding: 0;
  }
  #webSearchView .discovery-modes button {
    width: 100%;
    min-height: 40px;
    padding: 6px 4px;
    font-size: .69rem;
  }
  #webSearchView .discovery-toolbar label {
    width: 100%;
    margin-top: 0;
    justify-content: space-between;
    font-size: .7rem;
  }
  #webSearchView .discovery-toolbar select {
    width: 70%;
    max-width: none;
  }
  #webSearchView .web-popular-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
    overflow: visible;
    padding: 0;
  }
  #webSearchView .web-popular-product {
    min-width: 0;
    border-radius: 9px;
  }
  #webSearchView .web-popular-photo {
    height: 96px;
  }
  #webSearchView .web-popular-copy {
    padding: 7px;
  }
  #webSearchView .web-popular-copy strong {
    font-size: .78rem;
  }
  #webSearchView .web-popular-copy small {
    font-size: .68rem;
  }
  #webSearchView .web-popular-offer {
    min-height: 47px;
    padding: 5px 6px;
  }
  #webSearchView .web-popular-offer-meta strong {
    font-size: .7rem;
  }
  #webSearchView .web-popular-offer-price strong {
    font-size: .74rem;
  }
  #webSearchView .web-popular-offer-price small {
    font-size: .64rem;
  }
  #webSearchView .web-popular-more {
    min-height: 40px;
    padding: 6px 4px;
    font-size: .62rem;
  }
  #webSearchView .discovery-checked {
    padding: 5px 6px;
    font-size: .62rem;
  }
  #webSearchView .buula-product-summary {
    grid-template-columns: 72px minmax(0,1fr);
    gap: 9px;
    padding: 9px;
  }
  #webSearchView .buula-product-image {
    width: 72px;
    height: 78px;
  }
  #webSearchView .buula-product-copy h2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .84rem;
  }
  #webSearchView .buula-lowest-price {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2px 8px;
    padding: 7px 9px;
    text-align: left;
  }
  #webSearchView .buula-lowest-price strong {
    justify-self: end;
  }
  #webSearchView .buula-lowest-price small {
    grid-column: 1/-1;
    margin: 0;
  }
  #webSearchView .buula-offer {
    position: relative;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 4px 7px;
    min-height: 92px;
    padding: 8px 9px;
  }
  #webSearchView .buula-offer-store {
    grid-column: 1;
    grid-row: 1;
  }
  #webSearchView .buula-offer-price {
    grid-column: 2;
    grid-row: 1;
  }
  #webSearchView .buula-stock {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: start;
    margin: 0;
  }
  #webSearchView .buula-best {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    justify-self: start;
    margin: 0;
  }
  #webSearchView .buula-best + .buula-store-link,
  #webSearchView .buula-store-link {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    justify-self: end;
    width: auto;
    min-height: 40px;
  }
  #webSearchView .buula-best {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 370px) {
  #webSearchView .web-search-brand span {
    font-size: .94rem;
  }
  #webSearchView .web-search-brand img {
    width: 64px;
  }
  #webSearchView .web-popular-grid {
    gap: 5px;
  }
  #webSearchView .web-popular-photo {
    height: 88px;
  }
}
