/* ==========================================================================
   PRODUCT DETAIL PAGE (product.html)
   ========================================================================== */

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image {
  background-color: var(--color-white);
  border: var(--border-neutral-light);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.thumbnail-strip {
  display: flex;
  gap: 12px;
}

.thumbnail {
  aspect-ratio: 1 / 1;
  width: 80px;
  border: 1px solid var(--color-light-gray);
  cursor: pointer;
  overflow: hidden;
  background-color: var(--color-white);
  transition: var(--transition-smooth);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--color-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  display: flex;
  flex-direction: column;
}

.product-details .product-category {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.product-details .product-name {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-details .product-price {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.product-desc {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-light-gray);
  padding-bottom: 24px;
}

.purchase-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-charcoal);
  height: 50px;
}

.qty-btn {
  background: none;
  border: none;
  width: 40px;
  height: 100%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background-color: var(--color-light-gray);
}

.qty-input {
  border: none;
  width: 50px;
  height: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  background: transparent;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  outline: none;
}

.detail-tabs {
  border-top: 1px solid var(--color-light-gray);
  padding-top: 24px;
}

.tab-headers {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--color-light-gray);
  margin-bottom: 16px;
}

.tab-header {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 8px 0;
  cursor: pointer;
  color: var(--color-muted-gray);
  position: relative;
}

.tab-header.active {
  color: var(--color-charcoal);
}

.tab-header.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
}

.tab-content {
  display: none;
}

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

.scent-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background-color: var(--color-white);
  padding: 20px;
  border: var(--border-neutral-light);
}

.scent-note-item {
  text-align: center;
}

.scent-note-item h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.scent-note-item p {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.specs-list {
  list-style: none;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--color-light-gray);
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list span:first-child {
  font-weight: 700;
  color: var(--color-muted-gray);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Tablet Viewports */
@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile Viewports */
@media (max-width: 768px) {
  .product-details {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-details .product-name {
    font-size: 2rem;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .purchase-controls {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .quantity-selector {
    grid-area: 1 / 1 / 2 / 2 !important;
    width: 120px !important; /* Keep it compact and elegant */
  }

  .quantity-selector .qty-btn {
    width: 35px !important;
  }

  .quantity-selector .qty-input {
    width: 50px !important;
  }

  #detail-wishlist-btn {
    grid-area: 1 / 2 / 2 / 3 !important;
    margin-left: 0 !important;
    position: static !important;
  }

  #detail-add-to-cart-btn {
    grid-area: 2 / 1 / 3 / 3 !important;
    width: 100% !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .tab-headers {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: visible !important;
    white-space: normal !important;
    width: 100% !important;
    border-bottom: 1px solid var(--color-light-gray) !important;
    margin-bottom: 16px !important;
  }

  .tab-header {
    flex: 1 !important;
    flex-shrink: 1 !important;
    font-size: 0.75rem !important;
    padding: 8px 4px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .specs-list li {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 10px 0 !important;
  }

  .detail-tabs .tab-content ul {
    display: block !important;
    padding-left: 20px !important;
  }

  .detail-tabs .tab-content ul li {
    display: list-item !important;
    margin-bottom: 8px !important;
  }

  /* Make sure images and thumbnails scale down fluidly */
  .gallery-container,
  .main-image,
  .thumbnail-strip {
    max-width: 100%;
    min-width: 0;
  }
}

/* Very Small Mobile Viewports */
@media (max-width: 480px) {
  .scent-notes-grid {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }

  .scent-note-item p {
    font-size: 0.95rem;
  }
}

/* Customer Reviews Styles */
.review-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-author {
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  font-size: 1.1rem;
}

.review-date {
  font-size: 0.85rem;
  color: var(--color-muted-gray);
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 12px;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-dark-gray);
}
