/* ==========================================
   YUJEE BOUTIQUE — LUXURY PRODUCT DETAILS STYLESHEET
   ========================================== */

:root {
  --maroon-primary: #691b2d;
  --maroon-deep: #4a0d1b;
  --maroon-dark: #380812;
  --gold-primary: #D4AF37;
  --gold-dark: #aa861d;
  --gold-light: #F4E8C1;
  --bg-cream: #FFF8F5;
  --bg-cream-alt: #F8F4F1;
  --text-dark: #2B1518;
  --text-muted: #6B5559;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --radius-card: 24px;
  --radius-pill: 50px;
}

.product-details {
  padding-top: 120px !important;
  padding-bottom: 80px;
  background-color: var(--bg-cream);
  font-family: var(--font-body);
  color: var(--text-dark);
}

/* ==========================================
   BREADCRUMB & TOP NAV
   ========================================== */
.pd-crumb-wrapper {
  background: var(--bg-cream-alt);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  margin-bottom: 30px;
}

.pd-crumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.pd-crumb a {
  color: var(--maroon-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.pd-crumb a:hover {
  color: var(--gold-dark);
}

.pd-crumb .sep {
  color: var(--gold-primary);
  opacity: 0.6;
}

/* ==========================================
   GALLERY STYLING
   ========================================== */
.gallery-wrap {
  position: relative;
  padding-right: 10px;
}

.gallery-main {
  background: radial-gradient(circle at 50% 50%, #FFFDFB 0%, #F5EBE6 100%);
  border-radius: var(--radius-card);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(105, 27, 45, 0.08);
}

.gallery-main img {
  max-height: 480px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(105, 27, 45, 0.15));
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-thumbs-wrap {
  position: relative;
  margin-top: 16px;
  padding: 0 32px;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 2px;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumbs .g-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 2px solid rgba(212, 175, 55, 0.25);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.25s ease;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumbs .g-thumb:hover {
  border-color: var(--maroon-primary);
  transform: translateY(-2px);
}

.gallery-thumbs .g-thumb.active {
  border-color: var(--maroon-primary);
  box-shadow: 0 4px 14px rgba(105, 27, 45, 0.25);
}

.gallery-thumbs .g-thumb img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

.thumb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--gold-primary);
  color: var(--maroon-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.25s ease;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(105, 27, 45, 0.1);
}

.thumb-arrow:hover {
  background: var(--maroon-primary);
  color: var(--gold-primary);
  border-color: var(--maroon-primary);
}

.thumb-arrow.left { left: 0; }
.thumb-arrow.right { right: 0; }

/* ==========================================
   PRODUCT DETAILS CONTENT & TYPOGRAPHY
   ========================================== */
.product-details__content {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.pd-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.pd-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--maroon-primary);
  line-height: 1.2;
  margin-bottom: 10px;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.price-current {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--maroon-primary);
}

.price-old {
  font-size: 1.1rem;
  color: #B5A5A8;
  text-decoration: line-through;
  font-weight: 400;
}

.badge-discount {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--maroon-primary);
  color: var(--gold-primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-primary);
}

.stars {
  color: #EAB75F;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

/* Variant Not Selected Banner */
.variant-not-selected {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF5E5 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #7A5200;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 12px 0 16px 0;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.12);
  line-height: 1.4;
  transition: all 0.3s ease;
}

.variant-not-selected i {
  color: var(--gold-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.option-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--maroon-primary);
  display: block;
  margin-bottom: 8px;
}

/* Size Pills */
.size-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-pill {
  min-width: 48px;
  height: 44px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.size-pill:hover {
  border-color: var(--maroon-primary);
  color: var(--maroon-primary);
}

.size-pill.active {
  border-color: var(--maroon-primary);
  background: var(--maroon-primary);
  color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(105, 27, 45, 0.25);
}

/* Color Swatches */
.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  outline: none;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--maroon-primary);
  transform: scale(1.1);
}

/* Quantity Counter */
.qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
}

.qty-wrap button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--bg-cream-alt);
  font-size: 18px;
  cursor: pointer;
  color: var(--maroon-primary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-wrap button:hover {
  background: var(--maroon-primary);
  color: var(--gold-primary);
}

.qty-wrap input {
  width: 58px;
  height: 44px;
  border: none;
  border-left: 1.5px solid rgba(212, 175, 55, 0.3);
  border-right: 1.5px solid rgba(212, 175, 55, 0.3);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  color: var(--maroon-primary);
}

/* Summary Order Card */
.summary-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-card);
  padding: 0;
  margin-top: 36px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(105, 27, 45, 0.06);
}

.summary-card .summary-header {
  background: linear-gradient(135deg, var(--maroon-primary), var(--maroon-deep));
  color: var(--gold-primary);
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-card .summary-body {
  padding: 20px 24px;
}

.summary-card .s-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
}

.summary-card .s-row .s-label {
  color: var(--text-muted);
}

.summary-card .s-row .s-value {
  color: var(--text-dark);
  font-weight: 600;
}

.summary-card .s-row.s-total {
  padding-top: 12px;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--maroon-primary);
}

.summary-card .s-row.s-total .s-value {
  color: var(--maroon-primary);
  font-size: 1.3rem;
}

/* Action Buttons */
.action-row {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  width: 100%;
}

.action-row form {
  flex: 1;
  margin: 0;
  display: flex;
}

.action-row .thm-btn {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  background: var(--maroon-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 16px rgba(105, 27, 45, 0.2);
}

.action-row .thm-btn:hover {
  background: var(--maroon-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(105, 27, 45, 0.3);
}

.btn-pd-buy {
  background: linear-gradient(135deg, #D4AF37 0%, #AA861D 100%) !important;
  color: #380812 !important;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3) !important;
}

.btn-pd-buy:hover {
  background: var(--maroon-primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(105, 27, 45, 0.35) !important;
  transform: translateY(-2px) !important;
}

.btn-pd-buy:hover i,
.btn-pd-buy:hover span {
  color: #FFFFFF !important;
}

/* Share Icons & Return Badge */
.share-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

.share-wrap span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.share-wrap a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-primary);
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.share-wrap a:hover {
  background: var(--maroon-primary);
  color: var(--gold-primary);
  border-color: var(--maroon-primary);
  transform: translateY(-2px);
}

.return-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 18px;
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: #15803D;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 991px) {
  .product-details {
    padding-top: 90px !important;
  }
  .pd-title {
    font-size: 2rem;
  }
  .gallery-main {
    min-height: 320px;
    padding: 20px;
  }
  .share-wrap {
    flex-wrap: wrap;
  }
  .return-badge {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
}
