/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.page-wrapper--centered { justify-content: center; align-items: center; padding: 24px; }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.navbar__brand { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; flex-shrink: 0; }
.navbar__brand-glitz { color: #1a1a2e; }
.navbar__brand-selar { color: #e91e63; }
.navbar__logo { height: 48px; width: auto; display: block; object-fit: contain; }

.navbar__links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.navbar__link {
  padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #444;
  transition: background .15s, color .15s;
}
.navbar__link:hover { background: #f5f7fa; color: #e91e63; }

.navbar__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.navbar__icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent;
  color: #444; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s; position: relative;
}
.navbar__icon-btn:hover { background: #f5f7fa; color: #e91e63; }
.navbar__whatsapp-btn { color: #25d366; }
.navbar__whatsapp-btn:hover { background: #f0fdf4; color: #1ebe5d; }
.navbar__cart-badge {
  position: absolute; top: 4px; right: 4px; background: #e91e63; color: #fff;
  font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.navbar__cta {
  background: #e91e63; color: #fff; padding: 8px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 700; transition: background .15s, transform .1s;
  white-space: nowrap; margin-left: 4px;
}
.navbar__cta:hover { background: #c2185b; }
.navbar__cta:active { transform: scale(.97); }

.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px;
  transition: background .15s;
}
.navbar__hamburger:hover { background: #f5f7fa; }
.navbar__hamburger span {
  display: block; width: 22px; height: 2px; background: #1a1a2e;
  border-radius: 2px; transition: transform .25s, opacity .25s; transform-origin: center;
}
.navbar__hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger--open span:nth-child(2) { opacity: 0; }
.navbar__hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__mobile-drawer {
  display: none; flex-direction: column;
  background: #fff; padding: 12px 24px 20px; border-top: 1px solid #f0f0f0;
}
.navbar__mobile-drawer--open { display: flex; }
.navbar__mobile-link {
  padding: 12px 0; font-size: 15px; font-weight: 500; color: #333;
  border-bottom: 1px solid #f5f5f5;
}
.navbar__mobile-link:hover { color: #e91e63; }

/* ── Hero Banner ──────────────────────────────────────────────────────────── */
.store-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff; padding: 72px 24px; text-align: center;
}
.store-hero__inner { max-width: 640px; margin: 0 auto; }
.store-hero__eyebrow {
  display: inline-block; background: rgba(233,30,99,.2); color: #f48fb1;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 20px;
}
.store-hero__heading { font-size: clamp(28px,5vw,48px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.store-hero__sub { font-size: 16px; color: rgba(255,255,255,.65); margin-bottom: 32px; }
.store-hero__cta {
  display: inline-block; background: #e91e63; color: #fff;
  padding: 14px 36px; border-radius: 10px; font-size: 16px; font-weight: 700;
  transition: background .15s, transform .1s;
}
.store-hero__cta:hover { background: #c2185b; }
.store-hero__cta:active { transform: scale(.97); }

/* ── Product Grid ─────────────────────────────────────────────────────────── */
.ebook-grid { max-width: 1200px; margin: 0 auto; padding: 48px 24px; flex: 1; }
.grid-heading { font-size: 22px; font-weight: 700; margin-bottom: 28px; color: #1a1a2e; }
.ebook-grid__cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 24px; }
.grid-empty { color: #888; font-size: 15px; }

.ebook-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.ebook-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.ebook-card__cover-wrap { position: relative; overflow: hidden; }
.ebook-card__cover { width: 100%; height: 270px; object-fit: cover; display: block; transition: transform .3s; }
.ebook-card:hover .ebook-card__cover { transform: scale(1.03); }
.ebook-card__tag {
  position: absolute; top: 10px; right: 10px;
  background: #e91e63; color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.ebook-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ebook-card__title { font-size: 14px; font-weight: 600; color: #1a1a2e; line-height: 1.4; }
.ebook-card__price { display: flex; align-items: center; gap: 8px; }
.price-original-sm { color: #bbb; font-size: 13px; }
.price-strong { color: #e91e63; font-size: 16px; font-weight: 700; }
.ebook-card__btn {
  display: inline-block; background: #1a1a2e; color: #fff;
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 8px;
  text-align: center; margin-top: auto; transition: background .15s;
}
.ebook-card:hover .ebook-card__btn { background: #e91e63; }

/* ── Product Page Layout ─────────────────────────────────────────────────── */
.product-container {
  display: flex; flex-wrap: wrap; gap: 48px;
  max-width: 1200px; margin: 40px auto; padding: 0 24px; flex: 1;
  align-items: flex-start;
}

/* Gallery column */
.product-gallery-col {
  flex: 0 0 400px;
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 80px; /* stick below navbar while scrolling */
}
.gallery-main-wrap {
  width: 100%;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  background: #f0f0f0;
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
}
.gallery-main-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .18s ease;
}
.gallery-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.gallery-thumb {
  width: 68px; height: 68px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; padding: 0; background: none;
  transition: border-color .15s, transform .15s;
  flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { transform: scale(1.05); border-color: #e91e63; }
.gallery-thumb--active { border-color: #e91e63; }

/* Legacy cover (kept for fallback) */
.product-cover-col { flex: 0 0 auto; }
.product-cover { width: 300px; max-width: 100%; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.2); display: block; }
.product-cover--placeholder {
  height: 400px; background: #e0e0e0; display: flex; align-items: center;
  justify-content: center; color: #888; font-size: 14px; border-radius: 16px;
}
.product-details-col { flex: 1; min-width: 280px; }

.product-badge {
  display: inline-block; background: #fff3e0; color: #e65100;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.6px;
}
.product-title { font-size: clamp(20px,3vw,28px); font-weight: 600; line-height: 1.3; margin-bottom: 16px; color: #1a1a2e; }

.product-meta-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.star-display { display: flex; align-items: center; gap: 3px; }
.star { font-size: 18px; line-height: 1; }
.star--filled { color: #f59e0b; }
.star--empty  { color: #ddd; }
.star-score { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-left: 4px; }
.review-count { font-size: 13px; color: #888; margin-left: 4px; }
.buyers-badge {
  display: flex; align-items: center; gap: 5px;
  background: #e8f5e9; color: #2e7d32; font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}

.product-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.price-original { font-size: 16px; color: #bbb; text-decoration: line-through; font-weight: 400; }
.price-current { font-size: 30px; font-weight: 600; color: #e91e63; letter-spacing: -0.5px; }
.discount-badge { background: #fce4ec; color: #c2185b; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 20px; }

.product-description { font-size: 15px; color: #555; max-width: 560px; overflow: hidden; transition: max-height .35s ease; margin-bottom: 8px; }
.product-description p { margin-bottom: 10px; }
.product-description ul { padding-left: 18px; margin-bottom: 10px; }
.product-description ul li { margin-bottom: 4px; list-style: disc; }
.product-description h1,.product-description h2,.product-description h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #1a1a2e; }
.product-description strong { font-weight: 600; }
.product-description em { font-style: italic; }
.product-description.description--collapsed {
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.product-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.product-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #444; font-weight: 500; }
.product-features li svg { color: #2e7d32; flex-shrink: 0; }

/* ── Checkout Card ────────────────────────────────────────────────────────── */
.checkout-card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 18px; padding: 28px;
  max-width: 480px; box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.checkout-heading { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: #1a1a2e; }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 600; color: #555; }
.form-group input,
.form-group textarea {
  padding: 11px 14px; border: 1px solid #e0e0e0; border-radius: 10px;
  font-size: 14px; font-family: inherit; transition: border-color .2s, box-shadow .2s;
  outline: none; background: #fafafa; color: #1a1a2e;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #e91e63; box-shadow: 0 0 0 3px rgba(233,30,99,.1); background: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.required { color: #e91e63; }
.field-error { font-size: 12px; color: #c62828; margin-top: 2px; }

.btn-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px; padding: 15px;
  background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
  color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: opacity .2s, transform .1s; font-family: inherit; letter-spacing: .3px;
}
.btn-buy:hover { opacity: .9; }
.btn-buy:active { transform: scale(.98); }
.checkout-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 12px; font-size: 12px; color: #aaa; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.alert--error   { background: #fdecea; color: #c62828; border: 1px solid #f5c6c6; }
.alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

/* ── Reviews Section ──────────────────────────────────────────────────────── */
.reviews-section { background: #fff; border-top: 1px solid #f0f0f0; padding: 56px 24px; }
.reviews-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.reviews-heading { font-size: 24px; font-weight: 800; color: #1a1a2e; margin-bottom: 16px; }
.reviews-aggregate { display: flex; align-items: center; gap: 12px; }
.reviews-big-score { font-size: 52px; font-weight: 800; color: #1a1a2e; line-height: 1; }
.reviews-stars-big .star { font-size: 28px; }
.reviews-count-label { font-size: 14px; color: #888; margin-left: 4px; }
.reviews-empty-note { font-size: 15px; color: #888; }

.review-form-card { background: #f9f9fb; border: 1px solid #ebebeb; border-radius: 16px; padding: 28px; }
.review-form-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: #1a1a2e; }
.review-form { display: flex; flex-direction: column; gap: 16px; }

/* CSS-only star picker (RTL reverse trick) */
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-picker input[type="radio"] { display: none; }
.star-picker label { font-size: 32px; color: #ddd; cursor: pointer; transition: color .15s, transform .1s; }
.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input[type="radio"]:checked ~ label { color: #f59e0b; }
.star-picker label:hover { transform: scale(1.15); }

.btn-review-submit {
  align-self: flex-start; padding: 12px 28px; background: #1a1a2e; color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s; font-family: inherit;
}
.btn-review-submit:hover { background: #e91e63; }
.btn-review-submit:active { transform: scale(.97); }

.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: #fff; border: 1px solid #ebebeb; border-radius: 14px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.review-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #e91e63, #c2185b); color: #fff;
  font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review-card__name { font-size: 15px; font-weight: 600; color: #1a1a2e; }
.review-card__date { font-size: 12px; color: #aaa; }
.review-card__stars { margin-left: auto; }
.review-card__stars .star { font-size: 16px; }
.review-card__body { font-size: 14px; color: #555; line-height: 1.6; }

/* ── Result / Success / Failed ───────────────────────────────────────────── */
.result-card { background: #fff; border-radius: 18px; padding: 48px 36px; text-align: center; max-width: 480px; width: 100%; box-shadow: 0 4px 28px rgba(0,0,0,.08); }
.result-icon { font-size: 48px; font-weight: 700; width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.result-icon--success { background: #e8f5e9; color: #2e7d32; }
.result-icon--fail    { background: #fdecea; color: #c62828; }
.result-title { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.result-sub   { font-size: 15px; color: #555; margin-bottom: 28px; }
.result-note  { font-size: 13px; color: #999; margin-top: 12px; }

.btn-download { display: inline-block; padding: 14px 32px; background: #2e7d32; color: #fff; border-radius: 10px; font-size: 16px; font-weight: 700; transition: background .2s; }
.btn-download:hover { background: #1b5e20; }
.btn-back { display: inline-block; padding: 12px 28px; background: #1a1a2e; color: #fff; border-radius: 10px; font-size: 15px; font-weight: 600; margin-top: 16px; transition: background .15s; }
.btn-back:hover { background: #e91e63; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.store-footer { background: #1a1a2e; color: #888; text-align: center; padding: 40px 24px; margin-top: auto; }
.footer-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.footer-tagline { font-size: 13px; color: #666; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: #666; transition: color .15s; }
.footer-links a:hover { color: #e91e63; }
.footer-copy { font-size: 12px; color: #555; margin-top: 4px; }

/* Legacy header — hidden, replaced by navbar */
.store-header { display: none; }
.store-brand  { display: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar__links  { display: none; }
  .navbar__cta    { display: none; }
  .navbar__hamburger { display: flex; }

  .product-container { gap: 24px; }
  .product-gallery-col { flex: 0 0 100%; position: static; }
  .gallery-main-wrap { aspect-ratio: 4 / 5; }
  .product-cover { width: 100%; max-width: 320px; margin: 0 auto; }
  .product-cover-col { width: 100%; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .checkout-card { max-width: 100%; }

  .reviews-aggregate { flex-wrap: wrap; }
  .reviews-big-score { font-size: 40px; }
  .store-hero { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .navbar__inner { padding: 0 16px; }
  .navbar__icon-btn { width: 34px; height: 34px; }
}

/* ── See More button ──────────────────────────────────────────────────────── */
.btn-see-more {
  background: none; border: none; color: #e91e63; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 0; margin-bottom: 20px; font-family: inherit;
  transition: opacity .15s;
}
.btn-see-more:hover { opacity: .75; }

/* ── WhatsApp button ──────────────────────────────────────────────────────── */
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 13px 24px;
  background: #25d366; color: #fff; border-radius: 10px;
  font-size: 15px; font-weight: 700; transition: background .15s, transform .1s;
}
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-whatsapp:active { transform: scale(.97); }

/* ── Footer simplified ────────────────────────────────────────────────────── */
.footer-powered { font-size: 13px; color: #888; }
.footer-powered strong { color: #ccc; }
