/* ============================================================
   Product Detail Page — Styles
   ============================================================ */

/* ========== BREADCRUMB ========== */
.breadcrumb-bar {
  padding: 12px 0;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.breadcrumb {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.82rem;
  color: #888;
}
.breadcrumb li {
  display: inline-flex !important;
  align-items: center;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.breadcrumb a {
  color: #666;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #5046e5; }
.breadcrumb .separator {
  margin: 0 8px;
  color: #ccc;
  font-size: 0.9rem;
}
.breadcrumb .active {
  color: #333;
  font-weight: 600;
}
.breadcrumb .active span {
  color: #333;
  font-weight: 600;
}

/* ========== PRODUCT HERO ========== */
.pdp-hero {
  padding: 48px 0 56px;
  background: linear-gradient(172deg, #f8f7ff 0%, #eef2ff 50%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.pdp-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80,70,229,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.pdp-hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Image Column */
.pdp-image-col {
  position: relative;
}
.pdp-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: 0 12px 40px rgba(80,70,229,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pdp-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(80,70,229,0.18), 0 4px 12px rgba(0,0,0,0.08);
}
.pdp-image-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.pdp-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  background: linear-gradient(135deg, #5046e5, #7c3aed);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(80,70,229,0.3);
}
.pdp-badge:empty { display: none; }

.pdp-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.pdp-gallery-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.2s;
  cursor: pointer;
}
.pdp-gallery-dots .dot.active {
  background: #5046e5;
  width: 24px;
  border-radius: 4px;
}

/* Info Column */
.pdp-info-col {
  padding-top: 8px;
}
.pdp-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: #5046e5;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pdp-category::before {
  content: '';
  width: 3px;
  height: 14px;
  background: #5046e5;
  border-radius: 2px;
}
.pdp-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #111;
  margin-bottom: 12px;
}
.pdp-tagline {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 480px;
}

/* Rating */
.pdp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.pdp-rating .stars { display: flex; gap: 2px; }
.pdp-rating .stars span {
  color: #f59e0b;
  font-size: 1rem;
}
.pdp-rating .rating-text {
  font-size: 0.82rem;
  color: #888;
  font-weight: 500;
}

/* Pricing */
.pdp-pricing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.pdp-price-current {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
}
.pdp-price-was {
  font-size: 1rem;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 400;
}
.pdp-discount-tag {
  padding: 4px 12px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* Highlights */
.pdp-highlights {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdp-highlights li {
  font-size: 0.88rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s, border-color 0.2s;
}
.pdp-highlights li:hover {
  transform: translateX(4px);
  border-color: #e0e7ff;
}

/* CTA Buttons */
.pdp-cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.pdp-add-btn {
  flex: 1;
  padding: 14px 28px !important;
  font-size: 0.95rem !important;
}
.pdp-add-btn .btn-icon { margin-right: 4px; }
.pdp-buy-now {
  flex: 1;
  padding: 14px 28px !important;
  font-size: 0.95rem !important;
}
.pdp-add-btn.added {
  background: linear-gradient(135deg, #059669, #10b981) !important;
}

/* Trust Badges */
.pdp-trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #888;
  font-weight: 500;
}
.trust-badge-item .tb-icon { font-size: 1rem; }

/* ========== TABS ========== */
.pdp-details-section {
  padding: 48px 0 60px;
  background: #fff;
}
.pdp-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pdp-tab {
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
  background: none;
}
.pdp-tab:hover { color: #555; }
.pdp-tab.active {
  color: #5046e5;
  border-bottom-color: #5046e5;
}

.pdp-tab-panel { display: none; animation: fadeTabIn 0.3s ease; }
.pdp-tab-panel.active { display: block; }
@keyframes fadeTabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Overview Tab */
.pdp-overview-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.pdp-overview-main h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}
.pdp-long-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}
.pdp-long-desc p { margin-bottom: 16px; }
.pdp-long-desc h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin: 24px 0 10px;
}
.pdp-long-desc ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.pdp-long-desc ul li {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* Info Card Sidebar */
.pdp-info-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 80px;
}
.pdp-info-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 0.82rem; color: #888; }
.info-value { font-size: 0.82rem; color: #333; font-weight: 600; }

/* Features Tab */
.pdp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.pdp-feature-card {
  padding: 24px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pdp-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.pdp-feature-card .fc-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}
.pdp-feature-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}
.pdp-feature-card p {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.6;
}

/* Specs Tab */
.pdp-specs-table {
  max-width: 640px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
  font-size: 0.88rem;
  color: #888;
  font-weight: 500;
}
.spec-value {
  font-size: 0.88rem;
  color: #333;
  font-weight: 600;
}

/* FAQ Tab */
.pdp-faq-list {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-faq-item {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.pdp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.pdp-faq-q:hover { background: #fafafa; }
.pdp-faq-q .arrow {
  font-size: 1rem;
  color: #999;
  transition: transform 0.25s;
}
.pdp-faq-item.open .arrow { transform: rotate(180deg); }
.pdp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pdp-faq-a-inner {
  padding: 0 20px 16px;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
}

/* ========== TESTIMONIALS ========== */
.pdp-social-proof {
  padding: 60px 0;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}
.pdp-social-proof h2 {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: #111;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.tc-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.tc-text {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.tc-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5046e5, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.tc-author-info .tc-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
}
.tc-author-info .tc-role {
  font-size: 0.72rem;
  color: #999;
}

/* ========== RELATED PRODUCTS ========== */
.pdp-related {
  padding: 60px 0;
  background: #fff;
}
.pdp-related h2 {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: #111;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ========== 404 STATE ========== */
.pdp-not-found {
  text-align: center;
  padding: 80px 20px;
}
.pdp-not-found h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111;
}
.pdp-not-found p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 24px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pdp-overview-grid {
    grid-template-columns: 1fr;
  }
  .pdp-info-card {
    position: static;
  }
}
@media (max-width: 768px) {
  .pdp-hero { padding: 28px 0 36px; }
  .pdp-cta-row { flex-direction: column; }
  .pdp-trust-badges { gap: 12px; }
  .pdp-tabs { gap: 0; }
  .pdp-tab { padding: 10px 16px; font-size: 0.82rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pdp-pricing { flex-wrap: wrap; gap: 10px; }
  .pdp-price-current { font-size: 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  .pdp-features-grid { grid-template-columns: 1fr; }
}
