/* ==========================================================================
   PRODUCT DETAILS RESPONSIVE STYLES
   ========================================================================== */

.related-products-sec {
  padding: 80px 0;
  background-color: var(--color-background);
}

.related-products-sec .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.related-products-sec .section-header h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--color-dark-bg);
  margin-bottom: 12px;
}

.related-products-sec .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .detail-grid {
    gap: 40px;
  }

  .meta-title {
    font-size: 34px;
  }

  .related-products-sec .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-container-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .product-detail-sec {
    padding: 30px 0 60px 0 !important;
  }

  /* Center Back Button */
  .back-btn-wrap {
    margin-bottom: 20px;
    justify-content: center !important;
    display: flex !important;
  }

  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* Center Product Gallery Image */
  .product-gallery {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .details-bottle-card {
    max-width: 340px !important;
    margin: 0 auto !important;
  }

  .gallery-thumbnails {
    justify-content: center !important;
  }

  /* Center Product Meta Content */
  .product-meta-side {
    align-items: center !important;
    text-align: center !important;
  }

  .meta-status-badge {
    align-self: center !important;
  }

  .meta-rating-row {
    justify-content: center !important;
  }

  .meta-price-box {
    width: auto !important;
    align-self: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    margin-bottom: 20px !important;
  }

  .meta-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }

  .price-actual {
    font-size: 24px !important;
  }

  .action-buttons-wrap {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .btn-add-cart,
  .btn-buy-now {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
    justify-content: center !important;
  }

  .related-products-sec .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .related-products-sec .section-header h2 {
    font-size: 22px !important;
  }

  .meters-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Reduce Add to Cart Button Size on Mobile */
  .purchase-actions-row {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .detail-qty-control {
    width: 100% !important;
    justify-content: center !important;
  }

  .btn-detail-add-cart {
    width: 100% !important;
    font-size: 14px !important;
    padding: 0 16px !important;
    height: 48px !important;
    gap: 6px !important;
  }

  .btn-detail-add-cart svg {
    width: 17px !important;
    height: 17px !important;
  }

  .btn-price-summary {
    font-size: 12px !important;
    padding: 2px 8px !important;
    margin-inline-start: 6px !important;
  }

  /* Meters Full Width */
  .performance-meters-wrap {
    width: 100% !important;
  }

  .meter-card {
    width: 100% !important;
  }

  /* Olfactory Pyramid (الهرم العطري: قمة العطر، قلب العطر، قاعدة العطر) */
  .olfactory-pyramid-wrap {
    width: 100% !important;
    padding-top: 20px !important;
    margin-bottom: 24px !important;
    text-align: right !important;
  }

  .olfactory-pyramid-wrap .meta-subtitle {
    text-align: right !important;
    margin-bottom: 12px !important;
  }

  .pyramid-box {
    width: 100% !important;
    padding: 16px 14px !important;
    border-radius: 16px !important;
    gap: 14px !important;
    box-sizing: border-box !important;
    text-align: right !important;
  }

  .pyramid-tier {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    text-align: right !important;
  }

  .pyramid-icon-col {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
  }

  .pyramid-icon-col svg {
    width: 18px !important;
    height: 18px !important;
  }

  .pyramid-info-col {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .pyramid-info-col h5 {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    color: #666 !important;
    line-height: 1.3 !important;
    text-align: right !important;
    width: 100% !important;
  }

  .pyramid-info-col p {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: var(--color-dark-bg, #1A1A1A) !important;
    word-break: break-word !important;
    text-align: right !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Size selector */
  .size-selector-grid {
    justify-content: center !important;
  }

  /* Description */
  .detail-desc-paragraph {
    font-size: 14px !important;
    text-align: center !important;
  }
}


/* ─── Mobile 2-Column Product Cards in Related Products (Identical to Home Collection) ─── */
@media (max-width: 600px) {
  .related-products-sec {
    padding: 30px 0 50px 0 !important;
  }

  .related-products-sec .section-header {
    margin-bottom: 24px !important;
  }

  .related-products-sec .section-header h2 {
    font-size: 20px !important;
  }

  .related-products-sec .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    display: grid !important;
  }

  .related-products-sec .product-card {
    border-radius: 18px !important;
    border: 1px solid rgba(138, 21, 81, 0.09) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    margin: 0 !important;
  }

  .related-products-sec .product-image-container {
    height: 165px !important;
    min-height: 165px !important;
    max-height: 165px !important;
    border-radius: 17px 17px 0 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .related-products-sec .product-image-container img {
    object-fit: cover !important;
    transform: scale(1.0) !important;
    width: 100% !important;
    height: 100% !important;
  }

  .related-products-sec .product-badge {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(138, 21, 81, 0.2) !important;
    letter-spacing: 0.2px !important;
    line-height: 1.15 !important;
  }

  .related-products-sec .in-cart-count-badge {
    top: 8px !important;
    left: 8px !important;
    padding: 3px 8px !important;
    font-size: 9.5px !important;
    font-weight: 750 !important;
    border-radius: 12px !important;
    gap: 3px !important;
    box-shadow: 0 2px 8px rgba(170, 124, 17, 0.3) !important;
    line-height: 1.15 !important;
  }

  .related-products-sec .in-cart-count-badge svg {
    width: 11px !important;
    height: 11px !important;
  }

  .related-products-sec .scent-notes-overlay {
    padding: 8px 10px !important;
    gap: 6px !important;
    background: rgba(28, 14, 21, 0.92) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border-radius: 17px 17px 0 0 !important;
  }

  .related-products-sec .scent-note-item {
    text-align: center !important;
    margin-bottom: 0 !important;
  }

  .related-products-sec .note-type {
    font-size: 9px !important;
    margin-bottom: 1px !important;
    letter-spacing: 0.4px !important;
    line-height: 1.1 !important;
  }

  .related-products-sec .note-val {
    font-size: 11px !important;
    line-height: 1.25 !important;
    max-width: 140px !important;
    margin: 0 auto !important;
    word-break: break-word !important;
  }

  .related-products-sec .product-info {
    padding: 12px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }

  .related-products-sec .product-tags {
    margin-bottom: 4px !important;
    gap: 4px !important;
    display: flex !important;
  }

  .related-products-sec .tag-item {
    font-size: 10px !important;
    padding: 2px 7px !important;
    border-radius: 12px !important;
  }

  .related-products-sec .product-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }

  .related-products-sec .product-desc {
    display: none !important;
  }

  .related-products-sec .product-rating {
    margin-bottom: 6px !important;
    gap: 4px !important;
  }

  .related-products-sec .rating-stars svg {
    width: 12px !important;
    height: 12px !important;
  }

  .related-products-sec .rating-text {
    font-size: 10px !important;
  }

  .related-products-sec .product-price-row {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(138, 21, 81, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }

  .related-products-sec .price-box {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }

  .related-products-sec .current-price {
    font-size: 15px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  .related-products-sec .original-price {
    font-size: 11px !important;
    margin-bottom: 0 !important;
  }

  .related-products-sec .quantity-control {
    display: inline-flex !important;
    align-items: center !important;
    border: 1.2px solid rgba(138, 21, 81, 0.18) !important;
    border-radius: 18px !important;
    background-color: #F8F8F8 !important;
    padding: 2px 3px !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
    height: 26px !important;
  }

  .related-products-sec .qty-btn {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    font-size: 14px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    color: var(--color-primary) !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
  }

  .related-products-sec .qty-val {
    min-width: 18px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 2px !important;
    color: #1A1A1A !important;
    line-height: 1 !important;
  }

  .related-products-sec .add-to-cart-wrapper {
    margin-top: 8px !important;
    gap: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .related-products-sec .btn-add-to-cart {
    padding: 8px 10px !important;
    font-size: 11.5px !important;
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 20px !important;
    gap: 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .related-products-sec .btn-add-to-cart svg {
    width: 13px !important;
    height: 13px !important;
  }

  .related-products-sec .btn-view-details {
    padding: 7px 10px !important;
    font-size: 11px !important;
    border-radius: 20px !important;
    min-height: 32px !important;
    height: 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid rgba(138, 21, 81, 0.15) !important;
    background-color: transparent !important;
    color: var(--color-primary) !important;
  }
}

@media (max-width: 480px) {
  .gallery-main-container {
    height: 270px !important;
  }

  .meta-title {
    font-size: 20px !important;
  }

  .price-actual {
    font-size: 22px !important;
  }
}

@media (max-width: 360px) {
  .related-products-sec .products-grid {
    gap: 8px !important;
  }
}