:root {
  --lush-dark: #5A6C75;
  --lush-mid: #778A92;
  --lush-light: #8FA5AD;
  --gold: #C9A961;
  --cream: #FAF8F5;
  --charcoal: #3A3032;
  --soft-gray: #6B6B6B;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: linear-gradient(180deg, var(--lush-mid) 0%, var(--lush-dark) 100%);
  color: #3A3032;
  line-height: 1.7;
  min-height: 100vh;
}

.product-hero {
  padding: 120px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #6B6B6B;
  margin-bottom: 32px;
}

.breadcrumbs a {
  color: #6B6B6B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.pgrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.gallery-wrapper {
  background: #FFFFFF !important;
  backdrop-filter: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.card-art {
  height: 500px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lush-light) 0%, var(--lush-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.thumbs button {
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumbs button:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.thumbs img {
  height: 80px;
  width: 80px;
  object-fit: cover;
  display: block;
}

.product-info {
  background: #FFFFFF !important;
  backdrop-filter: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.p-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #3A3032;
  margin-bottom: 12px;
  line-height: 1.1;
}

.p-subtitle {
  font-size: 1.125rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 400;
}

.price-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.price {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  color: #3A3032;
}

.compare {
  text-decoration: line-through;
  color: rgba(58, 48, 50, 0.5);
  font-size: 1.25rem;
}

.inv {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.inv.in { color: #34C759; }
.inv.low { color: #FF9500; }
.inv.soldout { color: #FF3B30; }

.buy-box {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.buy-box label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B6B6B;
  margin-bottom: 8px;
}

.buy-box select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  background: #F5F5F7;
  color: #3A3032;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.buy-box select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.buy-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.qty {
  width: 50px;
  padding: 14px 4px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  background: #F5F5F7;
  color: #3A3032;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.qty:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.btn {
  padding: 14px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  white-space: nowrap;
  min-width: 0;
}

.btn-primary {
  background: var(--lush-dark);
  color: white;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--lush-mid);
  transform: translateX(4px);
}

.btn-primary:disabled {
  background: rgba(90, 108, 117, 0.5);
  cursor: not-allowed;
  transform: none;
}


/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  padding: 6px;
  background: #F5F5F7;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6B6B6B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tab:hover {
  background: rgba(201, 169, 97, 0.1);
  color: #3A3032;
}

.tab.active,
.tab[aria-selected="true"] {
  background: var(--gold);
  color: var(--charcoal);
}

.pane {
  display: none;
  padding-top: 24px;
  color: #6B6B6B;
  line-height: 1.8;
}

.pane.active {
  display: block;
}

.pane h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.pane ul {
  padding-left: 24px;
  margin-top: 12px;
}

.pane li {
  margin-bottom: 8px;
}

/* Reviews Section */
.reviews-section {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.reviews-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(90, 108, 117, 0.2);
}

.reviews-summary {
  margin-bottom: 48px;
}

.reviews-summary h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 32px;
  text-align: center;
}

.rating-overview {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.rating-score {
  text-align: center;
}

.score-number {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.score-stars {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.score-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.rating-bar-row {
  display: grid;
  grid-template-columns: 50px 1fr 40px;
  gap: 12px;
  align-items: center;
}

.bar-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.bar-container {
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.bar-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.review-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 16px;
  padding: 32px;
}

.review-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.review-rating {
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.review-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-meta strong {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: white;
}

.verified-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  background: #0d894f;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.review-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 12px;
  font-weight: 600;
}

.review-text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 20px;
}

.review-images {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.review-images img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.review-images img:hover {
  transform: scale(1.05);
  border-color: var(--gold);
}

.admin-response {
  background: rgba(201, 169, 97, 0.1);
  border-left: 3px solid var(--gold);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.admin-response strong {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-response p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 8px;
}

.response-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, var(--lush-dark) 0%, var(--lush-mid) 100%);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 24px;
  padding: 48px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: white;
  margin-bottom: 32px;
  text-align: center;
}

.modal-close {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--gold);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  display: block;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed rgba(201, 169, 97, 0.3);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
}

.form-help {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.star-rating-input {
  display: flex;
  gap: 8px;
  font-size: 2.5rem;
}

.star-rating-input .star {
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s ease;
  user-select: none;
}

.star-rating-input .star:hover {
  color: #FFD700;
}

.btn-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #D4B76A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
}

.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
}

.alert-success {
  background: rgba(13, 137, 79, 0.2);
  border: 1px solid #0d894f;
  color: #90EE90;
}

.alert-error {
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid #FF6B6B;
  color: #FFB6B6;
}

.alert-error p {
  margin-bottom: 8px;
}

.alert-error p:last-child {
  margin-bottom: 0;
}

/* Image Lightbox */
#imageLightbox {
  align-items: center;
  justify-content: center;
}

#imageLightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#imageLightbox .modal-close {
  position: fixed;
  right: 40px;
  top: 40px;
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Related Products */
.related-section {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 97, 0.4);
  box-shadow: 0 12px 32px rgba(90, 108, 117, 0.3);
}

.related-card .card-art {
  height: 200px;
}

.related-card .card-body {
  padding: 24px;
}

.related-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 8px;
}

.related-card .price {
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
}

@media (max-width: 980px) {
  .pgrid {
    grid-template-columns: 1fr;
  }

  .p-title {
    font-size: 2.25rem;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rating-overview {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .product-hero {
    padding: 100px 20px 60px;
  }

  .gallery-wrapper,
  .product-info,
  .reviews-container,
  .modal-content {
    padding: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .buy-row {
    flex-direction: column;
  }

  .qty {
    width: 100%;
  }

  .reviews-section {
    padding: 60px 20px;
  }

  .rating-bars {
    gap: 8px;
  }

  .review-item {
    padding: 24px;
  }
}
