.app {
  --bg: #fff;
  --surface: #fff;
  --surface-2: #f5f6f6;
  --text: #202323;
  --muted: #697071;
  --accent: #176b57;
  --border: #e4e7e6;
  --radius-card: 8px;
  --shadow-soft: none;
  font-weight: 400;
}
.app[data-theme="dark"] {
  --bg: #171a19;
  --surface: #202422;
  --surface-2: #292e2b;
  --text: #f1f4f2;
  --muted: #adb7b0;
  --border: #3b443e;
  --accent: #9bd9c3;
}
.app *, .compare-dialog *, .compare-tray * { letter-spacing: 0; box-sizing: border-box; }
.app .topbar { background: var(--surface); box-shadow: none; padding: 16px 32px; }
.app .top-row { max-width: 1320px; margin: 0 auto 16px; gap: 24px; }
.app .brand strong { font-size: 21px; }
.app .brand small { display: none; }
.app .brand-mark { box-shadow: none; border-radius: 8px; }
.app .desktop-page-nav { margin-left: auto; gap: 24px; }
.app .page-nav-btn { font-size: 14px; font-weight: 600; border: 0; border-radius: 0; background: none; padding: 8px 0; }
.app .page-nav-btn.active { color: var(--accent); background: none; box-shadow: inset 0 -2px var(--accent); }
.app .top-buttons { display: flex; }
.app .guided-search { max-width: 1320px; margin: 0 auto; }
.app .searchbar { border: 1px solid var(--border); border-radius: 6px; height: 48px; box-shadow: none; background: var(--surface-2); display: flex; padding: 0 6px 0 14px; }
.app .searchbar input { min-width: 0; font-size: 15px; font-weight: 400; padding: 0 10px; }
.app .catalog-search-submit { height: 36px; padding: 0 20px; border-radius: 4px; background: #176b57; color: #fff; font-weight: 600; }
.app .search-helper { display: none; }
.app .main { width: 100%; max-width: 1384px; padding: 0 32px 48px; margin: 0 auto; }
.discovery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 22px; }
.discovery-heading p { font-size: 10px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.discovery-heading h1 { font-size: 30px; line-height: 1.15; font-weight: 650; margin: 0; }
.discovery-heading > a, .catalog-section-heading > a { font-size: 13px; color: var(--accent); white-space: nowrap; }
.category-rail { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; padding-bottom: 24px; }
.category-entry { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid transparent; border-radius: 6px; padding: 8px; min-height: 88px; font-size: 14px; font-weight: 600; }
.category-entry:hover { border-color: var(--accent); }
.category-entry img { object-fit: contain; width: 64px; height: 64px; border-radius: 4px; mix-blend-mode: multiply; }
.category-entry .baqo-icon { width: 40px; margin: 0 10px; }
.app .home-chips-bar { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 24px; padding: 0; border-bottom: 1px solid var(--border); background: none; border-radius: 0; margin: 0; }
.app .home-chip { flex: 0 0 auto; padding: 12px 0; border: 0; background: none; box-shadow: none; border-radius: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.app .home-chip.active { color: var(--text); background: none; box-shadow: inset 0 -2px var(--accent); }
.app .desktop-home-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0 16px; border: 0; border-radius: 0; background: none; box-shadow: none; margin: 0; }
.app .desktop-home-toolbar strong { font-size: 18px; font-weight: 600; }
.app .desktop-home-toolbar > div > span { display: inline; font-size: 12px; font-weight: 400; margin-left: 12px; color: var(--muted); }
.app .desktop-sort { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; min-height: 34px; padding: 3px; gap: 2px; }
.app .desktop-sort button { min-width: 54px; min-height: 28px; padding: 4px 12px; font-size: 12px; font-weight: 600; border: 0; background: transparent; color: var(--muted); border-radius: 3px; }
.app .desktop-sort button.active { background: #176b57; color: #fff; }
.app .catalog-search-submit { border: 0; }
.app #homeView > .feed-info { display: none; }
.app .feed, .catalog-related-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: 26px 20px; }
.catalog-card { position: relative; min-width: 0; background: var(--surface); }
.catalog-image { display: block; width: 100%; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; border-radius: 6px; }
.catalog-image img { display: block; height: 100%; width: 100%; object-fit: contain; transition: transform .2s ease; }
.catalog-image:hover img { transform: scale(1.025); }
.catalog-save { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #e3e7e4; border-radius: 50%; color: #343a36; background: #fff; }
.catalog-save.saved { color: #176b57; background: #ddf3e9; }
.catalog-body { padding: 12px 0 0; }
.catalog-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.catalog-meta span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.catalog-meta span:first-child { flex-shrink: 0; max-width: 50%; font-weight: 600; color: var(--accent); }
.catalog-body h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; font-weight: 500; min-height: 41px; margin: 0 0 10px; }
.catalog-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.catalog-bottom strong { font-size: 17px; font-weight: 650; }
.compare-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); cursor: pointer; font-weight: 400; }
.compare-toggle input { accent-color: #176b57; width: 14px; height: 14px; margin: 0; }
.app .home-pagination { padding: 32px 0; }
.app .explore-search-engine { display: block; padding: 28px 0 16px; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.app .explore-search-shell { min-width: 0; width: 100%; padding: 0; background: none; border: 0; box-shadow: none; }
.app .explore-search-shell h1 { font-size: 30px; line-height: 1.2; font-weight: 600; }
.app .explore-search-form { min-width: 0; width: 100%; max-width: 760px; border-radius: 6px; box-shadow: none; }
.app .find-card { min-width: 0; }
.app .skeleton-image { min-width: 0; width: 100%; }
.app[data-view="explore"] .guided-search { display: none; }
.app[data-view="explore"] .top-row { margin-bottom: 0; }
.app .explore-search-form { display: flex; height: 48px; min-height: 0; padding: 4px 6px 4px 12px; gap: 8px; }
.app .explore-search-form input { flex: 1; min-width: 0; height: 38px; padding: 0; }
.app .explore-search-form button { width: auto; min-height: 36px; height: 36px; padding: 0 20px; border: 0; border-radius: 4px; background: #176b57; color: #fff; font-size: 13px; font-weight: 600; }
.app .explore-sortbar { display: flex; gap: 6px; margin-top: 14px; }
.app .explore-sortbar button { min-height: 32px; min-width: 64px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.app .explore-filter-strip { display: grid; grid-template-columns: repeat(2,minmax(0,240px)); }
.app .explore-categories, .app .explore-stores { display: block; }
.app .explore-filter-group .section-head { margin-bottom: 8px; }
.app .explore-filter-group select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.app[data-view="explore"] .feed { grid-template-columns: repeat(4,minmax(0,1fr)); }
.app .price-filter.visible { display: flex; gap: 24px; align-items: center; padding: 12px 0; margin: 0 0 20px; border: 0; border-top: 1px solid var(--border); background: none; }
.app .price-filter .price-head { display: flex; gap: 14px; margin: 0; align-items: center; }
.app .price-filter h2 { font-size: 12px; }
.app .price-filter .price-head p { font-size: 11px; }
.app .price-row { flex: 1; max-width: 400px; font-size: 11px; margin: 0; }
.app .explore-search-form input { font-size: 15px; font-weight: 400; }
.app .explore-query-bar, .app .explore-summary { display: none; }
.app .explore-filter-strip { padding: 16px 0; background: none; border: 0; box-shadow: none; border-radius: 0; gap: 24px; }
.app .explore-filter-group { border: 0; border-radius: 0; box-shadow: none; padding: 0; background: none; }
.app .explore-filter-group .section-head span { display: none; }
.app .explore-filter-group h2 { font-size: 13px; font-weight: 600; }
.app .explore-cat-card, .app .explore-store-card, .app .explore-category-chip, .app .explore-platform-chip { border-radius: 4px; box-shadow: none; }
.app[data-view="explore"] .feed-info { position: static; border: 0; background: none; padding: 12px 0; border-radius: 0; }
.app .price-filter { box-shadow: none; border-radius: 4px; }
.app .page-hero { padding: 28px 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.app .page-hero h1 { font-size: 28px; }
.app .detail-card { background: var(--bg); }
.catalog-product .detail-page-header { box-shadow: none; background: var(--surface); padding: 14px 32px; }
.catalog-product .detail-page-back { border: 0; border-radius: 0; padding: 8px 0; min-height: 36px; font-size: 13px; font-weight: 500; }
.catalog-product .detail-page-close { width: 36px; height: 36px; min-height: 36px; border-radius: 4px; font-size: 24px; padding: 0; }
.product-brand { justify-self: center; font-size: 20px; font-weight: 650; }
.catalog-product-inner { max-width: 1320px; margin: 0 auto; padding: 0 32px 60px; }
.product-breadcrumb { display: flex; gap: 10px; align-items: center; padding: 22px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.catalog-product-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 56px; align-items: start; }
.product-gallery { position: sticky; top: 86px; }
.product-main-image { position: relative; display: block; padding: 0; width: 100%; aspect-ratio: 1; border: 0; border-radius: 6px; background: var(--surface-2); overflow: hidden; cursor: zoom-in; }
.product-main-image > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-main-image > span { position: absolute; right: 16px; bottom: 16px; background: #fff; color: #202323; padding: 8px; border-radius: 4px; }
.product-eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 600; }
.product-information h1 { font-size: 28px; font-weight: 600; line-height: 1.28; margin: 0 0 20px; overflow-wrap: anywhere; }
.product-price { font-size: 28px; font-weight: 650; margin-bottom: 22px; }
.product-price > span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.product-actions .feed-action { padding: 8px 14px; min-height: 38px; border-radius: 4px; font-size: 12px; font-weight: 500; background: var(--surface); }
.product-actions .compare-toggle { margin-left: auto; }
.product-information section { padding: 22px 0; border-bottom: 1px solid var(--border); }
.product-information h2 { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.product-shops h2 span { font-size: 12px; color: var(--muted); margin-left: 6px; }
.product-shop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.product-shop > span:last-child { display: flex; gap: 8px; align-items: center; color: var(--accent); font-size: 12px; white-space: nowrap; }
.product-shop small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 4px; overflow-wrap: anywhere; }
.product-price-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 8px 0 0; }
.product-specs dl { margin: 0; display: grid; gap: 12px; }
.product-specs dl > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 16px; font-size: 13px; }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; overflow-wrap: anywhere; }
.product-description { padding: 20px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.6; }
.product-description summary { cursor: pointer; font-weight: 600; }
.product-description p { white-space: pre-wrap; overflow-wrap: anywhere; }
.product-report { display: inline-block; font-size: 11px; color: var(--muted); padding-top: 16px; text-decoration: underline; }
.related-products { padding-top: 48px; }
.catalog-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.catalog-section-heading h2 { font-size: 22px; margin: 0; font-weight: 600; }
.compare-tray { position: fixed; z-index: 2200; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid #dce3de; border-radius: 6px; background: #fff; color: #202323; box-shadow: 0 4px 24px #0002; max-width: calc(100% - 24px); font: 13px system-ui; }
.compare-tray[hidden], .related-products[hidden] { display: none; }
#comparePreviews { display: flex; gap: 5px; }
#comparePreviews img { object-fit: contain; border-radius: 3px; }
#compareCount { white-space: nowrap; }
#openCompare { padding: 10px 16px; background: #176b57; color: #fff; border-radius: 4px; white-space: nowrap; border: 0; }
#openCompare:disabled { opacity: .45; }
#clearCompare, #closeCompare { background: none; border: 0; font-size: 24px; padding: 4px 8px; color: inherit; }
.compare-dialog { width: min(1100px,calc(100% - 24px)); max-height: 85vh; padding: 24px; border: 1px solid #dce3de; border-radius: 8px; background: #fff; color: #202323; font: 14px system-ui; }
.compare-dialog::backdrop { background: #0007; }
.compare-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.compare-dialog-head h2 { font-size: 22px; margin: 0; }
.comparison-scroll { overflow-x: auto; }
.comparison-scroll table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 580px; }
.comparison-scroll th, .comparison-scroll td { padding: 14px; border-bottom: 1px solid #e4e7e6; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.comparison-scroll th:first-child { width: 125px; font-size: 12px; color: #697071; }
.comparison-scroll th img { width: 100%; height: 150px; object-fit: contain; }
.comparison-scroll th a { color: inherit; text-decoration: none; display: grid; gap: 12px; }
.comparison-scroll th button { margin-top: 12px; border: 0; background: none; text-decoration: underline; color: #697071; font: inherit; font-size: 12px; }
.app :focus-visible, .compare-tray :focus-visible, .compare-dialog :focus-visible { outline: 2px solid #268c71; outline-offset: 3px; }
@media (max-width: 1100px) {
  .category-entry { flex-direction: column; gap: 8px; font-size: 12px; }
  .category-rail { gap: 10px; }
  .catalog-product-layout { gap: 28px; }
}
@media (max-width: 759px) {
  .app .topbar { padding: 12px 16px; }
  .app .top-row { margin-bottom: 12px; gap: 10px; }
  .app .brand strong { font-size: 18px; }
  .app .main { padding: 0 16px 96px; }
  .app .searchbar { height: 44px; }
  .app .searchbar input { font-size: 13px; }
  .app .catalog-search-submit { padding: 0 12px; font-size: 12px; }
  .discovery-heading { padding: 22px 0 18px; }
  .discovery-heading h1 { font-size: 26px; }
  .discovery-heading > a { font-size: 11px; }
  .category-rail { display: flex; overflow-x: auto; padding-bottom: 16px; gap: 10px; }
  .category-entry { flex: 0 0 88px; min-height: 104px; padding: 8px; }
  .category-entry img { width: 60px; height: 60px; }
  .app .home-chips-bar { gap: 22px; }
  .app .desktop-home-toolbar { padding: 16px 0; }
  .app .desktop-home-toolbar strong { font-size: 16px; }
  .app .desktop-home-toolbar > div > span { display: block; margin: 4px 0 0; font-size: 10px; }
  .app .desktop-sort { display: flex; }
  .app .desktop-sort button { min-width: 36px; padding: 4px 9px; font-size: 11px; }
  .app .feed, .catalog-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .app[data-view="explore"] .feed { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app .price-filter.visible { display: block; padding: 12px 0; margin-bottom: 16px; }
  .app .price-filter .price-head { justify-content: space-between; }
  .app .price-row { margin-top: 10px; }
  .catalog-save { width: 30px; height: 30px; right: 6px; top: 6px; }
  .catalog-body { padding-top: 9px; }
  .catalog-body h2 { font-size: 12px; min-height: 35px; margin-bottom: 8px; }
  .catalog-meta { font-size: 9px; gap: 6px; }
  .catalog-bottom strong { font-size: 15px; }
  .compare-toggle { font-size: 10px; gap: 4px; }
  .app .explore-search-shell h1 { font-size: 26px; }
  .app .explore-filter-strip { display: grid; gap: 16px; }
  .catalog-product .detail-page-header { padding: 10px 16px; grid-template-columns: 1fr auto 1fr; }
  .catalog-product .detail-page-back { font-size: 11px; }
  .product-brand { font-size: 16px; }
  .catalog-product-inner { padding: 0 16px 90px; }
  .product-breadcrumb { padding: 16px 0; font-size: 11px; }
  .catalog-product-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .product-gallery { position: static; }
  .product-main-image { max-height: 460px; }
  .product-information h1 { font-size: 24px; margin-bottom: 16px; }
  .product-price { font-size: 26px; }
  .product-actions { gap: 8px; }
  .product-actions .feed-action { padding: 8px 12px; }
  .related-products { padding-top: 32px; }
  .catalog-section-heading h2 { font-size: 19px; }
  .compare-tray { bottom: 10px; gap: 10px; width: max-content; padding: 10px; font-size: 12px; }
  #comparePreviews { display: none; }
  #openCompare { padding: 10px 12px; }
  .compare-dialog { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .catalog-image img { transition: none; } }
