:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --text: #17181a;
  --text-muted: #6b6f76;
  --border: #e5e6e9;
  --brand: #17181a;
  --accent: #c9a15a;
  --success: #1f9d55;
  --danger: #d92d20;
  --mtn: #ffcb05;
  --mtn-text: #1a1a1a;
  --orange: #ff6600;
  --orange-text: #ffffff;
  --whatsapp: #25d366;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --bg-alt: #1a1b1e;
    --text: #f2f2f3;
    --text-muted: #a3a6ad;
    --border: #2b2c30;
    --brand: #f2f2f3;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-location {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
}
.currency-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: none;
  border: none;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.lang-btn.active {
  background: var(--brand);
  color: var(--bg);
}

/* Product section */
.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 20px;
}
@media (max-width: 800px) {
  .product-section { grid-template-columns: 1fr; padding: 24px 16px; gap: 24px; }
}
.product-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.product-image-wrap img { width: 100%; height: auto; object-fit: cover; }

.badge-physical {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-title { font-size: 28px; margin: 0 0 8px; font-weight: 800; }
.product-seller { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.product-seller strong { color: var(--text); }
.rating-row { font-size: 14px; color: var(--text-muted); margin: 10px 0 20px; }

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.price { font-size: 26px; font-weight: 800; }

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-control button {
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}
.qty-control span {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

.buy-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .05s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--bg); }
.btn-primary:hover { opacity: .88; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-top: 36px; }
.tab-btn {
  background: none; border: none; padding: 12px 0; font-size: 15px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--text); }
.tab-panel { display: none; padding: 20px 0; color: var(--text-muted); font-size: 15px; }
.tab-panel.active { display: block; }
.tab-panel ul { padding-left: 18px; }

/* Reviews */
.review-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.review-name { font-weight: 700; font-size: 14px; }
.review-stars { color: #f5b301; letter-spacing: 1px; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-text { font-size: 14px; color: var(--text-muted); }

.star-picker {
  display: flex;
  gap: 4px;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.star-picker .star { color: var(--border); transition: color .1s ease; }
.star-picker .star.filled { color: #f5b301; }

/* Payment method badges (custom generic style, not official trademarks) */
.pay-badges { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.pay-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 700;
}
.pay-badge.mtn { background: var(--mtn); color: var(--mtn-text); }
.pay-badge.orange { background: var(--orange); color: var(--orange-text); }

/* Add-on upsell */
.addon-section { padding: 0 20px 40px; }
.addon-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-alt);
  flex-wrap: wrap;
}
.addon-icon {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.addon-icon img { width: 100%; height: 100%; object-fit: cover; }
.addon-info { flex: 1; min-width: 200px; }
.addon-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.addon-title { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.addon-desc { font-size: 13px; color: var(--text-muted); margin: 0; max-width: 46ch; }
.addon-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.addon-price { font-size: 18px; font-weight: 800; }
.addon-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.addon-checkbox input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

/* Checkout section */
.checkout-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 20px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) {
  .checkout-grid { grid-template-columns: 1fr; }
}
.section-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.section-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px;
}
.form-group .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.hidden { display: none !important; }

fieldset { border: none; padding: 0; margin: 0 0 16px; }
legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; padding: 0; }

.payment-method-choice { display: flex; gap: 10px; }
.pm-option {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.pm-option input { display: none; }
.pm-option.selected-mtn { border-color: var(--mtn); background: rgba(255,203,5,.15); }
.pm-option.selected-orange { border-color: var(--orange); background: rgba(255,102,0,.12); }

.payment-instructions {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  margin-top: 12px;
  background: var(--bg-alt);
}
.payment-instructions .num { font-size: 18px; font-weight: 800; letter-spacing: .03em; }

.file-drop {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.file-drop.has-file { border-color: var(--success); color: var(--text); }

.order-summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.order-summary-row.total { font-weight: 800; font-size: 16px; border-bottom: none; padding-top: 12px; }

.submit-status { margin-top: 14px; font-size: 14px; padding: 10px 12px; border-radius: 8px; display: none; }
.submit-status.show { display: block; }
.submit-status.ok { background: rgba(31,157,85,.12); color: var(--success); }
.submit-status.err { background: rgba(217,45,32,.12); color: var(--danger); }

/* FAQ */
.faq-section { padding: 48px 20px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 0;
  font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; color: var(--text);
}
.faq-icon { font-size: 20px; color: var(--text-muted); transition: transform .15s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; font-size: 14px; color: var(--text-muted); transition: max-height .2s ease; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 18px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-location { font-weight: 600; color: var(--text); margin-bottom: 14px; }
.footer-pay-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  text-decoration: none;
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }
