/* Product page specific styles */
/* Container for product page */
.product-page {
  margin-top: 40px;
  padding: 20px;
}

.breadcrumbs {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.product-essential {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.product-gallery {
  display: flex;
  gap: 15px;
  min-width: 300px;
  flex: 1;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb {
  width: 70px;
  height: 70px;
  border: 1px solid #eee;
  cursor: pointer;
  overflow: hidden;
}

.main-image {
  flex: 1;
  border: 1px solid #f5f5f5;
  position: relative;
}



.product-brand {
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.product-name {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin: 0 0 10px 0;
  color: #111;
}

.product-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.product-tag {
  background: #f5f5f5;
  color: #333;
  font-size: 0.75rem;
  padding: 4px 10px;
  font-weight: 500;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-rating {
  color: #ffb703;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-prices {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 25px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1.2rem;
  margin-right: 15px;
}

.price-credit {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
}

.installments {
  color: #666;
  margin: 5px 0;
}

.price-pix {
  color: #27ae60;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 10px;
}

.buy-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
}

.qty-btn {
  padding: 10px 15px;
  background: none;
  border: none;
  cursor: pointer;
}

.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: 600;
}

.add-to-cart-btn {
  flex: 1;
  padding: 15px;
  background: #111;
  color: #fff;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-whatsapp-cta {
  display: none; /* shown via JS when needed */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-cta-link {
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.product-details-tabs {
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 40px;
}

.tab-headers {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.tab-header {
  padding-bottom: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #666;
}

.tab-header.active {
  border-bottom: 2px solid #111;
  color: #111;
}

.tab-content {
  line-height: 1.8;
  color: #444;
  display: none;
}

.tab-content.active {
  display: block;
}

/* Cart specific styles (still in product.css per preference) */
.cart-section {
  padding: 60px 0;
  margin-bottom: 80px;
}

.cart-title {
  margin-bottom: 40px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.product-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.cart-actions {
  margin-top: 30px;
}

.cart-back-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.cart-summary {
  background: #fff;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: fit-content;
}

.cart-summary-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 1px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

.summary-row.total {
  margin-bottom: 30px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.checkout-btn {
  width: 100%;
  text-align: center;
  display: block;
  padding: 15px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.secure-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pagination styling */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}
.pagination a {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.pagination a:hover {
  background: var(--primary);
  color: #fff;
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  pointer-events: none;
}

/* Responsive overrides – mobile.css will import this file */
@media (max-width: 991px) {
  .product-essential {
    flex-direction: column;
  }
  .product-gallery {
    min-width: 100%;
  }
  .cart-layout {
    grid-template-columns: 1fr !important;
  }
}
