/* ============================================
   ZiBuy — Global Styles
   Jiji-inspired marketplace for Uganda 🇺🇬
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Syne:wght@700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --orange:     #ff6600;
  --orange-dk:  #e05500;
  --orange-lt:  #fff4ee;
  --dark:       #111827;
  --gray:       #6b7280;
  --light:      #f3f4f6;
  --white:      #ffffff;
  --radius:     14px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.15);
  --font:       'Nunito', sans-serif;
  --font-head:  'Syne', sans-serif;
}



/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: #f7f8fa;
  color: var(--dark);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; }
button { font-family: var(--font); cursor: pointer; }

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.logo {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
  flex-shrink: 0;
  letter-spacing: -1px;
}

.logo span { color: var(--dark); }

.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--light);
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  gap: 10px;
  max-width: 560px;
  transition: border-color .2s;
}

.search-wrap:focus-within {
  border-color: var(--orange);
  background: var(--white);
}

.search-wrap svg { flex-shrink: 0; color: var(--gray); }

.search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 0;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  color: var(--dark);
}

.search-wrap input::placeholder { color: #adb5bd; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s;
  cursor: pointer;
}

.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dk); }

.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #1f2937; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }

/* Cart badge */
.cart-btn-wrap { position: relative; }
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero {
  background: linear-gradient(120deg, var(--orange) 0%, #ff9900 100%);
  color: white;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-text h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 16px;
  opacity: .9;
  margin-bottom: 20px;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
}

.stat-pill strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.stat-pill span { font-size: 12px; opacity: .85; }

/* ============================================
   FILTER PANEL
   ============================================ */

.categories {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  background: white;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.categories::-webkit-scrollbar { display: none; }

.cat-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: var(--light);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--dark);
  transition: .2s;
  font-family: var(--font);
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--orange);
  color: white;
}

.filter-toggle-btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* Filter Panel */
.filters-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9000;
  justify-content: center;
  align-items: flex-end;
}

.filters-panel.active {
  display: flex;
}

.filters-container {
  background: white;
  width: 100%;
  max-width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .3s ease;
}

@media (min-width: 1024px) {
  .filters-panel {
    position: static;
    background: transparent;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .filters-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 260px;
    position: sticky;
    top: 20px;
    animation: none;
    max-height: calc(100vh - 40px);
  }
}

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child { 
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: none;
}

.filter-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 10px;
}

.filter-group select,
.filter-group input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
  margin-bottom: 8px;
  background: white;
}

.filter-group select:focus,
.filter-group input[type="number"]:focus {
  border-color: var(--orange);
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-inputs input {
  flex: 1;
  margin-bottom: 0;
}

.price-inputs span {
  color: var(--gray);
  font-weight: 700;
}

.price-display {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
}

.date-filter-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-filter-btn {
  border: 1.5px solid #e5e7eb;
  background: white;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  color: var(--dark);
}

.date-filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.date-filter-btn.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  text-transform: none;
  font-weight: 600;
  cursor: pointer;
}

.filter-checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--orange);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: -8px;
}

.filter-header h3 {
  margin: 0;
  font-size: 16px;
}

.filter-clear-btn {
  border: none;
  background: none;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.filter-clear-btn:hover { 
  color: var(--orange-dk);
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.filter-actions .btn {
  flex: 1;
  padding: 12px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
}

.filter-btn-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .filter-btn-mobile {
    display: block;
    border: none;
    background: var(--light);
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
  }
}

/* Products Section Layout */
.products-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-sidebar {
  display: contents;
}

.products-main {
  display: contents;
}

@media (max-width: 1023px) {
  .products-section {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .filter-sidebar {
    display: none;
  }

  .filters-panel.active .filters-container {
    border-radius: 20px 20px 0 0;
  }
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  background: var(--white);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #f0f0f0;
}

.categories::-webkit-scrollbar { display: none; }

.cat-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: var(--light);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--dark);
  transition: .2s;
  font-family: var(--font);
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--orange);
  color: white;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 12px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
}

.section-header p { font-size: 13px; color: var(--gray); margin-top: 3px; }

.sort-select {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  background: white;
  cursor: pointer;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 12px 24px 40px;
}

/* ---- Product Card ---- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-image-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--light);
  position: relative;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s;
}

.slider img.active { opacity: 1; }

.product-card:hover .product-image { transform: scale(1.04); }

.save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform .2s;
  z-index: 2;
}

.save-btn:hover { transform: scale(1.15); }

.product-info { padding: 14px; }

.product-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
}

.product-price {
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  gap: 8px;
}

.cart-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font);
  transition: .2s;
}

.cart-btn:hover { background: var(--orange-dk); }

.view-btn {
  padding: 10px 12px;
  border: 1.5px solid var(--orange);
  border-radius: 9px;
  background: transparent;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font);
  transition: .2s;
}

.view-btn:hover { background: var(--orange-lt); }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state p { font-size: 16px; font-weight: 600; }

/* Loading */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 12px 24px 40px;
}

.skeleton {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.skeleton-img {
  height: 220px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body { padding: 14px; }
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 10px;
}

.skeleton-line.short { width: 60%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active { right: 0; }

.cart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-top h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
}

.close-cart {
  background: var(--light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.close-cart:hover { background: #fee2e2; color: #ef4444; }

#cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.cart-empty .cart-empty-icon { font-size: 48px; margin-bottom: 12px; }

.cart-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--light);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }

.cart-item-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}

.cart-item-info .item-price {
  color: var(--orange);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  background: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.qty-btn:hover { border-color: var(--orange); color: var(--orange); }
.qty-count { font-weight: 700; min-width: 20px; text-align: center; }

.remove-btn {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  transition: .2s;
}

.remove-btn:hover { background: #ef4444; color: white; }

/* Cart footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.cart-footer input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}

.cart-footer input:focus { border-color: var(--orange); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  font-weight: 800;
  font-size: 17px;
}

.cart-total-row span { color: var(--orange); }

.checkout-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: var(--orange);
  color: white;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font);
  transition: .2s;
}

.checkout-btn:hover { background: var(--orange-dk); }

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9000;
}

.overlay.active { display: block; }

/* ============================================
   MODALS (shared base)
   ============================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 16px;
  animation: fadeIn .2s ease;
}

.modal.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: white;
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.modal-header h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
}

.modal-close {
  background: var(--light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.modal-close:hover { background: #fee2e2; color: #ef4444; }

.modal-box input,
.modal-box select,
.modal-box textarea {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
  background: white;
}

.modal-box input:focus,
.modal-box select:focus,
.modal-box textarea:focus { border-color: var(--orange); }

.modal-box .full-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 11px;
  background: var(--orange);
  color: white;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font);
  transition: .2s;
  margin-bottom: 10px;
}

.modal-box .full-btn:hover { background: var(--orange-dk); }
.modal-box .full-btn.secondary {
  background: var(--light);
  color: var(--dark);
}
.modal-box .full-btn.secondary:hover { background: #e5e7eb; }

.modal-divider {
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  margin: 4px 0 14px;
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.product-modal.open { display: flex; }

.product-modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  animation: slideUp .3s ease;
}

.modal-img-slider {
  position: relative;
  height: 300px;
  background: var(--light);
  overflow: hidden;
}

.modal-img-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-img-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  transition: .2s;
}

.modal-dot.active { background: white; transform: scale(1.3); }

.modal-body { padding: 22px; }

.modal-body .product-cat { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; margin-bottom: 6px; }
.modal-body h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.modal-body .modal-price { font-size: 26px; font-weight: 900; color: var(--orange); margin-bottom: 16px; }

.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .cart-btn { flex: 1; padding: 14px; font-size: 15px; border-radius: 11px; }
.modal-actions .view-btn { padding: 14px 18px; font-size: 15px; border-radius: 11px; }

/* ============================================
   ADMIN PANEL MODAL
   ============================================ */
.admin-box { max-width: 560px; }

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--orange-lt);
  border-radius: 12px;
  padding: 16px;
}

.stat-card .stat-label { font-size: 12px; color: var(--gray); font-weight: 600; margin-bottom: 5px; }
.stat-card .stat-value { font-size: 22px; font-weight: 900; color: var(--orange); }

.admin-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray);
  margin: 20px 0 12px;
}

/* Image preview */
#preview-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.preview-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
}

/* Orders */
.order-card {
  border: 1.5px solid #f0f0f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fafafa;
}

.order-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
}

.order-card p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 4px;
}

.order-card p strong { color: var(--dark); }

.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: #dcfce7;
  color: #16a34a;
  margin-top: 8px;
}

/* ============================================
   SAFETY BANNER
   ============================================ */
