/* ==============================================================================
   NOONDUBAI - Seller Center & Merchant Management Portal CSS
   Mobile-First, Responsive & Modern UI pixel-matching Seller Center screenshots
   ============================================================================== */

:root {
  --seller-primary: #2b76f6;
  --seller-primary-dark: #1d6bf3;
  --seller-primary-gradient: linear-gradient(135deg, #2f7cf6 0%, #1664e8 100%);
  --seller-bg: #f5f8fc;
  --seller-card-bg: #ffffff;
  --seller-text: #1e293b;
  --seller-text-muted: #64748b;
  --seller-border: #e2e8f0;
  --seller-success: #16a34a;
  --seller-danger: #dc2626;
  --seller-warning: #eab308;
  --seller-info: #0284c7;
  --seller-sidebar-width: 270px;
  --seller-header-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.seller-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--seller-bg);
  color: var(--seller-text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==============================================================================
   TOP NAVIGATION HEADER
   ============================================================================== */
.seller-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--seller-header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--seller-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 900;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.seller-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--seller-primary);
  border-radius: 6px;
}
.seller-hamburger-btn:hover {
  background: #eff6ff;
}

.seller-lang-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
}
.seller-lang-btn:hover {
  background: #cbd5e1;
}

.seller-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.seller-bell-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--seller-primary);
  display: flex;
  align-items: center;
  position: relative;
  padding: 6px;
}

.seller-guarantee-badge {
  font-size: 13px;
  font-weight: 600;
  color: #2b76f6;
  white-space: nowrap;
  background: #eff6ff;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
}

.seller-flag-icon {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
  display: inline-block;
}

.seller-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  position: relative;
}

/* ==============================================================================
   SIDEBAR NAVIGATION DRAWER
   ============================================================================== */
.seller-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.seller-sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.seller-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--seller-sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--seller-border);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 25px rgba(0,0,0,0.08);
}

.seller-sidebar.active {
  transform: translateX(0);
}

@media (min-width: 992px) {
  .seller-sidebar {
    transform: translateX(0);
    box-shadow: none;
    top: var(--seller-header-height);
  }
  .seller-main-layout {
    margin-left: var(--seller-sidebar-width);
  }
  .seller-hamburger-btn {
    display: none;
  }
  .seller-sidebar-backdrop {
    display: none !important;
  }
}

/* Store Profile Header in Sidebar */
.seller-profile-card {
  padding: 24px 18px 16px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}
.seller-store-title {
  font-size: 17px;
  font-weight: 700;
  color: #2b76f6;
  margin-bottom: 2px;
}
.seller-store-email {
  font-size: 12px;
  color: #2563eb;
  margin-bottom: 10px;
  word-break: break-all;
}
.seller-credit-score-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
}

/* Sidebar Menu List */
.seller-nav-list {
  list-style: none;
  padding: 14px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seller-nav-item {
  width: 100%;
}

.seller-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.seller-nav-link:hover {
  background: #f8fafc;
  color: var(--seller-primary);
}

.seller-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.seller-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

/* Active State: matching screenshot 3 */
.seller-nav-link.active {
  background: #2b76f6;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(43, 118, 246, 0.25);
}
.seller-nav-link.active .seller-nav-icon {
  color: #ffffff;
}

.seller-badge-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}

.seller-dot-alert {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
}

.seller-arrow-icon {
  width: 12px;
  height: 12px;
  color: #cbd5e1;
}
.seller-nav-link.active .seller-arrow-icon {
  color: #ffffff;
}

/* ==============================================================================
   MAIN CONTENT CONTAINER
   ============================================================================== */
.seller-main-layout {
  padding-top: calc(var(--seller-header-height) + 16px);
  padding-bottom: 60px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.seller-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.seller-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #2b76f6;
  margin-bottom: 12px;
}

/* ==============================================================================
   DASHBOARD SECTION: RATING & VERIFICATION BADGE
   ============================================================================== */
