/* ============================================================
   KLOKARI — Product Page CSS
   ============================================================ */

/* ── Product Grid ── */
.product-section { padding: 40px 0 60px; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Gallery ── */
.gallery-wrap { position: relative; }
.gallery-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue) 0%, #E8F5FF 100%);
  padding: 24px;
  border: 2px solid var(--blue);
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.thumb-btn {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--gray-light);
  overflow: hidden;
  padding: 4px;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.thumb-btn.is-active { border-color: var(--blue-dark); }

/* ── Kawaii face SVG ── */
.kawaii-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.eye { animation: blink 3s infinite; }
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

/* ── Product Detail ── */
.product-detail { display: flex; flex-direction: column; gap: 20px; }

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  width: fit-content;
}

.product-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stars { color: var(--gold); font-size: 16px; letter-spacing: 1px; }
.rating-text { font-size: 13px; color: var(--gray); }

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.price-now {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
}
.price-old {
  font-size: 18px;
  color: var(--gray);
  text-decoration: line-through;
}
.save-pill {
  display: inline-flex;
  align-items: center;
  background: #FFE8ED;
  color: #D63D5A;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  margin-top: -8px;
}

/* ── Color selector ── */
.color-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.color-list { display: flex; gap: 10px; }
.color-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  overflow: hidden;
  padding: 3px;
  background: var(--gray-light);
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.color-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.color-btn.is-active { border-color: var(--blue-dark); transform: scale(1.1); }
.color-btn:hover { border-color: var(--blue); }

/* ── Buy row ── */
.buy-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}
.qty-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--blue);
  border-radius: 99px;
  padding: 0 8px;
  background: var(--white);
}
.qty-btn {
  background: none;
  border: none;
  font-size: 22px;
  font-weight: 300;
  color: var(--dark);
  width: 32px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-val { font-size: 16px; font-weight: 800; color: var(--dark); }
.btn-add {
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 800;
  padding: 0 24px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
.btn-add:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-add svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Trust badges ── */
.trust-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
  background: var(--gray-light);
  border-radius: 10px;
  padding: 10px 14px;
}
.trust-item svg { width: 16px; height: 16px; stroke: var(--green-dark); fill: none; stroke-width: 2; flex-shrink: 0; }

/* ── Payment ── */
.payment-row {
  border-top: 1px solid var(--blue);
  padding-top: 16px;
}
.payment-label { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.payment-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-icon {
  background: var(--gray-light);
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
}

/* ── Features section ── */
.features-section {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue) 50%, var(--white) 100%);
}
.features-section h2 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 2px solid var(--blue);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-emoji { font-size: 36px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── Description section ── */
.desc-section { padding: 60px 0; }
.desc-section h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.desc-section p { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 32px; }
.desc-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 40px;
  background: var(--blue);
  min-height: 200px;
}

/* ── Countdown ── */
.countdown-section {
  background: var(--dark);
  color: var(--white);
  padding: 32px 24px;
  text-align: center;
}
.countdown-section h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.cd-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.cd-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(200,230,245,0.3);
  border-radius: 12px;
  padding: 12px 20px;
  min-width: 72px;
  text-align: center;
}
.cd-value { font-size: 28px; font-weight: 800; color: var(--blue); display: block; }
.cd-label { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.cd-sep { font-size: 24px; font-weight: 800; color: var(--blue); }

/* ── Reviews ── */
.reviews-section { padding: 60px 0; }
.reviews-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 32px; text-align: center; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.review-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.review-card:hover { border-color: var(--blue); }
.review-stars { color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.review-text { font-size: 13px; color: var(--dark); line-height: 1.6; margin-bottom: 12px; }
.review-author { font-size: 12px; font-weight: 800; color: var(--gray); }

/* ── FAQ ── */
.faq-section { padding: 60px 0; background: var(--gray-light); }
.faq-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 32px; text-align: center; }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--blue);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--blue-dark); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 20px 16px; font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-title { font-size: 24px; }
  .price-now { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .buy-row { grid-template-columns: 100px 1fr; }
}
