/* E-commerce specific styles for digital.html */
.ecommerce-page {
  background-color: #f7f7f9;
}

.ecommerce-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Product Top Section */
.product-top {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  background-color: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Thumbnails */
.product-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.thumb-box {
  width: 70px;
  height: 70px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: #f9fafb;
}

/* Main Image */
.product-main-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
}
.product-main-image img {
  max-width: 100%;
  width: 350px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Product Info */
.product-info {
  flex: 1.2;
}

.product-ref {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.ecommerce-title {
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1.1;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.product-rating {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}

.price-old {
  font-size: 1rem;
  color: #6b7280;
  text-decoration: line-through;
  margin-bottom: 0.2rem;
}

.price-new-container {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.price-new {
  font-size: 2.2rem;
  font-weight: 900;
  color: #1f2937;
}

.price-new span {
  font-size: 1.1rem;
  font-weight: 600;
}

.badge-discount {
  background-color: #4b5563;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Actions */
.product-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 25px;
  padding: 0.4rem 1rem;
  background: white;
}

.quantity-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #4b5563;
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  outline: none;
}

.btn-buy {
  background: linear-gradient(to right, #a855f7, #ec4899);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 1rem 3rem;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  flex: 1;
}

.btn-buy:hover {
  opacity: 0.9;
}

/* Shipping */
.shipping-sim {
  margin-bottom: 2rem;
}
.shipping-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.shipping-input-group {
  display: flex;
  gap: 0.5rem;
}

.shipping-input {
  border: 1px solid #d1d5db;
  border-radius: 25px;
  padding: 0.8rem 1.2rem;
  width: 200px;
  outline: none;
  font-size: 0.95rem;
  color: #4b5563;
}

.shipping-btn {
  background-color: white;
  border: 1px solid #5193a7;
  color: #5193a7;
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
  font-weight: 800;
  cursor: pointer;
}

/* Description Section */
.description-section {
  text-align: center;
  margin-bottom: 3rem;
  background-color: #ffffff;
  padding: 4rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.description-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  color: #4b5563;
  line-height: 1.8;
  font-size: 1.05rem;
  font-weight: 500;
}

.description-text p {
  margin-bottom: 1.5rem;
}

/* Specs & Reviews */
.specs-section {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 4rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.specs-grid {
  display: flex;
  justify-content: flex-start;
  padding-left: 2rem;
  margin-bottom: 1rem;
}
.spec-item {
  text-align: left;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 600;
}

/* Tabs: Avaliações e Dúvidas */
.reviews-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.review-tab {
  padding: 1rem 3rem;
  font-size: 1.3rem;
  font-weight: 900;
  color: #1f2937;
  background: white;
  cursor: pointer;
}
.review-tab.active {
  background: #f9fafb;
  border-radius: 8px;
}

.reviews-content {
  text-align: center;
}

.btn-outline {
  border: 1px solid #4b5563;
  background: white;
  color: #1f2937;
  font-weight: 800;
  padding: 0.8rem 2.5rem;
  border-radius: 30px;
  cursor: pointer;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.no-reviews-box {
  background-color: #fffbeb; /* golden yellow tint */
  color: #b45309;
  padding: 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .product-top {
    flex-direction: column;
    padding: 1.5rem;
  }
  .product-thumbnails {
    flex-direction: row;
    justify-content: center;
  }
  .specs-grid, .description-section, .specs-section {
    padding: 2rem 1.5rem;
  }
  .review-tab {
    padding: 1rem;
    font-size: 1.1rem;
  }
  .product-main-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }
}

@media (max-width: 600px) {
  .ecommerce-container {
    padding: 1.5rem 1rem;
  }
  .quantity-selector {
    padding: 0.2rem 0.5rem;
  }
  .btn-buy {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  .shipping-input-group {
    flex-direction: column;
  }
  .shipping-input {
    width: 100%;
  }
}

/* Review Form */
.review-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: #f9fafb;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.form-group {
  margin-bottom: 1rem;
}

.review-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.review-input:focus {
  border-color: #5193a7;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-overlay.hidden {
  display: none !important;
}
.modal-content {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  width: 90%;
  max-width: 550px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid #d1d5db;
  color: #6b7280;
  font-size: 1.2rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}
.modal-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}
.modal-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.modal-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.modal-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.modal-input {
  border: 1px solid #e5e7eb;
  border-radius: 25px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: inherit;
  outline: none;
  color: #374151;
}
.modal-input::placeholder {
  color: #9ca3af;
}
.modal-input:focus {
  border-color: #5193a7;
}
textarea.modal-input {
  border-radius: 16px;
  resize: vertical;
}
.star-rating {
  font-size: 2.2rem;
  color: #e5e7eb;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.25rem;
  cursor: pointer;
}
.star-rating .star.selected {
  color: #fbbf24;
}
.modal-submit {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid #1f2937;
  color: #1f2937;
  background: white;
  border-radius: 30px;
  padding: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.modal-submit:hover {
  background: #1f2937;
  color: white;
}