.safety-banner {
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.safety-banner .shield { font-size: 28px; }

.safety-banner h4 {
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 3px;
}

.safety-banner p { font-size: 12px; color: #b45309; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 40px 24px 24px;
  margin-top: 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand .logo { font-size: 24px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; max-width: 220px; line-height: 1.6; }

.footer-links h4 {
  font-size: 13px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
  transition: color .2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 8px 0 28px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  transition: all .2s;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.social-links a:hover {
  background: var(--orange);
  color: white;
  transform: translateY(-2px);
}

.social-links a svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  text-indent: 0;
}

/* ============================================
   PRODUCT DETAIL PAGE (product.html)
   ============================================ */
.product-page-wrap {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 24px;
}

.product-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.product-page-images .main-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--light);
  margin-bottom: 12px;
}

.product-page-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.product-page-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
}

.product-page-thumbs img.active { border-color: var(--orange); }
.product-page-thumbs img:hover { border-color: var(--orange); }

.product-page-details { display: flex; flex-direction: column; }

.back-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.back-link:hover { text-decoration: underline; }

.product-page-details .product-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.product-page-details h1 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.product-page-price {
  font-size: 34px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 24px;
}

.product-page-details .product-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 28px;
  flex: 1;
}

.product-page-actions { display: flex; gap: 12px; }

.product-page-actions .cart-btn {
  flex: 1;
  padding: 16px;
  font-size: 16px;
  border-radius: 12px;
}

.seller-box {
  background: var(--light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-avatar {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.seller-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.seller-info p { font-size: 12px; color: var(--gray); }

/* ============================================
   POST AD PAGE
   ============================================ */

.post-ad-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 200px);
}

.post-ad-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.post-ad-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-ad-header h1 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark);
}

.post-ad-header > p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 24px;
}

.post-ad-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gray);
  transition: all .3s;
}

.step-indicator.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: scale(1.1);
}

.step-indicator.completed {
  background: #dcfce7;
  color: #16a34a;
  border-color: #16a34a;
}

.step-indicator.completed::after {
  content: "✓";
  font-weight: 900;
}

.step-line {
  width: 40px;
  height: 2px;
  background: #e5e7eb;
  transition: background .3s;
}

.step-line.completed { background: #16a34a; }

.step-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 700;
}

.post-ad-step {
  display: none;
}

.post-ad-step.active { display: block; animation: fadeIn .3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.post-ad-step h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
}

.post-ad-step input,
.post-ad-step select,
.post-ad-step textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
  background: white;
}

.post-ad-step input:focus,
.post-ad-step select:focus,
.post-ad-step textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.char-count {
  font-size: 12px;
  color: var(--gray);
  text-align: right;
  margin-top: -8px;
  margin-bottom: 12px;
}

.hint {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---- Category Grid ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: white;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.cat-card span { font-size: 13px; color: var(--gray); }

.cat-card:hover {
  border-color: var(--orange);
  background: var(--orange-lt);
}

.cat-card.selected {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
  transform: scale(1.05);
}

.cat-card.selected span { color: white; }

/* ---- File Upload ---- */
.file-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  border: 2px dashed #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 16px;
}

.file-upload-area:hover {
  border-color: var(--orange);
  background: var(--orange-lt);
}

.file-upload-area svg { color: var(--gray); }

.file-upload-area p {
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.file-upload-area span {
  font-size: 13px;
  color: var(--gray);
}

.file-upload-area input {
  display: none;
}

/* ---- Image Preview ---- */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.image-preview-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--orange);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.remove-img-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}

.image-preview-item:hover .remove-img-btn { opacity: 1; }

/* ---- Review Card ---- */
.review-card {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 120px 1fr;
}

.review-image {
  position: relative;
  height: 120px;
  background: var(--light);
  overflow: hidden;
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.review-content h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark);
}

.review-price {
  color: var(--orange);
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}

.review-location {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 4px;
}

.review-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
}

.review-time {
  font-size: 11px;
  color: #9ca3af;
}

/* ---- Form Buttons ---- */
.form-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-buttons .full-btn {
  flex: 1;
  padding: 15px;
  font-size: 16px;
  border-radius: 12px;
  font-weight: 800;
}

/* ============================================
   SELLER VERIFICATION
   ============================================ */

.verification-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.verification-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.verification-card h1 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}

.verification-subtitle {
  color: var(--gray);
  margin-bottom: 24px;
  font-size: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}

.admin-verification-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.admin-verification-wrap h1 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
}

.verification-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.verify-filter {
  border: 1.5px solid #e5e7eb;
  background: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
}

.verify-filter:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.verify-filter.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.verification-requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verification-request-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all .2s;
}

.verification-request-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.verification-request-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
}

.verification-request-card p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--gray);
}

/* ============================================
   ADMIN ANALYTICS
   ============================================ */

.admin-analytics-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.admin-analytics-wrap h1 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
}

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.stat-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.stat-trend {
  font-size: 12px;
  color: #adb5bd;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.analytics-card h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  background: #f3f4f6;
  border-bottom: 2px solid #e5e7eb;
}

.admin-table th {
  padding: 12px;
  text-align: left;
  font-weight: 800;
  color: var(--dark);
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  color: #555;
}

.admin-table tr:hover {
  background: #fafafa;
}

/* Dashboard mobile */
@media (max-width: 768px) {
  .dashboard-wrap {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .dashboard-sidebar {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    order: -1;
  }

  .user-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    box-shadow: none;
    background: transparent;
    text-align: left;
    min-width: 140px;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
    font-size: 24px;
    flex-shrink: 0;
  }

  .user-profile-card h3 {
    font-size: 13px;
    margin: 0;
  }

  .user-email {
    font-size: 11px;
    margin: 2px 0 0 !important;
  }

  .dashboard-nav {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    flex: 1;
    justify-content: flex-end;
  }

  .nav-item {
    padding: 8px 10px !important;
    font-size: 11px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-item span:first-child {
    display: none;
  }

  .dashboard-content h2 {
    font-size: 18px;
  }

  .ads-list {
    gap: 10px;
  }

  .ad-item {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

  .ad-item-image {
    height: 80px;
  }

  .orders-list {
    gap: 10px;
  }

  .order-card {
    padding: 12px;
  }
}


/* ============================================
   DASHBOARD ANALYTICS & PROFILE — responsive grids
   ============================================ */



.zb-row-flex {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.zb-row-flex > div { min-width: 0; }

/* ============================================
   ADMIN ANALYTICS
   ============================================ */

.admin-analytics-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.admin-analytics-wrap h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.kpi-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.analytics-card h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.analytics-table thead {
  background: #f9fafb;
}

.analytics-table th,
.analytics-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  color: var(--dark);
}

.analytics-table th {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 12px;
}

.analytics-table tbody tr:hover {
  background: #f9fafb;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */

.notifications-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.notifications-wrap h1 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
}

.notifications-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.notif-filter {
  border: 1.5px solid #e5e7eb;
  background: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  color: var(--dark);
}

.notif-filter:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.notif-filter.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all .2s;
  cursor: pointer;
  position: relative;
  border-left: 4px solid transparent;
}

.notification-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.notification-item.unread {
  background: #fffbeb;
  border-left-color: var(--orange);
}

.notification-item.read {
  opacity: .7;
}

.notification-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-content h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.notification-content p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 6px;
}

.notification-time {
  font-size: 11px;
  color: #adb5bd;
  font-weight: 600;
}

.unread-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

/* ============================================
   PAYMENT CHECKOUT
   ============================================ */

.checkout-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.checkout-container h1 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.order-summary,
.payment-form {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.order-summary h2,
.payment-form h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: var(--gray);
}

.summary-line:last-child {
  border-bottom: none;
}

.form-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.payment-form input,
.payment-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
  background: white;
}

.payment-form input:focus,
.payment-form select:focus {
  border-color: var(--orange);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
  color: var(--dark);
}

.payment-option:hover {
  border-color: var(--orange);
  background: var(--orange-lt);
}

.payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--orange);
}

.checkout-btn {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
}

.checkout-btn:hover:not(:disabled) {
  background: var(--orange-dk);
}

.checkout-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   SEARCH FILTERS PANEL
   ============================================ */

.filters-bar {
  background: white;
  padding: 12px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #e5e7eb;
  background: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  color: var(--dark);
  flex-shrink: 0;
}

.filter-toggle-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filters-panel {
  display: none;
  position: fixed;
  top: 140px;
  left: 20px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  padding: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  z-index: 99999;
  margin-top: 0;
}
.filters-panel.active {
  display: block;
}

.filters-panel.active {
  display: block;
}

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

/* Price inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.price-inputs input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}

.price-inputs input:focus {
  border-color: var(--orange);
}

.price-dash {
  color: var(--gray);
  font-weight: 700;
}

/* Price range slider */
.price-slider-container {
  position: relative;
  margin-bottom: 10px;
  height: 24px;
}

.price-slider {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 10px;
  border-radius: 2px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 5;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
}

.price-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: none;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
}

#price-range-min {
  z-index: 6;
}

.price-display {
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
}

/* Selects */
.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  background: white;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}

.filter-group select:focus {
  border-color: var(--orange);
}

/* Radio buttons */
.filter-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-radios label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.filter-radios input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--orange);
}

/* Active filters display */
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-lt);
  color: var(--orange);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================
   SELLER PROFILE & CONTACT BUTTONS
   ============================================ */

