/* ============================================
   T-RAYO — Product Details Page (Responsive)
   ============================================ */

/* ── Layout ── */
.product-details-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.5rem;
  padding-block: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Gallery (Left Column) ── */
.product-gallery {
  width: 100%;
  position: sticky;
  top: 80px;
}

/* Main Image */
.main-image-wrapper {
  background-color: var(--tr-bg-surface);
  border-radius: var(--tr-radius-md);
  border: 1px solid var(--tr-border-subtle);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 480px;
  position: relative;
}

.main-image-wrapper.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.01) 100%);
  background-size: 200% 100%;
  animation: trShimmer 1.4s infinite ease-in-out;
  pointer-events: none;
  z-index: 2;
}

@keyframes trShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.main-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 1;
  display: block;
}

.main-product-img:not([src]),
.main-product-img[src=""] {
  opacity: 0;
}

.main-product-img.loaded {
  opacity: 1;
}

/* Thumbnail Strip */
.thumb-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.thumb-strip::-webkit-scrollbar { display: none; }

.thumb-item {
  flex-shrink: 0;
  width: 62px;
  height: 76px;
  border-radius: 6px;
  border: 2px solid var(--tr-border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.15s ease;
  background: var(--tr-bg-surface);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-item:hover {
  border-color: var(--tr-text-secondary);
  transform: translateY(-2px);
}

.thumb-item.active {
  border-color: var(--tr-accent-primary);
  box-shadow: 0 0 0 1px var(--tr-accent-primary);
}

/* ── Specs Panel (Right Column) ── */
.product-specs-panel {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding-top: 0.25rem;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
}

.detail-title {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: #f8fafc;
  text-transform: capitalize;
}

.detail-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.price-current {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.price-discount-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ── Apparel Specs Grid ── */
.apparel-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin: 0.25rem 0 0.55rem 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.spec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.38rem 0.45rem;
  background: linear-gradient(145deg, #13151f 0%, #0d0e15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  min-height: 42px;
}

.spec-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.spec-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.spec-val {
  font-size: 0.76rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── Color & Size ── */
.selection-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.selection-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selection-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.size-guide-link {
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  color: #818cf8;
  transition: color 0.15s ease;
}
.size-guide-link:hover {
  color: #a5b4fc;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.size-btn {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background-color: #11131c;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.size-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.size-btn.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.18s ease, outline 0.18s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.color-swatch.selected {
  outline: 2px solid #3b82f6;
  outline-offset: 2.5px;
  border: none;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.35);
}

/* ── Availability ── */
.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 0.24rem 0.65rem;
  width: fit-content;
}

/* ── CTA Buttons ── */
.cta-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.cta-btn {
  flex: 1;
  height: 38px;
  padding: 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

#add-to-cart-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.32);
}
#add-to-cart-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.42);
}
#add-to-cart-btn:active {
  transform: scale(0.98);
}

#order-now-btn, .order-btn {
  background: #141620 !important;
  color: #f1f5f9 !important;
  border: 1.2px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
#order-now-btn:hover, .order-btn:hover {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
  color: #08090c !important;
  border-color: #d4af37 !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(212, 175, 55, 0.35);
}
#order-now-btn:active, .order-btn:active {
  transform: scale(0.98);
}

.wishlist-btn {
  flex: 1;
  font-size: 0.88rem;
}

/* ── Description ── */
.detail-description {
  border-top: 1px solid var(--tr-border-subtle);
  padding-top: 1rem;
}

.detail-description h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
  color: var(--tr-text-secondary);
}

.detail-description p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--tr-text-secondary);
}

/* ============================================
   RESPONSIVE — Tablet & Mobile (≤900px)
   Thumbnails positioned vertically on the RIGHT
   of the main image (matches reference design)
   ============================================ */
@media (max-width: 900px) {
  .product-details-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-block: 1rem;
  }

  .product-gallery {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
  }

  .main-image-wrapper {
    flex: 1;
    min-width: 0;
    max-height: 440px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    margin: 0;
  }

  /* Thumbnails in vertical column on the right side in mobile view */
  .thumb-strip {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
    width: 72px;
    flex-shrink: 0;
    max-height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0;
    scrollbar-width: none;
  }
  .thumb-strip::-webkit-scrollbar {
    display: none;
  }

  .thumb-item {
    width: 72px;
    height: 92px;
    flex-shrink: 0;
    border-radius: 6px;
  }

  .apparel-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .detail-title {
    font-size: 1.25rem;
  }
}

