/* Home usability pass (14/10/2026): filters, price-first cards, list cards on phones,
   bottom navigation, readable sizes and touch targets. Loaded after the other sheets. */

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Filters: category and store chips */
.deal-filters{display:flex;flex-direction:column;gap:8px;margin:0 0 16px}
.chip-row{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);mask-image:linear-gradient(90deg,#000 92%,transparent)}
.chip-row::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;min-height:40px;padding:8px 14px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#1e293b;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.chip:hover{border-color:#0f2b5b}
.chip[aria-pressed="true"]{background:#0f2b5b;border-color:#0f2b5b;color:#fff}
.chip .chip-count{font-weight:600;opacity:.75;margin-left:4px}

/* Alerts saved in this browser */
.alerts-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.alerts-bar:empty{display:none}
.alert-create,.alert-news,.alert-tag{min-height:40px;border-radius:999px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:8px 14px}
.alert-create{border:1px dashed #0f2b5b;background:#f1f5ff;color:#0f2b5b}
.alert-news{border:1px solid #f59e0b;background:#fef3c7;color:#92400e}
.alert-tag{border:1px solid #cbd5e1;background:#fff;color:#334155;display:inline-flex;align-items:center;gap:6px}
.alert-tag .alert-remove{border:0;background:none;color:#64748b;font-size:16px;line-height:1;min-width:28px;min-height:28px;cursor:pointer}
.alerts-note{font-size:12px;color:#64748b;width:100%}

/* Cards: price right under the title, notes small, meta in one line */
.deal-card .deal-title{margin-bottom:6px}
.deal-card .price-container{padding:6px 0 8px;margin-bottom:6px;border-top:0}
.deal-card .price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.deal-card .price-old{font-size:13px}
.deal-meta{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:12px;color:#64748b;margin:0 0 8px}
.deal-meta .deal-posted-at{display:inline;font-size:12px;margin:0;min-height:0;line-height:1.4}
.deal-meta .deal-shipping{display:inline;font-size:12px;margin:0;padding:0;border:0;background:none;min-height:0;line-height:1.4}
.deal-meta .deal-shipping:empty{display:none}
.deal-meta .deal-shipping:not(:empty)::before{content:"· ";color:#94a3b8}
.deal-clicks{font-size:12px;font-weight:700;color:#b45309;margin:0 0 6px}
.deal-clicks:empty{display:none}
.btn-share{position:absolute;right:52px;bottom:10px;width:36px;height:36px;border:1px solid #e2e8f0;border-radius:50%;background:#fff;color:#0f2b5b;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center}

/* Readable sizes (minimum 12px) */
.deal-category-label,.store-pill,.deal-posted-at,.deal-shipping,.price-installments,.deal-discount-note,.coupon-terms,.deal-card small{font-size:12px !important}

/* Touch targets */
.cat-tab-btn{min-height:44px}
.search-icon-btn{min-width:44px;min-height:44px}
.btn-fav{min-width:36px;min-height:36px}

/* Load more */
.load-more{display:flex;justify-content:center;margin:20px 0 8px}
.load-more button{min-height:48px;padding:12px 24px;border:1px solid #0f2b5b;border-radius:10px;background:#fff;color:#0f2b5b;font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.load-more button:hover{background:#0f2b5b;color:#fff}

/* Header tabs scroll with a visible fade instead of being cut */
.subnav-inner{overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}
.subnav-inner::-webkit-scrollbar{display:none}
.subnav-inner .cat-tab-btn{flex:0 0 auto}

/* Bottom navigation (phones only) */
.bottom-nav{display:none}

@media (max-width:640px){
  .top-bar{display:none}
  body{padding-bottom:68px}
  .bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid #e2e8f0;box-shadow:0 -4px 16px rgba(15,23,42,.08);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
  .bottom-nav a,.bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;border:0;background:none;color:#334155;font:inherit;font-size:11px;font-weight:700;text-decoration:none;cursor:pointer}
  .bottom-nav .bn-icon{font-size:20px;line-height:1}
  .bottom-nav [aria-current="page"]{color:#0f2b5b}
  .floating-coupon-alert{bottom:80px}

  /* List cards: image left, information right; 4-5 offers per screen */
  .deals-grid{grid-template-columns:1fr !important;gap:10px !important}
  .deal-card{display:grid !important;grid-template-columns:112px 1fr;align-items:start;padding-left:10px}
  .deal-card .deal-thumb-box{height:112px !important;width:112px;min-height:0;margin:10px 0;border-radius:10px;padding:0}
  .deal-card .deal-thumb-box img{height:100% !important;width:100%;object-fit:contain}
  .deal-card .discount-pill,.deal-card .ended-pill{top:4px;left:4px;font-size:12px;padding:2px 6px}
  .deal-card .store-pill{display:none}
  .deal-card .btn-fav{top:auto;bottom:4px;right:4px;width:32px;height:32px;min-width:32px;min-height:32px}
  .deal-card .btn-share{display:none}
  .deal-card .deal-card-body{padding:10px 12px 10px 10px}
  .deal-card .deal-category-label{display:none}
  .deal-card .deal-title{font-size:14px;line-height:1.3;-webkit-line-clamp:2;margin-bottom:4px}
  .deal-card .price-container{padding:2px 0 4px;margin:0}
  .deal-card .price-current{font-size:20px}
  .deal-card .price-installments,.deal-card .deal-discount-note{font-size:12px}
  .deal-card .community-bar{display:none}
  .deal-card .btn-deal-action{min-height:40px;padding:8px 10px;font-size:13px;margin-top:4px}
  .deal-card .coupon-slot{margin-bottom:4px}
}

/* Achados da curadoria (Temu, Mercado Livre) */
.curated-section{margin:28px 0}
.curated-section[hidden]{display:none}
.curated-section h2{font-size:24px;margin:0 0 6px;color:#0f172a}
.curated-intro{font-size:14px;color:#475569;margin:0 0 12px}
.curated-chips:empty{display:none}
.curated-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.curated-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden}
.curated-photo{position:relative;height:200px;background:#f8fafc;display:flex;align-items:center;justify-content:center}
.curated-photo img{max-width:90%;max-height:90%;object-fit:contain}
.curated-photo .store-pill{position:absolute;top:10px;right:10px}
.curated-photo .discount-pill{position:absolute;top:10px;left:10px}
.curated-body{display:flex;flex-direction:column;gap:6px;padding:14px;flex:1}
.curated-body .deal-title{font-size:15px;line-height:1.35;margin:0}
.curated-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.curated-price .price-current{font-size:22px;font-weight:800;color:#0f172a}
.curated-price .price-old{font-size:13px;color:#64748b;text-decoration:line-through}
.curated-note{font-size:12px;color:#64748b;margin:0}
.curated-body .btn-deal-action{margin-top:auto}
@media(max-width:640px){
  .curated-grid{grid-template-columns:1fr;gap:10px}
  .curated-card{display:grid;grid-template-columns:112px 1fr;padding-left:10px}
  .curated-photo{height:112px;width:112px;margin:10px 0;border-radius:10px}
  .curated-photo .store-pill{display:none}
  .curated-body{padding:10px 12px 10px 10px}
  .curated-body .deal-title{font-size:14px}
  .curated-price .price-current{font-size:20px}
}
