/* produk-detail.css — Halaman Detail Produk */

.fp-det-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--gray-4);
  padding: .85rem 0;
  font-size: .78rem;
  color: var(--gray-3);
}
.fp-det-breadcrumb a { color: var(--gray-3); }
.fp-det-breadcrumb a:hover { color: var(--black); }
.fp-det-breadcrumb span { margin: 0 .35rem; }
.fp-det-bc-current { color: var(--black); }

.fp-det-main { background: var(--white); padding: 2rem 0; margin-bottom: .5rem; }
.fp-det-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.fp-det-gallery { width: 420px; max-width: 100%; flex-shrink: 0; }
.fp-det-main-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .65rem;
}
.fp-det-main-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-det-img-ph { font-size: 3rem; color: var(--gray-4); }

.fp-det-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.fp-det-thumb {
  width: 70px;
  height: 70px;
  padding: 0;
  border: 2px solid var(--gray-4);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-5);
}
.fp-det-thumb.active { border-color: var(--accent); }
.fp-det-thumb img { width: 100%; height: 100%; object-fit: cover; }

.fp-det-info { flex: 1; min-width: 0; }
.fp-det-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.fp-det-badge {
  font-size: .68rem;
  padding: .25rem .65rem;
  border-radius: 4px;
}
.fp-det-badge--cat { background: var(--gray-5); color: var(--gray-2); }
.fp-det-badge--mom { background: rgba(255,205,54,.15); color: var(--accent-dark); font-weight: 600; }

.fp-det-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: .65rem;
}
.fp-det-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
  font-size: .82rem;
  color: var(--gray-3);
}
.fp-det-stars { color: var(--accent); font-size: .85rem; }
.fp-det-rating-num { font-weight: 600; color: var(--black); }
.fp-det-review-link { text-decoration: underline; color: var(--gray-3); }
.fp-det-sold { color: var(--gray-3); }

.fp-det-price-box {
  background: var(--gray-5);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.1rem;
}
.fp-det-price-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-3);
  margin-bottom: .35rem;
}
.fp-det-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.fp-det-price-main {
  font-family: 'Poppins', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--black);
}
.fp-det-price-ori { font-size: .88rem; color: var(--gray-3); text-decoration: line-through; }
.fp-det-price-disc {
  font-size: .78rem;
  background: var(--accent);
  color: var(--black);
  padding: .2rem .5rem;
  border-radius: 4px;
  font-weight: 700;
}
.fp-det-b2b {
  font-size: .78rem;
  color: var(--gray-2);
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px dashed var(--gray-4);
}
.fp-det-b2b a { color: #2563eb; font-weight: 600; }

.fp-det-flash {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .75rem;
}
.fp-det-flash-label { font-size: .7rem; font-weight: 700; color: #ef4444; }
.fp-det-tbox {
  background: var(--black);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  padding: .25rem .5rem;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}
.fp-det-tsep { color: var(--gray-4); font-size: .8rem; }

.fp-det-varian { margin-bottom: 1.1rem; }
.fp-det-varian-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.fp-det-varian-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.fp-det-vchip {
  padding: .45rem 1rem;
  border-radius: 5px;
  border: 1px solid var(--gray-4);
  font-size: .78rem;
  color: var(--gray-2);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.fp-det-vchip.on {
  background: var(--black);
  color: var(--accent);
  border-color: var(--black);
  font-weight: 600;
}
.fp-det-vchip.unavail { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.fp-det-qty-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.fp-det-qty-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  width: 80px;
  color: var(--gray-2);
}
.fp-det-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--gray-4);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s;
}
.fp-det-qty-ctrl:hover { border-color: var(--gray-2); }
.fp-det-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}
.fp-det-qty-btn:hover { background: var(--gray-5); color: #111; }
.fp-det-qty-btn:active { background: var(--gray-4); }
.fp-det-qty-btn.disabled {
  opacity: .3;
  cursor: not-allowed;
  pointer-events: none;
}
.fp-det-qty-num {
  width: 52px;
  height: 40px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--gray-4);
  border-right: 1.5px solid var(--gray-4);
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
  padding: 0;
  color: #111;
  font-family: 'Poppins', sans-serif;
}
.fp-det-qty-num::-webkit-outer-spin-button,
.fp-det-qty-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fp-det-qty-num:focus { background: #fefce8; }
.fp-det-qty-stock { font-size: .78rem; color: var(--gray-3); }

.fp-det-upload {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: var(--gray-5);
  border: 2px dashed var(--gray-4);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.1rem;
}
.fp-det-upload > i { font-size: 1.4rem; color: var(--gray-3); margin-top: .15rem; }
.fp-det-upload-title { font-size: .85rem; font-weight: 700; margin-bottom: .2rem; }
.fp-det-upload-sub { font-size: .72rem; color: var(--gray-3); margin-bottom: .4rem; }
.fp-det-upload-input { font-size: .72rem; max-width: 100%; }
.fp-det-upload-info {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.1rem;
}
.fp-det-upload-info > i { font-size: 1.2rem; color: #3b82f6; margin-top: .15rem; }

.fp-det-actions { display: flex; gap: .6rem; margin-bottom: .75rem; }
.fp-det-btn {
  flex: 1;
  padding: .8rem 1rem;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.fp-det-btn--cart {
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
}
.fp-det-btn--cart:hover { background: var(--gray-5); color: var(--black); }
.fp-det-btn--buy {
  flex: 2;
  background: var(--accent);
  color: var(--black);
  border: none;
}
.fp-det-btn--buy:hover { background: var(--accent-dark); color: var(--black); }

.fp-det-shopee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .65rem;
  border: 1px solid #ee4d2d;
  border-radius: 6px;
  color: #ee4d2d;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.fp-det-shopee:hover { background: #fff5f3; color: #ee4d2d; }

.fp-det-meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-4);
  font-size: .78rem;
  color: var(--gray-2);
}
.fp-det-meta div { display: flex; gap: .5rem; }
.fp-det-meta span:first-child { width: 100px; color: var(--gray-3); }

.fp-det-tabs-wrap { background: var(--white); padding: 2rem 0 2.5rem; }
.fp-det-tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--gray-4);
  margin-bottom: 1.75rem;
  overflow-x: auto;
}
.fp-det-tab {
  padding: .6rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
}
.fp-det-tab.on { color: var(--black); border-color: var(--black); }

