@import url(variables.css);

.product-detail-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-detail-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 151px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.product-detail-section img {
    width: 600px;
    height: 636px;
    max-width: 100%;
    object-fit: cover;
}

.product-info {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-header h3 a{
    text-decoration: none;
}

.discounted-price {
    color: #C53122;
    font-size: 18px;
    font-weight: 700;
}

.add-to-cart-btn-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.product-info__header {
    display: flex;
    gap: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #401713;
}

.customer-review-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 427px;
    max-width: 600px;
    margin-left: max(20px, calc((100vw - 1160px) / 2));
    padding: 40px 20px;
}

.review-user {
    font-weight: 700;
    margin-bottom: 5px;
}

.review-description {
    margin-bottom: 15px;
}

.stars {
  display: inline-block;
  font-size: 28px;
  letter-spacing: 2px;
  position: relative;
  color: #BFA095;
}

.stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  background: linear-gradient(
    to right,
    #5E3A33 0%,
    #5E3A33 var(--rating-percent, 0%),
    #BFA095 var(--rating-percent, 0%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cart notification styles */
.cart-notification {
  position: fixed;
  top: 100px;
  right: 30px;
  background-color: #401713;
  color: var(--color-white);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px #0000004d;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out, slideOut 0.3s ease-in 2.7s;
  opacity: 0;
}

.cart-notification.show {
  opacity: 1;
}

.cart-notification-icon {
  font-size: 24px;
  color: #BFA095;
}

.cart-notification-text {
  font-size: 16px;
  font-weight: 500;
}

/* Share notification styles */
.share-notification {
  position: fixed;
  top: 400px;
  right: 600px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.share-notification.show {
  opacity: 1;
}

.share-notification-text {
  font-size: 16px;
  font-weight: 500;
}

/* Keyframe animations */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}