/* ============================================
   RESPONSIVE — Mobile (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .product-details-layout {
    padding-block: 0.6rem;
    gap: 1rem;
  }

  .product-gallery {
    gap: 0.5rem;
  }

  .main-image-wrapper {
    max-height: 360px;
    border-radius: 8px;
  }

  .thumb-strip {
    width: 58px;
    max-height: 360px;
    gap: 0.4rem;
  }

  .thumb-item {
    width: 58px;
    height: 76px;
    border-radius: 5px;
    border-width: 1.5px;
  }

  .detail-title {
    font-size: 1.15rem;
  }

  .price-current {
    font-size: 1.3rem;
  }

  .cta-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-btn, .wishlist-btn {
    flex: unset;
    width: 100%;
  }

  .apparel-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }

  .spec-card {
    padding: 0.32rem 0.4rem;
    min-height: 38px;
  }

  .spec-label {
    font-size: 0.54rem;
  }

  .spec-val {
    font-size: 0.72rem;
  }

  .size-btn {
    width: 33px;
    height: 33px;
    font-size: 0.72rem;
  }
}

/* ============================================================
   PRODUCT EXTRA SECTION — TABS (Details | Reviews | Discussion)
   Matches user's reference design
   ============================================================ */
.product-tabs-container {
  margin-top: 3.5rem;
  margin-bottom: 5rem;
  padding-inline: 1.5rem;
  max-width: 1100px;
  margin-inline: auto;
}

/* ── Top Tabs Nav Bar ── */
.tabs-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--tr-border-subtle);
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.tabs-nav-left {
  display: flex;
  gap: 2.25rem;
}

.tab-btn {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tr-text-muted);
  padding: 0.6rem 0.2rem 0.9rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  outline: none;
}

.tab-btn:hover {
  color: var(--tr-text-primary);
}

.tab-btn.active {
  color: var(--tr-text-primary);
  font-weight: 800;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tr-text-primary);
  border-radius: 2px;
}

.tab-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tr-text-muted);
  margin-left: 0.25rem;
}

/* Meta Data on Right (SKU, Tags, Share) */
.tabs-nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--tr-text-muted);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-item .meta-label {
  font-weight: 700;
  color: var(--tr-text-secondary);
}

.meta-item .meta-val {
  color: var(--tr-text-primary);
  font-weight: 500;
}

.share-meta {
  gap: 0.5rem;
}

.share-btns {
  display: inline-flex;
  gap: 0.35rem;
}

.share-btn {
  background: var(--tr-bg-surface);
  border: 1px solid var(--tr-border-subtle);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--tr-text-secondary);
}

/* ── Tab Panes ── */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Details Tab ── */
.details-tab-inner {
  background: var(--tr-bg-surface);
  border: 1px solid var(--tr-border-subtle);
  border-radius: 12px;
  padding: 2rem;
}
.details-tab-inner h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--tr-text-primary);
}
.details-tab-inner p {
  color: var(--tr-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}
.details-specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.spec-row {
  font-size: 0.88rem;
  color: var(--tr-text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.spec-row strong {
  color: var(--tr-text-primary);
  margin-right: 0.5rem;
}

/* ── Reviews Grid Layout (2 Columns) ── */
.reviews-grid-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.75rem;
  align-items: start;
}

/* Left Column: Review Header */
.reviews-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reviews-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--tr-text-primary);
}

.reviews-subheading {
  font-size: 0.78rem;
  color: var(--tr-text-muted);
}

.reviews-sort-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--tr-text-secondary);
}

.review-sort-select {
  background: var(--tr-bg-surface);
  border: 1px solid var(--tr-border-subtle);
  color: var(--tr-text-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
}

/* Review Cards Feed */
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--tr-border-subtle);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}

.review-body {
  flex: 1;
}

.review-user-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.review-author {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tr-text-primary);
}

.review-date {
  font-size: 0.75rem;
  color: var(--tr-text-muted);
}

.review-stars {
  color: #f59e0b;
  font-size: 0.82rem;
  letter-spacing: 2px;
  margin-bottom: 0.45rem;
}

.review-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--tr-text-secondary);
  margin-bottom: 0.6rem;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
}

