/* Light-mode overrides. theme.js selects this from the device preference unless overridden. */
html[data-theme="light"] {
  --background: #f5f7ff;
  --surface: #ffffff;
  --surface-low: #edf2ff;
  --text: #111a35;
  --muted: #63708f;
  --primary: #145bd7;
  --primary-bright: #2868db;
  --primary-soft: #3d73dd;

  --catalog-bg: #f5f7ff;
  --catalog-panel: rgba(255,255,255,.88);
  --catalog-blue: #2868db;
  --catalog-blue-bright: #2868db;
  --catalog-text: #111a35;
  --catalog-muted: #63708f;
  --catalog-line: rgba(35,57,105,.13);

  --deal-bg: #edf3ff;
  --deal-panel: rgba(255,255,255,.88);
  --deal-blue: #2868db;
  --deal-blue-bright: #2868db;
  --deal-text: #111a35;
  --deal-muted: #687493;
  --deal-line: rgba(35,57,105,.13);

  --product-bg: #f5f7ff;
  --product-panel: rgba(255,255,255,.9);
  --product-blue: #2868db;
  --product-blue-bright: #2868db;
  --product-text: #111a35;
  --product-muted: #687493;
  --product-line: rgba(35,57,105,.14);

  background: #f5f7ff;
  color-scheme: light;
}

