/* AbujaWholesalePrices.com — custom layer on top of the Modave theme.
   Modave gives us color vars, buttons (.tf-btn), forms (.form-login),
   header/footer chrome. This file covers the bits Modave doesn't have:
   search-as-you-type, the shopping list panel, checkout, admin. */

.awp-header .logo-header { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.awp-header .logo { height: 34px; width: auto; }
.awp-logo-text { font-weight: 700; font-size: 18px; color: var(--main); }
.awp-logo-text b { color: var(--primary); font-weight: 800; }
.awp-tagline { font-size: 13px; color: var(--secondary-2); }
.awp-nav-link { color: var(--main); text-decoration: none; font-size: 14px; }
.awp-nav-link:hover { color: var(--primary); }
.awp-footer { background: var(--surface); margin-top: 40px; border-top: 1px solid var(--line); }

.awp-shop-page { padding: 32px 0 60px; }
.awp-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.awp-hero p.sub { color: var(--secondary-2); margin-bottom: 20px; }

.awp-search-box { position: relative; margin-bottom: 8px; }
.awp-search-box input[type="text"] {
  width: 100%; padding: 14px 18px; font-size: 16px;
  border: 2px solid var(--primary); border-radius: 8px;
}
.awp-search-results {
  display: none; position: absolute; z-index: 40; width: 100%;
  margin-top: 6px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); max-height: 420px; overflow-y: auto;
  box-shadow: var(--shadow1);
}
.awp-search-results.open { display: block; }
.awp-result-row, .awp-list-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.awp-result-row:last-child, .awp-list-row:last-child { border-bottom: none; }
.awp-result-thumb { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--surface); flex-shrink: 0; }
.awp-result-action { display: flex; align-items: center; gap: 8px; }
.awp-qty-input { width: 58px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.awp-muted { color: var(--secondary-2); font-size: 13px; margin: 2px 0 0; }

.awp-list-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px; position: sticky; top: 20px;
}
.awp-list-panel h2 { font-size: 18px; margin-bottom: 14px; }
.awp-list-items { max-height: 320px; overflow-y: auto; }
.awp-li-info strong { font-size: 14px; }
.awp-line-total { min-width: 90px; text-align: right; font-weight: 600; }
.awp-btn-remove { background: none; border: none; font-size: 20px; color: var(--critical); cursor: pointer; line-height: 1; }
.awp-list-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; margin-top: 10px; border-top: 2px solid var(--main); font-size: 19px;
}

.awp-checkout-section { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.awp-checkout-section h3 { font-size: 14px; margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .03em; color: var(--secondary); }
.awp-checkout-section label { display: block; font-size: 14px; margin: 6px 0; }
.awp-checkout-section select, .awp-checkout-section textarea, .awp-checkout-section input[type=file] {
  width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; margin-top: 4px;
}
.awp-btn-whatsapp { background: var(--whatsapp-cl, #25D366); color: #fff !important; border: none; }

.awp-error { color: var(--critical); font-size: 14px; }
.awp-bank-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 16px; }
.awp-status-paid { color: var(--success); font-weight: 600; }
.awp-status-pending { color: var(--yellow); font-weight: 600; }
.awp-status-failed { color: var(--critical); font-weight: 600; }

.awp-order-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 14px; }

.awp-stars { color: var(--yellow); letter-spacing: 2px; }

/* Auth pages reuse Modave's .form-login styling; this just centers the card */
.awp-auth-wrap { max-width: 440px; margin: 50px auto; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.awp-auth-wrap h1 { font-size: 22px; margin-bottom: 18px; }

@media (max-width: 991px) {
  .awp-list-panel { position: static; margin-top: 24px; }
}