.product-seller-loc {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #16a34a;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

.verified-seller-avatar {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

/* Contact buttons — WhatsApp + Call */
.contact-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font);
  text-decoration: none;
  flex: 1;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.whatsapp-btn {
  background: #25D366;
  color: white;
}

.whatsapp-btn:hover { background: #1ebe5c; }

.call-btn {
  background: var(--dark);
  color: white;
}

.call-btn:hover { background: #1f2937; }

/* Seller strip inside quick-view modal */
.modal-seller {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--light);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--gray);
}

.modal-seller-name {
  font-weight: 700;
  color: var(--dark);
}

.modal-seller-loc { margin-left: auto; }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error   { border-left: 4px solid #ef4444; }
.toast.info    { border-left: 4px solid var(--orange); }

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================
   USER DASHBOARD
   ============================================ */

.dashboard-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 200px);
}

/* ---- Sidebar ---- */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-profile-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.user-avatar {
  width: 60px;
  height: 60px;
  background: var(--orange-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}

.user-profile-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--dark);
}

.user-email {
  font-size: 12px;
  color: var(--gray);
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: white;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--gray);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  text-align: left;
}

.nav-item:hover {
  background: var(--light);
  color: var(--dark);
}

.nav-item.active {
  background: var(--orange);
  color: white;
}

.nav-item span { font-size: 18px; }

/* ---- Main Content ---- */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-content h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
}

.dashboard-tab {
  display: none;
}

.dashboard-tab.active { display: block; }

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tab-header h2 { margin: 0; }

/* ---- Profile Card ---- */
.profile-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.profile-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.profile-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.profile-section label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: .5px;
}

.profile-section p {
  font-size: 15px;
  color: var(--dark);
  margin-top: 6px;
}

/* ---- Stats Grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.stat-box {
  background: white;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
}

/* ---- Filter Tabs ---- */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-tab {
  border: 1.5px solid #e5e7eb;
  background: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
}

.filter-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-tab.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* ---- Ads List ---- */
.ads-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ad-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .2s;
}

.ad-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ad-item-image {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--light);
}

.ad-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-status-badge.active {
  background: #dcfce7;
  color: #16a34a;
}

.ad-status-badge.sold {
  background: #fecaca;
  color: #ef4444;
}

.ad-status-badge.expired {
  background: #fde68a;
  color: #92400e;
}

.ad-item-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ad-item-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.ad-price {
  color: var(--orange);
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 8px;
}

.ad-meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
}


/* ---- Ads List ---- */
.ads-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ad-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.ad-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ad-item-image {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--light);
}

.ad-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-status-badge.active {
  background: #dcfce7;
  color: #16a34a;
}

.ad-status-badge.sold {
  background: #fecaca;
  color: #ef4444;
}

.ad-status-badge.expired {
  background: #fde68a;
  color: #92400e;
}

.ad-item-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ad-item-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.ad-price {
  color: var(--orange);
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 8px;
}

.ad-meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
}

