/* ═══════════════════════════════════════════════════════════════════════════
 * product.css — Página individual de produto
 * ═══════════════════════════════════════════════════════════════════════════ */

.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px 60px;
}

/* Breadcrumb */
.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #5d6c78;
  margin-bottom: 18px;
}
.product-breadcrumb a {
  color: #5d6c78;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  padding: 4px 0;
  transition: color .15s, border-color .15s;
}
.product-breadcrumb a:hover {
  color: #0f5b45;
  border-bottom-color: rgba(15, 91, 69, 0.35);
}
.product-breadcrumb [aria-current="page"] {
  color: #10232f;
  font-weight: 700;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Not found */
.product-not-found {
  text-align: center;
  padding: 60px 24px;
  background: #faf7f0;
  border-radius: 18px;
  color: #5d6c78;
}
.pnf-icon { font-size: 3rem; display: block; margin-bottom: 12px; opacity: 0.6; }
.product-not-found h2 { font-size: 1.4rem; color: #10232f; margin: 0 0 8px; }
.product-not-found p { margin: 0 0 18px; }
.pnf-btn {
  display: inline-block;
  background: #0f5b45;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

/* ── Detalhe (gallery + info) ───────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid #eef2f0;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .product-detail {
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    padding: 32px;
  }
}

/* Gallery */
.prod-gallery { display: flex; flex-direction: column; gap: 10px; }
.prod-img-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #d8efe5, #b6dcc9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-img-fallback {
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
}
.prod-img-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.12) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}
.prod-fb-icon {
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.18));
  position: relative;
  z-index: 1;
}
.prod-fb-name {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 80%;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.prod-fb-brand {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.prod-fb-status {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .prod-img-main {
    aspect-ratio: 4 / 3;
    max-height: 48vh;
  }
  .prod-fb-icon { font-size: 3.5rem; }
  .prod-fb-name { font-size: 1.1rem; }
  .prod-fb-brand { font-size: 0.65rem; }
}
.prod-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
}
.prod-thumbs::-webkit-scrollbar { display: none; }
.prod-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #fff;
  padding: 2px;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color .15s;
}
.prod-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.prod-thumb:hover { border-color: rgba(15, 91, 69, 0.30); }
.prod-thumb.is-active { border-color: #0f5b45; }

/* Info */
.prod-info { display: flex; flex-direction: column; gap: 14px; }
.prod-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.prod-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 91, 69, 0.08);
  color: #0f5b45;
}
.prod-badge-feat { background: rgba(245, 184, 0, 0.18); color: #8a6d23; }
.prod-badge-new { background: rgba(31, 79, 134, 0.15); color: #1f4f86; }

.prod-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 0;
  color: #10232f;
  line-height: 1.2;
}

.prod-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.prod-stars { color: #d2a651; font-size: 1.05rem; }
.prod-rating-num { font-weight: 800; color: #10232f; }
.prod-rating-count { color: #5d6c78; }

.prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid #eef2f0;
  border-bottom: 1px solid #eef2f0;
}
.prod-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f5b45;
}
.prod-installments {
  font-size: 0.84rem;
  color: #5d6c78;
}
.prod-payment-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #2a3947;
}
.prod-payment-info strong {
  color: #0f5b45;
  font-size: 0.88rem;
}
.prod-payment-info small {
  color: #5d6c78;
  font-size: 0.76rem;
}

.prod-desc {
  font-size: 0.94rem;
  color: #2a3947;
  line-height: 1.6;
  margin: 0;
}

.prod-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 12px 14px;
  background: #faf7f0;
  border-radius: 10px;
  font-size: 0.86rem;
}
.prod-specs div { display: flex; gap: 8px; }
.prod-specs dt { font-weight: 800; color: #2a3947; min-width: 80px; margin: 0; }
.prod-specs dd { margin: 0; color: #5d6c78; }

/* Qty + buttons */
.prod-qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.prod-qty-row label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #2a3947;
}
.prod-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e5ded2;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.prod-qty-btn {
  background: transparent;
  border: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  color: #10232f;
  transition: background .15s;
}
.prod-qty-btn:hover { background: #faf7f0; color: #0f5b45; }
.prod-qty-control input {
  width: 50px;
  height: 44px;
  border: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  color: #10232f;
  background: transparent;
}
.prod-qty-control input:focus { outline: none; }
.prod-qty-control input:focus-visible { box-shadow: inset 0 0 0 2px #0f5b45; }
.prod-qty-control input::-webkit-outer-spin-button,
.prod-qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.prod-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 500px) {
  .prod-actions { grid-template-columns: 1fr 1fr; }
}
.prod-btn-primary, .prod-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  min-height: 50px;
  transition: transform .12s, box-shadow .15s;
}
.prod-btn-primary {
  background: linear-gradient(135deg, #0f5b45, #0a3d2e);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 91, 69, 0.25);
}
.prod-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 91, 69, 0.35);
}
.prod-btn-primary.is-added {
  background: #0f5b45;
  box-shadow: 0 6px 18px rgba(15, 91, 69, 0.28);
}
.prod-btn-secondary {
  background: linear-gradient(135deg, #d2a651, #a8842f);
  color: #fff;
  box-shadow: 0 8px 22px rgba(210, 166, 81, 0.30);
}
.prod-btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(210, 166, 81, 0.40);
}

.prod-meta-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prod-meta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #e5ded2;
  color: #2a3947;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background .15s, border-color .15s, color .15s;
}
.prod-meta-btn:hover {
  background: #faf7f0;
  border-color: #0f5b45;
  color: #0f5b45;
}

.prod-trust {
  list-style: none;
  margin: 4px 0 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(15, 91, 69, 0.04), rgba(31, 79, 134, 0.03));
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prod-trust li {
  font-size: 0.82rem;
  color: #2a3947;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Reviews ───────────────────────────────────────────────────────── */
.product-reviews-section, .product-related-section {
  background: #fff;
  border: 1px solid #eef2f0;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 20px;
}
.product-reviews-section h2, .product-related-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #10232f;
}
.product-reviews-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .product-reviews-list { grid-template-columns: 1fr 1fr 1fr; }
}
.prod-review-card {
  background: #faf7f0;
  border-radius: 12px;
  padding: 14px 16px;
}
.prod-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.prod-review-stars { color: #d2a651; font-size: 1rem; }
.prod-review-when { font-size: 0.74rem; color: #8590a0; }
.prod-review-text {
  font-size: 0.88rem;
  color: #2a3947;
  line-height: 1.5;
  margin: 0 0 6px;
}
.prod-review-author { font-size: 0.78rem; color: #5d6c78; font-weight: 600; }

/* ── Related grid ───────────────────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.prod-related-card {
  background: #faf7f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.prod-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(8, 20, 28, 0.08);
}
.prod-related-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #d8efe5;
}
.prod-related-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.prod-related-card:hover .prod-related-thumb img { transform: scale(1.05); }
.prod-related-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  font-family: 'Playfair Display', Georgia, serif;
}
.prod-related-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prod-related-cat {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5d6c78;
}
.prod-related-info h3 {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}
.prod-related-info h3 a {
  color: #10232f;
  text-decoration: none;
}
.prod-related-info h3 a:hover { color: #0f5b45; }
.prod-related-info strong {
  font-size: 0.94rem;
  color: #0f5b45;
  font-weight: 800;
}
.prod-related-add {
  background: #0f5b45;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: background .15s;
  min-height: 44px;
}
.prod-related-add:hover { background: #0a3d2e; }

/* ── Product CTA WhatsApp ───────────────────────────────────────────── */
.product-cta-section {
  margin-top: 8px;
}
.product-cta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(15, 91, 69, 0.04));
  border: 1px solid rgba(37, 211, 102, 0.20);
  border-radius: 18px;
  padding: 22px 24px;
  flex-wrap: wrap;
}
.product-cta-icon {
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-cta-card > div:not(.product-cta-icon) {
  flex: 1; min-width: 200px;
}
.product-cta-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #10232f;
}
.product-cta-card p {
  font-size: 0.86rem;
  color: #5d6c78;
  margin: 4px 0 0;
}
.product-cta-btn {
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.30);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.prod-thumb:focus-visible,
.prod-qty-btn:focus-visible,
.prod-btn-primary:focus-visible,
.prod-btn-secondary:focus-visible,
.prod-meta-btn:focus-visible,
.prod-related-add:focus-visible,
.product-cta-btn:focus-visible,
.pnf-btn:focus-visible {
  outline: 3px solid rgba(15, 91, 69, 0.32);
  outline-offset: 2px;
}

.prod-qty-btn,
.prod-btn-primary,
.prod-btn-secondary,
.prod-meta-btn,
.prod-related-add,
.product-cta-btn {
  touch-action: manipulation;
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .product-page { padding: 10px 14px 60px; }
  .product-detail { padding: 16px; }
  .prod-price { font-size: 1.6rem; }
  .prod-thumbs { gap: 6px; }
  .prod-thumb { width: 56px; height: 56px; }
  .prod-actions { gap: 8px; }
  .product-cta-card { padding: 16px 18px; gap: 12px; }
  .product-cta-icon { width: 50px; height: 50px; font-size: 1.8rem; }
  .product-cta-btn { flex-basis: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .prod-thumb,
  .prod-btn-primary,
  .prod-btn-secondary,
  .prod-meta-btn,
  .prod-related-card,
  .prod-related-thumb img {
    transition: none;
  }
}
