

/* ==========================================================================
   1. Product Detailing Main Body Section
   ========================================================================== */
.product-detail-main-section {
  background-color: #f8f9fa;
  padding-top: 48px;
  padding-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Left Column: Product Gallery / Stacked Preview Images
   -------------------------------------------------------------------------- */
.product-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-gallery-card {
  background-color: #ffffff;
  border: 1px solid #f8f9fa;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-gallery-card:hover {
  border-color: #d8c4e0;
  box-shadow: 0 6px 20px rgba(78, 15, 99, 0.06);
}

.product-main-img-wrap {
  width: 100%;
  height: 520px; /* <-- Increase from 420px to 500px or 520px */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  overflow: hidden;
}

.product-main-img-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-gallery-card:hover .product-main-img-wrap img {
  transform: scale(1.03);
}

.product-secondary-img-wrap {
  width: 100%;
  height: 520px; /* <-- Increase from 420px to 500px or 520px */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  overflow: hidden;
}

.product-secondary-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-gallery-card:hover .product-secondary-img-wrap img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Right Column: Product Information & Purchase Actions
   -------------------------------------------------------------------------- */
.product-info-column {
  padding-left: 8px;
}

/* SKU Badge */
.product-sku-badge {
  color: var(--brand-orange);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  display: block;
}

/* Product Main Title */
.product-main-title {
  color: var(--primary-purple);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* Pricing & Badges Row */
.product-pricing-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.price-strikethrough {
  font-size: 1.05rem;
  color: var(--brand-orange);
  text-decoration: line-through;
  font-weight: 500;
}

.price-current {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-purple);
  line-height: 1;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 3px; 
  line-height: 1.3;
}

.pill-badge-purple {
  background-color: var(--primary-purple);
  color: #ffffff;
}

.pill-badge-orange {
  background-color: var(--brand-orange);
  color: #ffffff;
}

/* Quantity Control Group */
.product-quantity-group {
  margin-bottom: 20px;
}

.quantity-title-label {
  display: block;
  font-size: 0.84rem;
  color: var(--brand-orange);
  font-weight: 500;
  padding-top: 22px;
  margin-bottom: 8px;
  border-top: 1px solid var(--primary-purple-light);
}

.qty-control-box {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--primary-purple);
  border-radius: 4px;
  background-color: #f8f9fa;
  overflow: hidden;
  height: 52px;
  width: 147px;
  transition: border-color 0.2s ease;
}

.qty-control-box:focus-within {
  border-color: var(--primary-purple);
}

.btn-qty-step {
  background: transparent;
  border: none;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-purple);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-qty-step:hover {
  background-color: var(--primary-purple-subtle);
  color: var(--primary-purple-dark);
}

.btn-qty-step:disabled {
  color: #b7a9be;
  cursor: not-allowed;
}

.qty-number-input {
  border: none;
  width: 60px;
  height: 100%;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-purple);
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
}

.qty-number-input::-webkit-outer-spin-button,
.qty-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-number-input:focus {
  outline: none;
}

/* Thin Divider Line under Quantity */
.quantity-divider-line {
  border: none;
  height: 1px;
  background-color: var(--primary-purple);
  margin: 18px 0 22px 0;
}

/* Add to Cart Button */
.btn-detail-add-cart {
  background-color: var(--primary-purple);
  color: #f8f9fa;
  border: none;
  border-radius: 4px;
  padding: 13px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-detail-add-cart:hover {
  background-color: var(--brand-orange);
  box-shadow: 0 4px 14px rgba(78, 15, 99, 0.25);
  transform: translateY(-1px);
}

.btn-detail-add-cart:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Collapsible Accordions (Description, Shipping, Warranty, Terms)
   -------------------------------------------------------------------------- */
.detail-accordion-group {
  border-top: 1px solid var(--primary-purple);
}

.detail-accordion-item {
  border-bottom: 1px solid var(--primary-purple-light);
}

.detail-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-orange);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.detail-accordion-header:hover {
  color: var(--brand-orange-hover);
}

.accordion-chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
  stroke: currentColor;
}

.detail-accordion-header.collapsed .accordion-chevron-icon {
  transform: rotate(180deg);
}

.detail-accordion-collapse {
  padding-bottom: 18px;
  display: block;
}

.detail-accordion-collapse.hidden {
  display: none;
}

/* Description Bullet List */
.description-bullet-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.description-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: #3f3944;
  line-height: 1.65;
  margin-bottom: 4px;
}

.description-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: #555555;
  font-size: 0.9rem;
}

/* Shipping Calculator Form */
.shipping-calc-box {
  background-color: #faf6fc;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #efe4f3;
}

.shipping-calc-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.shipping-calc-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d4c2dc;
  border-radius: 4px;
  font-size: 0.88rem;
}

.shipping-calc-input:focus {
  outline: none;
  border-color: var(--primary-purple);
}

