/* ════════════════════════════════════════════════════════════
   Product Detail Page — Sindhi Dry Fruits inspired
   https://sindhidryfruits.live/products/salted-pistachios
   ════════════════════════════════════════════════════════════ */

.sdp-page {
  background: #fafaf8;
}

.sdp-wrap {
  padding: 1.25rem 0 3.5rem;
}

.sdp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: #6b7280;
}
.sdp-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}
.sdp-breadcrumb a:hover { color: var(--sp-premium-forest, #3D6B1E); }
.sdp-breadcrumb .sdp-bc-current {
  color: #111827;
  font-weight: 600;
}

.sdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: start;
}

/* Gallery */
.sdp-gallery {
  position: sticky;
  top: 120px;
}
.sdp-gallery-main {
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sdp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sdp-gallery-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.sdp-gallery-visual-emoji {
  font-size: 5rem;
  line-height: 1;
}
.sdp-gallery-visual-cat {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-premium-forest, #3D6B1E);
}
.sdp-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.sdp-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
}
.sdp-thumb.active { border-color: var(--sp-premium-forest, #3D6B1E); }
.sdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Buy box */
.sdp-buybox {
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}
.sdp-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.sdp-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
}
.sdp-badge.sale { background: #dc2626; color: #fff; }
.sdp-badge.benefit {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.sdp-vendor {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.sdp-vendor strong { color: var(--sp-premium-forest, #3D6B1E); }
.sdp-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: #111827;
  margin: 0 0 10px;
}
.sdp-hot-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 12px;
}
.sdp-short-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 1.25rem;
}
.sdp-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.sdp-stars { color: #f59e0b; font-size: 0.9rem; }
.sdp-review-count { font-size: 0.82rem; color: #6b7280; font-weight: 600; }

.sdp-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #374151;
  margin-bottom: 8px;
}
.sdp-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.sdp-size-pill {
  border: 2px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.sdp-size-pill.active,
.sdp-size-pill:hover {
  border-color: var(--sp-premium-forest, #3D6B1E);
  color: var(--sp-premium-forest, #3D6B1E);
  background: #F4FAEB;
}

.sdp-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.sdp-qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.sdp-qty button {
  width: 44px;
  height: 44px;
  border: none;
  background: #f9fafb;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.sdp-qty button:hover { background: #f3f4f6; }
.sdp-qty input {
  width: 52px;
  text-align: center;
  border: none;
  font-weight: 800;
  font-size: 1rem;
}

.sdp-price-block {
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  padding: 1rem 0;
  margin-bottom: 1.25rem;
}
.sdp-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.sdp-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sp-premium-forest, #3D6B1E);
}
.sdp-price-old {
  font-size: 1.1rem;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 600;
}
.sdp-price-off {
  font-size: 0.75rem;
  font-weight: 800;
  color: #dc2626;
  background: #fef2f2;
  padding: 4px 8px;
  border-radius: 6px;
}
.sdp-subtotal {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 8px;
}
.sdp-subtotal strong { color: #111827; }
.sdp-tax-note {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 4px;
}
.sdp-unit-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 6px;
}

.sdp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1rem;
}
.sdp-btn-cart {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--sp-premium-forest, #3D6B1E);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sdp-btn-cart:hover {
  background: #2D5016;
  transform: translateY(-1px);
}
.sdp-btn-secondary {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  background: #fff;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.sdp-btn-secondary:hover {
  border-color: var(--sp-premium-forest, #3D6B1E);
  color: var(--sp-premium-forest, #3D6B1E);
}
.sdp-stock-urgent {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 1rem;
}
.sdp-viewers {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Trust strip */
.sdp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 2rem 0;
}
.sdp-trust-card {
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.sdp-trust-card i {
  font-size: 1.5rem;
  color: var(--sp-premium-forest, #3D6B1E);
  margin-bottom: 10px;
}
.sdp-trust-card h3 {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #111827;
}
.sdp-trust-card p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Tabs */
.sdp-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 0;
}
.sdp-tab-btn {
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
.sdp-tab-btn.active {
  color: var(--sp-premium-forest, #3D6B1E);
  border-bottom-color: var(--sp-premium-gold, #9ACD32);
}
.sdp-tab-panel {
  display: none;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 1.5rem;
}
.sdp-tab-panel.active { display: block; }
.sdp-tab-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #4b5563;
  line-height: 1.75;
}
.sdp-tab-panel li { margin-bottom: 8px; }
.sdp-desc-text {
  color: #4b5563;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Quality cards */
.sdp-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 2rem 0;
}
.sdp-quality-card {
  background: linear-gradient(145deg, #F4FAEB, #fff);
  border: 1px solid #e8e6e1;
  border-radius: 14px;
  padding: 1.25rem;
}
.sdp-quality-card h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #111827;
}
.sdp-quality-card p {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.55;
}

/* FAQ */
.sdp-faq { margin: 2.5rem 0; }
.sdp-faq-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.25rem;
}
.sdp-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
}
.sdp-faq-item summary {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sdp-faq-item summary::-webkit-details-marker { display: none; }
.sdp-faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--sp-premium-forest, #3D6B1E);
  font-weight: 400;
}
.sdp-faq-item[open] summary::after { content: '−'; }
.sdp-faq-body {
  padding: 0 16px 14px;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.65;
}

/* Related */
.sdp-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}
.sdp-related-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.sdp-related-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}
.sdp-related-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 6px 0 0;
}

@media (max-width: 991px) {
  .sdp-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .sdp-gallery { position: static; }
  .sdp-trust-grid,
  .sdp-quality-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .sdp-buybox { padding: 1.15rem; }
  .sdp-price { font-size: 1.65rem; }
}
