/**
 * =============================================================================
 * SECTION PRODUK: TABS, PANEL & POSTER (css/sections/produk.css)
 * =============================================================================
 */

/* --------------------------------------------------------------------------
   7. SECTION 3: Produk (#produk) - Tab & Panel Terpilih
   -------------------------------------------------------------------------- */
.product-tabs-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 32px;
  padding-bottom: 6px;
}

.product-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}

.product-tabs-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.product-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.product-tab-btn {
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  background-color: var(--color-surface-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.product-tab-btn:hover {
  color: var(--color-text-main);
  border-color: var(--color-text-main);
}

/* Oranye HANYA untuk tab produk yang aktif */
.product-tab-btn.active {
  background-color: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(247, 113, 4, 0.3);
}

/* Panel Produk Terpilih */
.product-detail-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 26px var(--color-shadow);
}

@media (min-width: 768px) {
  .product-detail-panel {
    padding: 40px;
  }
}

.product-panel-layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

@media (min-width: 860px) {
  .product-panel-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .product-panel-poster-col {
    flex: 1 1 42%;
    position: sticky;
    top: 96px;
  }
  .product-panel-info-col {
    flex: 1 1 58%;
  }
}

/* Poster Sisi Kiri */
.product-poster-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface-alt);
  cursor: pointer;
  box-shadow: 0 6px 18px var(--color-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-poster-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--color-shadow-lg);
}

.product-poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.product-poster-hint {
  padding: 8px 12px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-text-muted);
  background-color: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
}

/* Thumbnail Poster Tambahan (Multi-Poster) */
.product-poster-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.poster-thumb-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition-fast);
  flex: 1 1 0;
  text-align: left;
}

.poster-thumb-btn:hover {
  border-color: var(--brand);
  background-color: var(--color-surface-alt);
}

.poster-thumb-btn.active {
  border-color: var(--brand);
  background-color: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: 0 0 0 1px var(--brand);
}

@media (prefers-color-scheme: dark) {
  .poster-thumb-btn.active {
    background-color: rgba(242, 107, 29, 0.15);
    color: #FB923C;
    border-color: #F26B1D;
  }
}

.poster-thumb-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.poster-thumb-label {
  line-height: 1.35;
}

.product-poster-placeholder {
  aspect-ratio: 4 / 5;
  background-color: var(--color-placeholder-bg);
  color: var(--color-placeholder-text);
  border: 1px dashed var(--color-placeholder-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  gap: 12px;
}

.product-placeholder-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.product-placeholder-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 300px;
}

