/* Shared responsive polish for the shop, color cards, sign-in and Android WebView. */
#categoryTabs { display:flex; flex-wrap:wrap; overflow:visible; gap:10px; }
#categoryTabs button, #categoryTabs a { white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
#categoryTabs a { text-decoration:none; border:1px solid var(--line); border-radius:20px; padding:10px 18px; color:var(--ink); background:white; }
#categoryTabs a.active { background:var(--green); color:white; border-color:var(--green); }
#categoryTabs .catalog-color-tab { display:flex; align-items:center; justify-content:center; border-color:var(--green); background:var(--ui-tint,#eef6e9); color:ButtonText; font-weight:800; }
.catalog-color-entry { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:18px 0; padding:18px 22px; border:2px solid var(--green,#12372a); border-radius:18px; background:var(--ui-tint,#eef6e9); color:var(--green,#12372a); text-decoration:none; font-size:19px; font-weight:800; line-height:1.5; }
.catalog-color-entry::after { content:'↗'; flex-shrink:0; font-size:26px; }
#heroColorCardsLink { display:inline-flex; padding:12px 18px; margin-top:16px; font-size:17px; font-weight:800; border:1px solid currentColor; border-radius:12px; }
@media(max-width:720px) {
  .topbar .language-control { font-size:12px; gap:3px; }
  .topbar .language-select, .topbar .language-control select { font-size:14px; min-height:36px; max-width:90px; padding:6px; }
  #categoryTabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding-bottom:8px; }
  #categoryTabs button, #categoryTabs a { width:100%; min-height:46px; padding:10px 8px; font-size:15px; border-radius:13px; text-align:center; }
  .catalog-color-entry { font-size:17px; margin:16px 0; padding:15px 16px; border-radius:14px; }
  /* Keep two products per row even on <=410px screens and older WebViews. */
  #productGrid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #productGrid .product-card { min-width:0; border-radius:16px; }
  #productGrid .product-image { height:0; padding-top:100%; aspect-ratio:auto; }
  #productGrid .product-image img, #productGrid .product-image .placeholder { position:absolute; inset:0; width:100%; height:100%; }
  #productGrid .product-image img { object-fit:contain; background:var(--paper,#fff); }
  #productGrid .product-body { padding:10px; }
  #productGrid .product-meta { font-size:11px; gap:3px; flex-wrap:wrap; }
  #productGrid .product-meta span:last-child { display:none; }
  #productGrid .product-body h3 { font-size:14px; line-height:1.4; height:40px; margin:6px 0; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  #productGrid .quote-price-line { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
  #productGrid .quote-price-line strong { font-size:12px; line-height:1.5; }
  #productGrid .quote-price-line span { font-size:11px; }
  #productGrid .add-btn { font-size:14px; min-height:44px; padding:9px 4px; margin-top:8px; border-radius:10px; }
  #productGrid .badge { left:6px; top:6px; font-size:10px; padding:3px 5px; }
}
@media(min-width:721px) { #categoryTabs button, #categoryTabs a { max-width:320px; } }
