/* Product Page Styles */

/* Main Product Container */
.product-container {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 2rem;
}

/* Product Content Layout */
.product-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0 0 0;
}

@media (min-width: 768px) {
  .product-content {
    flex-direction: row;
  }
}

/* Product Image */
.product-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* Removed bobbing/translate on hover */

/* Product Details */
.product-details {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Title styling moved to price-display */

/* Price Display */
.price-display {
  background: #2a3749;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.product-title-row {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.price-row:last-child {
  margin-bottom: 0;
}

.price-label {
  font-weight: 500;
  color: #a0aec0;
}

.price-value {
  font-weight: 600;
  color: white;
}

.price-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.75rem 0;
}

.discount-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.base-discount {
  background-color: rgba(104, 211, 145, 0.2);
  color: #68d391;
}

.volume-discount {
  background-color: rgba(76, 181, 245, 0.2);
  color: #76c7ff;
}

.discount-label {
  opacity: 0.8;
  font-weight: normal;
}

.final-price {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Payment Form */
#payment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  background: #2a3749;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
  background: linear-gradient(145deg, #3a6ea5, #2c5985);
  color: white;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.quantity-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
  border-radius: 0.375rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.quantity-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.quantity-btn:hover::after {
  opacity: 1;
}

.quantity-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: linear-gradient(145deg, #2c5985, #3a6ea5);
}

.quantity-decrease {
  line-height: 0;
}

.quantity-increase {
  line-height: 0;
}

.quantity-input {
  width: 4rem;
  text-align: center;
  background: #1e2533;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 2.5rem;
  margin: 0 0.75rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quantity-input:focus {
  outline: none;
  border-color: #3a6ea5;
  box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
}

/* Action Buttons */
.action-button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.action-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.action-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.next-discount-btn {
  background-color: #5a8a5f;
  color: white;
}

.next-discount-btn:hover {
  background-color: #47704b;
}

.buy-now-btn {
  background-color: #3a6ea5;
  color: white;
}

.buy-now-btn:hover {
  background-color: #2c5985;
}

/* Product Info Sections */
.product-info-section {
  background: #2a3749;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-content {
  color: #a0aec0;
  line-height: 1.6;
}

/* Reviews Section - Integrated into main container */
.product-reviews-section {
  padding: 0;
  background: transparent;
}

.reviews-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin-bottom: 1.5rem;
}

.reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.reviews-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

/* Star Rating Improvements */
.star-rating {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stars-display {
  color: #f6e05e;
  letter-spacing: 0.1em;
  text-shadow: 0 0 5px rgba(246, 224, 94, 0.3);
}

/* Masonry Grid for Reviews */
.masonry-grid {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  display: inline-block;
  width: 100%;
}

/* Review Card */
.review-card {
  background: #2a3749;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.review-rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.review-stars {
  color: #f6e05e;
  margin-right: 0.5rem;
  letter-spacing: 0.05em;
}

.rating-text {
  color: #e2e8f0;
  font-weight: 500;
}

.review-text {
  color: #e2e8f0 !important;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.review-meta {
  color: #a0aec0;
  font-size: 0.875rem;
}

.review-response {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.response-label {
  color: #4299e1;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.response-text {
  color: #cbd5e0;
  font-style: italic;
  font-size: 0.875rem;
}

/* Animations */
@keyframes priceDecrease {
  0% { color: #68d391; }   /* green-500 */
  100% { color: white; }
}

.price-decrease-animation {
  animation: priceDecrease 2s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .product-content {
    padding: 1rem 0 0 0;
  }
  
  .product-title {
    font-size: 1.5rem;
  }
  
  .product-reviews-section {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .product-content {
    padding: 1rem 0 0 0;
  }
  
  .product-title {
    font-size: 1.25rem;
  }
  
  .product-reviews-section {
    padding: 0;
  }
  
  .quantity-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }
  
  .quantity-input {
    width: 3rem;
    font-size: 1rem;
  }
}
