/* pequenas adaptações específicas da página de detalhe */
.product-detail-page { padding: 40px 0 80px; }
.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.product-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(20,20,20,0.06);
  overflow: hidden;
  padding: 18px;
}
.product-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #73C14C;
  font-weight: 600;
  text-decoration: none;
}

.store-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -4px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.store-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(45deg, #73C14C, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-right: 12px;
}

.store-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e1e5e9;
  margin-right: 12px;
}
.store-name { font-weight: 700; font-size: 1.1rem; }
.store-location {
  color: #666;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-location .loc-icon {
  width: 14px;
  height: 14px;
  vertical-align: text-bottom;
  flex-shrink: 0;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.product-title { margin:0; font-size:1.5rem; }
.product-views { color:#888; font-size:0.9rem; }

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: #73C14C;
  margin-bottom: 15px;
}
.product-description {
  color:#444;
  line-height:1.5;
  margin-bottom:16px;
  display: block;
  line-clamp: none;
  -webkit-line-clamp: none;
  -webkit-box-orient: initial;
  overflow: visible;
}

.action-row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }

/* botão de curtir apenas ícone (sem borda) */
.like-btn {
  background: transparent;
  color: #e74c3c;
  border: 0;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}
.like-btn.liked {
  background: #ffe6e6;
  color: #e74c3c;
  border: 0;
}

.product-stats { color:#666; font-size:0.95rem; margin-bottom:12px; }

.comments-section {
  margin-top:16px;
  border-top:1px solid #f0f0f0;
  padding-top:14px;
}
.comment-list { list-style:none; padding:0; margin:0 0 12px 0; display:flex; flex-direction:column; gap:10px; }
.comment-item {
  background:#fbfbfb;
  padding:10px 12px;
  border-radius:8px;
  font-size:0.95rem;
  color:#333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.comment-form { display:flex; gap:8px; }
.comment-input {
  flex:1;
  min-height:44px;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #e6e6e6;
  resize:vertical;
  font-size:0.95rem;
}
.comment-submit {
  background:#111;
  color:#fff;
  border:0;
  padding:10px 14px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
}

/* estilos para curtir comentário */
.comment-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-left: 12px;
  white-space: nowrap;
}
.comment-like-btn {
  background: transparent;
  color: #e74c3c;
  border: 0;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.comment-like-btn.liked {
  background: #ffe6e6;
}
.comment-like-count {
  font-size: 0.9rem;
  color: #666;
  margin-left: 0;
}
.comment-body { display:flex; flex-direction:column; gap:6px; flex:1; }
.comment-text { display:block; margin:0; }

/* galeria de imagens */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery #mainProductImage {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
}
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.thumbnails .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  border-radius: 6px;
}
.thumbnails .thumb.active {
  opacity: 1;
  border-color: #007bff;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-comment-btn {
  background: transparent;
  color: #666;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  font-size: 0.8rem;
  text-align: left;
  margin-top: 4px;
}

.delete-comment-btn:hover {
  color: #e74c3c;
}

@media (max-width: 768px) {
  .product-detail-wrapper { grid-template-columns: 1fr; }
  .product-title { font-size:1.25rem; }
}

/* Skeleton Loading for Product Page */
.skeleton-product {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-product .skeleton-image {
  width: 100%;
  height: 280px;
  background: #f0f0f0;
}

.skeleton-product .skeleton-info {
  padding: 20px;
}

.skeleton-product .skeleton-title {
  height: 24px;
  background: #f0f0f0;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-product .skeleton-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skeleton-product .skeleton-avatar {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 50%;
}

.skeleton-product .skeleton-text {
  height: 16px;
  background: #f0f0f0;
  border-radius: 4px;
  flex: 1;
}

.skeleton-product .skeleton-price {
  height: 20px;
  background: #f0f0f0;
  border-radius: 4px;
  width: 120px;
  margin-bottom: 15px;
}

.skeleton-product .skeleton-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.skeleton-product .skeleton-stat {
  height: 14px;
  background: #f0f0f0;
  border-radius: 4px;
  width: 80px;
}

.skeleton-product .skeleton-description {
  height: 60px;
  background: #f0f0f0;
  border-radius: 4px;
  margin-bottom: 20px;
}

.skeleton-product .skeleton-actions {
  display: flex;
  gap: 12px;
}

.skeleton-product .skeleton-btn {
  height: 44px;
  background: #f0f0f0;
  border-radius: 25px;
  flex: 1;
}
/* sobrescrever cursor:pointer global para product-detail-info */
.product-card.product-detail-info {
  cursor: default;
}

/* garantir cursor:pointer apenas em elementos interativos */
.product-card.product-detail-info a,
.product-card.product-detail-info button,
.product-card.product-detail-info input,
.product-card.product-detail-info textarea,
.product-card.product-detail-info .action-btn,
.product-card.product-detail-info .whatsapp-btn,
.product-card.product-detail-info .like-btn,
.product-card.product-detail-info .comment-submit,
.product-card.product-detail-info .comment-like-btn,
.product-card.product-detail-info .delete-comment-btn,
.product-card.product-detail-info .thumb {
  cursor: pointer;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
