/* ============================================================
   BRAVANE INDUSTRY — PRODUCT DETAIL PAGES STYLESHEET
   Premium, modern B2B apparel specification & catalog system
   ============================================================ */

/* ─── Breadcrumb ─────────────────────────────────────────── */
.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

.product-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-breadcrumb a:hover {
  color: var(--color-accent);
}

.product-breadcrumb span.sep {
  opacity: 0.4;
  font-size: 0.75rem;
}

.product-breadcrumb span[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* ─── Product Hero Layout ────────────────────────────────── */
.product-hero {
  padding: calc(72px + var(--space-6)) 0 var(--space-10);
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-alt) 100%);
  border-bottom: 1px solid var(--color-border);
}

.product-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 960px) {
  .product-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ─── Product Gallery ────────────────────────────────────── */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: 90px;
}

.product-gallery__main {
  position: relative;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.product-gallery__main:hover img {
  transform: scale(1.03);
}

.product-gallery__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.product-gallery__thumb {
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background-color: #ffffff;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  padding: 0;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-gallery__thumb:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 29, 42, 0.15);
}

.product-gallery__thumb.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(225, 29, 42, 0.2);
}

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

/* ─── Product Info & Specs ───────────────────────────────── */
.product-info {
  display: flex;
  flex-direction: column;
}

.product-info .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.product-info__title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.product-info__lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

/* Quick Metrics Row */
.product-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

@media (max-width: 540px) {
  .product-metrics {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

.product-metric-item {
  display: flex;
  flex-direction: column;
}

.product-metric-item__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.product-metric-item__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
}

/* Highlights List */
.product-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-highlights li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.product-highlights li svg {
  color: var(--color-accent);
  background: rgba(225, 29, 42, 0.1);
  padding: 3px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Action CTA Box */
.product-cta-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.product-cta-group .btn {
  flex: 1 1 200px;
}

.product-trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.product-trust-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Specification Detail Table ─────────────────────────── */
.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.product-spec-table th,
.product-spec-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.product-spec-table th {
  background-color: var(--color-bg-alt);
  font-weight: 700;
  color: var(--color-text);
  width: 28%;
}

.product-spec-table td {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.product-spec-table tr:last-child th,
.product-spec-table tr:last-child td {
  border-bottom: none;
}

/* ─── Customization Cards ────────────────────────────────── */
.customization-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 960px) {
  .customization-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .customization-grid {
    grid-template-columns: 1fr;
  }
}

.customization-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.customization-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.customization-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(225, 29, 42, 0.1) 0%, rgba(225, 29, 42, 0.03) 100%);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(225, 29, 42, 0.15);
}

.customization-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.customization-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── MOQ Card Banner ────────────────────────────────────── */
.moq-banner {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 860px) {
  .moq-banner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
  }
}

.moq-banner__col-divider {
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-8);
}

@media (max-width: 860px) {
  .moq-banner__col-divider {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: var(--space-5);
  }
}

/* ─── Sizing Chart Table ─────────────────────────────────── */
.size-chart-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 600px;
}

.size-table th,
.size-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.size-table thead th {
  background-color: var(--color-bg-alt);
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.size-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  background-color: #fafafc;
  width: 30%;
}

.size-table tbody tr:last-child th,
.size-table tbody tr:last-child td {
  border-bottom: none;
}

.size-table tbody tr:hover td {
  background-color: rgba(225, 29, 42, 0.03);
}

/* ─── Gallery Cards ──────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.gallery-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card__img-wrap img {
  transform: scale(1.05);
}

.gallery-card__caption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
}

/* ─── Featured Case Study Card ───────────────────────────── */
.case-study-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: var(--space-8);
}

@media (max-width: 768px) {
  .case-study-card {
    padding: var(--space-6);
  }
}

/* ─── Interactive FAQ Cards ──────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 860px;
}

.faq-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.faq-card:hover {
  border-color: rgba(225, 29, 42, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.faq-card__header {
  padding: var(--space-5);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  user-select: none;
}

.faq-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.faq-card__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.faq-card.is-open .faq-card__icon {
  transform: rotate(180deg);
  background: rgba(225, 29, 42, 0.1);
  color: var(--color-accent);
}

.faq-card__body {
  padding: 0 var(--space-5) var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  border-top: 1px solid transparent;
}

/* ─── Fast Inquiry / Floating CTA Card ───────────────────── */
.rfq-box {
  background: linear-gradient(135deg, #111113 0%, #1f1f24 100%);
  color: #ffffff;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 860px) {
  .rfq-box {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }
}

.rfq-box h3 {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.rfq-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

.rfq-box__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.rfq-box .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.rfq-box .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}