.seller-rating-section {
  margin-bottom: 16px;
}
.seller-rating-label {
  font-size: 16px;
  font-weight: 600;
  color: #2b76f6;
  margin-bottom: 6px;
}
.seller-stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.seller-star {
  color: #fbbf24;
  font-size: 24px;
}
.seller-star.half {
  position: relative;
  display: inline-block;
  color: #e2e8f0;
}
.seller-star.half::before {
  content: '★';
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #fbbf24;
}

.seller-verified-badge {
  display: inline-block;
  background: #15803d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
}

/* ==============================================================================
   ANALYTICAL & METRIC CARDS
   ============================================================================== */
.seller-turnover-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.seller-gradient-card {
  background: var(--seller-primary-gradient);
  border-radius: 12px;
  padding: 24px 20px;
  color: #ffffff;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 14px rgba(43, 118, 246, 0.2);
}

.seller-card-up-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 6px;
}

.seller-card-big-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.seller-card-subtitle {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

/* Solid Blue Cards for Products, Orders, Sales */
.seller-metric-cards-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.seller-solid-blue-card {
  background: #2b76f6;
  border-radius: 12px;
  padding: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(43, 118, 246, 0.18);
}

.seller-solid-left .seller-metric-title {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.seller-solid-left .seller-metric-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.seller-metric-icon-box {
  width: 48px;
  height: 48px;
  opacity: 0.35;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seller-metric-icon-box svg {
  width: 42px;
  height: 42px;
  stroke: #ffffff;
}

/* ==============================================================================
   ORDERS MANAGEMENT PAGE
   ============================================================================== */
.seller-orders-section {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--seller-border);
  padding: 20px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  margin-bottom: 24px;
}

.seller-section-header-title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
  color: #0f172a;
}

.seller-filters-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.seller-filter-select,
.seller-search-input {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 13px;
  color: #475569;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}
.seller-filter-select:focus,
.seller-search-input:focus {
  border-color: var(--seller-primary);
}

/* Orders Table */
.seller-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.seller-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.seller-orders-table th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid var(--seller-border);
  white-space: nowrap;
}

.seller-orders-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.seller-row-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  margin-right: 6px;
  transition: background 0.15s;
}
.seller-row-toggle-btn:hover {
  background: #bfdbfe;
}
.seller-row-toggle-btn.expanded {
  background: #2563eb;
  color: #ffffff;
}

.seller-order-code-text {
  color: #2563eb;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
}

/* Status Badges */
.badge-unpicked {
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

.badge-picked {
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

.badge-paid {
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.badge-pending {
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}

.badge-rejected {
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.seller-eye-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0f2fe;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.2s;
}
.seller-eye-btn:hover {
  background: #bae6fd;
  transform: scale(1.05);
}

/* Expandable Row Accordion */
.seller-order-expand-row {
  display: none;
  background: #f8fafc;
}
.seller-order-expand-row.active {
  display: table-row;
}
.seller-order-detail-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  margin: 8px 0;
}

/* Customer Masked Info Header */
.seller-cust-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}
.seller-cust-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}
.seller-cust-masked {
  color: #64748b;
  font-family: monospace;
}

/* Order Meta Details */
.seller-order-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.seller-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.seller-meta-label {
  color: #64748b;
}
.seller-meta-value {
  font-weight: 600;
  color: #0f172a;
}
.seller-meta-value.blue {
  color: #2563eb;
}

/* Product Detail Table inside Order */
.seller-inner-product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.seller-inner-product-table th {
  background: #f8fafc;
  padding: 8px 10px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}
.seller-inner-product-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.seller-prod-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* Financial Breakdown List */
.seller-financial-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.seller-fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #475569;
}
.seller-fin-row.total {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  padding-top: 6px;
  border-top: 1px solid #cbd5e1;
}

/* ==============================================================================
   MONEY WITHDRAWAL & WALLET PAGE
   ============================================================================== */
