/*
 * OrderWithMe Namibia — theme.css
 * Supplementary component styles, WooCommerce overrides, page-specific layouts
 */

/* ============================================================
   WOOCOMMERCE PAGINATION
============================================================ */
.woocommerce-pagination ul {
  display: flex; gap: 6px; justify-content: center;
  list-style: none; flex-wrap: wrap;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--owm-radius-sm);
  border: 1.5px solid var(--owm-border); font-size: 14px; font-weight: 600;
  color: var(--owm-text); transition: var(--owm-transition); text-decoration: none;
}
.woocommerce-pagination ul li a:hover { border-color: var(--owm-primary); color: var(--owm-primary); }
.woocommerce-pagination ul li span.current {
  background: var(--owm-primary); border-color: var(--owm-primary); color: white;
}

/* ============================================================
   WOOCOMMERCE NOTICES
============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--owm-radius-sm) !important;
  border-left-width: 4px !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  margin: 0 0 16px !important;
}
.woocommerce-message { background: var(--owm-green-light) !important; border-left-color: var(--owm-green) !important; color: var(--owm-green-dark) !important; }
.woocommerce-info    { background: #EEF2FF !important; border-left-color: #6366F1 !important; color: #3730A3 !important; }
.woocommerce-error   { background: var(--owm-red-light) !important; border-left-color: var(--owm-red) !important; color: #8B0000 !important; }

/* ============================================================
   CART PAGE
============================================================ */
.woocommerce-cart .woocommerce { max-width: 100%; }
.woocommerce table.shop_table {
  border-radius: var(--owm-radius-lg) !important;
  border: 1px solid var(--owm-border) !important;
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--owm-bg) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  color: var(--owm-text-muted) !important;
  padding: 12px 16px !important;
}
.woocommerce table.shop_table td { padding: 14px 16px !important; vertical-align: middle !important; }
.woocommerce .cart-subtotal th,
.woocommerce .order-total th { font-weight: 700 !important; }
.woocommerce .order-total td { font-size: 18px !important; font-weight: 800 !important; color: var(--owm-primary) !important; }
.woocommerce-cart-form .coupon input[type=text] {
  padding: 10px 14px; border: 1.5px solid var(--owm-border);
  border-radius: var(--owm-radius-sm); font-size: 14px;
}

/* ============================================================
   CHECKOUT PAGE
============================================================ */
.woocommerce-checkout #payment { background: var(--owm-white) !important; border-radius: var(--owm-radius-lg) !important; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--owm-border) !important; padding: 16px !important; }
.woocommerce-checkout #payment ul.payment_methods li { padding: 10px 0 !important; }
.woocommerce-checkout #payment div.payment_box {
  background: var(--owm-bg) !important; border-radius: var(--owm-radius-sm) !important;
  margin: 8px 0 !important; padding: 14px !important;
}
.woocommerce-checkout #place_order {
  background: var(--owm-primary) !important;
  border-radius: var(--owm-radius) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 16px 32px !important;
  width: 100% !important;
  letter-spacing: .02em !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--owm-transition) !important;
}
.woocommerce-checkout #place_order:hover { background: var(--owm-primary-dark) !important; }
.woocommerce form .form-row { margin: 0 0 16px !important; }
.woocommerce form .form-row .input-text { border-radius: var(--owm-radius-sm) !important; }
#order_review_heading { font-size: 18px !important; font-weight: 700 !important; margin-bottom: 16px !important; }

