/* ═════════════════════════════════════════════════════════════════════
   InfraBit Systems — Products Storefront & M-PESA Checkout Stylesheet
   Path: /products/storefront.css
   Pure CSS3, Zero Framework Overhead, High-Contrast Crisp Dark Theme
   ═════════════════════════════════════════════════════════════════════ */

/* ── Storefront Catalog Container ── */
.storefront-header {
  margin-bottom: 32px;
}

.storefront-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.storefront-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding: 14px 20px;
  background: var(--surface-card, #121824);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 8px);
}

.storefront-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text-secondary, #94a3b8);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  color: var(--text-primary, #ffffff);
  border-color: rgba(0, 199, 219, 0.4);
}

.filter-btn.active {
  background: rgba(0, 199, 219, 0.12);
  border-color: var(--cyan, #00c7db);
  color: var(--cyan, #00c7db);
}

.filter-count {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

/* ── Storefront Grid ── */
.storefront-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

@media (min-width: 1024px) {
  .storefront-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Product Card ── */
.store-card {
  background: var(--surface-card, #121824);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 10px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.store-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 199, 219, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.store-card.featured {
  border-color: rgba(212, 175, 55, 0.4);
}

.store-card.featured::before {
  background: linear-gradient(90deg, #d4af37, #f59e0b);
}

.store-card.sale::before {
  background: linear-gradient(90deg, #00c7db, #0284c7);
}

.card-top {
  margin-bottom: 20px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.product-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.product-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ── Price Tag Block ── */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.price-kes {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.5px;
}

.price-kes.free {
  color: var(--cyan, #00c7db);
}

.original-price {
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  text-decoration: line-through;
}

.discount-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  margin-left: auto;
}

/* ── Feature Checklist ── */
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 10px;
  line-height: 1.45;
}

.feature-check {
  color: var(--cyan, #00c7db);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Card Actions ── */
.card-bottom {
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 4px;
}

.btn-mpesa {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #22c55e;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
}

.btn-mpesa:hover {
  background: #15803d;
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.btn-download-free {
  background: rgba(0, 199, 219, 0.12);
  color: var(--cyan, #00c7db);
  border: 1px solid var(--cyan, #00c7db);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
}

.btn-download-free:hover {
  background: var(--cyan, #00c7db);
  color: #07090e;
  box-shadow: 0 4px 16px rgba(0, 199, 219, 0.3);
}

.btn-inspect {
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.btn-inspect:hover {
  color: var(--text-primary, #ffffff);
  border-color: var(--text-secondary, #94a3b8);
}

/* ═════════════════════════════════════════════════════════════════════
   M-PESA STK Push Checkout Modal — High-Conversion Light Fintech Theme
   ═════════════════════════════════════════════════════════════════════ */
.checkout-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.checkout-modal-overlay.open {
  display: flex;
}

.checkout-modal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
  position: relative;
  box-sizing: border-box;
  animation: modalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ── Brand Trust Top Strip ── */
.checkout-brand-strip {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.brand-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mpesa-pill-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.mpesa-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: blinkPulse 1.6s infinite ease-in-out;
}

@keyframes blinkPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.daraja-direct-badge {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.modal-close-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  padding: 0;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
  transform: rotate(90deg);
}

/* ── Modal Header ── */
.modal-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.modal-header p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.modal-body {
  padding: 20px 24px 24px;
}

/* Modal States */
.modal-state {
  display: none;
}

.modal-state.active {
  display: block;
  animation: fadeInState 0.2s ease;
}

@keyframes fadeInState {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Order Summary Card ── */
.checkout-order-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: #64748b;
  margin-bottom: 8px;
}

.summary-label {
  display: flex;
  align-items: center;
}

.summary-val {
  color: #0f172a;
  font-weight: 600;
}

.summary-val.highlight {
  color: #16a34a;
  font-weight: 700;
}

.summary-row.total {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.94rem;
}

.total-amount {
  font-size: 1.4rem;
  font-weight: 900;
  color: #16a34a;
  letter-spacing: -0.03em;
}

/* ── Form Inputs ── */
.checkout-group {
  margin-bottom: 16px;
  text-align: left;
}

.checkout-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.label-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
}

.input-icon-wrap {
  position: relative;
}

.input-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.checkout-input {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 500;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.18s ease;
}

.checkout-input.with-icon {
  padding-left: 40px;
}

.checkout-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.phone-input-wrap {
  display: flex;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.18s ease;
}

.phone-input-wrap:focus-within {
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.phone-prefix {
  background: #f8fafc;
  border-right: 1.5px solid #e2e8f0;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kenya-flag {
  font-size: 1rem;
  line-height: 1;
}

.phone-input-wrap .checkout-input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
}

.field-microcopy {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

/* ── Primary Submit Button ── */
.btn-mpesa-checkout {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.2s ease;
  margin-top: 20px;
  letter-spacing: -0.01em;
}

.btn-mpesa-checkout:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
}

.btn-mpesa-checkout:active {
  transform: translateY(0);
}

.btn-mpesa-checkout:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.checkout-trust-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.trust-shield {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  color: #64748b;
  font-weight: 500;
}

/* ═════════════════════════════════════════════════════════════════════
   STATE 2: Prompting / Waiting for PIN (Fintech Radar Animation)
   ═════════════════════════════════════════════════════════════════════ */
.stk-radar-container {
  text-align: center;
  padding: 16px 0 10px;
}

.stk-radar-pulse-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #22c55e;
  pointer-events: none;
}

.ring-1 {
  width: 100%;
  height: 100%;
  animation: rippleRadar 2.4s infinite ease-out;
}

.ring-2 {
  width: 125%;
  height: 125%;
  animation: rippleRadar 2.4s infinite 0.6s ease-out;
}

.ring-3 {
  width: 150%;
  height: 150%;
  animation: rippleRadar 2.4s infinite 1.2s ease-out;
}

@keyframes rippleRadar {
  0% {
    opacity: 0.8;
    transform: scale(0.65);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.stk-phone-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 2px solid #86efac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.25);
}

.stk-awaiting-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.stk-target-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.target-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.target-phone {
  color: #0f172a;
  font-weight: 800;
  font-family: monospace;
}

.target-divider {
  color: #cbd5e1;
}

.target-amount {
  color: #16a34a;
  font-weight: 900;
}

.stk-flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 20px 0;
  flex-wrap: wrap;
}

.flow-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
}

.step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.flow-arrow {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
}

.stk-progress-bar-wrap {
  width: 100%;
  height: 7px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}

.stk-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width 1s linear;
  border-radius: 999px;
}

.stk-timer-label {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 4px;
  animation: blinkPulse 1.2s infinite;
}

.sandbox-test-pill {
  margin-top: 22px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1.5px dashed #fcd34d;
  border-radius: 12px;
  text-align: left;
}

.sandbox-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sandbox-desc {
  font-size: 0.78rem;
  color: #78350f;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.btn-simulate-pin {
  width: 100%;
  background: #f59e0b;
  color: #0f172a;
  border: none;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-simulate-pin:hover {
  background: #d97706;
  color: #ffffff;
}

/* ═════════════════════════════════════════════════════════════════════
   STATE 3: Payment Success (Celebratory Verification)
   ═════════════════════════════════════════════════════════════════════ */
.stk-success-box {
  text-align: center;
  padding: 16px 0;
}

.success-check-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  border: 3px solid #22c55e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  margin-bottom: 16px;
  animation: popCheck 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popCheck {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.receipt-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  border: 1.5px solid #86efac;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 8px 0 14px;
}

.success-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 18px 0;
}

.btn-download-paid {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
  transition: all 0.2s ease;
}

.btn-download-paid:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.45);
}

.email-notice-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.download-notice {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* ═════════════════════════════════════════════════════════════════════
   STATE 4: Transaction Failed / Cancelled
   ═════════════════════════════════════════════════════════════════════ */
.stk-error-box {
  text-align: center;
  padding: 20px 0;
}

.error-cross-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fee2e2;
  border: 3px solid #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.error-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 20px 0;
}

.btn-retry-checkout {
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.btn-retry-checkout:hover {
  background: #1e293b;
  transform: translateY(-1px);
}


/* ═════════════════════════════════════════════════════════════════════
   Responsive Breakpoints — Storefront Grid & Checkout Modal
   ═════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .storefront-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .storefront-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .storefront-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .storefront-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .store-card {
    padding: 22px 18px;
  }

  .product-title {
    font-size: 1.12rem;
  }

  .price-kes {
    font-size: 1.3rem;
  }

  .checkout-modal-box {
    max-width: 100%;
    border-radius: 10px 10px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 94vh;
  }

  .checkout-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

/* ── Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .storefront-grid {
    gap: 16px;
  }

  .store-card {
    padding: 18px 14px;
  }

  .product-title {
    font-size: 1.05rem;
  }

  .price-block {
    flex-wrap: wrap;
    gap: 6px;
  }

  .price-kes {
    font-size: 1.2rem;
  }

  .btn-mpesa,
  .btn-download-free,
  .btn-download-paid {
    font-size: 0.88rem;
    padding: 11px 14px;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-body {
    padding: 18px;
  }

  .checkout-input {
    font-size: 0.88rem;
    padding: 10px 12px;
  }

  .summary-row {
    font-size: 0.8rem;
  }

  .stk-prompt-phone {
    font-size: 1rem;
  }
}

/* ── Hover-capable devices — keep card hover effects ── */
@media (hover: none) {
  .store-card:hover {
    transform: none;
    box-shadow: none;
  }

  .btn-mpesa:hover,
  .btn-download-free:hover,
  .btn-download-paid:hover {
    transform: none;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   ENHANCED STORE UI/UX COMPONENTS (E-COMMERCE SOFTWARE MARKETPLACE)
   ═════════════════════════════════════════════════════════════════════ */

/* ── 1. Storefront Trust & Security Banner ── */
.store-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 28px 0 36px 0;
}

.store-trust-card {
  background: rgba(18, 24, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md, 8px);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.store-trust-card:hover {
  border-color: rgba(0, 199, 219, 0.3);
  transform: translateY(-2px);
  background: rgba(18, 24, 36, 0.85);
}

.store-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-trust-icon.icon-green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.store-trust-icon.icon-cyan {
  background: rgba(0, 199, 219, 0.12);
  color: var(--cyan, #00c7db);
  border: 1px solid rgba(0, 199, 219, 0.25);
}

.store-trust-icon.icon-gold {
  background: rgba(212, 175, 55, 0.12);
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.store-trust-icon.icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.store-trust-content strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-bottom: 2px;
}

.store-trust-content p {
  font-size: 0.77rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  line-height: 1.4;
}

/* ── 2. Store Search, Filters & Sort Toolbar ── */
.store-toolbar {
  background: var(--surface-card, #121824);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.store-toolbar-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.store-search-box svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted, #64748b);
  pointer-events: none;
}

.store-search-input {
  width: 100%;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 11px 40px 11px 42px;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.store-search-input:focus {
  outline: none;
  border-color: var(--cyan, #00c7db);
  background: rgba(7, 9, 14, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 199, 219, 0.15);
}

.store-search-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  padding: 4px;
  line-height: 1;
}

.store-search-clear:hover {
  color: #ffffff;
}

.store-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
  white-space: nowrap;
}

.store-sort-select {
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 9px 14px;
  color: #ffffff;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
}

.store-sort-select:focus {
  outline: none;
  border-color: var(--cyan, #00c7db);
}

.store-toolbar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── 3. Upgraded Product Card Details ── */
.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-daraja {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.badge-tvet {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: #38bdf8;
}

.badge-docu {
  background: linear-gradient(135deg, rgba(0, 199, 219, 0.2), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(0, 199, 219, 0.4);
  color: #00c7db;
}

.badge-subsecond {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-enterprise {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

/* Tech stack pills */
.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px 0;
}

.tech-pill {
  font-size: 0.7rem;
  font-family: monospace;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Card rating & verified row */
.card-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 12px;
}

.card-stars {
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.card-verified {
  color: #22c55e;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* Card action dual deck */
.card-actions-deck {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.btn-quick-view {
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.btn-quick-view:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 199, 219, 0.4);
  color: var(--cyan, #00c7db);
}

/* ── 4. Quick-View Modal Styles ── */
.quickview-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99998;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.quickview-modal-overlay.open {
  display: flex;
  animation: modalFadeIn 0.2s ease forwards;
}

.quickview-modal-dialog {
  background: var(--surface-card, #121824);
  border: 1px solid rgba(0, 199, 219, 0.3);
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.quickview-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.quickview-modal-body {
  padding: 28px;
}

.quickview-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 18px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.quickview-specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quickview-specs-table tr:last-child td {
  border-bottom: none;
}

.quickview-specs-table td:first-child {
  color: var(--text-muted, #64748b);
  width: 35%;
  font-weight: 500;
}

.quickview-specs-table td:last-child {
  color: var(--text-primary, #ffffff);
  font-weight: 600;
}

/* ── 5. Empty State (Zero Search Results) ── */
.store-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  background: rgba(18, 24, 36, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: none;
}

.store-empty-state.active {
  display: block;
}

.store-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #64748b);
  margin-bottom: 16px;
}

.store-empty-state h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.store-empty-state p {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.88rem;
  margin: 0 0 18px 0;
}

/* ═════════════════════════════════════════════════════════════════════
   ALIBABA-STYLE LIGHT MARKETPLACE THEME (Products Viewing Section)
   ═════════════════════════════════════════════════════════════════════ */

#storefront.storefront-container {
  background: #f6f8fb;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

#storefront .storefront-header h2 {
  color: #0f172a !important;
  font-weight: 800;
  letter-spacing: -0.5px;
}

#storefront .storefront-header p {
  color: #475569 !important;
}

#storefront .storefront-badge-row .label {
  background: #ff5000 !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 10px;
}

#storefront .storefront-badge-row .tag.tag-gold {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
  font-weight: 600;
}

#storefront .storefront-badge-row .tag.tag-cyan {
  background: #f0fdfa !important;
  color: #0d9488 !important;
  border: 1px solid #99f6e4 !important;
  font-weight: 600;
}

#storefront .storefront-badge-row .tag.tag-navy {
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 600;
}

/* ── Alibaba Trust Pillars Strip ── */
#storefront .store-trust-grid {
  margin: 24px 0 32px 0;
}

#storefront .store-trust-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#storefront .store-trust-card:hover {
  border-color: #ff5000 !important;
  box-shadow: 0 6px 18px rgba(255, 80, 0, 0.12) !important;
  transform: translateY(-2px);
}

#storefront .store-trust-content strong {
  color: #0f172a !important;
  font-weight: 700;
}

#storefront .store-trust-content p {
  color: #64748b !important;
}

#storefront .store-trust-icon.icon-green {
  background: #ecfdf5 !important;
  color: #16a34a !important;
  border: 1px solid #bbf7d0 !important;
}

#storefront .store-trust-icon.icon-cyan {
  background: #f0fdfa !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

#storefront .store-trust-icon.icon-gold {
  background: #fff7ed !important;
  color: #ff5000 !important;
  border: 1px solid #fed7aa !important;
}

#storefront .store-trust-icon.icon-blue {
  background: #eff6ff !important;
  color: #3b82f6 !important;
  border: 1px solid #bfdbfe !important;
}

/* ── Alibaba Marketplace Toolbar ── */
#storefront .store-toolbar {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

#storefront .store-search-input {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

#storefront .store-search-input:focus {
  background: #ffffff !important;
  border-color: #ff5000 !important;
  box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.15) !important;
}

#storefront .store-search-box svg {
  color: #ff5000 !important;
}

#storefront .store-search-clear {
  color: #94a3b8 !important;
}

#storefront .store-sort-select {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

#storefront .store-sort-wrap label {
  color: #475569 !important;
  font-weight: 600;
}

#storefront .store-toolbar-bottom {
  border-top: 1px solid #f1f5f9 !important;
}

#storefront .filter-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

#storefront .filter-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

#storefront .filter-btn.active {
  background: #ff5000 !important;
  border-color: #ff5000 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(255, 80, 0, 0.25) !important;
}

#storefront .filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

#storefront .filter-count {
  background: #e2e8f0 !important;
  color: #475569 !important;
}

#storefront #storeResultsCount {
  color: #64748b !important;
}

/* ═════════════════════════════════════════════════════════════════════
   #storefront — Alibaba / Premium Light Theme
   Full redesign: product identity cards with gradient headers,
   strong pricing hierarchy, tier-aware CTAs, hover depth
   ═════════════════════════════════════════════════════════════════════ */

/* ── Canvas ── */
#storefront {
  background: #f4f6fb !important;
}

#storefront .storefront-controls {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
}

#storefront .filter-btn {
  background: transparent !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #64748b !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.18s ease !important;
}