/* ---- Action Buttons ---- */
.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.btn-sm {
  padding: 9px 12px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex: 1;
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-sm:active {
  transform: scale(0.98);
}

/* Specific button colors */
.btn-edit {
  background: #3b82f6;
  color: white;
}

.btn-edit:hover {
  background: #2563eb;
}

.btn-sold {
  background: #10b981;
  color: white;
}

.btn-sold:hover {
  background: #059669;
}

.btn-featured {
  background: #f59e0b;
  color: white;
}

.btn-featured:hover {
  background: #d97706;
}

.btn-delete {
  background: #ef4444;
  color: white;
}

.btn-delete:hover {
  background: #dc2626;
}

.btn-unsold {
  background: #6366f1;
  color: white;
}

.btn-unsold:hover {
  background: #4f46e5;
}

/* ========================================
   RESPONSIVE DASHBOARD BUTTONS
======================================== */

/* Tablet Responsive */
@media (max-width: 1024px) {
  .ad-item {
    grid-template-columns: 120px 1fr;
    gap: 12px;
  }

  .ad-item-image {
    height: 120px;
  }

  .ad-item-info {
    padding: 12px;
  }

  .ad-item-info h3 {
    font-size: 14px;
  }

  .ad-price {
    font-size: 15px;
  }

  .ad-actions {
    gap: 6px;
  }

  .btn-sm {
    padding: 8px 10px !important;
    font-size: 11px !important;
    min-width: 60px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ad-item {
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding: 0;
  }

  .ad-item-image {
    height: 100px;
  }

  .ad-item-info {
    padding: 10px;
  }

  .ad-item-info h3 {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .ad-price {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .ad-meta {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .ad-actions {
    gap: 5px;
    flex-wrap: wrap;
  }

  .btn-sm {
    padding: 7px 8px !important;
    font-size: 10px !important;
    min-width: 55px;
    flex: 1;
    min-height: 32px;
  }

  /* Stack buttons on very small screens */
  .btn-sm:nth-child(n+3) {
    flex: 0 1 48%;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .ad-item {
    grid-template-columns: 80px 1fr;
    gap: 8px;
  }

  .ad-item-image {
    height: 80px;
  }

  .ad-item-info {
    padding: 8px;
  }

  .ad-item-info h3 {
    font-size: 12px;
  }

  .ad-price {
    font-size: 13px;
  }

  .ad-meta {
    font-size: 10px;
  }

  .ad-actions {
    gap: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .btn-sm {
    padding: 6px 6px !important;
    font-size: 9px !important;
    min-width: auto;
    min-height: 30px;
    flex: 1;
  }

  /* Hide text, show icons only on very small screens */
  .btn-sm span {
    display: inline-block;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .ad-item {
    grid-template-columns: 70px 1fr;
  }

  .ad-item-image {
    height: 70px;
  }

  .btn-sm {
    padding: 5px 4px !important;
    font-size: 8px !important;
    min-height: 28px;
  }
}

/* ---- Orders List ---- */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-card {
  background: white;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.order-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--orange);
  margin: 0;
}

.order-date {
  font-size: 12px;
  color: var(--gray);
}

.order-items {
  margin-bottom: 12px;
}

.order-items p {
  font-size: 13px;
  color: var(--dark);
  margin: 4px 0;
}

.order-footer {
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.order-footer p {
  font-size: 13px;
  color: var(--gray);
  margin: 4px 0;
}

.order-status {
  display: inline-block;
  background: #dcfce7;
  color: #16a34a;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* ---- Settings ---- */
.settings-section {
  background: white;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.settings-section h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--dark);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: white;
  color: var(--dark);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 10px;
  width: 100%;
}

.setting-item:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.setting-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.setting-toggle:last-child { border-bottom: none; }

.setting-toggle span { font-size: 14px; color: var(--dark); }

.setting-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.settings-section.danger {
  border: 1px solid #fee2e2;
}

@media (max-width: 768px) {
  .topbar { padding: 12px 16px; gap: 10px; }
  .logo { font-size: 22px; }
  .hero { padding: 32px 16px; }
  .categories { padding: 12px 16px; }
  .products { padding: 12px 16px 32px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .section-header { padding: 20px 16px 10px; }
  .product-page-grid { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .product-page-details h1 { font-size: 22px; }
  .product-page-price { font-size: 26px; }
  .footer-top { flex-direction: column; }

  /* Dashboard mobile - KEEP SIDEBAR VISIBLE */
  .dashboard-wrap {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .dashboard-sidebar {
    display: flex !important;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    order: -1;
    margin-bottom: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .user-profile-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    box-shadow: none;
    background: transparent;
    text-align: left;
    min-width: 130px;
    flex-shrink: 0;
  }

  .user-avatar {
    width: 48px;
    height: 48px;
    font-size: 22px;
    flex-shrink: 0;
  }

  .user-profile-card h3 {
    font-size: 13px;
    margin: 0;
    font-weight: 700;
  }

  .user-email {
    font-size: 11px;
    margin: 2px 0 0 !important;
    color: var(--gray);
  }

  .dashboard-nav {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    flex: 1;
    flex-shrink: 0;
  }

  .nav-item {
    padding: 8px 10px !important;
    font-size: 11px !important;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
  }

  .nav-item span:first-child {
    display: inline;
    margin-right: 2px;
  }

  .dashboard-content h2 {
    font-size: 18px;
  }

  .ad-item {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

  .ad-item-image {
    height: 80px;
  }

  .orders-list {
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Filters mobile */
  .filters-bar {
    padding: 10px 12px;
  }

  .filters-panel {
    left: 12px;
    width: calc(100vw - 24px);
    max-width: 320px;
  }

  .active-filters {
    margin-left: 0;
    width: 100%;
  }
}

/* ============================================
   SELLER VERIFICATION
   ============================================ */

.seller-verify-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.seller-verify-wrap h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
}

.verify-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.verify-tab {
  border: 1.5px solid #e5e7eb;
  background: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  color: var(--dark);
}

.verify-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.verify-tab.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.sellers-verify-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seller-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.seller-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.seller-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.seller-header p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
}

.verify-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  min-width: 100px;
}

.verify-badge.verified {
  background: #d1fae5;
  color: #065f46;
}

.verify-badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.verify-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.seller-info {
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 12px;
}

.seller-info p {
  margin: 6px 0;
}

.seller-info strong {
  font-weight: 700;
}

.seller-actions {
  display: flex;
  gap: 10px;
}

.seller-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #d1fae5;
  color: #065f46;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}
/* ============================================
   USER PROFILE PAGE
   ============================================ */

.user-profile-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.profile-header {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.profile-avatar {
  font-size: 64px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-lt);
  border-radius: 12px;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
}

.profile-info p {
  margin: 4px 0;
  color: var(--gray);
  font-size: 14px;
}

.profile-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: white;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  margin: 0;
}

.profile-section {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.profile-section h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.contact-btn {
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
  font-size: 14px;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.profile-product-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}

.profile-product-card:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.profile-product-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.profile-product-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.profile-product-card p {
  margin: 4px 0 0;
  font-size: 13px;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-info h1 {
    font-size: 22px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   PREMIUM/FEATURED ADS
   ============================================ */

.premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff6600, #ffa500);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.featured-section {
  background: linear-gradient(135deg, #fff4ee, #fffbeb);
  border: 2px solid #ff6600;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.featured-section h2 {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 800;
}

.boost-option {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .2s;
}

.boost-option:hover {
  border-color: var(--orange);
  background: var(--orange-lt);
}

.boost-option input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--orange);
}

/* ============================================
   ADVANCED SEARCH
   ============================================ */

.advanced-search-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.advanced-search-wrap h1 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
}

.search-sidebar {
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  float: left;
  width: 220px;
  margin-right: 20px;
}

.search-sidebar h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.search-container {
  overflow: auto;
}

.search-filters {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row input,
.filter-row select {
  flex: 1;
  padding: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--orange);
}

#suggestions-box {
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

#suggestions-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
}

#search-results {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .search-sidebar {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 16px;
  }

  .filter-row {
    flex-direction: column;
  }
}


/* ============================================
   JIJI-LIKE DESIGN SYSTEM
   ============================================ */

:root {
  /* Colors - Jiji style */
  --primary: #ff6600;
  --primary-dark: #e55a00;
  --primary-light: #fff4ee;
  --dark: #111827;
  --gray-dark: #374151;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: #fafbfc;
  color: var(--dark);
  line-height: 1.5;
}

/* ============================================
   JIJI NAVBAR
   ============================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid #f0f0f0;
}

.logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ff8533);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--gray-light);
  border-radius: 50px;
  padding: 8px 14px;
  gap: 8px;
  min-width: 200px;
}

.topbar-search input {
  background: none;
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  font-family: inherit;
}

/* ============================================
   JIJI HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary), #ff8533);
  color: var(--white);
  padding: 40px 16px;
  text-align: center;
  border-radius: 0 0 20px 20px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero p {
  font-size: 14px;
  opacity: 0.95;
  margin-bottom: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  font-size: 12px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.hero-stat-value {
  font-weight: 900;
  font-size: 18px;
}

/* ============================================
   JIJI FEATURED ADS SECTION
   ============================================ */

.featured-section {
  padding: 16px;
  margin-bottom: 8px;
}

.featured-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-ads {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.featured-ad-card {
  display: flex;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  width: 100%;
  min-height: 120px;
  cursor: pointer;
  transition: all 0.2s;
}

.featured-ad-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.featured-ad-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.featured-ad-info {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-ad-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-ad-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
  margin-top: 6px;
}

.featured-ad-location {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

.featured-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--primary), #ff8533);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
}

/* ============================================
   JIJI CATEGORIES
   ============================================ */

.categories {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--white);
  border: 1.5px solid #f0f0f0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 60px;
}

.category-btn:active,
.category-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.category-icon {
  font-size: 20px;
}

/* ============================================
   JIJI PRODUCT GRID
   ============================================ */

.products {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  background: #fafbfc;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:active .product-image-box img {
  transform: scale(1.05);
}

.save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.save-btn:active {
  transform: scale(0.95);
}

.premium-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--primary), #ff8533);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  box-shadow: var(--shadow-md);
}

.product-info {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-cat {
  font-size: 11px;
  color: var(--gray);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}

.product-seller-loc {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.cart-btn,
.view-btn {
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cart-btn {
  background: var(--primary);
  color: var(--white);
}

.cart-btn:active {
  background: var(--primary-dark);
  transform: scale(0.98);
}

.view-btn {
  background: var(--gray-light);
  color: var(--dark);
  border: 1px solid #e5e7eb;
}

.view-btn:active {
  background: #e5e7eb;
}

/* ============================================
   JIJI BUTTONS
   ============================================ */

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-orange {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-orange:active {
  background: var(--primary-dark);
  transform: scale(0.98);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:active {
  background: var(--gray-dark);
}

.btn-outline {
  border: 1.5px solid #e5e7eb;
  background: var(--white);
  color: var(--dark);
}

.btn-outline:active {
  background: var(--gray-light);
}

/* ============================================
   JIJI MODALS & OVERLAYS
   ============================================ */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   JIJI FLOATING ACTION BUTTONS
   ============================================ */

.fab-container {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fab:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-md);
}

/* ============================================
   JIJI BOTTOM NAVIGATION (Mobile)
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid #e5e7eb;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--gray);
  font-weight: 700;
  flex: 1;
  transition: all 0.2s;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-icon {
  font-size: 20px;
}

/* ============================================
   JIJI RESPONSIVE
   ============================================ */

@media (min-width: 640px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .featured-ads {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
  }

  .featured-ads {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}

/* ============================================
   JIJI EMPTY STATE
   ============================================ */

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--gray);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ============================================
   JIJI SKELETON LOADER
   ============================================ */

.skeleton-card {
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-xs);
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: loading 1.5s infinite;
  margin-bottom: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}



/* =========================================
   ZIBUY RESPONSIVE FIXES
========================================= */

/* Prevent horizontal scrolling */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Make images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* =========================================
   TOPBAR RESPONSIVE
========================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* =========================================
   BUTTONS
========================================= */

.btn {
  white-space: nowrap;
}

/* =========================================
   SEARCH BAR
========================================= */

.search-wrap {
  flex: 1;
  min-width: 180px;
  max-width: 100%;
}

/* =========================================
   PRODUCT GRID
========================================= */

/* ── Grid ── */
#products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
  align-items: start;
}

/* ── Card ── */
.product-card {
  width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: none;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  transition: box-shadow .18s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

/* ── Image ── */
.product-image {
  line-height: 0;
  background: #f7f7f7;
}

.product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* ── Info ── */
.product-info{
  padding:6px 7px 7px;
  display:flex;
  flex-direction:column;
  gap:2px;
  position:static;
}

.product-info h3 {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 4px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info .price{
  font-size:15px;
  font-weight:800;
  color:#f68b1e;
  margin:0;
  display:block;
  position:static;
}

.product-info .location{
  font-size:11px;
  color:#999;
  margin:0;
  display:block;
  position:static;
}

/* ── Actions (hidden by default, Jumia-style) ── */
.product-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.product-actions button {
  flex: 1;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
  border: none;
  cursor: pointer;
}

/* =========================================
   FILTERS
========================================= */

.filters-container,
.filters-panel,
.filters-bar {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.filter-group {
  width: 100%;
}

/* =========================================
   TABLE RESPONSIVE
========================================= */

table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

/* =========================================
   MOBILE FIXES
========================================= */

@media (max-width: 768px) {

  /* Topbar stack */
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  /* Search full width */
  .search-wrap {
    width: 100%;
  }

  /* Buttons wrap nicely */
  .topbar-actions {
    width: 100%;
    justify-content: center;
  }

  /* Smaller buttons */
  .btn {
    font-size: 13px;
    padding: 10px 12px;
  }

  /* Hero section */
  .hero {
    padding: 20px 14px;
    text-align: center;
  }

  .hero h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 14px;
  }

  /* Hero stats */
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Categories scroll */
  .categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .categories::-webkit-scrollbar {
    display: none;
  }

  /* Product grid mobile */
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Product modal */
  .product-modal-content {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Cart sidebar */
  .cart-sidebar {
    width: 100%;
  }

  /* Admin modal */
  .admin-box {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

}

/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 480px) {

  .products {
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    font-size: 12px;
    padding: 8px 10px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .logo {
    font-size: 24px;
    text-align: center;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

}

/* =========================================
   ADMIN PANEL PROFESSIONAL UI
========================================= */

.admin-box {
  width: min(1000px, 95%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 18px;
  background: #ffffff;
  padding: 24px;
}

/* =========================================
   ADMIN HEADER
========================================= */

.admin-header {
  margin-bottom: 24px;
}

.admin-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.admin-header p {
  color: #6b7280;
  font-size: 14px;
}

/* =========================================
   ADMIN STATS
========================================= */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  transition: 0.2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
}

.admin-stat-card h3 {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.admin-stat-card p {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

/* =========================================
   PRODUCT FORM
========================================= */

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
}

.admin-form-group.full-width {
  grid-column: span 2;
}

.admin-form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: #ff6600;
}

.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* =========================================
   IMAGE PREVIEW
========================================= */

#preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

/* =========================================
   UPLOAD BUTTON
========================================= */

#upload-btn {
  width: 100%;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

#upload-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

#upload-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================
   ORDER SECTION
========================================= */

#admin-orders {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.order-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.order-card h4 {
  margin-bottom: 12px;
  color: #111827;
}

.order-card p {
  margin-bottom: 6px;
  font-size: 14px;
  color: #4b5563;
}

.order-status {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ff6600;
  font-size: 12px;
  font-weight: 600;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {

  .admin-box {
    width: 95%;
    padding: 18px;
  }

  .admin-header h2 {
    font-size: 22px;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-form-group.full-width {
    grid-column: span 1;
  }

  .admin-stat-card p {
    font-size: 22px;
  }

  #upload-btn {
    padding: 14px;
  }

}


/* ============================================
   FILTER PANEL IMPROVEMENTS
   ============================================ */

.filters-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 20px;
  width: 100%;
  max-width: 360px;
  z-index: 100;
  margin-top: 8px;
  animation: slideDown 0.3s ease;
}

.filters-panel.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-group {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.filter-group select,
.filter-group input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  background: white;
  margin-bottom: 8px;
}

.filter-group select:focus,
.filter-group input[type="number"]:focus {
  border-color: var(--orange);
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.price-inputs input {
  flex: 1;
  margin-bottom: 0;
}

.price-dash {
  color: var(--gray);
  font-weight: 700;
}

.filter-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-radios label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.filter-radios input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--orange);
}

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: 12px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-lt);
  color: var(--orange);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
  .filters-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    width: 100%;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}


/* ============================================
   FEATURED ADS
============================================ */

.featured-section{
  margin-bottom:24px;
  padding:20px;
  border-radius:18px;
  background:#fff7ed;
  border:1px solid #fed7aa;
}

.featured-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.featured-title-wrap{
  display:flex;
  align-items:center;
  gap:12px;
}

.featured-star{
  font-size:28px;
}

.featured-title{
  margin:0;
  font-size:22px;
  font-weight:800;
  color:#111827;
}

.featured-subtitle{
  margin:2px 0 0;
  color:#6b7280;
  font-size:13px;
}

.featured-count{
  background:#ff6600;
  color:white;
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.featured-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
}

.premium-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:linear-gradient(135deg,#ff6600,#ff9500);
  color:white;
  padding:6px 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  z-index:5;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}


/* ============================================
   SELLER VERIFICATION PAGE
============================================ */

.verify-page{
  min-height:100vh;
  background:#f8fafc;
  display:flex;
  justify-content:center;
  padding:24px 16px;
}

.verify-card{
  width:100%;
  max-width:720px;
  background:white;
  border-radius:24px;
  padding:32px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.verify-header{
  text-align:center;
  margin-bottom:28px;
}

.verify-icon{
  width:72px;
  height:72px;
  margin:auto;
  border-radius:50%;
  background:#fff4ee;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  margin-bottom:16px;
}

.verify-header h1{
  font-size:32px;
  font-weight:800;
  color:#111827;
  margin-bottom:10px;
}

.verify-header p{
  color:#6b7280;
  font-size:15px;
  line-height:1.6;
}

.verify-benefits{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:28px;
}

.benefit-card{
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:16px;
  padding:18px;
  text-align:center;
}

.benefit-card span{
  font-size:28px;
  display:block;
  margin-bottom:10px;
}

.benefit-card p{
  font-size:14px;
  font-weight:700;
  color:#111827;
}

.verify-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-group label{
  font-size:14px;
  font-weight:700;
  color:#111827;
}

.form-group input,
.form-group textarea{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:14px;
  padding:14px;
  font-size:15px;
  outline:none;
  transition:.2s;
  background:white;
}

.form-group input:focus,
.form-group textarea:focus{
  border-color:#ff6600;
  box-shadow:0 0 0 4px rgba(255,102,0,.12);
}

.submit-verify-btn{
  background:#ff6600;
  color:white;
  border:none;
  border-radius:16px;
  padding:16px;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  transition:.2s;
}

.submit-verify-btn:hover{
  transform:translateY(-2px);
  background:#e65c00;
}

.verification-status-box{
  margin-top:20px;
  padding:16px;
  border-radius:16px;
  text-align:center;
  font-weight:800;
}

.verification-status-box.pending{
  background:#fef3c7;
  color:#92400e;
}

.verification-status-box.approved{
  background:#dcfce7;
  color:#166534;
}

.verification-status-box.rejected{
  background:#fee2e2;
  color:#991b1b;
}

/* ============================================
   MOBILE RESPONSIVE
============================================ */

@media(max-width:768px){

  .verify-card{
    padding:22px;
    border-radius:20px;
  }

  .verify-header h1{
    font-size:26px;
  }

  .verify-benefits{
    grid-template-columns:1fr;
  }

  .benefit-card{
    padding:16px;
  }

  .submit-verify-btn{
    width:100%;
  }

}

@media(max-width:480px){

  .verify-page{
    padding:12px;
  }

  .verify-card{
    padding:18px;
    border-radius:18px;
  }

  .verify-header h1{
    font-size:22px;
  }

  .verify-header p{
    font-size:14px;
  }

  .form-group input,
  .form-group textarea{
    font-size:14px;
    padding:13px;
  }

  .submit-verify-btn{
    padding:14px;
    font-size:15px;
  }

}

/* ============================================
   SELLER VERIFICATION — RESPONSIVE DESIGN
============================================ */


.admin-verification-wrap h1{
  font-size:clamp(22px, 5vw, 36px);
  font-weight:800;
  margin-bottom:20px;
  color:#111827;
  line-height:1.2;
}

/* FILTER BUTTONS */

.verification-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.verify-filter{
  border:none;
  background:#f3f4f6;
  color:#111827;
  padding:12px 18px;
  border-radius:12px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:0.2s;
}

.verify-filter.active{
  background:#ff6600;
  color:white;
}

/* REQUEST GRID */

.verification-requests-list{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:16px;
}

/* CARD */

.verification-card{
  background:white;
  border-radius:18px;
  padding:18px;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 14px rgba(0,0,0,0.06);
  overflow:hidden;
}

.verification-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:14px;
  margin-top:12px;
}

.verification-card h3{
  font-size:20px;
  margin-bottom:10px;
  word-break:break-word;
}

.verification-card p{
  font-size:15px;
  line-height:1.6;
  color:#374151;
  margin-bottom:8px;
  word-break:break-word;
}

/* STATUS BADGE */

.verify-status{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  margin-top:10px;
}

.verify-pending{
  background:#fff7ed;
  color:#ea580c;
}

.verify-approved{
  background:#ecfdf5;
  color:#059669;
}

.verify-rejected{
  background:#fef2f2;
  color:#dc2626;
}

/* BUTTONS */

.verification-card .btn{
  width:100%;
  margin-top:12px;
  font-size:15px;
  padding:14px;
  border-radius:12px;
}

/* MODAL */

#modal-verify .modal-box{
  width:95%;
  max-width:650px;
  border-radius:22px;
  padding:20px;
}

#modal-content{
  font-size:15px;
  line-height:1.7;
}

#modal-content img{
  width:100%;
  max-height:320px;
  object-fit:cover;
  border-radius:14px;
  margin-top:12px;
}

/* SMALL PHONES */

@media (max-width:600px){

  .admin-verification-wrap{
    padding:16px 10px 80px;
  }

  .verification-requests-list{
    grid-template-columns:1fr;
    gap:14px;
  }

  .verification-card{
    padding:14px;
    border-radius:16px;
  }

  .verification-card h3{
    font-size:18px;
  }

  .verification-card p{
    font-size:14px;
  }

  .verify-filter{
    flex:1;
    text-align:center;
    padding:12px 10px;
    font-size:14px;
  }

  #modal-verify .modal-box{
    width:96%;
    padding:16px;
  }

  #modal-content{
    font-size:14px;
  }

}

/* VERY SMALL DEVICES */

@media (max-width:380px){

  .admin-verification-wrap h1{
    font-size:22px;
  }

  .verification-card h3{
    font-size:16px;
  }

  .verification-card p{
    font-size:13px;
  }

  .verify-filter{
    font-size:13px;
    padding:10px 8px;
  }

}

/* ============================================
   SELLER VERIFICATION FORM
============================================ */

.verification-page{
  width:100%;
  max-width:700px;
  margin:0 auto;
  padding:20px 14px 100px;
  box-sizing:border-box;
}

.verification-page h1{
  font-size:clamp(24px, 5vw, 38px);
  font-weight:800;
  color:#111827;
  margin-bottom:10px;
  line-height:1.2;
}

.verification-page p{
  font-size:16px;
  color:#6b7280;
  line-height:1.6;
  margin-bottom:24px;
}

/* FORM BOX */

.verification-form{
  background:white;
  border-radius:22px;
  padding:22px;
  box-shadow:0 4px 20px rgba(0,0,0,0.06);
  border:1px solid #e5e7eb;
}

/* LABELS */

.verification-form label{
  display:block;
  font-size:15px;
  font-weight:700;
  margin-bottom:8px;
  margin-top:18px;
  color:#111827;
}

/* INPUTS */

.verification-form input,
.verification-form textarea,
.verification-form select{
  width:100%;
  padding:16px;
  border:1px solid #d1d5db;
  border-radius:14px;
  font-size:16px;
  background:white;
  color:#111827;
  outline:none;
  transition:0.2s;
  box-sizing:border-box;
}

/* FOCUS */

.verification-form input:focus,
.verification-form textarea:focus,
.verification-form select:focus{
  border-color:#ff6600;
  box-shadow:0 0 0 4px rgba(255,102,0,0.15);
}

/* TEXTAREA */

.verification-form textarea{
  min-height:120px;
  resize:vertical;
}

/* FILE INPUT */

.verification-form input[type="file"]{
  padding:14px;
  background:#f9fafb;
  border:2px dashed #d1d5db;
  cursor:pointer;
}

/* IMAGE PREVIEW */

.verification-preview{
  width:100%;
  margin-top:14px;
  border-radius:16px;
  overflow:hidden;
}

.verification-preview img{
  width:100%;
  max-height:260px;
  object-fit:cover;
  border-radius:16px;
}

/* SUBMIT BUTTON */

.verify-submit-btn{
  width:100%;
  margin-top:24px;
  border:none;
  background:linear-gradient(135deg,#ff6600,#ff8533);
  color:white;
  padding:18px;
  border-radius:16px;
  font-size:17px;
  font-weight:800;
  cursor:pointer;
  transition:0.2s;
}

.verify-submit-btn:hover{
  transform:translateY(-1px);
  opacity:0.95;
}

/* MOBILE */

@media (max-width:600px){

  .verification-page{
    padding:16px 10px 80px;
  }

  .verification-form{
    padding:16px;
    border-radius:18px;
  }

  .verification-page h1{
    font-size:28px;
  }

  .verification-page p{
    font-size:15px;
  }

  .verification-form label{
    font-size:14px;
  }

  .verification-form input,
  .verification-form textarea,
  .verification-form select{
    font-size:16px;
    padding:15px;
    border-radius:12px;
  }

  .verify-submit-btn{
    padding:16px;
    font-size:16px;
  }

}

/* VERY SMALL PHONES */

@media (max-width:380px){

  .verification-page h1{
    font-size:24px;
  }

  .verification-form{
    padding:14px;
  }

  .verification-form input,
  .verification-form textarea{
    font-size:15px;
    padding:14px;
  }

}


/* ============================================
   ADMIN VERIFICATION SYSTEM
============================================ */

.admin-verification-wrap h1{
  font-size:28px;
  font-weight:800;
  margin-bottom:20px;
  color:#111827;
}

.verification-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.verify-filter{
  border:none;
  background:#f3f4f6;
  padding:12px 18px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
}

.verify-filter.active{
  background:#ff6600;
  color:white;
}

.verification-requests-list{
  display:grid;
  gap:16px;
}

.verification-card{
  background:white;
  border-radius:16px;
  padding:18px;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 10px rgba(0,0,0,.05);
}

.verification-top{
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.verification-avatar{
  width:55px;
  height:55px;
  border-radius:50%;
  background:#ff6600;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:800;
  flex-shrink:0;
}

.verification-info{
  flex:1;
}

.verification-info h3{
  margin:0 0 6px;
  font-size:18px;
  font-weight:800;
  color:#111827;
}

.verification-info p{
  margin:4px 0;
  color:#4b5563;
  font-size:14px;
}

.verification-info small{
  color:#9ca3af;
  font-size:12px;
}

.verification-status{
  color:white;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}

.view-verification-btn{
  margin-top:16px;
  width:100%;
  border:none;
  background:#111827;
  color:white;
  padding:12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
}

.view-verification-btn:hover{
  opacity:.9;
}

/* ============================================
   MODAL
============================================ */

#modal-verify .modal-box{
  width:95%;
  max-width:650px;
  border-radius:18px;
  padding:20px;
}

#modal-content{
  font-size:15px;
  line-height:1.6;
}

#modal-content p{
  word-break:break-word;
}