/* ============================================================
   MY ACCOUNT (WooCommerce default)
============================================================ */
.woocommerce-MyAccount-navigation {
  background: var(--owm-white);
  border: 1px solid var(--owm-border);
  border-radius: var(--owm-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.woocommerce-MyAccount-navigation ul { list-style: none; }
.woocommerce-MyAccount-navigation ul li a {
  display: block; padding: 12px 20px;
  font-size: 14px; font-weight: 500; color: var(--owm-text);
  border-bottom: 1px solid var(--owm-border);
  transition: var(--owm-transition);
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--owm-primary-fade); color: var(--owm-primary);
}
.woocommerce-MyAccount-navigation ul li:last-child a { border-bottom: none; }
.woocommerce-MyAccount-content { font-size: 15px; line-height: 1.7; }

/* ============================================================
   ORDER RECEIVED / THANK YOU PAGE
============================================================ */
.woocommerce-order { text-align: center; padding: 40px 20px; }
.woocommerce-order-overview {
  display: flex; gap: 0; flex-wrap: wrap;
  background: var(--owm-white); border: 1px solid var(--owm-border);
  border-radius: var(--owm-radius-lg); overflow: hidden; margin: 24px 0;
}
.woocommerce-order-overview li {
  flex: 1; padding: 20px; text-align: center;
  border-right: 1px solid var(--owm-border); min-width: 120px;
}
.woocommerce-order-overview li:last-child { border-right: none; }
.woocommerce-order-overview li strong { display: block; font-size: 20px; font-weight: 800; color: var(--owm-primary); margin-top: 4px; }

/* ============================================================
   STAR RATING (WooCommerce)
============================================================ */
.star-rating { color: #F5A623 !important; }
.star-rating span::before { color: #F5A623 !important; }
.woocommerce-product-rating .woocommerce-review-link { font-size: 13px !important; color: var(--owm-text-muted) !important; }

/* ============================================================
   VENDOR STOREFRONT (Dokan)
============================================================ */
.dokan-store-page-wrapper .dokan-main-wrapper { max-width: 100%; }
.dokan-store-header .store-banner-area { border-radius: var(--owm-radius-xl) !important; overflow: hidden !important; }
.dokan-store-header .store-user-info h1.store-name { font-family: var(--owm-font-heading) !important; font-size: 28px !important; font-weight: 800 !important; }
.dokan-btn-theme { background: var(--owm-primary) !important; border-color: var(--owm-primary) !important; border-radius: var(--owm-radius-sm) !important; }

/* ============================================================
   PRODUCT SEARCH RESULTS
============================================================ */
.search-results .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.woocommerce-no-products-found { text-align: center; padding: 60px 20px; }
.woocommerce-no-products-found p { font-size: 16px; color: var(--owm-text-muted); }

/* ============================================================
   TRACK ORDER PAGE
============================================================ */
.owm-track-form { max-width: 520px; margin: 0 auto; }
.owm-tracking-result { background: var(--owm-white); border: 1px solid var(--owm-border); border-radius: var(--owm-radius-xl); padding: 32px; margin-top: 24px; }
.owm-tracking-result .status-header { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--owm-border); margin-bottom: 24px; }
.owm-tracking-result .status-icon { font-size: 48px; }
.owm-map-container { width: 100%; height: 300px; border-radius: var(--owm-radius-lg); background: var(--owm-bg); border: 1px solid var(--owm-border); overflow: hidden; margin-top: 24px; display: flex; align-items: center; justify-content: center; color: var(--owm-text-muted); font-size: 14px; }

/* ============================================================
   BECOME A DRIVER / VENDOR — FORM HIGHLIGHT
============================================================ */
.join-page-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .join-page-wrap { grid-template-columns: 1fr; } }
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--owm-primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.step-dot.inactive { background: var(--owm-border); color: var(--owm-text-muted); }
.step-line { flex: 1; height: 2px; background: var(--owm-border); }
.step-line.active { background: var(--owm-primary); }

/* ============================================================
   NOTIFICATION CENTER
============================================================ */
.notifications-page { max-width: 640px; }
.notif-list-item {
  display: flex; gap: 14px; padding: 16px 20px;
  border-bottom: 1px solid var(--owm-border);
  cursor: pointer; transition: var(--owm-transition);
}
.notif-list-item:hover { background: var(--owm-bg); }
.notif-list-item.unread { background: var(--owm-primary-fade); }
.notif-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--owm-white); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; box-shadow: var(--owm-shadow-sm); }
.notif-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.notif-desc  { font-size: 13px; color: var(--owm-text-muted); }
.notif-time  { font-size: 11px; color: var(--owm-text-muted); margin-top: 4px; }

/* ============================================================
   LOADING STATES
============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--owm-border) 25%, var(--owm-bg) 50%, var(--owm-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: var(--owm-radius-sm);
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { padding: 16px; }
.skeleton-img   { width: 100%; aspect-ratio: 1; border-radius: var(--owm-radius-sm); margin-bottom: 12px; }
.skeleton-line  { height: 14px; margin-bottom: 8px; }
.skeleton-line--short { width: 60%; }

/* ============================================================
   WHATSAPP FLOAT BUTTON
============================================================ */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 24px; z-index: 499;
  width: 52px; height: 52px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: var(--owm-transition); text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); background: #128C7E; }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ============================================================
   RESPONSIVE HELPERS
============================================================ */
@media (max-width: 1024px) {
  .promo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .woocommerce-order-overview { flex-direction: column; }
  .woocommerce-order-overview li { border-right: none; border-bottom: 1px solid var(--owm-border); }
  .woocommerce-order-overview li:last-child { border-bottom: none; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-nav, .site-footer, .sidebar, .driver-toggle { display: none !important; }
  body { background: white; }
}