#storefront .filter-btn:hover {
  border-color: #ff5000 !important;
  color: #ff5000 !important;
  background: #fff5f0 !important;
}

#storefront .filter-btn.active {
  background: #ff5000 !important;
  border-color: #ff5000 !important;
  color: #ffffff !important;
}

#storefront .filter-count {
  background: rgba(255,255,255,0.25) !important;
  color: inherit !important;
}

#storefront .filter-btn:not(.active) .filter-count {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

#storefront .store-search-box input {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

#storefront #storeResultsCount {
  color: #64748b !important;
}

/* ══════════════════════════════════════════════
   PRODUCT GRID — 3-col desktop, 2-col tablet
   ══════════════════════════════════════════════ */
#storefront .storefront-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 20px !important;
}

@media (min-width: 1024px) {
  #storefront .storefront-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ══════════════════════════════════════════════
   PRODUCT CARD — Premium flat-glass design
   ══════════════════════════════════════════════ */
#storefront .store-card {
  background: #ffffff !important;
  border: 1.5px solid #e8edf5 !important;
  border-radius: 16px !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05), 0 8px 24px rgba(15,23,42,0.03) !important;
  display: flex;
  flex-direction: column !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: transform 0.26s cubic-bezier(.16,1,.3,1),
              box-shadow 0.26s cubic-bezier(.16,1,.3,1),
              border-color 0.22s ease !important;
  position: relative !important;
}

