/* Novira — Product Detail Page (PDP) */

.ds-pdp {
  background: var(--ds-bg-soft);
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .ds-pdp {
    padding-bottom: 32px;
  }
}

.ds-pdp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 0 16px;
  font-size: 12px;
  color: var(--ds-text-muted);
}

.ds-pdp-breadcrumb a:hover {
  color: var(--ds-brand);
}

.ds-pdp-breadcrumb-sep {
  color: var(--ds-border);
}

.ds-pdp-breadcrumb-current {
  color: var(--ds-text-secondary);
  font-weight: 500;
}

.ds-pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .ds-pdp-grid {
    grid-template-columns: 360px 1fr 300px;
    gap: 24px;
    align-items: start;
  }
}

.ds-pdp-gallery-wrap {
  background: var(--ds-bg);
  border-radius: var(--ds-radius-lg);
  padding: 16px;
  border: 1px solid var(--ds-border);
}

.ds-pdp-gallery-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.ds-pdp-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ds-border);
  border-radius: 50%;
  background: var(--ds-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ds-pdp-icon-btn:hover,
.ds-pdp-icon-btn.is-active {
  border-color: var(--ds-brand);
  color: var(--ds-brand);
}

.ds-pdp-gallery .swiper-slide {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius);
  font-size: 80px;
}

.ds-pdp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.ds-pdp-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 2px solid var(--ds-border);
  border-radius: 8px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--ds-bg-soft);
  transition: border-color 0.2s;
}

.ds-pdp-thumb.is-active,
.ds-pdp-thumb:hover {
  border-color: var(--ds-brand);
}

.ds-pdp-info {
  background: var(--ds-bg);
  border-radius: var(--ds-radius-lg);
  padding: 20px;
  border: 1px solid var(--ds-border);
}

.ds-pdp-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ds-text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.ds-pdp-title-en {
  font-size: 13px;
  color: var(--ds-text-muted);
  margin-bottom: 16px;
}

.ds-pdp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}

.ds-pdp-stars {
  color: #f9a825;
  letter-spacing: 1px;
}

.ds-pdp-features {
  list-style: disc;
  padding-right: 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ds-text-secondary);
  line-height: 1.8;
}

.ds-pdp-variants-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  margin-bottom: 10px;
}

.ds-pdp-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.ds-pdp-variant {
  padding: 8px 16px;
  border: 2px solid var(--ds-border);
  border-radius: 20px;
  font-size: 13px;
  background: var(--ds-bg);
  cursor: pointer;
  transition: all 0.2s;
}

.ds-pdp-variant.is-active {
  border-color: var(--ds-brand);
  color: var(--ds-brand);
  font-weight: 600;
  background: rgba(239, 64, 86, 0.06);
}

.ds-pdp-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ds-border);
}

.ds-pdp-nav-links a {
  font-size: 13px;
  color: var(--ds-brand);
  font-weight: 600;
}

.ds-pdp-buybox {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 20px;
}

@media (min-width: 1024px) {
  .ds-pdp-buybox {
    position: sticky;
    top: 120px;
  }
}

.ds-pdp-seller {
  font-size: 13px;
  color: var(--ds-text-muted);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ds-border);
}

.ds-pdp-seller strong {
  color: var(--ds-text-secondary);
}

.ds-pdp-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ds-text-muted);
  margin-bottom: 8px;
}

.ds-pdp-price-block {
  margin: 16px 0;
}

.ds-pdp-price-old {
  font-size: 13px;
  color: var(--ds-text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.ds-pdp-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ds-pdp-discount-badge {
  background: var(--ds-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.ds-pdp-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--ds-text-secondary);
}

.ds-pdp-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ds-text-muted);
}

.ds-pdp-btn-cart {
  width: 100%;
  padding: 14px;
  background: var(--ds-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.ds-pdp-btn-cart:hover {
  background: var(--ds-brand-dark);
}

.ds-pdp-section {
  background: var(--ds-bg);
  border-radius: var(--ds-radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--ds-border);
}

.ds-pdp-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin-bottom: 16px;
}

.ds-pdp-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .ds-pdp-trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .ds-pdp-trust-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.ds-pdp-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ds-text-muted);
}

.ds-pdp-trust-item span:first-child {
  font-size: 24px;
}

.ds-pdp-sellers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ds-pdp-sellers-table th,
.ds-pdp-sellers-table td {
  padding: 12px;
  text-align: right;
  border-bottom: 1px solid var(--ds-border);
}

.ds-pdp-sellers-table th {
  color: var(--ds-text-muted);
  font-weight: 600;
  font-size: 12px;
}

.ds-pdp-sellers-wrap {
  overflow-x: auto;
}

.ds-pdp-btn-sm {
  padding: 8px 14px;
  background: var(--ds-brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.ds-pdp-desc {
  font-size: 14px;
  color: var(--ds-text-secondary);
  line-height: 1.9;
}

.ds-pdp-desc-collapsed {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.ds-pdp-desc-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, var(--ds-bg));
}

.ds-pdp-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ds-pdp-spec-table tr:nth-child(even) {
  background: var(--ds-bg-soft);
}

.ds-pdp-spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ds-border);
}

.ds-pdp-spec-table td:first-child {
  color: var(--ds-text-muted);
  width: 35%;
  font-weight: 500;
}

.ds-pdp-spec-table td:last-child {
  color: var(--ds-text-secondary);
}

.ds-pdp-reviews-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .ds-pdp-reviews-layout {
    grid-template-columns: 240px 1fr;
  }
}

.ds-pdp-review-summary {
  text-align: center;
  padding: 16px;
  background: var(--ds-bg-soft);
  border-radius: 12px;
}

.ds-pdp-review-score {
  font-size: 36px;
  font-weight: 800;
  color: var(--ds-text-secondary);
}

.ds-pdp-review-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 6px;
  color: var(--ds-text-muted);
}

.ds-pdp-review-bar-track {
  flex: 1;
  height: 6px;
  background: var(--ds-border);
  border-radius: 3px;
  overflow: hidden;
}

.ds-pdp-review-bar-fill {
  height: 100%;
  background: #f9a825;
  border-radius: 3px;
}

.ds-pdp-review-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--ds-border);
}

.ds-pdp-review-card:last-child {
  border-bottom: none;
}

.ds-pdp-review-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  margin: 8px 0;
}

.ds-pdp-review-card p {
  font-size: 13px;
  color: var(--ds-text-muted);
  line-height: 1.7;
}

.ds-pdp-qa-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ds-pdp-qa-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
}

.ds-pdp-qa-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--ds-border);
}

.ds-pdp-qa-item:last-child {
  border-bottom: none;
}

.ds-pdp-qa-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  margin-bottom: 10px;
}

.ds-pdp-qa-a {
  font-size: 13px;
  color: var(--ds-text-muted);
  padding-right: 12px;
  border-right: 3px solid var(--ds-green);
  line-height: 1.7;
}

.ds-pdp-qa-meta {
  font-size: 11px;
  color: var(--ds-text-muted);
  margin-top: 6px;
}

.ds-pdp-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ds-text-secondary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 600;
  box-shadow: var(--ds-shadow-lg);
}

@media (min-width: 1024px) {
  .ds-pdp-toast {
    bottom: 24px;
  }
}

.ds-pdp-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--ds-bg);
  border-top: 1px solid var(--ds-border);
  z-index: 400;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .ds-pdp-mobile-bar {
    display: none;
  }
}

.ds-pdp-mobile-bar .ds-pdp-btn-cart {
  width: auto;
  flex: 1;
  max-width: 200px;
}
