/* Product detail — dark theme (them2) */
.pd-page {
  padding: 0 0 3rem;
  color: var(--text-light, #e2e8f0);
}

.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.pd-breadcrumb a {
  color: var(--cyan, #00E5FF);
  text-decoration: none;
  font-weight: 600;
}

.pd-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--purple, #8B5CF6);
}

.pd-breadcrumb .sep {
  color: var(--text-muted, #64748b);
}

.pd-breadcrumb .current {
  color: var(--text-light, #e2e8f0);
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 992px) {
  .pd-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
  }
}

/* Gallery */
.pd-gallery {
  border-radius: 24px;
  overflow: hidden;
  background: var(--glass-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow, 0 4px 24px rgba(0, 0, 0, 0.35));
}

.pd-gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.06), rgba(139, 92, 246, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(5, 8, 22, 0.55);
}

.pd-gallery-soldout {
  position: absolute;
  inset: 1rem;
  border-radius: 14px;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pd-gallery-soldout img {
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  overflow-x: auto;
}

.pd-gallery-thumb {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-gallery-thumb:hover,
.pd-gallery-thumb.active {
  border-color: var(--cyan, #00E5FF);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

.pd-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(5, 8, 22, 0.4);
}

/* Info panel */
.pd-info {
  border-radius: 24px;
  padding: 1.5rem 1.75rem;
  background: var(--glass-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow, 0 4px 24px rgba(0, 0, 0, 0.35));
}

.pd-title {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--white, #ffffff);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.pd-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cyan, #00E5FF);
  margin-bottom: 0.75rem;
}

.pd-price strike {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  margin-left: 0.5rem;
}

.pd-badge-discount {
  display: inline-block;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted, #94a3b8);
}

.pd-meta strong {
  color: var(--text-light, #e2e8f0);
}

.pd-stars {
  display: inline-flex;
  gap: 2px;
  direction: ltr;
}

.pd-stars .star-filled {
  color: #ff6e03;
}

.pd-stars .star-empty {
  color: rgba(255, 255, 255, 0.15);
}

.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.pd-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, #ff6e03, #f97316);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.pd-btn-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 110, 3, 0.4);
}

.pd-btn-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pd-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light, #e2e8f0) !important;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pd-btn-secondary:hover {
  border-color: var(--cyan, #00E5FF);
  color: var(--cyan, #00E5FF) !important;
  background: rgba(0, 229, 255, 0.08);
}

.pd-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}

.pd-trust-item {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}

.pd-trust-item img {
  height: 32px;
  margin-bottom: 0.35rem;
  filter: brightness(1.15);
}

.pd-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

/* Tabs */
.pd-tabs {
  margin-bottom: 2.5rem;
}

.pd-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  padding-bottom: 0.5rem;
}

.pd-tab-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.pd-tab-btn:hover {
  color: var(--cyan, #00E5FF);
}

.pd-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(139, 92, 246, 0.08));
  color: var(--cyan, #00E5FF);
  border-color: rgba(0, 229, 255, 0.25);
}

.pd-tab-panel {
  display: none;
  border-radius: 20px;
  padding: 1.5rem;
  background: var(--glass-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  color: var(--text-light, #e2e8f0);
}

.pd-tab-panel.active {
  display: block;
  animation: pd-fade-in 0.35s ease;
}

.pd-tab-panel p,
.pd-tab-panel div {
  color: var(--text-light, #e2e8f0);
  line-height: 1.75;
}

@keyframes pd-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pd-features-table {
  width: 100%;
  border-collapse: collapse;
}

.pd-features-table th,
.pd-features-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  text-align: right;
  color: var(--text-light, #e2e8f0);
}

.pd-features-table th {
  width: 30%;
  font-weight: 700;
  color: var(--white, #ffffff);
  background: rgba(0, 229, 255, 0.06);
}

.pd-features-table thead th {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan, #00E5FF);
}

.pd-comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}

.pd-comment:last-child {
  border-bottom: none;
}

.pd-comment-author {
  font-size: 0.8125rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0.35rem;
}

.pd-comment-text {
  color: var(--text-light, #e2e8f0);
  line-height: 1.7;
}

.pd-alert {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pd-alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pd-alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.pd-alert a {
  color: var(--cyan, #00E5FF);
  font-weight: 600;
}

.pd-laws {
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  color: var(--text-light, #e2e8f0);
}

.pd-laws h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--white, #ffffff);
}

.pd-laws h3 i,
.pd-laws h3 .icon {
  color: #ff6e03;
  margin-left: 0.35rem;
}

.pd-laws p,
.pd-laws li,
.pd-laws div {
  color: var(--text-muted, #94a3b8);
  line-height: 1.7;
}

.pd-related {
  margin-top: 2.5rem;
}

.pd-related-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.pd-related-header .section-label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.pd-related-header h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--white, #ffffff);
}

.pd-request-msg {
  font-size: 0.875rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 0.5rem;
}

.pd-request-msg a {
  color: var(--cyan, #00E5FF);
  font-weight: 600;
}

.pd-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pd-divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}

.pd-muted {
  color: var(--text-muted, #94a3b8);
}

.pd-comment-form-title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.pd-comment-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--text-light, #e2e8f0);
}

.pd-star-picker {
  display: flex;
  gap: 0.15rem;
  direction: ltr;
  justify-content: flex-end;
}

.pd-star-btn {
  background: none;
  border: 0;
  padding: 0 2px;
  font-size: 1.85rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.pd-star-btn.is-on,
.pd-star-btn:hover {
  color: #fbbf24;
}

.pd-star-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.pd-comment-textarea {
  min-height: 110px;
  resize: vertical;
}

@media (min-width: 992px) {
  .pd-content-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }
}