#storefront .store-card.is-hidden {
  display: none !important;
}

#storefront .store-card::before {
  display: none !important;
}

#storefront .store-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 40px rgba(15,23,42,0.11), 0 4px 14px rgba(15,23,42,0.05) !important;
  border-color: rgba(8, 145, 178, 0.45) !important;
}

#storefront .store-card:focus-visible {
  outline: 2px solid var(--cyan, #00c7db);
  outline-offset: 3px;
}

/* Hide feature lists — popup only */
#storefront .store-card .product-features {
  display: none !important;
}

/* ── Card Gradient Hero Header ── */
.sc-hero {
  position: relative;
  padding: 24px 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 110px;
}

/* Product-specific gradients */
.sc-hero.hero-daraja    { background: linear-gradient(135deg, #0f4c2a 0%, #166534 55%, #15803d 100%); }
.sc-hero.hero-tvet      { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%); }
.sc-hero.hero-cdacc     { background: linear-gradient(135deg, #0e7490 0%, #0891b2 55%, #06b6d4 100%); }
.sc-hero.hero-docu      { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 55%, #ea580c 100%); }
.sc-hero.hero-subsecond { background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 55%, #38bdf8 100%); }
.sc-hero.hero-enterprise{ background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #4f46e5 100%); }

/* Subtle pattern overlay on hero */
.sc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Hero Icon Box ── */
.sc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

/* ── Hero Text ── */
.sc-hero-text {
  flex: 1;
  min-width: 0;
}

.sc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 8px;
}

.sc-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 2px 0;
  letter-spacing: -0.01em;
}

.sc-version {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Card Body ── */
.sc-body {
  padding: 18px 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-tagline {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ── Tech Pills ── */
.sc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sc-pill {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  white-space: normal;
  word-break: break-word;
}

/* ── Stats Row ── */
.sc-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sc-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d97706;
}

.sc-rating-stars { letter-spacing: 0.5px; }
.sc-rating-count { color: #64748b; font-weight: 400; }

.sc-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #16a34a;
}

/* ── Price Zone ── */
.sc-price-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sc-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sc-price.is-sale    { color: #ff5000; }
.sc-price.is-free    { color: #0284c7; }
.sc-price.is-custom  { color: #4f46e5; font-size: 1.1rem; letter-spacing: -0.02em; }

.sc-strike {
  font-size: 0.84rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.sc-save-badge {
  font-size: 0.69rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  letter-spacing: 0.03em;
}

.sc-free-badge {
  font-size: 0.69rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  letter-spacing: 0.03em;
}

/* ── Card Footer ── */
.sc-footer {
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.sc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

/* ── CTA Buttons — tier-aware ── */
.sc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(.16,1,.3,1);
}

.sc-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.sc-cta:active {
  transform: translateY(0);
}
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Paid — green M-PESA */
.sc-cta.cta-paid {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
}
.sc-cta.cta-paid:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  box-shadow: 0 6px 20px rgba(22,163,74,0.42);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Free — blue download */
.sc-cta.cta-free {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2,132,199,0.3);
}
.sc-cta.cta-free:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 6px 20px rgba(2,132,199,0.42);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Enterprise — indigo inquiry */
.sc-cta.cta-enterprise {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}
.sc-cta.cta-enterprise:hover {
  background: linear-gradient(135deg, #4338ca, #3730a3);
  box-shadow: 0 6px 20px rgba(79,70,229,0.42);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ── Empty Search Results State ── */
#storefront .store-empty-state {
  background: #ffffff !important;
  border: 2px dashed #cbd5e1 !important;
  border-radius: 16px !important;
}

#storefront .store-empty-state h4 { color: #0f172a !important; }
#storefront .store-empty-state p  { color: #475569 !important; }

/* ── Quick-View Modal Light Theme ── */
.quickview-modal-dialog {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3) !important;
  color: #1e293b !important;
}

.quickview-modal-header {
  border-bottom: 1px solid #f1f5f9 !important;
}

#qvModalTitle       { color: #0f172a !important; font-weight: 700 !important; }
#qvProductTagline   { color: #475569 !important; }
#qvProductDescription{ color: #334155 !important; }

.quickview-specs-table {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.quickview-specs-table td                 { border-bottom: 1px solid #e2e8f0 !important; }
.quickview-specs-table td:first-child     { color: #64748b !important; }
.quickview-specs-table td:last-child      { color: #0f172a !important; font-weight: 600 !important; }

#qvFeaturesList li { color: #334155 !important; }

.modal-close-btn       { color: #64748b !important; }
.modal-close-btn:hover { color: #0f172a !important; }

/* ── Mobile Quick-View Bottom Sheet & Responsive Polish ── */
@media (max-width: 768px) {
  .quickview-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .quickview-modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: 92vh !important;
    margin: 0 !important;
  }
  .quickview-modal-header {
    padding: 18px 20px !important;
  }
  .quickview-modal-body {
    padding: 20px 18px !important;
  }
  .sc-cta {
    min-height: 44px;
    touch-action: manipulation;
  }
}
@media (max-width: 480px) {
  .quickview-specs-table td {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }
  .quickview-specs-table td:first-child {
    width: 40% !important;
  }
}