.seller-withdraw-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-withdraw-primary {
  background: #2b76f6;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-withdraw-primary:hover {
  background: #1d6bf3;
}

.btn-withdraw-outline {
  background: #ffffff;
  color: #2b76f6;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #2b76f6;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-withdraw-outline:hover {
  background: #eff6ff;
}

.seller-withdraw-history-card {
  background: #ffffff;
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.seller-card-heading {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

/* ==============================================================================
   FLOATING CUSTOMER SUPPORT CHAT WIDGET
   ============================================================================== */
.seller-floating-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2b76f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(43, 118, 246, 0.45);
  border: none;
  cursor: pointer;
  z-index: 995;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.seller-floating-chat-btn:hover {
  transform: scale(1.08);
  background: #1d6bf3;
}
.seller-floating-chat-btn svg {
  width: 26px;
  height: 26px;
}

/* ==============================================================================
   INTERACTIVE MODALS
   ============================================================================== */
.seller-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.seller-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.seller-modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.seller-modal-backdrop.active .seller-modal-dialog {
  transform: translateY(0) scale(1);
}

.seller-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.seller-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.seller-modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #94a3b8;
  line-height: 1;
}

.seller-modal-body {
  padding: 20px;
}
.seller-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
}

.seller-form-group {
  margin-bottom: 14px;
}
.seller-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.seller-form-input,
.seller-form-select {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  color: #1e293b;
  outline: none;
}
.seller-form-input:focus,
.seller-form-select:focus {
  border-color: #2b76f6;
}

/* ==============================================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP ENHANCEMENTS)
   ============================================================================== */
@media (min-width: 768px) {
  .seller-turnover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .seller-metric-cards-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .seller-filters-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 12px;
  }
  .seller-order-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==============================================================================
   PRODUCT STOREHOUSE & BATCH ADD MODULE CSS
   ============================================================================== */
.storehouse-tabs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.storehouse-tab-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.storehouse-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.storehouse-tab-btn:hover {
  color: #2b76f6;
  border-color: #bfdbfe;
  background: #f8fafc;
}

.storehouse-tab-btn.active {
  color: #ffffff;
  background: #2b76f6;
  border-color: #2b76f6;
  box-shadow: 0 2px 6px rgba(43, 118, 246, 0.25);
}

.storehouse-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.storehouse-tab-btn.active .storehouse-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Storehouse Filter Bar */
.storehouse-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

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

.storehouse-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.storehouse-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.storehouse-search-input {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 14px 0 42px;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.storehouse-search-input:focus {
  background: #ffffff;
  border-color: #2b76f6;
  box-shadow: 0 0 0 3px rgba(43, 118, 246, 0.12);
}

.storehouse-select {
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: #334155;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
  min-width: 160px;
}

.storehouse-select:focus {
  background: #ffffff;
  border-color: #2b76f6;
}

/* Category Filter Pills */
.storehouse-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.storehouse-pills-row::-webkit-scrollbar {
  height: 4px;
}

.storehouse-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.storehouse-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.storehouse-pill.active {
  background: #eff6ff;
  color: #2b76f6;
  border-color: #93c5fd;
  font-weight: 700;
}

/* Product Catalog Grid */
.storehouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 90px; /* space for sticky bar */
}

@media (max-width: 540px) {
  .storehouse-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.storehouse-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  user-select: none;
}

.storehouse-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.storehouse-card.selected {
  border-color: #2b76f6;
  box-shadow: 0 0 0 2px rgba(43, 118, 246, 0.25), 0 8px 20px rgba(43, 118, 246, 0.12);
  background: #fafcff;
}

.storehouse-card-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 square */
  background: #f8fafc;
  overflow: hidden;
}

.storehouse-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.storehouse-card:hover .storehouse-card-img {
  transform: scale(1.04);
}

.storehouse-select-checkbox-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.storehouse-card.selected .storehouse-select-checkbox-badge {
  background: #2b76f6;
  border-color: #2b76f6;
  color: #ffffff;
}

