/* ═══════════════════════════════════════════
   PRODUCT DETAILS — Styles
   ═══════════════════════════════════════════ */

.pd-section {
  padding-top: calc(var(--header-height-mobile) + var(--space-xl));
  padding-bottom: var(--space-3xl);
  background: var(--bg);
}

@media (min-width: 1024px) {
  .pd-section {
    padding-top: calc(var(--header-height-desktop) + var(--space-2xl));
  }
}

/* ─── BREADCRUMB ─── */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.pd-breadcrumb a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.pd-breadcrumb a:hover {
  color: var(--red);
}

.pd-breadcrumb .sep {
  opacity: 0.4;
}

.pd-breadcrumb .current {
  color: var(--dark);
  font-weight: 500;
}

/* ─── GRID ─── */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .pd-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

/* ─── GALLERY ─── */
.pd-gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4/3;
}

.pd-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.pd-main-img:hover {
  transform: scale(1.03);
}

.pd-gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  scrollbar-width: thin;
}

.pd-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  background: none;
}

.pd-thumb.active {
  border-color: var(--red);
}

.pd-thumb:hover {
  border-color: var(--gray-300);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── INFO ─── */
.pd-info-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.pd-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.pd-type {
  font-size: 0.72rem;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.pd-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.pd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-lg);
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.pd-badge.badge-new {
  background: var(--red);
  color: white;
}

.pd-badge.badge-used {
  background: var(--gray-800);
  color: white;
}

.pd-badge-year,
.pd-badge-hours,
.pd-badge-power {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ─── PRICE ─── */
.pd-price-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.pd-price-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}

.pd-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.02em;
}

/* ─── DESCRIPTION ─── */
.pd-description {
  margin-bottom: var(--space-lg);
}

.pd-description h3,
.pd-specs h3,
.pd-pdfs h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.pd-description p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ─── CTA ─── */
.pd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(196,26,26,0.05) 0%, rgba(196,26,26,0.02) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(196,26,26,0.12);
}

.pd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: #25D366;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  flex: 1;
  justify-content: center;
  min-width: auto;
}

.pd-cta-btn:hover {
  background: #1DAF54;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.4);
}

.pd-cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  transition: all 0.3s ease;
}

.pd-cta-phone:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ─── SPECS ─── */
.pd-specs {
  margin-bottom: var(--space-xl);
}

.pd-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 640px) {
  .pd-specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pd-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.85rem;
}

.pd-spec:last-child,
.pd-specs-grid > .pd-spec:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

@media (min-width: 640px) {
  .pd-spec:nth-child(odd) {
    border-right: 1px solid var(--gray-200);
  }
}

.pd-spec:nth-child(even) {
  background: var(--gray-50);
}

.pd-spec-key {
  color: var(--gray-400);
  font-weight: 500;
}

.pd-spec-val {
  color: var(--dark);
  font-weight: 600;
  text-align: right;
}

/* ─── PDFS ─── */
.pd-pdfs {
  margin-bottom: var(--space-xl);
}

.pd-pdfs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pd-pdf-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.pd-pdf-item:hover {
  border-color: var(--red);
  background: var(--red-glow);
}

.pd-pdf-icon {
  font-size: 1.2rem;
}

.pd-pdf-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

.pd-pdf-download {
  color: var(--gray-400);
  font-size: 1.1rem;
}

/* ─── SHARE ─── */
.pd-share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-200);
}

.pd-share-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
}

.pd-share-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pd-share-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* ═══════════════════════════════════════════
   CENTERING — Mobile & Tablet
   ═══════════════════════════════════════════ */

@media (max-width: 1023px) {
  .pd-breadcrumb { justify-content: center; text-align: center; }
  .pd-info { text-align: center; }
  .pd-info-top { justify-content: center; }
  .pd-badges { justify-content: center; }
  .pd-price-box { text-align: center; }
  .pd-cta { justify-content: center; flex-direction: column; align-items: center; }
  .pd-cta-btn { width: 100%; max-width: 360px; }
  .pd-cta-phone { width: 100%; max-width: 360px; justify-content: center; }
  .pd-description { text-align: left; }
  .pd-share { justify-content: center; }
  .pd-share-label { text-align: center; }
  .pd-gallery-thumbs { justify-content: center; }
}

@media (max-width: 639px) {
  .pd-section { padding-top: calc(var(--header-height-mobile) + var(--space-md)); }
  .pd-title { font-size: 1.3rem; }
  .pd-price { font-size: 1.4rem; }
  .pd-specs-grid { grid-template-columns: 1fr; }
  .pd-spec:nth-child(odd) { border-right: none; }
}

/* ─── SVG Icon adjustments ─── */
.pd-cta-btn svg { flex-shrink: 0; }
.pd-cta-phone svg { flex-shrink: 0; width: 16px; height: 16px; }

.pd-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-share-btn svg { width: 16px; height: 16px; }

.pd-pdf-icon {
  display: inline-flex;
  align-items: center;
}
.pd-pdf-icon svg { width: 18px; height: 18px; color: var(--red); }

.pd-pdf-download {
  display: inline-flex;
  align-items: center;
}
.pd-pdf-download svg { width: 16px; height: 16px; color: var(--gray-400); }

/* ═══ SMALL PHONE FIXES ═══ */
@media (max-width: 380px) {
  .pd-title { font-size: 1.15rem; }
  .pd-price { font-size: 1.25rem; }
  .pd-cta-btn { font-size: 0.9rem; padding: 0.75rem 1.5rem; }
  .pd-badges { gap: 4px; }
  .pd-badge { font-size: 0.68rem; padding: 0.2rem 0.5rem; }
}

/* ─── EXTRA MOBILE FIXES ─── */
@media (max-width: 1023px) {
  .pd-gallery-main { aspect-ratio: 1/1; }
}
@media (max-width: 639px) {
  .pd-thumb { width: 56px; height: 56px; }
  .pd-cta-btn { width: 100%; justify-content: center; }
  .pd-cta-phone { width: 100%; justify-content: center; }
  .pd-spec-val { text-align: left; }
}
