/* =====================================================
   LODAZ – PRODUCT DETAILS PAGE STYLES
   Style: Snack Shop / Candy Store UI
===================================================== */

body { background: var(--lodaz-gray-light); }

/* ===== BREADCRUMB ===== */
.breadcrumb-wrap {
  background: var(--lodaz-white);
  padding: 0.8rem 0;
  border-bottom: 2px solid var(--lodaz-orange-soft);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.breadcrumb { margin: 0; font-size: 0.875rem; }
.breadcrumb-item a {
  color: var(--lodaz-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.breadcrumb-item a:hover { color: var(--lodaz-red-dark); text-decoration: underline; }
.breadcrumb-item.active { color: var(--lodaz-text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--lodaz-orange); }

/* ===== PRODUCT SECTION ===== */
#product-section { padding: 2.5rem 0 4rem; }

/* ===== IMAGE GALLERY ===== */
.gallery-main {
  border-radius: 20px;
  overflow: hidden;
  background: var(--lodaz-white);
  border: 2px solid var(--lodaz-orange-soft);
  cursor: zoom-in;
  position: relative;
  box-shadow: var(--shadow-card);
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.gallery-main:hover img { transform: scale(1.04); }
.gallery-main .product-badge-detail {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--lodaz-red);
  color: var(--lodaz-white);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: var(--radius-badge);
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(229,57,53,0.35);
}

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gallery-thumb.active {
  border-color: var(--lodaz-red);
  transform: scale(1.06);
}
.gallery-thumb:hover { border-color: var(--lodaz-orange); }
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.8rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
#lightbox-close:hover { opacity: 1; }

/* ===== PRODUCT INFO CARD ===== */
.product-info-card {
  background: var(--lodaz-white);
  border-radius: 20px;
  padding: 2rem;
  border: 1.5px solid var(--lodaz-orange-soft);
  box-shadow: var(--shadow-card);
}
.product-info-card h1 {
  color: var(--lodaz-brown);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.product-desc {
  color: #555;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Shopee label */
.shopee-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--lodaz-orange-soft), #FFCC80);
  color: var(--lodaz-brown);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-badge);
  margin-bottom: 1rem;
  border: 1px solid var(--lodaz-orange);
}

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  margin-bottom: 1.5rem;
}
.specs-table td {
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
}
.specs-table td:first-child {
  color: var(--lodaz-text-muted);
  font-weight: 600;
  width: 130px;
  white-space: nowrap;
}
.specs-table td:last-child {
  color: var(--lodaz-brown);
  font-weight: 600;
  background: var(--lodaz-cream);
  border-radius: 8px;
}

/* Variations list */
.variations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.variation-chip {
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  background: var(--lodaz-cream);
  border: 1.5px solid var(--lodaz-orange-soft);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lodaz-brown);
}

/* CTA Shopee button */
.btn-shopee-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--lodaz-orange);
  color: var(--lodaz-white);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1.05rem 2rem;
  border-radius: var(--radius-badge);
  text-decoration: none;
  border: none;
  width: 100%;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(255,167,38,0.4);
  animation: pulse-shopee 2.5s infinite;
}
.btn-shopee-main:hover {
  background: var(--lodaz-orange-dark);
  color: var(--lodaz-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,167,38,0.5);
}

/* Redirect notice */
.shopee-notice {
  font-size: 0.8rem;
  color: var(--lodaz-text-muted);
  margin-top: 0.6rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* ===== BACK BUTTON ===== */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--lodaz-red);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: gap 0.2s, background 0.2s;
}
.btn-back:hover {
  gap: 0.8rem;
  color: var(--lodaz-red-dark);
  background: var(--lodaz-cream);
}

/* ===== RELATED PRODUCTS ===== */
#related {
  background: var(--lodaz-cream);
  padding: 4rem 0;
}
#related h2 {
  color: var(--lodaz-brown);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
}
#related h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--lodaz-orange);
  border-radius: 2px;
  margin-top: 6px;
}

.related-card {
  background: var(--lodaz-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--lodaz-orange-soft);
  color: inherit;
}
.related-card-img {
  position: relative;
  overflow: hidden;
  background: var(--lodaz-cream);
}
.related-card-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.related-card:hover .related-card-img img { transform: scale(1.06); }

.related-card-body { padding: 0.85rem; }
.related-card-body h6 {
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--lodaz-brown);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.related-card-body p {
  font-size: 0.76rem;
  color: var(--lodaz-text-muted);
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-detail-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.85rem;
  background: var(--lodaz-red);
  color: var(--lodaz-white);
  border-radius: var(--radius-btn);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-detail-sm:hover { background: var(--lodaz-red-dark); color: var(--lodaz-white); }

.related-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--lodaz-red);
  color: var(--lodaz-white);
  font-size: 0.65rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  padding: 3px 9px;
  border-radius: var(--radius-badge);
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(229,57,53,0.3);
}
.related-badge.badge-new {
  background: var(--lodaz-orange);
  color: white;
}

/* ===== NOT FOUND ===== */
#not-found {
  display: none;
  text-align: center;
  padding: 6rem 2rem;
}
#not-found .nf-emoji { font-size: 5.5rem; }
#not-found h2 { color: var(--lodaz-red); margin: 1rem 0 0.5rem; }

/* ===== SKELETON ===== */
.skeleton-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, #FFE0B2 25%, #FFF3E0 50%, #FFE0B2 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s infinite;
  border-radius: 18px;
}
