/* ==========================================
   SINGLE PRODUCT DETAILS - LUXURY SYSTEM
   ========================================== */

/* --- Navbar Fixed White Text Sync --- */
#main-nav .nav-links a {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#main-nav.scrolled .nav-links a {
  color: var(--on-surface-variant) !important;
  text-shadow: none;
}

/* --- Banner Header --- */
.product-hero {
  position: relative;
  height: 45vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--primary);
  padding-top: 80px;
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuB2wvb3sCNZ9PVRDwAlKpm0BrcPfDTRvUkJqMOA5blD5ax3XbHNTdDNfy5cbdDrxutzCDFRpqu8W8WrLn7SO1d4C8OH77KBy9dyBZJ1l270B-aaRrT9I5n38EwQH9hJe5aTTQr0sPtI5iAA3Y3NvUTtzr4CS9BWJEPA48yLlhtJBHZr4S9dYmSN5ckhnw_GhE9mEZSWIY-ar_DpyKMlnGqgR5IPSx3N3UQRTa2xzaG1AUXtUmjjaONSW7HMd1frh9kLDwfWDQuYGmI");
  background-size: cover;
  background-position: center;
}

.product-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 40, 25, 0.6),
    rgba(0, 40, 25, 0.8)
  );
  z-index: 1;
}

.product-hero-container {
  position: relative;
  z-index: 2;
  color: var(--cream-silk);
}

.product-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* --- Product Layout Showcase (Mobile First) --- */
.single-product-showcase {
  padding: 3rem var(--margin-mobile);
  background-color: var(--surface-container-lowest);
}

.showcase-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr; /* عمود واحد للموبايل لسهولة السكرول */
  gap: 3rem;
}

/* Gallery Engine */
.product-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-viewport {
  aspect-ratio: 4 / 3;
  background-color: var(--surface-container-low);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(192, 201, 193, 0.3);
}

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

.thumbnail-gallery-track {
  display: flex;
  gap: 0.75rem;
}

.thumb-frame {
  width: 5rem;
  height: 4rem;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.thumb-frame.active,
.thumb-frame:hover {
  border-color: var(--primary-container);
}

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

/* Product Info Sheets */
.product-details-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.details-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stars-rating-row {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
}

.stars-rating-row .material-symbols-outlined.filled {
  font-variation-settings: "FILL" 1;
  color: var(--gold-leaf);
  font-size: 1.2rem;
}

.rating-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--outline);
  margin-left: 0.5rem;
}

.product-brief-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
}

/* Luxury Specifications Table */
.tech-specs-table-wrapper {
  margin-bottom: 2rem;
  border-top: 1px solid rgba(192, 201, 193, 0.4);
}

.luxury-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.luxury-specs-table td {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(192, 201, 193, 0.3);
  font-size: 0.92rem;
  color: var(--on-surface);
}

.luxury-specs-table td:first-child {
  color: var(--primary);
  width: 35%;
}

/* Share Controls */
.product-share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--outline);
}

.share-social-links {
  display: flex;
  gap: 0.75rem;
}

.share-btn-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--outline-variant);
  border-radius: 4px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.share-btn-item:hover {
  border-color: var(--gold-leaf);
  color: var(--gold-leaf);
}

/* --- Inquiry Section Layout --- */
.product-inquiry-section {
  padding: 3rem var(--margin-mobile);
  background-color: var(--surface-container-low);
}

.inquiry-grid-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.inquiry-form-card {
  background: var(--surface-container-lowest);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(192, 201, 193, 0.3);
}

.form-title-area {
  margin-bottom: 2.5rem;
}

.form-title-area h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-title-area p {
  font-size: 0.9rem;
  color: var(--outline);
}

/* Floating labels interactive matrix */
.form-row-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.input-floating-field {
  position: relative;
  margin-bottom: 1.75rem;
}

.input-floating-field input,
.input-floating-field textarea {
  width: 100%;
  padding: 1rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  border: 1px solid var(--outline-variant);
  border-radius: 4px;
  outline: none;
  background: transparent;
  color: var(--on-surface);
  transition: border-color 0.3s ease;
}

