/* ===== MAIN CONTENT ===== */
.shop-main { padding: 1.5rem; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.results-info { font-size: 0.82rem; color: #888; }
.results-info strong { color: white; }
.sort-select { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 8px 12px; font-family: "Barlow", sans-serif; font-size: 0.82rem; border-radius: 2px; outline: none; cursor: pointer; }
.sort-select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sort-select option { background: var(--dark2); }

/* CATEGORY PILLS */
.cat-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cat-pill { padding: 7px 16px; border-radius: 2px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #888; transition: all 0.2s; font-family: "Barlow", sans-serif; }
.cat-pill.active, .cat-pill:hover { background: var(--red); border-color: var(--red); color: white; }
.cat-pill:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* PRODUCTS GRID */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: rgba(255,255,255,0.04); }
.product-card-loja { background: var(--dark2); display: flex; flex-direction: column; transition: background 0.25s; position: relative; overflow: hidden; }
.product-card-loja:hover { background: #282828; }
.product-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 1px; }
.badge-new { background: var(--red); color: white; }
.badge-promo { background: #F57F17; color: white; }
.badge-esgotado { background: #555; color: #ccc; }
.product-img-wrap { aspect-ratio: 1; background: #1e1e1e; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.04); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; transition: transform 0.3s; display: block; }
.product-card-loja:hover .product-img-wrap img { transform: scale(1.04); }
.product-emoji-placeholder { font-size: 4rem; }
.product-info { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-brand-label { font-size: 0.68rem; color: var(--red-light); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.3rem; }
.product-name-label { font-size: 0.9rem; font-weight: 600; color: #ddd; line-height: 1.4; margin-bottom: 0.5rem; flex: 1; }
.product-compat { font-size: 0.72rem; color: #666; margin-bottom: 0.75rem; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--white); }
.product-price-old { font-size: 0.78rem; color: #666; text-decoration: line-through; margin-bottom: 2px; }
.btn-add { background: var(--red); color: white; border: none; padding: 8px 14px; font-family: "Barlow", sans-serif; font-size: 0.78rem; font-weight: 700; cursor: pointer; border-radius: 2px; transition: background 0.2s; white-space: nowrap; }
.btn-add:hover { background: var(--red-dark); }
.btn-add:disabled { background: #444; cursor: default; }
.btn-add:focus-visible { outline: 2px solid white; outline-offset: 2px; }

/* PAGINATION */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 2rem; flex-wrap: wrap; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #aaa; font-size: 0.82rem; cursor: pointer; border-radius: 2px; transition: all 0.2s; font-family: "Barlow", sans-serif; }
.page-btn:hover { border-color: var(--red); color: white; }
.page-btn.active { background: var(--red); border-color: var(--red); color: white; font-weight: 700; }
.page-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 4rem 2rem; color: #666; grid-column: 1 / -1; }
.empty-state span { font-size: 3rem; display: block; margin-bottom: 1rem; }
.empty-state p { font-size: 0.95rem; }

@media (max-width: 640px) {
  .shop-main { padding: 1rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-pills { gap: 0.4rem; }
  .cat-pill { padding: 6px 12px; font-size: 0.72rem; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) { .products-grid { grid-template-columns: 1fr; } }
