/* ============================================================
   ELE SHOP — PRODUCT DETAIL PAGE STYLES
   ============================================================ */

.product-page { padding-top: 90px; padding-bottom: 5rem; }

.breadcrumb {
  margin: 1.5rem auto;
  font-size: 0.85rem;
  color: var(--slate);
}

.breadcrumb a { color: var(--sky); }
.breadcrumb a:hover { text-decoration: underline; }

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  margin: 2rem auto 4rem;
  align-items: start;
}

/* ── GALLERY ────────────────────────────── */
.product-gallery { position: sticky; top: 90px; }

.main-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.image-badges { position: absolute; top: 1rem; left: 1rem; z-index: 5; display: flex; gap: 0.5rem; }

.badge-sale {
  background: var(--danger);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.slider-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(15,23,42,0.25);
  border: none; cursor: pointer;
  transition: all var(--transition);
}

.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--sky);
}

.thumbnail-grid {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnail-grid::-webkit-scrollbar { height: 4px; }
.thumbnail-grid::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 2px; }
.thumbnail-grid::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 2px; }

.thumb-item {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.thumb-item:hover { border-color: var(--sky); }
.thumb-item.active { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-glow); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── INFO ────────────────────────────────── */
.product-cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  display: block;
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.current-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sky);
}

.old-price {
  font-size: 1.2rem;
  color: var(--slate-light);
  text-decoration: line-through;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--danger);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin: 0.5rem 0 1rem;
}

.product-meta {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Delivery info */
.delivery-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.delivery-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.delivery-info-item i { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.delivery-info-item div { display: flex; flex-direction: column; gap: 2px; }
.delivery-info-item strong { font-size: 0.82rem; display: block; }
.delivery-info-item span { font-size: 0.75rem; opacity: 0.85; }

.delivery-accra { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.delivery-accra i { color: #16a34a; }
.delivery-other { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.delivery-other i { color: #d97706; }

.delivery-time-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.delivery-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.delivery-time-chip i { width: 12px; height: 12px; }
.accra-time { background: #dcfce7; color: #15803d; }
.other-time { background: #fef3c7; color: #92400e; }

/* Description */
.product-description {
  margin: 1.5rem 0;
  line-height: 1.7;
  color: var(--navy-mid);
  font-size: 0.95rem;
}

/* Purchase actions */
.purchase-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.qty-selector {
  display: flex;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  overflow: hidden;
}

.qty-selector button {
  width: 42px;
  height: 46px;
  border: none;
  background: var(--gray-100);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--navy);
}

.qty-selector button:hover { background: var(--sky); color: white; }

.qty-selector input {
  width: 52px;
  height: 46px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  background: white;
}

.flex-1 { flex: 1; }
.w-full { width: 100%; }
.mt-1 { margin-top: 0.75rem; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.45);
}

.product-extra-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.product-extra-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--slate);
  transition: color var(--transition);
}

.product-extra-links a:hover { color: var(--sky); }

/* Related */
.related-section { margin-top: 4rem; }
.related-section .section-title { margin-bottom: 2rem; }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
  .product-gallery { position: static; }
  .delivery-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .purchase-actions { flex-direction: column; }
  .qty-selector { width: fit-content; }
  .product-title { font-size: 1.6rem; }
  .current-price { font-size: 1.8rem; }
  .delivery-time-row { flex-direction: column; gap: 0.4rem; }
}