.storehouse-instore-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.storehouse-card-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.storehouse-card-category {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.storehouse-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.storehouse-fin-metrics {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #f1f5f9;
}

.storehouse-fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.storehouse-fin-label {
  color: #64748b;
}

.storehouse-fin-val.cost {
  color: #475569;
  font-weight: 700;
}

.storehouse-fin-val.price {
  color: #0f172a;
  font-weight: 700;
}

.storehouse-fin-val.profit {
  color: #16a34a;
  font-weight: 800;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* Card Plus Select Button */
.btn-storehouse-card-add {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.btn-storehouse-card-add:hover {
  background: #eff6ff;
  color: #2b76f6;
  border-color: #2b76f6;
}

.storehouse-card.selected .btn-storehouse-card-add {
  background: #2b76f6;
  color: #ffffff;
  border-color: #2b76f6;
  box-shadow: 0 2px 6px rgba(43, 118, 246, 0.2);
}

.btn-storehouse-card-add svg {
  transition: transform 0.2s ease;
}

.storehouse-card.selected .btn-storehouse-card-add svg {
  transform: scale(1.1);
}

/* ==============================================================================
   STICKY BOTTOM ACTION BAR (Multi-select Batch Add)
   ============================================================================== */
.storehouse-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #cbd5e1;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  padding: 12px 20px;
  z-index: 850;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.storehouse-sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.storehouse-sticky-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.storehouse-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.storehouse-selected-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b76f6;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.storehouse-sticky-summary {
  font-size: 13px;
  color: #475569;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.storehouse-sticky-summary strong {
  color: #0f172a;
}

.storehouse-sticky-summary .profit-est {
  color: #16a34a;
  font-weight: 700;
}

.storehouse-sticky-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-storehouse-clear-selection {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s;
}

.btn-storehouse-clear-selection:hover {
  color: #dc2626;
  background: #fee2e2;
}

.btn-storehouse-add-submit {
  background: #2b76f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(43, 118, 246, 0.3);
  transition: all 0.2s ease;
}

.btn-storehouse-add-submit:hover:not(:disabled) {
  background: #1d6bf3;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43, 118, 246, 0.38);
}

.btn-storehouse-add-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Toast Notification */
.seller-toast-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #86efac;
  border-left: 5px solid #16a34a;
  border-radius: 8px;
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.seller-toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.seller-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

/* ==============================================================================
   ORDER DETAILS & PROFIT BREAKDOWN MODULE CSS
   ============================================================================== */
.order-profit-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

@media (max-width: 640px) {
  .order-profit-cards-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.order-profit-card {
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.order-profit-card.cost {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.order-profit-card.profit {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
}

.order-profit-card.total {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
}

.order-profit-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-profit-card.profit .order-profit-card-label {
  color: #15803d;
}

.order-profit-card.total .order-profit-card-label {
  color: #1e40af;
}

.order-profit-card-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.order-profit-card.profit .order-profit-card-value {
  color: #15803d;
}

.order-profit-card.total .order-profit-card-value {
  color: #1d4ed8;
}

.order-profit-margin-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: #16a34a;
  color: #ffffff;
}

/* Visual Profit Margin Chart Bar */
.order-profit-chart-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin: 14px 0;
}

.order-profit-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-profit-chart-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #334155;
}

.profit-chart-split-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 10px;
}

.profit-bar-cost {
  background: #64748b;
  transition: width 0.4s ease;
}

.profit-bar-profit {
  background: #16a34a;
  transition: width 0.4s ease;
}

.profit-chart-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
  flex-wrap: wrap;
  gap: 8px;
}

.profit-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profit-legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.profit-legend-color.cost { background: #64748b; }
.profit-legend-color.profit { background: #16a34a; }

/* Enhanced Inner Itemized Table */
.seller-inner-product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.seller-inner-product-table th {
  background: #f8fafc;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.seller-inner-product-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.seller-inner-product-table tr:last-child td {
  border-bottom: none;
}

