/*
 * produtos.css — Página "Produtos" (slug produtos) — VISUAL ESTÁTICO.
 * Carregado via ai_theme_enqueue_assets() quando is_page('produtos').
 * Header/footer têm CSS próprio. Tokens no :root de style.css.
 */

.pr-page { font-family: var(--tf-font); color: var(--tf-navy); }
.pr-page a { text-decoration: none; }
.pr-page a:hover { text-decoration: none; }

@keyframes tfrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow--gold { color: var(--tf-yellow); }
.eyebrow-bar { width: 26px; height: 2px; background: var(--tf-yellow); }

/* ===== HERO ===== */
.pr-hero { position: relative; background: var(--tf-navy); overflow: hidden; }
.pr-hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pr-hero-ring { position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 80px solid rgba(0, 78, 168, 0.28); right: -240px; top: -260px; }
.pr-hero-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 60px); }
.pr-hero-inner { position: relative; max-width: var(--tf-container); margin: 0 auto; padding: 150px 32px 72px; animation: tfrise .7s ease both; }
.pr-hero-title { font-family: var(--tf-font); font-weight: 700; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; color: #fff; margin: 20px 0 0; max-width: 760px; }
.pr-hero-sub { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: #c3c8ee; margin: 20px 0 0; max-width: 560px; }

/* ===== CATÁLOGO ===== */
.pr-catalog { background: var(--tf-light); border-top: 1px solid var(--tf-border-2); }
.pr-inner { max-width: var(--tf-container); margin: 0 auto; padding: 64px 32px 96px; }

/* Toolbar */
.pr-toolbar { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.pr-field { display: flex; flex-direction: column; gap: 7px; }
.pr-field.search { flex: 1; }
.pr-field--select { flex: none; width: 190px; }
.pr-field-label { font-size: 12px; font-weight: 600; color: var(--tf-muted); }
.pr-search-wrap { position: relative; display: block; }
.pr-search-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9096b8; pointer-events: none; display: flex; }
.pr-input {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--tf-font);
  font-size: 14.5px;
  color: var(--tf-navy);
  background: #fff;
  border: 1.5px solid #e4e6f1;
  border-radius: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pr-search-wrap .pr-input { padding-left: 42px; }
.pr-input::placeholder { color: #9096b8; }
.pr-input:focus { outline: none; border-color: var(--tf-blue); box-shadow: 0 0 0 3px rgba(0, 78, 168, 0.14); }
.pr-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c6187' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Chips */
.pr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pr-chip {
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--tf-font);
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid #e4e6f1;
  background: #fff;
  color: #2a2f5c;
  transition: all .15s ease;
}
.pr-chip:hover { border-color: #c9cee4; }
.pr-chip.is-active { border-color: var(--tf-navy); background: var(--tf-navy); color: #fff; }

.pr-result-label { font-size: 13.5px; color: var(--tf-muted-2); margin: 0 0 20px; }

/* Lista de cards */
.pr-list { display: flex; flex-direction: column; gap: 14px; }
.pr-card {
  display: grid;
  grid-template-columns: 120px 1.35fr 1.5fr auto;
  grid-template-areas: "img id compat action";
  align-items: center;
  gap: 26px;
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 14px 36px -30px rgba(10, 20, 107, 0.55);
}
.pr-card-img { grid-area: img; position: relative; width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background: #f2f4fc; border: 1px solid var(--tf-border); flex: none; }
.pr-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pr-card-id { grid-area: id; min-width: 0; }
.pr-card-size { font-weight: 800; font-size: 22px; line-height: 1.1; color: var(--tf-navy); letter-spacing: -0.01em; }
.pr-card-model { font-size: 14px; font-weight: 600; color: #2a2f5c; margin-top: 3px; }
.pr-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pr-badge { font-size: 11.5px; padding: 4px 9px; border-radius: 7px; }
.pr-badge--sku { font-weight: 600; color: var(--tf-muted-2); background: #f2f4fc; border: 1px solid #e4e6f1; }
.pr-badge--ls { font-weight: 700; color: var(--tf-navy); background: #eef0f7; border: 1px solid #dfe3f2; }
.pr-badge--xl { font-weight: 800; letter-spacing: 0.03em; color: var(--tf-navy); background: var(--tf-yellow); }
.pr-card-compat { grid-area: compat; min-width: 0; }
.pr-compat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tf-muted-3); margin-bottom: 9px; }
.pr-compat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-app { font-size: 12px; font-weight: 500; color: #2a2f5c; background: var(--tf-light); border: 1px solid #e7e9f3; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pr-app-more { font-size: 12px; font-weight: 500; color: var(--tf-muted-3); padding: 4px 4px; }
.pr-card-action { grid-area: action; flex: none; }
.pr-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: 11px;
  box-shadow: 0 12px 26px -10px rgba(37, 211, 102, 0.6);
  white-space: nowrap;
}
.pr-wa:hover { color: #fff; }

/* Vazio (referência — não usado no estático) */
.pr-empty { text-align: center; padding: 70px 20px; background: #fff; border: 1px solid var(--tf-border-2); border-radius: 18px; }

/* Paginação */
.pr-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pr-pagebtn {
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px;
  font-family: var(--tf-font);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #e4e6f1;
  background: #fff;
  color: #2a2f5c;
  transition: all .15s ease;
}
.pr-pagebtn:hover:not([disabled]):not(.is-active) { border-color: #c9cee4; }
.pr-pagebtn.is-active { border-color: var(--tf-navy); background: var(--tf-navy); color: #fff; }
.pr-pagebtn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ===== RESPONSIVO ===== */
@media (max-width: 960px) {
  .pr-toolbar { flex-direction: column; align-items: stretch; }
  .pr-field--select { width: 100%; }
}
@media (max-width: 820px) {
  .pr-card {
    grid-template-columns: 96px 1fr;
    grid-template-areas: "img id" "img compat" "action action";
    gap: 14px 18px;
  }
  .pr-card-img { width: 96px; height: 96px; }
  .pr-card-action { justify-self: stretch; }
  .pr-wa { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .pr-hero-inner { padding: 130px 20px 60px; }
  .pr-inner { padding: 48px 20px 72px; }
  .pr-card { grid-template-columns: 1fr; grid-template-areas: "img" "id" "compat" "action"; }
  .pr-card-img { width: 100%; height: 160px; }
}

/* ===== Archive de pneus (AJAX) — estados adicionais ===== */
.pr-results { position: relative; transition: opacity .15s ease; }
.pr-results.is-loading { opacity: .5; pointer-events: none; }
.pr-empty-title { font-family: var(--tf-font); font-weight: 700; font-size: 20px; color: var(--tf-navy); }
.pr-empty-text { font-size: 14px; color: var(--tf-muted); margin: 8px 0 18px; }
.pr-clear {
  display: inline-flex; align-items: center; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--tf-navy); border: 0; border-radius: 9px; padding: 11px 18px;
}
.pr-clear:hover { background: #0c1a7a; }
.pr-card-noimg { color: var(--tf-muted-3); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Reticências da paginação compacta */
.pr-pageellipsis { display: inline-flex; align-items: center; padding: 0 6px; color: var(--tf-muted-3, #9aa0b8); font-weight: 700; }