.input-floating-field input:focus,
.input-floating-field textarea:focus {
  border-color: var(--primary-container);
}

.input-floating-field label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-floating-field input:focus ~ label,
.input-floating-field input:not(:placeholder-shown) ~ label,
.input-floating-field textarea:focus ~ label,
.input-floating-field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-1.6rem) scale(0.85);
  background-color: var(--surface-container-lowest);
  padding: 0 0.4rem;
  left: 0.8rem;
  color: var(--primary-container);
}

.btn-send-inquiry {
  width: 100%;
  padding: 1.1rem;
  background-color: var(--primary-container);
  color: var(--cream-silk);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.btn-send-inquiry:hover {
  background-color: var(--primary);
}

/* --- Similar Products Zone --- */
.similar-products-section {
  padding: 4rem var(--margin-mobile);
  background-color: var(--surface-container-lowest);
}

.similar-inner-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ==========================================
   MEDIA QUERIES (SCALING CONFIGURATIONS)
   ========================================== */
@media (min-width: 768px) {
  .showcase-container {
    grid-template-columns: 1fr 1fr; /* انقسام فخم لصفين متوازيين */
    gap: 4rem;
  }
  .form-row-dual {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-inquiry-section {
    padding: 4rem var(--margin-tablet);
  }
}

@media (min-width: 1024px) {
  .showcase-container {
    gap: 6rem;
  }
  .product-inquiry-section {
    padding: 5rem var(--margin-desktop);
  }
}
/* ==========================================
   DARK MODE OVERRIDES — PRODUCT DETAILS PAGE
   ========================================== */

[data-theme="dark"] .single-product-showcase,
[data-theme="dark"] .similar-products-section {
  background-color: var(--surface-container-lowest);
}

[data-theme="dark"] .product-inquiry-section {
  background-color: var(--surface-container-low);
}

[data-theme="dark"] .inquiry-form-card {
  background: var(--surface-container-lowest);
  border-color: var(--outline-variant);
}

[data-theme="dark"] .form-title-area h2 {
  color: var(--primary);
}

[data-theme="dark"] .form-title-area p {
  color: var(--on-surface-variant);
}

[data-theme="dark"] .details-header h2 {
  color: var(--primary);
}

[data-theme="dark"] .product-brief-desc {
  color: var(--on-surface-variant);
}

[data-theme="dark"] .luxury-specs-table td {
  color: var(--on-surface);
  border-bottom-color: var(--outline-variant);
}

[data-theme="dark"] .luxury-specs-table td:first-child {
  color: var(--primary);
}

[data-theme="dark"] .tech-specs-table-wrapper {
  border-top-color: var(--outline-variant);
}

[data-theme="dark"] .share-btn-item {
  border-color: var(--outline-variant);
  color: var(--primary);
}

[data-theme="dark"] .main-image-viewport {
  background-color: var(--surface-container);
  border-color: var(--outline-variant);
}

[data-theme="dark"] .thumb-frame {
  border-color: transparent;
}

[data-theme="dark"] .thumb-frame.active,
[data-theme="dark"] .thumb-frame:hover {
  border-color: var(--primary);
}

[data-theme="dark"] .input-floating-field input,
[data-theme="dark"] .input-floating-field textarea {
  border-color: var(--outline-variant);
  background-color: var(--surface-container);
  color: var(--on-surface);
}

[data-theme="dark"] .input-floating-field input:focus,
[data-theme="dark"] .input-floating-field textarea:focus {
  border-color: var(--primary);
}

[data-theme="dark"] .input-floating-field input:focus ~ label,
[data-theme="dark"] .input-floating-field input:not(:placeholder-shown) ~ label,
[data-theme="dark"] .input-floating-field textarea:focus ~ label,
[data-theme="dark"]
  .input-floating-field
  textarea:not(:placeholder-shown)
  ~ label {
  background-color: var(--surface-container);
  color: var(--primary);
}

[data-theme="dark"] .btn-send-inquiry {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

[data-theme="dark"] .btn-send-inquiry:hover {
  background-color: var(--primary);
  color: var(--on-primary);
}
