/* ============================================================
   CHANDAMART MARKETPLACE — Client-side CSS
   Include AFTER css/style.css in client/index.html
   ============================================================ */

/* ---- Seller Registration FAB (floating + button) ---- */
.seller-fab {
  position: fixed;
  bottom: 84px;
  right: 16px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b59b6, #6d28d9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(109,40,217,.4);
  z-index: 999;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.seller-fab:active { transform: scale(.92); box-shadow: 0 2px 8px rgba(109,40,217,.3); }
.seller-fab .material-symbols-outlined { font-size: 26px; }

/* ---- Logo in topbar ---- */
.topbar-logo-img { height:38px; width:38px; object-fit:contain; border-radius:50%; vertical-align:middle; margin-right:6px; }

/* ---- Shop name on product cards (Zomato style — "From Shop") ---- */
.card-shop-tag {
  display:flex; align-items:center; gap:4px;
  font-size:11.5px; font-weight:600; color:#6b21a8;
  background:#f5f0ff; border-radius:20px;
  padding:3px 10px 3px 6px;
  margin-bottom:8px; width:fit-content;
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.card-shop-tag .material-symbols-outlined { font-size:13px; color:#9b59b6; flex-shrink:0; }

/* ---- Shop name in product detail sheet ---- */
.detail-shop-name { font-size:13px; color:#9b59b6; font-weight:600; margin:6px 0 14px; display:flex; align-items:center; gap:6px; }
.detail-shop-name .material-symbols-outlined { font-size:16px; }

/* ---- Buy Now button (replaces WhatsApp order-btn) ---- */
.buy-btn {
  display:flex; align-items:center; justify-content:center; gap:6px;
  width:100%; padding:11px 0; border-radius:10px; border:none; cursor:pointer;
  background:var(--rose); color:#fff; font-size:14px;
  font-weight:600; font-family:inherit; letter-spacing:.01em; transition:opacity .15s;
}
.buy-btn:active { opacity:.82; }

/* ---- Order form modal ---- */
.order-sheet {
  padding:0 !important;
  overflow:hidden;
  max-height:92dvh;
  display:flex;
  flex-direction:column;
}
.order-product-preview {
  display:flex; align-items:center; gap:14px;
  padding:16px 20px; background:#fdf4f8; border-bottom:1px solid #f3e6ed;
  flex-shrink:0;
}
.order-product-preview img { width:64px; height:64px; object-fit:cover; border-radius:10px; flex-shrink:0; }
.order-product-preview .op-name { font-size:14px; font-weight:600; color:#1a1a2e; line-height:1.4; }
.order-product-preview .op-price { font-size:16px; font-weight:700; color:var(--rose); margin-top:2px; }
.order-form-body { padding:20px; overflow-y:auto; flex:1; }
.order-form-body h3 { margin:0 0 16px; font-size:17px; }
.order-field { margin-bottom:14px; }
.order-field label { display:block; font-size:12px; font-weight:700; color:#6b6b7b; margin-bottom:5px; text-transform:uppercase; letter-spacing:.04em; }
.order-field input, .order-field textarea, .order-field select {
  width:100%; padding:11px 14px; border:1.5px solid #e5e5ea; border-radius:10px;
  font-size:14px; font-family:inherit; outline:none; box-sizing:border-box;
  background:#fff; color:#1a1a2e;
}
.order-field input:focus, .order-field textarea:focus { border-color:var(--rose); }
.order-field textarea { resize:vertical; min-height:72px; }
/* Side-by-side address fields (City + Pincode) */
.order-field-row { display:flex; gap:12px; }
.order-field-row .order-field { flex:1; }

.qty-row { display:flex; align-items:center; gap:12px; }
.qty-row label { flex:1; }
.qty-control { display:flex; align-items:center; gap:0; border:1.5px solid #e5e5ea; border-radius:10px; overflow:hidden; }
.qty-control button { background:#f8f8fc; border:none; width:38px; height:38px; font-size:18px; cursor:pointer; color:#1a1a2e; }
.qty-control button:active { background:#f0e6f8; }
.qty-control span { width:40px; text-align:center; font-weight:700; font-size:15px; }
.place-order-btn {
  width:100%; padding:14px; border:none; border-radius:12px; cursor:pointer;
  background:var(--rose); color:#fff; font-size:16px; font-weight:700;
  font-family:inherit; letter-spacing:.01em; margin-top:8px; transition:opacity .15s;
}
.place-order-btn:disabled { opacity:.5; cursor:not-allowed; }
.place-order-btn:active:not(:disabled) { opacity:.85; }

/* ---- Order confirmation screen ---- */
.confirm-sheet { text-align:center; padding:36px 24px !important; }
.confirm-icon { width:70px; height:70px; border-radius:50%; background:#dcfce7; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.confirm-icon .material-symbols-outlined { font-size:38px; color:#16a34a; }
.confirm-sheet h3 { font-size:22px; margin:0 0 8px; }
.confirm-sheet p { color:#6b6b7b; font-size:14px; margin:0 0 12px; }
.order-ref-box { background:#f3eaff; border-radius:10px; padding:12px 20px; display:inline-block; font-size:18px; font-weight:700; color:#7c3aed; letter-spacing:.08em; margin:0 0 16px; }
.confirm-sheet .buy-btn { margin:0 0 10px; }
.confirm-link-btn { background:none; border:none; color:var(--rose); font-size:14px; font-weight:600; cursor:pointer; text-decoration:underline; font-family:inherit; }

/* ---- My Orders page ---- */
.orders-empty { text-align:center; padding:60px 24px; color:#6b6b7b; }
.orders-empty .material-symbols-outlined { font-size:56px; color:#d1d5db; display:block; margin-bottom:12px; }
.orders-empty h3 { font-size:18px; margin:0 0 6px; color:#1a1a2e; }

.my-order-card {
  background:#fff; border-radius:14px; padding:16px; margin:0 16px 14px;
  box-shadow:0 2px 10px rgba(0,0,0,.07); border:1px solid #f0eff5;
}
.moc-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; }
.moc-product { font-size:15px; font-weight:700; color:#1a1a2e; line-height:1.3; }
.moc-shop { font-size:11px; color:#9b59b6; font-weight:600; margin-top:2px; }
.moc-details { display:flex; gap:16px; font-size:12.5px; color:#6b6b7b; margin-bottom:12px; flex-wrap:wrap; }
.moc-details span { display:flex; align-items:center; gap:3px; }
.moc-details .material-symbols-outlined { font-size:14px; }
.moc-note { background:#f8f8fc; border-radius:8px; padding:8px 12px; font-size:12.5px; color:#444; margin-bottom:10px; }
.moc-note strong { display:block; font-size:11px; color:#9b59b6; text-transform:uppercase; letter-spacing:.04em; margin-bottom:2px; }
.moc-footer { display:flex; justify-content:space-between; align-items:center; }
.cancel-order-btn { background:none; border:1.5px solid #fca5a5; color:#dc2626; border-radius:8px; padding:5px 14px; font-size:12.5px; font-weight:600; cursor:pointer; font-family:inherit; }
.cancel-order-btn:active { background:#fee2e2; }
.moc-date { font-size:11.5px; color:#9ca3af; }

/* ---- Status badges (client) ---- */
.status-badge {
  display:inline-block; border-radius:20px; padding:3px 10px;
  font-size:11px; font-weight:700; letter-spacing:.02em; white-space:nowrap;
}
.status-pending           { background:#fef9c3; color:#854d0e; }
.status-confirmed         { background:#dbeafe; color:#1d4ed8; }
.status-shipped           { background:#ede9fe; color:#6d28d9; }
.status-delivered         { background:#dcfce7; color:#166534; }
.status-rejected          { background:#fee2e2; color:#991b1b; }
.status-cancelled_by_vendor   { background:#fef2f2; color:#b91c1c; }
.status-cancelled_by_customer { background:#f3f4f6; color:#6b7280; }

/* ============================================================
   UNIFIED MARKETPLACE ADDITIONS — buyer/vendor conversion
   ============================================================ */

/* ---- Shop open/closed badge ---- */
.shop-status { font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; display:inline-block; }
.shop-status-open { background:#dcfce7; color:#166534; }
.shop-status-closed { background:#fee2e2; color:#991b1b; }

/* ---- Ratings ---- */
.shop-rating { font-size:12.5px; color:var(--ink-soft); font-weight:600; display:inline-flex; align-items:center; gap:4px; }
.shop-rating .stars { color:#f59e0b; letter-spacing:1px; }
.shop-rating-empty { font-size:12px; color:#9ca3af; }

/* ---- Auth (login/register) shared with dashboard.css login-card look ---- */
.role-tabs { display:flex; gap:8px; margin-bottom:22px; }
.role-tab {
  flex:1; text-align:center; padding:12px 8px; border-radius:12px; border:1.5px solid var(--line, #ECECF1);
  font-size:13.5px; font-weight:600; color:var(--ink-soft, #6B6B7B); cursor:pointer; text-decoration:none; display:block;
}
.role-tab.active { border-color:var(--rose); background:var(--rose-light); color:var(--rose-dark); }

/* ---- Topbar account/profile icon button ---- */
.topbar-icon-btn {
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:#FAFAFB; border:1px solid var(--line); color:var(--ink);
}

/* ---- Shop page header ---- */
.shop-header { padding:20px 18px; text-align:center; background:linear-gradient(135deg,#f5f0ff,#fff0f6); }
.shop-header img.shop-photo { width:84px; height:84px; border-radius:50%; object-fit:cover; margin:0 auto 10px; border:3px solid #fff; box-shadow:0 4px 16px rgba(0,0,0,.12); }
.shop-header h2 { font-size:19px; margin-bottom:4px; }
.shop-header .shop-cat { font-size:12px; color:#9b59b6; font-weight:600; margin-bottom:8px; }
.shop-meta-row { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.follow-btn {
  padding:9px 22px; border-radius:100px; font-size:13px; font-weight:700; border:1.5px solid var(--rose);
  background:#fff; color:var(--rose);
}
.follow-btn.following { background:var(--rose); color:#fff; }

/* ---- Review list ---- */
.review-card { padding:14px 16px; border-bottom:1px solid var(--line); }
.review-card .stars { color:#f59e0b; font-size:13px; }
.review-card .review-comment { font-size:13.5px; margin-top:4px; color:var(--ink); }
.review-card .review-date { font-size:11px; color:#9ca3af; margin-top:4px; }

/* ---- Nav item extra (5th tab) ---- */
.bottom-nav .nav-item .material-symbols-outlined { display:block; }

/* ---- Inventory alert banner (vendor dashboard) ---- */
.alert-banner {
  display:flex; align-items:flex-start; gap:12px; background:#FFF7ED; border:1.5px solid #FDBA74;
  border-radius:12px; padding:14px 18px; margin-bottom:20px; font-size:13.5px; color:#9A3412;
}
.alert-banner .material-symbols-outlined { color:#EA580C; }

/* ---- Business hours display (vendor dashboard/profile) ---- */
.hours-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-top:8px; }
.hours-grid .day { text-align:center; font-size:11px; font-weight:700; padding:8px 4px; border-radius:8px; background:#F4F4F7; color:var(--ink-soft); }
.hours-grid .day.active { background:var(--rose-light); color:var(--rose-dark); }

/* ---- Filter modal (category + distance) ---- */
.filter-modal-overlay {
  display:none; position:fixed; inset:0; background:rgba(20,21,43,0.72);
  z-index:600; align-items:center; justify-content:center; padding:18px;
}
.filter-modal-overlay.active { display:flex; }
.filter-modal-box {
  background:#fff; border-radius:18px; width:100%; max-width:420px;
  padding:22px 20px; font-family:'Poppins', sans-serif; max-height:90vh; overflow-y:auto;
}