.review-act-btn {
  background: none;
  border: none;
  color: var(--tr-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  padding: 0;
  transition: color 0.15s ease;
}

.review-act-btn:hover {
  color: var(--tr-text-primary);
}

.review-act-btn.liked {
  color: #2ed573;
  font-weight: 700;
}

/* ── Best CSS: Add Review Form Card ── */
.write-review-card {
  background: linear-gradient(145deg, #13151f 0%, #0d0e15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-top: 1.25rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.write-review-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.write-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.write-review-head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.2px;
}

.write-review-head h3 span {
  font-size: 0.95rem;
}

.star-rating-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rating-prompt-label {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
}

.star-picker {
  display: inline-flex;
  gap: 3px;
}

.star-choice {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
  user-select: none;
  line-height: 1;
}

.star-choice.active {
  color: #f59e0b;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.35));
}

.star-choice:hover {
  transform: scale(1.22);
  color: #fbbf24;
}

.review-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.review-input,
.review-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.83rem;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.review-input {
  height: 36px;
}

.review-input::placeholder,
.review-textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.81rem;
}

.review-input:focus,
.review-textarea:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.review-textarea {
  height: 58px;
  min-height: 58px;
  resize: none;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.review-form-footer {
  display: flex;
  justify-content: flex-end;
}

.submit-review-btn {
  height: 36px;
  padding: 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.submit-review-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.submit-review-btn:active {
  transform: translateY(0);
}

/* ── Best CSS: Overall Rating Card ── */
.overall-rating-card {
  background: linear-gradient(145deg, #13151f 0%, #0d0e15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.25rem;
  transition: all 0.25s ease;
}

.overall-rating-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.rating-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rating-big-score {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-heading, inherit);
  letter-spacing: -0.5px;
}

.score-denominator {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
}

.rating-stars-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.rating-stars-gold {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2.5px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.25));
}

.rating-total-count {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Histogram Bars */
.rating-histogram {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.histogram-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.histogram-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hist-label {
  width: 22px;
  font-weight: 700;
  color: #cbd5e1;
  font-size: 0.74rem;
}

.hist-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.hist-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  transition: width 0.35s ease;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.hist-num {
  width: 24px;
  text-align: right;
  font-weight: 600;
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Discussion Box */
.discussion-box {
  background: #13151f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

/* ── Responsive Adjustments for Tabs & Reviews ── */
@media (max-width: 900px) {
  .reviews-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .reviews-summary-section {
    order: -1;
  }

  .tabs-nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .tabs-nav-left {
    gap: 1.25rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .tabs-nav-left::-webkit-scrollbar { display: none; }

  .tab-btn {
    font-size: 1.15rem;
    padding-bottom: 0.65rem;
    white-space: nowrap;
  }

  .tabs-nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .details-specs-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .overall-rating-card {
    padding: 1.05rem 1.1rem;
  }

  .rating-big-score {
    font-size: 1.85rem;
  }

  .write-review-card {
    padding: 1.05rem 1rem;
  }

  .write-review-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .star-rating-row {
    width: 100%;
    justify-content: space-between;
  }

  .review-input-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .submit-review-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Normal Clean & Responsive Empty Reviews Box ── */
.reviews-empty-box {
  background: linear-gradient(145deg, #13151f 0%, #0d0e15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.6rem 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.reviews-empty-box:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.empty-box-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.35rem 0;
  letter-spacing: 0.2px;
}

.empty-box-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .reviews-empty-box {
    padding: 1.25rem 1rem;
  }
  .empty-box-title {
    font-size: 0.92rem;
  }
  .empty-box-sub {
    font-size: 0.78rem;
  }
}

/* ── Luxury Compact Custom Modal Alert ── */
.tr-custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  padding: 1rem;
}

.tr-custom-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tr-custom-modal-box {
  background: linear-gradient(145deg, #161824 0%, #0d0e15 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1.2rem;
  max-width: 310px;
  width: 100%;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tr-custom-modal-overlay.active .tr-custom-modal-box {
  transform: scale(1) translateY(0);
}

.tr-modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem auto;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.18);
}

.tr-modal-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  letter-spacing: 0.1px;
}

.tr-modal-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 1.15rem 0;
}

.tr-modal-btn-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.5rem;
}

.tr-modal-btn-cancel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  height: 35px;
  padding: 0 0.75rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tr-modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.tr-modal-btn-confirm {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  height: 35px;
  padding: 0 0.85rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.tr-modal-btn-confirm:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.45);
}

@media (max-width: 360px) {
  .tr-custom-modal-box {
    max-width: 280px;
    padding: 1.1rem 0.95rem;
  }
  .tr-modal-btn-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}