#modal-content a{
  color:#ff6600;
  font-weight:700;
  text-decoration:none;
}

/* ============================================
   MOBILE
============================================ */

@media(max-width:768px){

  .admin-verification-wrap{
    padding:14px;
  }

  .admin-verification-wrap h1{
    font-size:22px;
  }

  .verification-card{
    padding:14px;
  }

  .verification-top{
    flex-direction:column;
  }

  .verification-avatar{
    width:50px;
    height:50px;
    font-size:20px;
  }

  .verification-info h3{
    font-size:16px;
  }

  .verification-info p{
    font-size:13px;
  }

  .verification-status{
    align-self:flex-start;
    margin-top:8px;
  }

  .view-verification-btn{
    font-size:13px;
    padding:11px;
  }

  #modal-verify .modal-box{
    width:96%;
    padding:16px;
  }

  #modal-content{
    font-size:14px;
  }

}


/* ============================================
   JUMIA-STYLE TOPBAR REDESIGN
   ============================================ */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Account Icon Button */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}

.btn-orange:hover {
  background: var(--orange-dk);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--orange);
  color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange-lt);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: #1f2937;
}

/* Cart Button Wrap */
.cart-btn-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .btn {
    padding: 7px 10px;
    font-size: 11px;
    min-height: 34px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .topbar {
    gap: 6px;
    padding: 10px 8px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .btn {
    padding: 6px 8px;
    font-size: 10px;
    min-height: 32px;
  }

  .btn-orange {
    padding: 6px 8px;
  }

  .btn-outline {
    padding: 6px 8px;
  }

  /* Show buttons but smaller on mobile */
  #post-ad-btn {
    padding: 6px 8px !important;
    font-size: 10px !important;
  }

  #dashboard-btn {
    padding: 6px 8px !important;
    font-size: 10px !important;
  }

  #messages-btn {
    padding: 6px 8px !important;
    font-size: 10px !important;
  }

  #notifications-btn {
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .topbar {
    padding: 8px 6px;
    gap: 4px;
  }

  .topbar-actions {
    gap: 3px;
  }

  .btn {
    padding: 5px 6px;
    font-size: 9px;
    min-height: 30px;
  }

  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  /* Ensure buttons still visible on small phones */
  #post-ad-btn,
  #dashboard-btn,
  #messages-btn,
  #notifications-btn {
    padding: 5px 6px !important;
    font-size: 9px !important;
    min-height: 30px !important;
  }
}