.btn-shipping-calc {
  background-color: var(--primary-purple);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-shipping-calc:hover {
  background-color: var(--primary-purple-dark);
}

.shipping-calc-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.shipping-result-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: #278838;
  margin-top: 8px;
  display: none;
}

/* Warranty & Terms Text Content */
.accordion-text-content {
  font-size: 0.88rem;
  color: #4a4250;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Horizontal Full Width Decorative Purple Divider
   -------------------------------------------------------------------------- */
.product-detail-separator {
  border: none;
  height: 2px;
  background-color: var(--primary-purple-dark);
  opacity: 1;
  margin-top: 30px;
  margin-bottom: 0;
}

/* ==========================================================================
   2. Product Tabs Section (Details, Specs, Reviews)
   ========================================================================== */
.product-container{
  background-color: #f8f9fa;
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 24px;
    /* padding-left: 24px; */
    /* padding-right: 24px; */
    border-top: 1px solid var(--primary-purple-light); 
    border-bottom: 1px solid var(--primary-purple-light);
}

.product-tabs-section {
  background-color: #f8f9fa;
  margin-top: -30px;
  padding-top: 24px;
  padding-bottom: 60px;
}

/* Tabs Navigation Bar (Centered) */
.product-tabs-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 34px;
  position: relative;
}

.tab-nav-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-orange);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

.tab-nav-btn:hover {
  color: var(--primary-purple);
}

.tab-nav-btn.active {
  color: var(--primary-purple);
  font-weight: 700;
}

.tab-nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-purple);
  border-radius: 2px;
}

/* Tab Panes */
.tab-pane-content {
  display: none;
}

.tab-pane-content.active {
  display: block;
  animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Specs Tab Content (Exact Match from Figma / Design Image)
   -------------------------------------------------------------------------- */
.specs-tab-wrapper {
  max-width: 650px;
  margin: 0 auto;
  padding-left: 20px;
}

.spec-item-row {
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 6px;
  color: #27212d;
}

.spec-bullet {
  color: #555555;
  font-size: 1rem;
  margin-right: 12px;
  user-select: none;
}

.spec-label {
  font-weight: 600;
  color: #3b3542;
  width: 80px;
  flex-shrink: 0;
}

.spec-dash {
  color: #777777;
  margin-right: 28px;
  user-select: none;
}

.spec-value {
  font-weight: 700;
  color: #221c27;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Details Tab Content
   -------------------------------------------------------------------------- */
.details-tab-wrapper {
  max-width: 820px;
  margin: 0 auto;
  color: #3f3944;
  line-height: 1.7;
  font-size: 0.94rem;
}

.details-tab-wrapper h3 {
  color: var(--primary-purple);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.details-tab-wrapper p {
  margin-bottom: 16px;
}

.details-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.details-feature-item {
  background-color: #faf7fc;
  padding: 16px;
  border-radius: 6px;
  border-left: 3px solid var(--primary-purple);
}

.details-feature-item strong {
  display: block;
  color: var(--primary-purple);
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Reviews Tab Content
   -------------------------------------------------------------------------- */
.reviews-tab-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.reviews-summary-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: #faf7fc;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid #f0e6f3;
}

.rating-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-purple);
  line-height: 1;
}

.rating-stars-gold {
  color: #f39c12;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.reviews-count-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.review-card-item {
  border-bottom: 1px solid #ede4f0;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.review-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-author-name {
  font-weight: 700;
  color: var(--primary-purple);
  font-size: 0.95rem;
}

.review-date-badge {
  font-size: 0.8rem;
  color: #8c8393;
}

.review-body-text {
  font-size: 0.9rem;
  color: #433c48;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Toast Notification for "Add to Cart"
   -------------------------------------------------------------------------- */
.cart-toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: var(--primary-purple-dark);
  color: #ffffff;
  padding: 16px 22px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
  max-width: 380px;
}

.cart-toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-check-icon {
  width: 22px;
  height: 22px;
  background-color: #27ae60;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.toast-text-wrap {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 0.82rem;
  color: #e5d8ea;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .product-info-column {
    padding-left: 0;
    margin-top: 16px;
  }
  .product-main-img-wrap,
  .product-secondary-img-wrap {
    height: 400px;
  }
  .product-main-title {
    font-size: 1.55rem;
  }
  .specs-tab-wrapper {
    padding-left: 0;
  }
}

@media (max-width: 575.98px) {
  .product-detail-main-section {
    padding-top: 30px;
  }
  .product-main-img-wrap,
  .product-secondary-img-wrap {
    height: 300px;
  }
  .product-main-title {
    font-size: 1.35rem;
  }
  .price-current {
    font-size: 1.7rem;
  }
  .product-tabs-nav-bar {
    gap: 18px;
  }
  .spec-label {
    width: 65px;
  }
  .spec-dash {
    margin-right: 14px;
  }
  .reviews-summary-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}