.fp-det-panel { display: none; }
.fp-det-panel.on { display: block; }

.fp-det-desc { font-size: .85rem; color: var(--gray-2); line-height: 1.9; max-width: 700px; }
.fp-det-desc h4 { font-size: 1rem; font-weight: 700; color: var(--black); margin: 1rem 0 .5rem; }
.fp-det-desc ul { padding-left: 1.25rem; margin: .5rem 0; }
.fp-det-desc li { margin-bottom: .35rem; }

.fp-det-spec { width: 100%; max-width: 600px; border-collapse: collapse; font-size: .85rem; }
.fp-det-spec tr:nth-child(even) { background: var(--gray-5); }
.fp-det-spec td { padding: .65rem .9rem; border-bottom: 1px solid var(--gray-4); }
.fp-det-spec td:first-child { color: var(--gray-3); width: 160px; }

.fp-det-review-summary {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--gray-5);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  max-width: 600px;
  flex-wrap: wrap;
}
.fp-det-review-big { text-align: center; }
.fp-det-review-num { font-size: 2.75rem; font-weight: 800; line-height: 1; }
.fp-det-review-stars { color: var(--accent); font-size: 1.1rem; }
.fp-det-review-count-sm { font-size: .72rem; color: var(--gray-3); }
.fp-det-review-bars { flex: 1; min-width: 200px; }
.fp-det-rbar-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  font-size: .72rem;
  color: var(--gray-3);
}
.fp-det-rbar-track {
  flex: 1;
  height: 6px;
  background: var(--gray-4);
  border-radius: 3px;
  overflow: hidden;
}
.fp-det-rbar-fill { height: 100%; background: var(--accent); border-radius: 3px; }

.fp-det-review-card {
  border: 1px solid var(--gray-4);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  max-width: 700px;
}
.fp-det-reviewer { display: flex; align-items: center; gap: .65rem; margin-bottom: .5rem; }
.fp-det-reviewer-av {
  width: 36px;
  height: 36px;
  background: var(--gray-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.fp-det-reviewer-name { font-size: .82rem; font-weight: 600; }
.fp-det-reviewer-date { font-size: .7rem; color: var(--gray-3); }
.fp-det-review-stars-sm { margin-left: auto; color: var(--accent); font-size: .72rem; }
.fp-det-review-text { font-size: .8rem; color: var(--gray-2); line-height: 1.7; }
.fp-det-review-imgs { display: flex; gap: .5rem; margin-top: .5rem; }
.fp-det-review-imgs img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; border: 1px solid var(--gray-4); }

.fp-det-faq h4 { font-size: .9rem; font-weight: 700; margin: 1rem 0 .35rem; }
.fp-det-faq p { font-size: .85rem; color: var(--gray-2); line-height: 1.7; max-width: 600px; }

.fp-det-related { padding: 2rem 0 3rem; background: var(--gray-5); }
.fp-det-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.fp-det-related-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
}
.fp-det-related-head p { font-size: .82rem; color: var(--gray-3); margin: .25rem 0 0; }

@media (max-width: 991.98px) {
  .fp-det-layout { flex-direction: column; }
  .fp-det-gallery { width: 100%; }
  .fp-det-actions { flex-direction: column; }
  .fp-det-btn--buy { flex: 1; }
}

@media (max-width: 575.98px) {
  .fp-det-name { font-size: 1.25rem; }
  .fp-det-main-img { aspect-ratio: 1; }
  .fp-det-price-main { font-size: 1.45rem; }
}

/* Minimal Order Modal */
@keyframes fpModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.fp-minorder-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.fp-minorder-modal {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px 36px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  animation: fpModalIn 0.25s ease;
}
.fp-minorder-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.fp-minorder-modal-close:hover { color: #111; }
.fp-minorder-modal-icon {
  width: 64px;
  height: 64px;
  background: #FFF6D6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: #F5C518;
}
.fp-minorder-modal h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #111;
  margin: 0 0 10px;
}
.fp-minorder-modal p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin: 0 0 28px;
}
.fp-minorder-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.fp-minorder-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fp-minorder-modal-btn--primary {
  background: #111;
  color: #fff;
}
.fp-minorder-modal-btn--primary:hover {
  background: #F5C518;
  color: #111;
}