/* Extra small phones - show sidebar horizontal */
@media (max-width: 480px) {
  .dashboard-sidebar {
    gap: 6px !important;
    padding: 10px !important;
  }

  .user-profile-card {
    min-width: 110px;
  }

  .user-avatar {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .user-profile-card h3 {
    font-size: 12px;
  }

  .user-email {
    font-size: 10px;
  }

  .dashboard-nav {
    gap: 4px;
  }

  .nav-item {
    padding: 7px 8px !important;
    font-size: 10px !important;
  }

  .nav-item span:first-child {
    display: inline !important;
  }

  .tab-header {
    flex-direction: column;
    gap: 10px;
  }

  .tab-header .btn {
    width: 100%;
  }

  .ad-item {
    grid-template-columns: 70px 1fr;
    gap: 8px;
  }

  .ad-item-image {
    height: 70px;
  }
}

/* ============================================
   BOOST MODAL & OPTIONS
   ============================================ */

.boost-option {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  background: white;
}

.boost-option:hover {
  border-color: var(--orange);
  background: var(--orange-lt);
  transform: translateY(-2px);
}

.boost-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--orange);
  flex-shrink: 0;
  margin-left: 12px;
}

/* Mobile boost options */
@media (max-width: 768px) {
  .boost-option {
    padding: 14px;
    border-radius: 10px;
  }

  .boost-option div p:first-child {
    font-size: 15px;
  }

  .boost-option div p:last-child {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .boost-option {
    padding: 12px;
    gap: 10px;
  }

  .boost-option div p:first-child {
    font-size: 14px;
  }

  .boost-option div p:last-child {
    font-size: 12px;
  }

  .boost-option input[type="radio"] {
    width: 18px;
    height: 18px;
  }
}

.admin-delete-btn{
  width:100%;
  margin-top:10px;
  padding:10px;
  border:none;
  border-radius:10px;
  background:#ef4444;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  font-size:14px;
}

.admin-delete-btn:hover{
  opacity:0.9;
}


/* ============ SHOP PAGE ============ */
.shop-header {
  background: white;
  margin-bottom: 24px;
}

.shop-banner {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 20px 20px;
}

.shop-profile-section {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  gap: 24px;
  padding: 24px;
  align-items: center;
  margin-top: -60px;
  position: relative;
}

.shop-avatar {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background: white;
  border: 4px solid #ff6600;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.shop-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-info h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.shop-category {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

.shop-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #ff6600;
}

.shop-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.shop-description-section,
.shop-products-section,
.shop-reviews-section {
  background: white;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.shop-contact-info {
  margin-top: 16px;
  padding: 12px;
  background: #f3f4f6;
  border-radius: 10px;
}

.shop-contact-info p {
  margin: 8px 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .shop-profile-section {
    grid-template-columns: 100px 1fr;
    padding: 16px;
  }

  .shop-actions {
    grid-column: 1 / -1;
    margin-top: 16px;
  }

  .shop-banner {
    height: 200px;
  }
}


/* ============ BUSINESS UPGRADE PAGE ============ */

.business-upgrade-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 100px);
}

.upgrade-container {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.upgrade-header {
  background: linear-gradient(135deg, #ff6600, #ff8533);
  color: white;
  padding: 40px 24px;
  text-align: center;
}

.upgrade-header h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.upgrade-header p {
  font-size: 16px;
  opacity: 0.95;
}

/* BENEFITS */
.upgrade-benefits {
  padding: 40px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.upgrade-benefits h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #111827;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.benefit-card {
  background: #f9fafb;
  border: 2px solid #f0f0f0;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.benefit-card:hover {
  border-color: #ff6600;
  background: #fff4ee;
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 13px;
  color: #6b7280;
}

/* PRICING */
.upgrade-pricing {
  padding: 40px 24px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
}

.upgrade-pricing h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #111827;
}

.pricing-card {
  background: linear-gradient(135deg, #fff4ee, #fffbeb);
  border: 2px solid #ff6600;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  margin: 0 auto;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.price {
  font-size: 36px;
  font-weight: 900;
  color: #ff6600;
  margin: 0;
}

.price-desc {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
}

.features-list {
  list-style: none;
  padding: 20px 0 0;
  margin-top: 20px;
  border-top: 1px solid #fde68a;
  text-align: left;
}

.features-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

/* FORM */
.upgrade-form-section {
  padding: 40px 24px;
}

.upgrade-form-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #111827;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-group small {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.payment-note {
  margin-top: 20px;
  padding: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 13px;
  color: #92400e;
  text-align: center;
}

@media (max-width: 768px) {
  .upgrade-header {
    padding: 24px 16px;
  }

  .upgrade-header h1 {
    font-size: 24px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .upgrade-form-section {
    padding: 20px 16px;
  }
}

/* Business Request Cards */
.request-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.request-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.approved {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.request-details {
  margin-bottom: 16px;
}

.request-details p {
  margin: 8px 0;
  font-size: 14px;
}

.request-actions {
  display: flex;
  gap: 10px;
}

.request-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

.footer{
  background:#111827;
  color:white;
  padding:20px;
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  margin-top:40px;
}

.footer a{
  color:white;
  text-decoration:none;
  font-size:14px;
}

.footer a:hover{
  color:#ff6600;
}

/* ============================================
   BUSINESS PLAN BADGES
   ============================================ */
.plan-badge-free   { background:#f3f4f6; color:#6b7280; }
.plan-badge-bronze { background:#fef3c7; color:#92400e; }
.plan-badge-silver { background:#f1f5f9; color:#475569; }
.plan-badge-gold   { background:#fffbeb; color:#b45309; }

.plan-tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}

.search-box{
  margin:20px 0;
}

.search-box input{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:1px solid #ddd;
  font-size:15px;
}

.category-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.category-filters button{
  border:none;
  padding:10px 16px;
  border-radius:30px;
  background:#f3f4f6;
  cursor:pointer;
  font-weight:600;
}

.category-filters button:hover{
  background:#ff6600;
  color:white;
}

/* ============================================
   SEARCH SUGGESTIONS
============================================ */

.search-wrap{
  position:relative;
}

.search-suggestions{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  margin-top:6px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  z-index:999;
  overflow:hidden;
  display:none;
}

.search-suggestion-item{
  padding:12px 14px;
  cursor:pointer;
  font-size:14px;
  border-bottom:1px solid #f3f4f6;
}

.search-suggestion-item:hover{
  background:#fff7ed;
}

.search-suggestion-item:last-child{
  border-bottom:none;
}

/* MAIN container */
#products {
  display: flex;
  flex-direction: column;
  gap: 4px; /* 🔥 very tight */
  margin: 0;
  padding: 0;
}

.product-section {
  margin: 0 !important;
  padding: 0 !important;
}

/* EACH SECTION MUST NOT BREAK SCROLL */
.product-section {
  width: 100%;
                        /* 🔥 prevents scroll breaking */
}

/* Section wrapper (JS will create this) */
.product-section {
  padding: 10px;
}

/* Title of each row */
.product-section h2 {
  margin: 2px 10px !important; /* 🔥 ultra tight */
  padding: 0;
  font-size: 15px;
}

.product-section {
  border: 1px solid transparent;
}

/* HORIZONTAL SCROLL ROW */
.product-row {
  display: flex;
  flex-wrap: nowrap;   /* 🔥 REQUIRED */
  overflow-x: auto;
  overflow-y: hidden;

  gap: 10px;
  padding: 10px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* hide scrollbar */
.product-row::-webkit-scrollbar {
  display: none;
}

/* PRODUCT CARD */
.product-card {
  flex: 0 0 auto;
  width: 160px;
  min-width: 160px;

  scroll-snap-align: start;

  background: #fff;
  border-radius: 6px;
  overflow: hidden;

  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}


/* ============================================
   ZiBuy JUMIA-LIKE HORIZONTAL SCROLL UPGRADE
   (Smooth swipe + snap + better UX)
============================================ */

/* Smooth scrolling for all product rows */
.product-row {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Better snap behavior */
.product-row {
  scroll-snap-type: x mandatory;
}

/* Each card snaps properly */
.product-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Hide scrollbar (clean UI like Jumia) */
.product-row::-webkit-scrollbar {
  display: none;
}

/* Firefox */
.product-row {
  scrollbar-width: none;
}

.product-row {
  padding: 4px 10px !important;
  margin: 0;
}

/* Add smooth hover feel (optional UX upgrade only) */
.product-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}


.product-row {
  padding-top: 5px;
  padding-bottom: 10px;
}

/* ============================================
   STICKY CATEGORY NAV (JUMIA STYLE)
============================================ */

.category-nav {
  position: sticky;
  top: 0;
  z-index: 999;

  display: flex;
  gap: 10px;
  overflow-x: auto;

  background: white;
  padding: 10px;

  border-bottom: 1px solid #eee;
}

.category-nav button {
  flex: 0 0 auto;

  padding: 6px 12px;
  font-size: 12px;

  border: 1px solid #ddd;
  background: white;
  border-radius: 20px;

  cursor: pointer;
}

.category-nav button.active {
  background: #f68b1e;
  color: white;
  border-color: #f68b1e;
}

/* =========================
   JUMIA-STYLE PRODUCT ROW FIX
========================= */

.product-row {
  display: flex;
  flex-wrap: nowrap;   /* 🔥 CRITICAL FIX */
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  padding: 10px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* hide scrollbar */
.product-row::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 auto;      /* 🔥 CRITICAL */
  width: 160px;
  min-width: 160px;

  scroll-snap-align: start;

  background: #fff;
  border-radius: 6px;
  overflow: hidden;

  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* IMAGE FIX (prevents zoomed look) */
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* TEXT FIX */
.product-card h3 {
  font-size: 12px;
  margin: 0;
  line-height: 1.2;
}

.product-card p {
  margin: 4px 0;
}

.page {
  display: none;
}

.page.active {
  display: block;
}


/* ============================================
   BOTTOM NAVIGATION (PWA / Mobile)
   ============================================ */
.zibuy-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: white !important;
  border-top: 1px solid #e5e7eb !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 6px 4px !important;
  padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  z-index: 9000 !important;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06) !important;
  box-sizing: border-box !important;
}

.zbn-item {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 4px 2px !important;
  margin: 0 !important;
  min-width: 0 !important;
  font-family: inherit !important;
  position: relative !important;
  text-decoration: none !important;
}

.zbn-icon {
  font-size: 19px !important;
  line-height: 1 !important;
}

.zbn-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #9ca3af !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.zbn-item.active .zbn-label { color: #ff6600 !important; }
.zbn-item.active .zbn-icon  { filter: drop-shadow(0 0 4px rgba(255,102,0,.4)) !important; }
.zbn-item:active { transform: scale(.92); }

.zbn-cart-dot {
  position: absolute !important;
  top: 0 !important;
  right: calc(50% - 18px) !important;
  background: #ff6600 !important;
  color: white !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  min-width: 16px !important;
  height: 16px !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
}

/* Back button */
.zbn-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px 6px 0;
  color: var(--dark, #111827);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: .15s;
}
.zbn-back-btn:active { transform: scale(.9); }

/* Push page content above nav */
body {
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}


/* Back button — floating variant for pages with no .topbar (e.g. shop.html) */
.zbn-back-floating {
  position: fixed !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 9500 !important;
  background: rgba(0,0,0,0.4) !important;
  backdrop-filter: blur(4px) !important;
  color: white !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ════════════════════════════════════════════════
   MESSAGES PAGE — RESPONSIVE MOBILE FIX
   ════════════════════════════════════════════════ */

/* ==========================================================
   ZIBUY MESSAGES
========================================================== */

.messages-wrap{
    display:grid;
    grid-template-columns:300px 1fr;
    height:calc(100vh - 68px);
    overflow:hidden;
    background:#fff;
    position:relative;
}

/* ================= SIDEBAR ================= */

.messages-sidebar{
    background:#fff;
    border-right:1px solid #ececec;
    overflow-y:auto;
    padding:15px;
}

.messages-sidebar h3{
    margin:0 0 15px;
    font-size:15px;
    font-weight:800;
}

/* ================= MAIN ================= */

.messages-main{
    display:flex;
    flex-direction:column;
    height:calc(100dvh - 56px);
    overflow:hidden;
    background:#fff;
    margin:0;
    padding:0;
}

/* empty state */

#chat-empty{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
}

/* ================= CHAT ================= */

#chat-window{
    display:flex;
    flex-direction:column;
    flex:1;
    min-height:0;
}

/* ================= HEADER ================= */

.chat-header{

    height:60px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 16px;

    background:#fff;

    border-bottom:1px solid #ececec;

}

.chat-header div{

    display:flex;

    align-items:center;

    gap:10px;

}

.chat-header h3{

    margin:0;

    font-size:17px;

    font-weight:800;

}

#chat-buyer-rating{

    display:block;

    font-size:11px;

    color:#ff6600;

    font-weight:700;

}

/* ================= MESSAGES ================= */

#messages-container{

    flex:1;

    overflow-y:auto;

    padding:16px;

    padding-bottom:95px;

    background:#fafafa;

    display:flex;

    flex-direction:column;

    gap:12px;

}

#messages-container::-webkit-scrollbar{

    width:6px;

}

#messages-container::-webkit-scrollbar-thumb{

    background:#ddd;

    border-radius:20px;

}

/* ================= INPUT ================= */

.chat-input-area{

    position:sticky;

    bottom:0;

    left:0;

    right:0;

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 15px;

    background:#fff;

    border-top:1px solid #ececec;

    z-index:50;

}

#message-input{

    flex:1;

    border:1px solid #ddd;

    border-radius:25px;

    padding:11px 16px;

    outline:none;

    font-size:14px;

}

#message-input:focus{

    border-color:#ff6600;

}

.send-btn{

    width:45px;

    height:45px;

    border:none;

    border-radius:50%;

    background:#ff6600;

    color:#fff;

    cursor:pointer;

    font-size:18px;

    display:flex;

    align-items:center;

    justify-content:center;

}

/* ================= MOBILE ================= */

@media(max-width:768px){

.messages-wrap{

    grid-template-columns:110px 1fr;

    height:calc(100vh - 60px);

}

.messages-sidebar{

    position:static;

    width:100%;

    height:100%;

    background:#fff;

    border-right:1px solid #ececec;

    display:flex;

    flex-direction:column;

    padding:10px 6px;

    overflow-y:auto;

}

.messages-main{

    display:flex;

}

.chat-header{

    height:54px;

    padding:0 12px;

}

.chat-header h3{

    font-size:15px;

}

#messages-container{

    padding:12px;

    padding-bottom:90px;

}

.chat-input-area{

    padding:10px;

}

.send-btn{

    width:42px;

    height:42px;

}

#message-input{

    padding:10px 14px;

}

}

/* ================= SMALL PHONES ================= */

@media(max-width:480px){

.chat-header{

    height:50px;

}

.chat-header h3{

    font-size:14px;

}

#messages-container{

    padding:10px;

    padding-bottom:85px;

}

.chat-input-area{

    padding:8px;

}

#message-input{

    font-size:13px;

}

.send-btn{

    width:40px;

    height:40px;

}

}


/* ============================================
   FEATURED SHOPS (HOMEPAGE)
   ============================================ */

.featured-shops-section {
  padding: 4px 24px 8px;
}

.featured-shops-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.featured-shops-row::-webkit-scrollbar { display: none; }

.shop-card {
  flex-shrink: 0;
  width: 200px;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.shop-card-banner {
  height: 70px;
  background: linear-gradient(135deg, #ff6600, #ff9900);
  background-size: cover;
  background-position: center;
  position: relative;
}

.shop-card-logo {
  position: absolute;
  bottom: -22px;
  left: 14px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 3px solid white;
  background: #f3f4f6;
  object-fit: cover;
}

.shop-card-body {
  padding: 28px 14px 14px;
}

.shop-card-body h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-card-loc {
  font-size: 12px;
  color: var(--gray);
  margin: 0 0 8px;
}

.shop-card-plan {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}

.shop-card-plan.plan-gold   { background: #fffbeb; color: #b45309; }
.shop-card-plan.plan-silver { background: #f1f5f9; color: #475569; }

@media (max-width: 768px) {
  .featured-shops-section { padding: 4px 16px 4px; }
  .shop-card { width: 160px; }
}

/* ===================================================
   PRE-LOVED PRODUCTS SECTION
=================================================== */

.used-products-section{
    margin:25px 0;
    padding:0 12px;
}

.used-products-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.used-products-header h2{
    margin:0;
    font-size:22px;
    font-weight:800;
    color:#111827;
    font-family:'Syne',sans-serif;
}

.used-products-header p{
    margin-top:4px;
    color:#6b7280;
    font-size:13px;
}

.used-products-header a{
    color:#ff6600;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
}

.used-products-header a:hover{
    text-decoration:underline;
}

/* Horizontal scrolling row */

#buy-power-grid{

    display:flex;

    gap:14px;

    overflow-x:auto;

    padding-bottom:10px;

    scroll-behavior:smooth;

    scrollbar-width:none;

}

#buy-power-grid::-webkit-scrollbar{
    display:none;
}

#buy-power-grid > div{

    min-width:190px;

    max-width:190px;

    flex:0 0 auto;

}


/* ============================================
   FEATURED SHOPS — horizontal scroll row
   ============================================ */
.featured-shops-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.featured-shops-row::-webkit-scrollbar { display: none; }

.shop-card {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.shop-card-banner {
  height: 80px;
  background: linear-gradient(135deg, #ff6600, #ff9900);
  background-size: cover;
  background-position: center;
  position: relative;
}

.shop-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  background: white;
  position: absolute;
  bottom: -28px;
  left: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.shop-card-body {
  padding: 36px 14px 14px;
}

.shop-card-body h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-card-loc {
  margin: 0 0 8px;
  font-size: 12px;
  color: #6b7280;
}

.shop-card-plan {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}
.shop-card-plan.plan-gold   { background: #fef3c7; color: #92400e; }
.shop-card-plan.plan-silver { background: #f1f5f9; color: #475569; }

@media (max-width: 600px) {
  .shop-card { width: 160px; }
  .shop-card-banner { height: 64px; }
  .shop-card-logo { width: 46px; height: 46px; bottom: -23px; }
  .shop-card-body { padding: 30px 10px 10px; }
}


#seller-products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}
@media (min-width: 640px) {
  #seller-products { grid-template-columns: repeat(3, 1fr) !important; }
}
#seller-products .profile-product-card {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
}
#seller-products .profile-product-card img {
  width: 100% !important;
  height: 100px !important;
  border-radius: 10px !important;
}


/* ============================================
   ZIBUY DASHBOARD — RESPONSIVE HELPER CLASSES
   (canonical version — replaces any earlier
   partial versions of these same class names)
   ============================================ */

.zb-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .zb-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .zb-stats-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

.zb-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .zb-two-col { grid-template-columns: 1fr 1fr; }
}

.zb-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.zb-table-wrap table {
  width: max-content;
  min-width: 100%;
}

.zb-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .zb-profile-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .zb-profile-header > a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .zb-profile-header > div:nth-child(2) {
    width: 100%;
  }
}

.zb-row-flex {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.zb-row-flex > div {
  min-width: 0;
  overflow: hidden;
}
.zb-row-flex img {
  flex-shrink: 0;
}

/* Belt-and-braces: nothing inside these dashboard tabs can ever force
   the page wider than the screen, regardless of long ad names, long
   category labels, or any element missing min-width:0 individually */
#myprofile-container,
#analytics-container {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}
#myprofile-container *,
#analytics-container > div:not(.zb-table-wrap) * {
  min-width: 0;
  word-break: break-word;
}

#data-saver-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s;
  margin-right: 6px;
}

#data-saver-btn.active {
  background: #dcfce7;
  box-shadow: 0 0 0 2px #10b981 inset;
}

.data-saver-banner {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  margin: 0 16px 12px;
}

#vacation-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#vacation-toggle:checked + #vacation-slider {
  background: #ff6600;
}
#vacation-toggle:checked + #vacation-slider::before {
  transform: translateX(22px);
}