/* ============================================================
   IMPUNDU Components — components.css
   ============================================================ */

/* ── Reseller Registration ─────────────────────────────────── */
.reseller-register {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: calc(100vh - 70px);
}

.reseller-register-left {
  background: linear-gradient(145deg, var(--teal-dark), var(--teal));
  padding: var(--sp-8) var(--sp-6);
  color: white;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.reseller-register-right {
  background: var(--off-white);
  padding: var(--sp-7) var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.benefit-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Step Indicator ───────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-6);
}

.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-dot.active { background: var(--teal); color: white; }
.step-dot.done   { background: var(--kill-green); color: white; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--light-gray);
  margin: 0 8px;
}

.step-line.done { background: var(--teal); }

/* ── Product Detail ───────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
  padding: var(--sp-8) 0;
}

.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.product-detail-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.product-price-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  font-family: var(--font-heading);
}

.product-features { list-style: none; padding: 0; }

.product-features li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
}

.product-features li .check {
  color: var(--kill-green);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 40px; height: 44px;
  background: var(--light-gray);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover { background: var(--teal-light); }

.qty-input {
  width: 60px; height: 44px;
  border: none;
  border-left: 1.5px solid #ddd;
  border-right: 1.5px solid #ddd;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
}

.qty-input:focus { outline: none; background: var(--teal-light); }

.scent-dots { display: flex; gap: var(--sp-2); margin: var(--sp-4) 0; }

.scent-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.scent-dot:hover, .scent-dot.active {
  border-color: var(--dark-text);
  transform: scale(1.15);
}

.scent-dot[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-text);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Zapper Section ───────────────────────────────────────── */
.zapper-section {
  background: var(--off-white);
  border: 1.5px solid #eee;
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  text-align: center;
  margin: var(--sp-5) 0;
}

.zapper-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
  color: var(--mid-gray);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.zapper-divider::before, .zapper-divider::after {
  flex: 1;
  height: 1px;
  background: #ddd;
  content: '';
}

.code-input-group {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.code-input-group input {
  flex: 1;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ── Cart Table ───────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  padding: 12px 16px;
  background: var(--light-gray);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #ddd;
}

.cart-table td { padding: 16px; border-bottom: 1px solid #eee; vertical-align: middle; }
.cart-table tr:hover td { background: var(--teal-light); }

/* ── Directory ────────────────────────────────────────────── */
.reseller-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--teal);
  transition: transform 0.2s ease;
}

.reseller-card.establishment { border-left-color: var(--gold); }

.reseller-card:hover { transform: translateY(-4px); }

.reseller-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reseller-type-badge.individual   { background: var(--teal-light);  color: var(--teal-dark); }
.reseller-type-badge.establishment { background: rgba(201,151,42,0.15); color: var(--gold); }

/* ── Admin Tables ─────────────────────────────────────────── */
.admin-table {
  width: 100%;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.admin-table th {
  background: var(--teal);
  color: white;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.admin-table tbody tr:hover td { background: var(--teal-light); }

/* Status Badges */
.badge-pending   { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-approved  { background: #d1edff; color: #0a58ca; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-suspended { background: #f8d7da; color: #842029; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-paid      { background: #d1e7dd; color: #0f5132; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-unpaid    { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-cancelled { background: #f8d7da; color: #842029; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }

/* ── Page Heroes ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: var(--sp-8) 0;
  text-align: center;
  color: white;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--sp-3);
}

.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
  .reseller-register { grid-template-columns: 1fr; }
  .reseller-register-left { display: none; }
  .reseller-register-right { padding: var(--sp-5); }
  .code-text { font-size: 1.8rem; }
}
