/* ============================================================
   3D Team Brasil — Página de Produto
   ============================================================ */

/* ── Breadcrumb ──────────────────────────────────────────── */
.product-breadcrumb {
  padding: 1rem 0;
  font-size: .8rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.product-breadcrumb a { color: #6b7280; text-decoration: none; transition: color .15s; }
.product-breadcrumb a:hover { color: var(--clr-primary, #ff6b00); }
.product-breadcrumb .sep { opacity: .5; }
.product-breadcrumb .current { color: #d1d5db; }

/* ── Main detail grid ────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem 0 4rem;
}
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Gallery (left) ──────────────────────────────────────── */
.product-gallery { position: sticky; top: 100px; }

.product-gallery__main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  aspect-ratio: 1;
  cursor: zoom-in;
}
.product-gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.product-gallery__main:hover img { transform: scale(1.06); }

.product-gallery__badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; z-index: 2;
}
.product-gallery__badge--hot  { background: #ff6b00; color: #fff; }
.product-gallery__badge--new  { background: #00d4ff; color: #0a0f1e; }
.product-gallery__badge--sale { background: #10b981; color: #fff; }

.product-gallery__thumbs {
  display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 70px; height: 70px; border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.08); cursor: pointer;
  transition: border-color .15s; flex-shrink: 0;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery__thumb:hover,
.product-gallery__thumb.is-active { border-color: var(--clr-primary, #ff6b00); }

/* ── Info (right) ────────────────────────────────────────── */
.product-info { display: flex; flex-direction: column; gap: 1.4rem; }

.product-info__eyebrow {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.product-category-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .75rem; border-radius: 999px;
  background: rgba(255,107,0,.12); color: var(--clr-primary, #ff6b00);
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  text-decoration: none; border: 1px solid rgba(255,107,0,.25);
  transition: background .15s;
}
.product-category-pill:hover { background: rgba(255,107,0,.22); color: var(--clr-primary, #ff6b00); }

.product-info__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; line-height: 1.2; color: #fff;
  margin: 0;
}

/* Rating */
.product-rating {
  display: flex; align-items: center; gap: .5rem;
}
.product-rating__stars { color: #ff6b00; font-size: .95rem; letter-spacing: .05rem; }
.product-rating__count { font-size: .8rem; color: #6b7280; }

/* Price block */
.product-price {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
}
.product-price__current {
  font-size: 2.2rem; font-weight: 800;
  color: var(--clr-primary, #ff6b00);
  font-family: 'Orbitron', sans-serif; line-height: 1;
}
.product-price__old {
  font-size: 1.1rem; text-decoration: line-through;
  color: #6b7280;
}
.product-price__saving {
  display: inline-flex; align-items: center;
  padding: .2rem .55rem; border-radius: 999px;
  background: rgba(16,185,129,.15); color: #10b981;
  font-size: .78rem; font-weight: 700;
}

/* Specs summary */
.product-specs-summary {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.product-spec-chip {
  display: flex; align-items: center; gap: .35rem;
  padding: .35rem .8rem; border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .8rem; color: #b0bcc8;
}
.product-spec-chip .fas { color: var(--clr-primary, #ff6b00); font-size: .75rem; }

/* Qty + actions */
.product-buy { display: flex; flex-direction: column; gap: .8rem; }

.product-qty {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; width: fit-content; overflow: hidden;
}
.product-qty__btn {
  background: none; border: none; color: #fff;
  width: 40px; height: 44px; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.product-qty__btn:hover { background: rgba(255,107,0,.15); }
.product-qty__val {
  width: 44px; text-align: center; font-weight: 700;
  font-size: 1rem; color: #fff; background: none;
  border: none; border-left: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 0; height: 44px; line-height: 44px;
}

.product-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

.btn-add-cart {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 12px; border: none; cursor: pointer;
  background: var(--clr-primary, #ff6b00); color: #fff;
  font-size: 1rem; font-weight: 700; font-family: inherit;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-add-cart:hover {
  background: #e55a00; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,.4);
}
.btn-add-cart:active { transform: translateY(0); }

.btn-wishlist-lg {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.2rem; border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: #b0bcc8; font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  /* reset de qualquer dimensão herdada de product-card__wish-btn */
  width: auto; height: auto;
}
.btn-wishlist-lg:hover,
.btn-wishlist-lg.is-active {
  background: rgba(239,68,68,.12); color: #f87171;
  border-color: rgba(239,68,68,.3);
}
/* Ícone outline → oculto quando na lista; ícone solid → oculto quando fora */
.btn-wishlist-lg .fa-heart.fas        { display: none; }
.btn-wishlist-lg.is-active .fa-heart.far  { display: none; }
.btn-wishlist-lg.is-active .fa-heart.fas  { display: inline-block; }

/* Trust badges */
.product-trust {
  display: flex; gap: .6rem; flex-wrap: wrap;
  padding-top: .4rem;
}
.product-trust__item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: #8b949e;
}
.product-trust__item .fas { color: var(--clr-primary, #ff6b00); font-size: .8rem; }

/* ── Tabs ────────────────────────────────────────────────── */
.product-tabs { margin: 3rem 0 1rem; }

.product-tabs__nav {
  display: flex; border-bottom: 2px solid rgba(255,255,255,.08);
  gap: 0; margin-bottom: 2rem; overflow-x: auto;
}
.product-tabs__btn {
  padding: .75rem 1.4rem; background: none; border: none;
  color: #6b7280; font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.product-tabs__btn:hover { color: #d1d5db; }
.product-tabs__btn.is-active { color: var(--clr-primary, #ff6b00); border-bottom-color: var(--clr-primary, #ff6b00); }

.product-tab { display: none; }
.product-tab.is-active { display: block; }

/* Description */
.product-desc {
  color: #b0bcc8; line-height: 1.8; font-size: .95rem; max-width: 720px;
}
.product-desc p + p { margin-top: 1rem; }

/* Specs table */
.product-specs-table { width: 100%; border-collapse: collapse; max-width: 600px; }
.product-specs-table tr { border-bottom: 1px solid rgba(255,255,255,.06); }
.product-specs-table tr:last-child { border-bottom: none; }
.product-specs-table th {
  text-align: left; padding: .75rem 1rem; font-size: .8rem; font-weight: 600;
  color: var(--clr-primary, #ff6b00); text-transform: uppercase;
  letter-spacing: .06em; background: rgba(255,107,0,.04); width: 40%;
}
.product-specs-table td {
  padding: .75rem 1rem; font-size: .88rem; color: #d1d5db;
}

/* Reviews */
.product-reviews { display: flex; flex-direction: column; gap: 1.4rem; max-width: 700px; }
.product-review {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 1.2rem 1.4rem;
}
.product-review__header {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem;
}
.product-review__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00, #00d4ff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.product-review__name { font-weight: 600; color: #e6edf3; font-size: .88rem; }
.product-review__date { font-size: .75rem; color: #6b7280; }
.product-review__stars { color: #ff6b00; font-size: .82rem; }
.product-review__text { font-size: .88rem; color: #b0bcc8; line-height: 1.7; }

/* ── Related products ────────────────────────────────────── */
.related-section { padding: 2rem 0 5rem; }
.related-section__title {
  font-size: 1.4rem; font-weight: 800; color: #fff;
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: .6rem;
}
.related-section__title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(255,107,0,.4), transparent);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

/* ── Related grid — cards ────────────────────────────────── */
.related-grid .product-card { display: flex; flex-direction: column; }
.related-grid .product-card__body { flex: 1; }

.related-grid .product-card__image-wrap {
  aspect-ratio: 4 / 3; overflow: hidden;
  position: relative; display: block;
}
.related-grid .product-card__image-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.related-grid .product-card:hover .product-card__image-wrap img { transform: scale(1.06); }

/* Botões de ação dos cards relacionados */
.related-grid .product-card__actions {
  padding: .75rem; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto;
}

.related-grid .product-card__cart-btn {
  flex: 1 0 100%;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem .8rem; border: none; border-radius: 8px;
  background: var(--clr-primary, #ff6b00); color: #fff;
  font-size: .82rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.related-grid .product-card__cart-btn:hover {
  background: #e55a00; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,107,0,.35);
}

.related-grid .product-card__detail-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .45rem .6rem; border-radius: 8px; text-decoration: none;
  background: transparent; color: #8b949e;
  border: 1px solid rgba(255,255,255,.1);
  font-size: .78rem; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.related-grid .product-card__detail-btn:hover {
  background: rgba(255,255,255,.07); color: #e6edf3; border-color: rgba(255,255,255,.22);
}

.related-grid .product-card__wish-btn {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #6b7280;
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.related-grid .product-card__wish-btn:hover,
.related-grid .product-card__wish-btn.is-wished {
  color: #ef4444; border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.08);
}

/* ── 404 state ───────────────────────────────────────────── */
.product-not-found {
  text-align: center; padding: 6rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.product-not-found .icon { font-size: 4rem; color: #374151; }
.product-not-found h2 { font-size: 1.5rem; color: #d1d5db; }
.product-not-found p  { color: #6b7280; max-width: 400px; }