/* Shared navigation */
html[data-theme="light"] .home-nav,
html[data-theme="light"] .category-page .home-nav,
html[data-theme="light"] .deals-page .home-nav,
html[data-theme="light"] .product-page .home-nav {
  border-bottom-color: rgba(37,59,105,.11);
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 30px rgba(31,53,102,.08);
}
html[data-theme="light"] .logo-type .logo-white { color: #111a35; }
html[data-theme="light"] .logo-type .logo-blue { color: #2868db; text-shadow: none; }
html[data-theme="light"] .primary-links { color: #687493; }
html[data-theme="light"] .primary-links a:hover,
html[data-theme="light"] .primary-links a:focus-visible { color: #111a35; }
html[data-theme="light"] .primary-links a.active { color: #145bd7; }
html[data-theme="light"] .home-country summary,
html[data-theme="light"] .home-language,
html[data-theme="light"] .theme-toggle {
  border-color: rgba(35,57,105,.14);
  background: rgba(238,242,252,.82);
  color: #415071;
}
html[data-theme="light"] .home-country summary:hover,
html[data-theme="light"] .home-country summary:focus-visible,
html[data-theme="light"] .home-country[open] summary,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  border-color: rgba(40,104,219,.35);
  background: #e8efff;
  color: #145bd7;
  box-shadow: 0 0 0 3px rgba(40,104,219,.08);
}
html[data-theme="light"] .home-language a { color: #687493; }
html[data-theme="light"] .home-language a:hover,
html[data-theme="light"] .home-language a:focus-visible { color: #111a35; }
html[data-theme="light"] .home-language a.active { background: #2868db; color: #fff; box-shadow: 0 4px 12px rgba(40,104,219,.2); }
html[data-theme="light"] .country-menu {
  border-color: rgba(35,57,105,.13);
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 45px rgba(31,53,102,.16);
}
html[data-theme="light"] .country-menu::before {
  border-color: rgba(35,57,105,.13);
  background: #fff;
}
html[data-theme="light"] .country-menu a { color: #687493; }
html[data-theme="light"] .country-menu a:hover,
html[data-theme="light"] .country-menu a:focus-visible,
html[data-theme="light"] .country-menu a.active { background: #edf3ff; color: #111a35; }
html[data-theme="light"] .country-check { color: #087f67; }

/* Home */
html[data-theme="light"] body.home-page { background: #f5f7ff; color: #111a35; }
html[data-theme="light"] .home-hero {
  background:
    radial-gradient(circle at 14% 18%,rgba(52,116,228,.16),transparent 32%),
    radial-gradient(circle at 86% 76%,rgba(145,105,214,.11),transparent 34%),
    linear-gradient(135deg,#f8faff 0%,#edf3ff 51%,#f7f2ff 100%);
}
html[data-theme="light"] .hero-grid { background-image: radial-gradient(rgba(37,72,144,.12) 1px,transparent 1px); }
html[data-theme="light"] .hero-orb-blue { background: rgba(69,125,232,.13); }
html[data-theme="light"] .hero-orb-purple { background: rgba(141,94,190,.1); }
html[data-theme="light"] .falling-icon { color: rgba(58,100,178,var(--opacity)); }
html[data-theme="light"] .hero-content h1,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .trend-copy h3,
html[data-theme="light"] .trend-empty h3 { color: #111a35; text-shadow: none; }
html[data-theme="light"] .hero-content h1 span { color: #2868db; text-shadow: 0 8px 24px rgba(40,104,219,.13); }
html[data-theme="light"] .hero-content > p,
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .trend-empty p { color: #63708f; }
html[data-theme="light"] .logo-mark .logo-mark-dark { display: none; }
html[data-theme="light"] .logo-mark .logo-mark-light { display: block; }
html[data-theme="light"] .hero-search,
html[data-theme="light"] .hero-stats {
  border-color: rgba(35,57,105,.13);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 50px rgba(31,53,102,.1);
}
html[data-theme="light"] .hero-search:focus-within { border-color: rgba(40,104,219,.52); box-shadow: 0 0 0 3px rgba(40,104,219,.1),0 18px 50px rgba(31,53,102,.1); }
html[data-theme="light"] .hero-search > svg { color: #687493; }
html[data-theme="light"] .hero-search input { color: #111a35; }
html[data-theme="light"] .hero-search input::placeholder { color: #7b87a3; }
html[data-theme="light"] .search-suggestions { border-color: rgba(35,57,105,.14); background: rgba(255,255,255,.98); box-shadow: 0 24px 65px rgba(31,53,102,.18),0 0 30px rgba(40,104,219,.06); }
html[data-theme="light"] .search-suggestion-option { color: #111a35; }
html[data-theme="light"] .search-suggestion-option:hover,
html[data-theme="light"] .search-suggestion-option:focus-visible,
html[data-theme="light"] .search-suggestion-option.is-active { border-color: rgba(40,104,219,.18); background: rgba(40,104,219,.07); }
html[data-theme="light"] .search-suggestion-image { border-color: rgba(35,57,105,.1); background: linear-gradient(145deg,#edf2ff,#f7f9ff); color: #2868db; }
html[data-theme="light"] .search-suggestion-copy strong { color: #111a35; }
html[data-theme="light"] .search-suggestion-copy small,
html[data-theme="light"] .search-suggestions-empty { color: #687493; }
html[data-theme="light"] .search-suggestion-price { color: #087c5b; }
html[data-theme="light"] .stat strong { color: #111a35; }
html[data-theme="light"] .stat span { color: #2868db; }
html[data-theme="light"] .stat-divider { background: rgba(35,57,105,.13); }
html[data-theme="light"] .trend-card,
html[data-theme="light"] .category-card {
  border-color: rgba(35,57,105,.11);
  background: rgba(255,255,255,.8);
  box-shadow: 0 12px 35px rgba(31,53,102,.07);
}
html[data-theme="light"] .trend-card-featured { border-color: rgba(40,104,219,.35); }
html[data-theme="light"] .trend-card:hover,
html[data-theme="light"] .trend-card:focus-visible,
html[data-theme="light"] .category-card:hover,
html[data-theme="light"] .category-card:focus-visible { border-color: rgba(40,104,219,.5); box-shadow: 0 16px 40px rgba(31,73,160,.13); }
html[data-theme="light"] .product-picture { background: linear-gradient(145deg,#eef2fa,#e2e8f4); }
html[data-theme="light"] .price-row strong,
html[data-theme="light"] .best-store b,
html[data-theme="light"] .category-card { color: #111a35; }
html[data-theme="light"] .category-card-copy strong { color: #111a35; }
html[data-theme="light"] .category-card-copy small { color: #2868db; }
html[data-theme="light"] .category-card-shade { background: linear-gradient(180deg,rgba(255,255,255,.02) 8%,rgba(255,255,255,.28) 50%,rgba(255,255,255,.97) 100%),linear-gradient(90deg,rgba(86,133,231,.11),transparent 62%); }
html[data-theme="light"] .category-card-image-dark { display: none; }
html[data-theme="light"] .category-card-image-light { display: block; opacity: .92; filter: saturate(.9) contrast(1.02); }
html[data-theme="light"] .category-card:hover .category-card-image-light,
html[data-theme="light"] .category-card:focus-visible .category-card-image-light { opacity: 1; }
html[data-theme="light"] .best-store b { border-color: rgba(35,57,105,.13); background: #f4f6fb; }
html[data-theme="light"] .categories-section { border-color: rgba(35,57,105,.09); background: rgba(231,237,250,.55); }
html[data-theme="light"] .home-footer { background: #fff; color: #687493; }

/* Category catalog */
html[data-theme="light"] body.category-page {
  background:
    radial-gradient(circle at 72% 21%,rgba(65,118,220,.13),transparent 34%),
    linear-gradient(135deg,#f8faff 0%,#edf3ff 49%,#f8faff 100%);
  color: #111a35;
}
html[data-theme="light"] .currency-column { color: rgba(38,79,154,.17); }
html[data-theme="light"] .category-ambient { background-image: radial-gradient(rgba(40,104,219,.1) 1px,transparent 1px); }
html[data-theme="light"] .category-intro h1,
html[data-theme="light"] .catalog-card h2 { color: #111a35; }
html[data-theme="light"] .category-intro h1 span { background: linear-gradient(90deg,#173f98 0%,#2868db 72%); background-clip: text; -webkit-background-clip: text; }
html[data-theme="light"] .catalog-card { background: rgba(255,255,255,.82); box-shadow: 0 12px 40px rgba(31,53,102,.08); }
html[data-theme="light"] .catalog-card:hover { box-shadow: 0 18px 45px rgba(31,73,160,.14); }
html[data-theme="light"] .catalog-card li a { color: #63708f; }
html[data-theme="light"] .catalog-card li a:hover,
html[data-theme="light"] .catalog-card li a:focus-visible { color: #111a35; }
html[data-theme="light"] .catalog-empty-items { color: #7a86a0; }
html[data-theme="light"] .catalog-icon { border-color: rgba(40,104,219,.2); background: #eaf0ff; }
html[data-theme="light"] .catalog-image { background: #e7ecf5; }
html[data-theme="light"] .catalog-image::after { background: linear-gradient(to top,rgba(255,255,255,.72),transparent 72%); }
html[data-theme="light"] .catalog-image .catalog-image-dark { display: none; }
html[data-theme="light"] .catalog-image .catalog-image-light { display: block; opacity: .9; mix-blend-mode: normal; filter: saturate(.9) contrast(1.02); }
html[data-theme="light"] .catalog-card:hover .catalog-image .catalog-image-light { opacity: 1; }
html[data-theme="light"] .catalog-image-empty { background: radial-gradient(circle at 50% 35%,rgba(40,104,219,.14),transparent 56%),#edf2fa; }
html[data-theme="light"] .catalog-footer { color: #687493; }
html[data-theme="light"] .catalog-footer nav a { color: #687493; }
html[data-theme="light"] .catalog-footer nav a:hover,
html[data-theme="light"] .catalog-footer nav a:focus-visible { color: #111a35; }

/* Hot deals */
html[data-theme="light"] body.deals-page {
  background:
    radial-gradient(circle at 82% 8%,rgba(53,111,220,.15),transparent 30%),
    linear-gradient(145deg,#f8faff 0%,#edf3ff 55%,#e8efff 100%);
  color: #111a35;
}
html[data-theme="light"] .deal-currency { color: rgba(38,79,154,var(--opacity)); }
html[data-theme="light"] .deals-ambient { background: radial-gradient(circle at 17% 24%,rgba(67,123,225,.13),transparent 31%),radial-gradient(circle at 82% 65%,rgba(113,89,196,.09),transparent 35%); }
html[data-theme="light"] .deal-hero,
html[data-theme="light"] .deals-empty,
html[data-theme="light"] .deal-card { background: rgba(255,255,255,.84); box-shadow: 0 18px 50px rgba(31,53,102,.1); }
html[data-theme="light"] .deal-hero-shade { background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 38%,rgba(255,255,255,.77) 59%,rgba(255,255,255,.14) 100%),linear-gradient(0deg,rgba(240,245,255,.4),transparent 55%); }
html[data-theme="light"] .deal-hero h1,
html[data-theme="light"] .deals-empty h1,
html[data-theme="light"] .deals-heading h2,
html[data-theme="light"] .deal-card-copy h3,
html[data-theme="light"] .deal-new-price strong,
html[data-theme="light"] .deal-card-prices strong { color: #111a35; text-shadow: none; }
html[data-theme="light"] .deal-hero-copy > p { color: #63708f; }
html[data-theme="light"] .deal-old-price del,
html[data-theme="light"] .deal-card-prices del { color: #7d88a1; }
html[data-theme="light"] .deal-card-image { background: #e7ecf5; }
html[data-theme="light"] .deal-card-image img { opacity: .82; }
html[data-theme="light"] .deals-pagination a { background: rgba(255,255,255,.88); border-color: #cbd7f3; color: #15203d; }
html[data-theme="light"] .deals-pagination { color: #65718e; }
html[data-theme="light"] .deals-footer { border-color: rgba(35,57,105,.1); background: rgba(255,255,255,.78); color: #687493; }
html[data-theme="light"] .deals-footer nav a:hover { color: #111a35; }

/* Product details */
html[data-theme="light"] body.product-page {
  background:
    radial-gradient(circle at 73% 13%,rgba(94,108,210,.11),transparent 31%),
    radial-gradient(circle at 18% 42%,rgba(40,104,219,.09),transparent 30%),
    linear-gradient(135deg,#f8faff 0%,#edf3ff 48%,#f5f1ff 100%);
  color: #111a35;
}
html[data-theme="light"] .product-currency-column { color: rgba(38,79,154,.16); }
html[data-theme="light"] .product-ambient { background-image: radial-gradient(rgba(40,104,219,.09) 1px,transparent 1px); }
html[data-theme="light"] .product-breadcrumb span { color: #374563; }
html[data-theme="light"] .product-breadcrumb a:hover,
html[data-theme="light"] .product-breadcrumb a:focus-visible { color: #111a35; }
html[data-theme="light"] .product-visual { background: linear-gradient(145deg,rgba(255,255,255,.92),rgba(229,235,249,.95)); box-shadow: 0 25px 65px rgba(31,53,102,.12); }
html[data-theme="light"] .product-visual img { filter: drop-shadow(0 25px 30px rgba(31,53,102,.2)); }
html[data-theme="light"] .live-catalog-chip { background: rgba(225,250,242,.92); color: #087f67; }
html[data-theme="light"] .product-summary h1,
html[data-theme="light"] .best-price-value,
html[data-theme="light"] .no-product-offers strong,
html[data-theme="light"] .comparison-heading h2,
html[data-theme="light"] .retailer-cell strong,
html[data-theme="light"] .current-price { color: #111a35; }
html[data-theme="light"] .product-identity i { background: rgba(35,57,105,.28); }
html[data-theme="light"] .best-price-panel { border-color: rgba(40,104,219,.2); background: linear-gradient(135deg,rgba(255,255,255,.95),rgba(230,236,255,.9)); box-shadow: 0 18px 50px rgba(31,53,102,.1); }
html[data-theme="light"] .best-price-heading > div > span { color: #374563; }
html[data-theme="light"] .best-price-change del,
html[data-theme="light"] .previous-price-line { color: #7c879f; }
html[data-theme="light"] .previous-price-line small,
html[data-theme="light"] .previous-price-missing,
html[data-theme="light"] .missing-price { color: #8a94aa; }
html[data-theme="light"] .comparison-table-wrap { background: rgba(255,255,255,.85); box-shadow: 0 20px 55px rgba(31,53,102,.09); }
html[data-theme="light"] .comparison-table th { background: rgba(231,237,250,.7); color: #6f7b96; }
html[data-theme="light"] .comparison-table td { border-bottom-color: rgba(35,57,105,.09); color: #374563; }
html[data-theme="light"] .comparison-table tbody tr:hover { background: rgba(40,104,219,.045); }
html[data-theme="light"] .comparison-table tbody tr.best-row { background: linear-gradient(90deg,rgba(16,156,119,.08),rgba(40,104,219,.045)); }
html[data-theme="light"] .history-heading h2,
html[data-theme="light"] .history-empty strong { color: #111a35; }
html[data-theme="light"] .history-panel { background: rgba(255,255,255,.85); box-shadow: 0 20px 55px rgba(31,53,102,.09); }
html[data-theme="light"] .history-legend button { color: #4f5d7b; }
html[data-theme="light"] .history-legend button:hover,
html[data-theme="light"] .history-legend button:focus-visible { color: #111a35; }
html[data-theme="light"] .history-chart-wrap { border-color: rgba(35,57,105,.12); background: linear-gradient(180deg,rgba(243,247,255,.96),rgba(231,237,250,.56)); }
html[data-theme="light"] .history-grid-line { stroke: rgba(35,57,105,.1); }
html[data-theme="light"] .history-axis-line { stroke: rgba(35,57,105,.2); }
html[data-theme="light"] .history-axis-text { fill: #78839b; }
html[data-theme="light"] .history-axis-title { fill: #596681; }
html[data-theme="light"] .history-point { fill: #f6f8ff; }
html[data-theme="light"] .history-hover-guide { stroke: rgba(35,57,105,.3); }
html[data-theme="light"] .history-tooltip { border-color: rgba(35,57,105,.15); background: rgba(255,255,255,.98); color: #111a35; box-shadow: 0 12px 35px rgba(31,53,102,.18); }
html[data-theme="light"] .history-empty { background: rgba(255,255,255,.68); }
html[data-theme="light"] .product-footer { background: rgba(255,255,255,.8); color: #687493; }
html[data-theme="light"] .product-footer nav a:hover,
html[data-theme="light"] .product-footer nav a:focus-visible { color: #111a35; }

/* Product listing */
html[data-theme="light"] body.search-page {
  --search-panel: rgba(255,255,255,.82);
  --search-panel-strong: rgba(255,255,255,.96);
  --search-text: #111a35;
  --search-muted: #687493;
  --search-line: rgba(35,57,105,.13);
  --search-blue: #2868db;
  --search-blue-bright: #2868db;
  --search-green: #087f67;
  background:
    radial-gradient(circle at 76% 12%,rgba(70,112,206,.14),transparent 31%),
    radial-gradient(circle at 13% 68%,rgba(51,105,201,.08),transparent 35%),
    linear-gradient(135deg,#f8faff 0%,#edf3ff 54%,#f5f1ff 100%);
  color: #111a35;
}
html[data-theme="light"] .search-ambient { background-image: radial-gradient(rgba(40,104,219,.09) 1px,transparent 1px); }
html[data-theme="light"] .search-faller { color: rgba(38,79,154,var(--opacity)); }
html[data-theme="light"] .search-hero { border-color: rgba(35,57,105,.12); background: linear-gradient(135deg,rgba(255,255,255,.88),rgba(239,244,255,.76)); box-shadow: 0 25px 70px rgba(31,53,102,.09); }
html[data-theme="light"] .search-hero h1,
html[data-theme="light"] .sidebar-heading h2,
html[data-theme="light"] .results-toolbar h2,
html[data-theme="light"] .result-name,
html[data-theme="light"] .results-empty h2 { color: #111a35; }
html[data-theme="light"] .search-hero p { color: #687493; }
html[data-theme="light"] .results-search { border-color: rgba(35,57,105,.14); background: rgba(255,255,255,.82); }
html[data-theme="light"] .results-search:focus-within { border-color: rgba(40,104,219,.55); background: #fff; box-shadow: 0 0 0 3px rgba(40,104,219,.09); }
html[data-theme="light"] .results-search input { color: #111a35; }
html[data-theme="light"] .results-search input::placeholder { color: #7b87a3; }
html[data-theme="light"] .public-pagination a { border-color: rgba(40,104,219,.2); background: #edf3ff; color: #2868db; }
html[data-theme="light"] .public-pagination span { color: #687493; }
html[data-theme="light"] .hero-search .photo-search-button,
html[data-theme="light"] .results-search .photo-search-button { border-color: rgba(40,104,219,.2); background: #edf3ff; color: #2868db; }
html[data-theme="light"] .hero-search .photo-search-button:hover,
html[data-theme="light"] .hero-search .photo-search-button:focus-visible,
html[data-theme="light"] .results-search .photo-search-button:hover,
html[data-theme="light"] .results-search .photo-search-button:focus-visible { border-color: rgba(40,104,219,.48); background: #e2ebff; color: #174fae; }
html[data-theme="light"] .visual-search-backdrop { background: rgba(29,39,67,.48); }
html[data-theme="light"] .visual-search-dialog { border-color: rgba(35,57,105,.15); background: linear-gradient(145deg,#fff,#f5f7fd); box-shadow: 0 35px 100px rgba(31,53,102,.28); color: #111a35; }
html[data-theme="light"] .visual-search-header { border-color: rgba(35,57,105,.1); }
html[data-theme="light"] .visual-search-mark { border-color: rgba(40,104,219,.2); background: linear-gradient(145deg,#eaf0ff,#efeaff); color: #2868db; }
html[data-theme="light"] .visual-search-header p,
html[data-theme="light"] .visual-preview-copy p,
html[data-theme="light"] .visual-identification p { color: #687493; }
html[data-theme="light"] .visual-search-close { border-color: rgba(35,57,105,.13); background: #f3f5fa; color: #687493; }
html[data-theme="light"] .visual-search-close:hover,
html[data-theme="light"] .visual-search-close:focus-visible { color: #111a35; }
html[data-theme="light"] .visual-drop-zone { border-color: rgba(40,104,219,.28); background: radial-gradient(circle at 50% 15%,rgba(76,126,224,.12),transparent 48%),#f8faff; }
html[data-theme="light"] .visual-drop-zone:hover,
html[data-theme="light"] .visual-drop-zone:focus-visible,
html[data-theme="light"] .visual-drop-zone.is-dragging { border-color: #2868db; background: radial-gradient(circle at 50% 15%,rgba(76,126,224,.17),transparent 50%),#f4f7ff; }
html[data-theme="light"] .visual-drop-zone > span:not(.visual-upload-icon),
html[data-theme="light"] .visual-drop-zone > small { color: #6e7a98; }
html[data-theme="light"] .visual-upload-actions button.secondary { border-color: rgba(35,57,105,.15); background: #f0f3fa; color: #4f5e7d; }
html[data-theme="light"] .visual-preview-frame { border-color: rgba(35,57,105,.14); background: #edf1f8; }
html[data-theme="light"] .visual-identification { border-color: rgba(40,104,219,.17); background: #edf3ff; }
html[data-theme="light"] .visual-match-card { border-color: rgba(35,57,105,.12); background: #fff; color: #111a35; box-shadow: 0 10px 30px rgba(31,53,102,.06); }
html[data-theme="light"] .visual-match-card:first-child { border-color: rgba(40,104,219,.4); }
html[data-theme="light"] .visual-match-price small,
html[data-theme="light"] .visual-confidence small,
html[data-theme="light"] .visual-privacy-note { color: #687493; }
html[data-theme="light"] .search-sidebar,
html[data-theme="light"] .results-empty { border-color: rgba(35,57,105,.12); background: rgba(255,255,255,.8); box-shadow: 0 18px 55px rgba(31,53,102,.08); }
html[data-theme="light"] .sidebar-heading { border-bottom-color: rgba(35,57,105,.09); }
html[data-theme="light"] .search-sidebar nav a { color: #65718d; }
html[data-theme="light"] .search-sidebar nav a:hover,
html[data-theme="light"] .search-sidebar nav a:focus-visible { color: #111a35; background: rgba(40,104,219,.06); }
html[data-theme="light"] .search-sidebar nav a.active { border-color: rgba(40,104,219,.17); background: linear-gradient(90deg,rgba(40,104,219,.13),rgba(40,104,219,.04)); color: #145bd7; }
html[data-theme="light"] .sort-form select { border-color: rgba(35,57,105,.13); background: #fff; color: #374563; color-scheme: light; }
html[data-theme="light"] .result-card { border-color: rgba(35,57,105,.11); background: linear-gradient(160deg,rgba(255,255,255,.94),rgba(241,245,255,.88)); box-shadow: 0 12px 42px rgba(31,53,102,.07); }
html[data-theme="light"] .result-card:hover,
html[data-theme="light"] .result-card:focus-visible { border-color: rgba(40,104,219,.48); box-shadow: 0 18px 50px rgba(31,73,160,.15); }
html[data-theme="light"] .result-card.is-opening { border-color: #2868db; box-shadow: 0 0 0 3px rgba(40,104,219,.12),0 0 44px rgba(40,104,219,.35),0 24px 70px rgba(31,73,160,.18); }
html[data-theme="light"] .result-image { background: radial-gradient(circle at 50% 40%,rgba(71,116,212,.11),transparent 54%),#e8edf7; }
html[data-theme="light"] .result-meta { color: #77839e; }
html[data-theme="light"] .result-meta > strong,
html[data-theme="light"] .result-open { color: #2868db; }
html[data-theme="light"] .result-pricing del { color: #7d88a1; }
html[data-theme="light"] .result-pricing strong { color: #087f67; }
html[data-theme="light"] .result-pricing strong small { color: #687493; }
html[data-theme="light"] .result-availability { border-color: rgba(184,41,65,.24); background: rgba(255,237,240,.94); color: #b82941; }
html[data-theme="light"] .result-availability.unknown { border-color: rgba(93,105,137,.24); background: rgba(241,244,250,.96); color: #5d6989; }
html[data-theme="light"] .result-card-unavailable .result-pricing strong { color: #b82941; }
html[data-theme="light"] .result-open { border-top-color: rgba(35,57,105,.09); }
html[data-theme="light"] .search-footer { border-color: rgba(35,57,105,.1); background: rgba(255,255,255,.82); color: #687493; }
html[data-theme="light"] .search-footer nav a:hover,
html[data-theme="light"] .search-footer nav a:focus-visible { color: #111a35; }

@media (max-width:680px) {
  html[data-theme="light"] .deal-hero-shade,
  html[data-theme="light"] .deal-hero-shade[aria-hidden="true"] { background: linear-gradient(0deg,#fff 0%,rgba(255,255,255,.97) 57%,rgba(255,255,255,.1) 100%); }
}

/* Shared narrow-screen safeguards for every public page. */
body.home-page,
body.category-page,
body.deals-page,
body.product-page,
body.search-page { min-width: 0; }

body.home-page img,
body.category-page img,
body.deals-page img,
body.product-page img,
body.search-page img { max-width: 100%; }

.hero-content h1,
.trend-copy h3,
.category-card-copy strong,
.category-intro h1,
.catalog-card h2,
.deal-hero h1,
.deal-card-copy h3,
.product-summary h1,
.result-name,
.visual-search-header h2,
.visual-match-name { overflow-wrap: anywhere; }

@media (max-width:860px) {
  .home-country summary {
    min-width: 44px;
    height: 44px;
  }
  .home-language { height: 44px; }
  .home-language a {
    min-width: 36px;
    height: 36px;
  }
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
  .country-menu { top: calc(100% + 5px); }
}

@media (max-width:600px) {
  .hero-search input,
  .results-search input,
  .faq-search input { height: 100%; }

  .home-footer p,
  .catalog-footer p,
  .deals-footer p,
  .product-footer p,
  .search-footer p,
  .comparison-heading > p { white-space: normal; text-align: center; }

  .comparison-heading > p { min-width: 0; }
}

@media (max-width:360px) {
  .nav-inner { gap: 8px; padding-inline: 10px; }
  .nav-actions { gap: 4px; }
  .logo-mark,
  .logo-mark img { width: 36px; height: 36px; }
  .home-country summary { width: 44px; min-width: 44px; height: 44px; justify-content: center; padding: 0; }
  .home-country .country-name,
  .home-country .country-chevron { display: none; }
  .home-language { height: 44px; }
  .home-language a { min-width: 30px; height: 36px; padding-inline: 6px; font-size: 10px; }
  .theme-toggle { width: 44px; height: 44px; }

  .hero-search { gap: 3px; padding: 5px; }
  .hero-search > svg { width: 18px; height: 18px; margin-inline: 5px; }
  .hero-search input { padding-inline: 3px; }
  .hero-search > button:not(.photo-search-button) { padding-inline: 10px; font-size: 10px; }
  .hero-search .photo-search-button { width: 42px; height: 42px; flex-basis: 42px; }
  .hero-stats { padding-inline: 4px; }
  .stat span { white-space: normal; text-align: center; font-size: 7px; }

  .results-search { height: 54px; gap: 4px; padding-inline: 4px; }
  [dir="rtl"] .results-search { padding-inline: 4px; }
  .results-search > svg { width: 16px; height: 16px; }
  .results-search button:not(.photo-search-button) { padding-inline: 9px; font-size: 10px; }
  .results-search .photo-search-button { width: 42px; height: 42px; flex-basis: 42px; }
  .sort-form { gap: 6px; }
  .sort-form label { white-space: normal; }
  .sort-form select { min-width: 0; flex: 1; }

  .visual-search-modal { padding: 8px; }
  .visual-upload-view,
  .visual-preview-view,
  .visual-results-view { padding: 16px; }
  .visual-drop-zone { min-height: 290px; }
}
/* One opaque footer surface across every shopper route and both themes. */
html body :is(.home-footer, .catalog-footer, .product-footer, .deals-footer, .search-footer) {
  background: #05092f;
  color: #aeb2ce;
  border-top: 1px solid rgba(153,176,235,.14);
}
html body :is(.home-footer, .catalog-footer, .product-footer, .deals-footer, .search-footer) nav a {
  color: inherit;
  font-size: 14px;
}
html[data-theme="light"] body :is(.home-footer, .catalog-footer, .product-footer, .deals-footer, .search-footer) {
  background: #fff;
  color: #687493;
  border-top-color: rgba(35,57,105,.1);
}
html body :is(.home-footer, .catalog-footer, .product-footer, .deals-footer, .search-footer) nav a:is(:hover, :focus-visible) {
  color: #fff;
}
html[data-theme="light"] body :is(.home-footer, .catalog-footer, .product-footer, .deals-footer, .search-footer) nav a:is(:hover, :focus-visible) {
  color: #111a35;
}

/* Retailer comparison cards (below 820px) in light mode. */
@media (max-width:820px) {
  html[data-theme="light"] .comparison-table tr { background: #fff; border-color: #e2e8f5; box-shadow: 0 14px 32px rgba(31,53,102,.08); }
  html[data-theme="light"] .comparison-table tbody tr:hover { background: #fff; }
  html[data-theme="light"] .comparison-table tbody tr.best-row {
    border-color: rgba(16,156,119,.42);
    background: linear-gradient(150deg,rgba(16,156,119,.09),#fff 58%);
    box-shadow: inset 3px 0 0 #109c77,0 14px 32px rgba(16,156,119,.1);
  }
  html[dir="rtl"][data-theme="light"] .comparison-table tbody tr.best-row { box-shadow: inset -3px 0 0 #109c77,0 14px 32px rgba(16,156,119,.1); }
  html[data-theme="light"] .comparison-table td:first-child { border-bottom-color: rgba(35,57,105,.1); }
  html[data-theme="light"] .comparison-table .availability { border-color: rgba(93,105,137,.22); background: #f1f4fa; }
  html[data-theme="light"] .comparison-table .availability.in-stock { border-color: rgba(16,156,119,.26); background: rgba(16,156,119,.08); }
  html[data-theme="light"] .comparison-table .availability.unavailable { border-color: rgba(184,41,65,.24); background: rgba(184,41,65,.07); }
}
