/* product.css */

.product-page {
  padding: 48px 0;
}

.product-wrap {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 14px 40px rgba(0,0,0,0.06);
  padding: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}


.product-img{
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.product-media{
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f7f7;
  height: 420px;         
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;     
}

.media-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-btn.prev { left: 12px; }
.media-btn.next { right: 12px; }

.media-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.media-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #cfcfcf;
  cursor: pointer;
}

.media-dot.active {
  background: var(--dourado);
}

/* descrição abaixo da imagem */
.product-desc{
  color: #555;
  line-height: 1.6;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* COLUNA DIREITA (infos) */
.product-info h1 {
  font-size: 30px;
  color: var(--texto-marrom);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.product-badges span {
  background: #fff8ed;
  border: 1px solid #eadfca;
  border-radius: 999px;
  color: #6a481f;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  text-transform: uppercase;
}

.product-info p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-price {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 14px 0;
}

.variant-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.variant-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.variants {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.variant {
  border: 1px solid #ddd;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
}

.variant input {
  display: none;
}

.variant.active {
  border-color: var(--dourado);
  box-shadow: 0 0 0 3px rgba(201, 151, 43, 0.18);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.product-actions button,
.product-actions a {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.btn-buy {
  border: none;
  background: linear-gradient(135deg, #f5c451, #c9972b);
  color: #1a1a1a;
}

.btn-addcart {
  border: 1px solid #ddd;
  background: #fff;
}

.btn-addcart:hover {
  background: #f6f6f6;
}

.btn-buy:hover {
  transform: translateY(-1px);
}

.product-specs {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.product-specs div {
  background: #fffaf0;
  border: 1px solid #eadfca;
  border-radius: 8px;
  padding: 12px 14px;
}

.product-specs span {
  color: #8b6a2b;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.product-specs strong {
  color: #2f1b0c;
  font-size: 14px;
}

/* Responsivo */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-media{
    height: 320px;
  }
}
