/* ==============================================================
   FreshAgro Wholesale - Modern High-Fidelity Design System
   ============================================================== */

:root {
  --primary: #064e3b;
  --primary-dark: #084733;
  --primary-deep: #053b2a;
  --primary-light: #ecfdf5;
  --primary-accent: #059669;
  --primary-glow: rgba(6, 78, 59, 0.18);
  
  --selected-bg: #bbf7d0;
  --selected-border: #065f46;
  --selected-badge-bg: #86efac;
  --selected-badge-text: #064e3b;
  
  --discount-bg: #ecfdf5;
  --discount-border: #86efac;
  --discount-text: #15803d;
  --discount-amber: #b45309;
  --discount-yellow: #fef08a;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-card: #d1d5db;
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  
  --font-bn: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(8, 71, 51, 0.12);
  --shadow-banner: 0 8px 24px rgba(8, 71, 51, 0.22);
}

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

body {
  font-family: var(--font-en);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.font-bn {
  font-family: var(--font-bn);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ==============================================================
   Top Navigation Bar
   ============================================================== */
.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.navbar-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-sizing: border-box;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: #064e3b;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 800;
  color: #d97706;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-item {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-item a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.1rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.nav-item a:hover {
  color: #065f46;
}

.nav-item.active a {
  color: #059669;
  font-weight: 700;
}

/* Nav Stats Pill Widget */
.nav-stats-pill {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  padding: 0.28rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #064e3b;
  white-space: nowrap;
  flex-shrink: 1;
  box-shadow: 0 1px 3px rgba(6, 78, 59, 0.04);
  line-height: 1;
}

.nav-stats-pill .tag-icon {
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  line-height: 1;
}

.nav-count-badge {
  background: #10b981;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.68rem;
  border-radius: var(--radius-full);
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.nav-dot {
  color: #94a3b8;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.discount-val-nav {
  color: #b45309;
  font-weight: 700;
  white-space: nowrap;
}

.sales-val-nav {
  color: #15803d;
  font-weight: 800;
  white-space: nowrap;
}

/* Action Icons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.action-icon:hover {
  background: #f1f5f9;
  color: #064e3b;
}

.cart-pill-btn {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  height: 36px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #064e3b;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1;
}

.cart-pill-btn:hover {
  background: #d1fae5;
}

.cart-badge-number {
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 9999px;
  padding: 2px 6px;
  line-height: 1;
}

/* ==============================================================
   Main Content Container
   ============================================================== */
.main-content {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
}

/* ==============================================================
   Wholesale Hero / Shopping Cart Banner
   ============================================================== */
.wholesale-banner {
  background: linear-gradient(135deg, #064e3b 0%, #084733 100%);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  color: #ffffff;
  box-shadow: var(--shadow-banner);
  border: 1px solid #047857;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.wholesale-banner::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.banner-top-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.banner-logo-badge {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.banner-logo-badge img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.banner-title-block h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: 0.85rem;
  color: #a7f3d0;
  margin-top: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.banner-subtitle .bullet {
  color: rgba(255, 255, 255, 0.4);
}

/* Banner Stats Row */
.banner-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.selected-products-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 320px;
}

.chip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a7f3d0;
}

.chip-count {
  background: #ffffff;
  color: #064e3b;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 9999px;
  padding: 1px 7px;
}

.chip-names {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a7f3d0;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-value.discount {
  color: #fef08a;
}

.stat-value.sales {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-banner-action {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-banner-action:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-banner-action.reset {
  background: rgba(254, 240, 138, 0.2);
  border-color: rgba(254, 240, 138, 0.4);
  color: #fef08a;
}

.btn-banner-action.reset:hover {
  background: rgba(254, 240, 138, 0.35);
}

/* ==============================================================
   Wholesale Products Table (5 Columns)
   ============================================================== */
.table-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2.25rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.wholesale-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.wholesale-table thead tr {
  background: #084733;
  color: #ffffff;
  font-size: 0.925rem;
  font-weight: 700;
  border-bottom: 2px solid #053b2a;
}

.wholesale-table th {
  padding: 1.15rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.wholesale-table th:last-child {
  border-right: none;
}

.th-center {
  text-align: center;
}

.wholesale-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.15s ease, border-left-color 0.15s ease;
  user-select: none;
}

.wholesale-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Selected row highlight matching attachment */
.wholesale-table tbody tr.is-selected {
  background-color: #bbf7d0 !important;
  border-left: 5px solid #065f46;
}

.wholesale-table td {
  padding: 1.15rem 1.25rem;
  vertical-align: middle;
}

/* Column 1: Checkbox + Code */
.col-code {
  width: 130px;
  text-align: center;
}

.code-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.checkbox-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  background: #ffffff;
  flex-shrink: 0;
}

.is-selected .checkbox-circle {
  border-color: #065f46;
  background: #86efac;
}

.checkbox-circle svg {
  display: none;
}

.is-selected .checkbox-circle svg {
  display: block;
}

.item-code-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.is-selected .item-code-text {
  color: #064e3b;
}

/* Column 2: Product Name & Meta */
.product-cell {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.product-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.is-selected .product-thumb {
  border: 2px solid #059669;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.wholesale-table tbody tr:hover .product-thumb img {
  transform: scale(1.05);
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.is-selected .product-name-text {
  color: #064e3b;
}

.badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-unit {
  font-size: 0.775rem;
  color: #475569;
  background: #f1f5f9;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.is-selected .badge-unit {
  background: #86efac;
  color: #064e3b;
}

.badge-feature {
  font-size: 0.725rem;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.badge-selected-pill {
  font-size: 0.725rem;
  color: #064e3b;
  background: #86efac;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  display: none;
}

.is-selected .badge-selected-pill {
  display: inline-block;
}

/* Column 3: MRP */
.col-mrp {
  width: 160px;
  text-align: center;
}

.mrp-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #64748b;
}

.mrp-struck {
  text-decoration: line-through;
}

/* Column 4: Discount */
.col-discount {
  width: 160px;
  text-align: center;
}

.discount-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  color: #15803d;
  font-size: 0.95rem;
  font-weight: 800;
}

.discount-pct {
  font-size: 0.7rem;
  font-weight: 700;
  color: #16a34a;
}

/* Column 5: Sales Price */
.col-sales {
  width: 170px;
  text-align: center;
}

.sales-price-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
}

.is-selected .sales-price-text {
  color: #064e3b;
}

/* ==============================================================
   Bottom Subtotal & Checkout Card
   ============================================================== */
.checkout-bottom-card {
  background: #f4fbf7;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

.checkout-summary-left {
  flex: 1;
  min-width: 320px;
  max-width: 620px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.5rem;
}

.summary-row-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.summary-row-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.summary-row-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

/* Discount & Delivery Badge Bar */
.discount-delivery-bar {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.15rem;
  margin: 0.65rem 0 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.bar-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #92400e;
}

.bar-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.discount-highlight {
  color: #15803d;
  font-weight: 800;
}

.delivery-highlight {
  color: #065f46;
  font-weight: 800;
}

.grand-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 2px solid rgba(8, 71, 51, 0.15);
}

.grand-total-label {
  font-size: 1.65rem;
  font-weight: 900;
  color: #084733;
}

.grand-total-val {
  font-size: 1.85rem;
  font-weight: 900;
  color: #084733;
}

/* Checkout Button Side */
.checkout-action-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
}

.btn-proceed-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.25rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #084733 0%, #065f46 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px -3px rgba(8, 71, 51, 0.35);
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-proceed-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -2px rgba(8, 71, 51, 0.45);
}

.trust-micro {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #065f46;
  font-weight: 600;
}

/* ==============================================================
   Interactive Checkout Modal
   ============================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: #084733;
  color: #ffffff;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close-btn {
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1.4rem;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 1.75rem;
  max-height: 80vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.btn-confirm-order {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #084733 0%, #065f46 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(8, 71, 51, 0.25);
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn-confirm-order:hover {
  transform: translateY(-1px);
}

/* ==============================================================
   Toast Notification
   ============================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #064e3b;
  color: #ffffff;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideUp 0.25s ease forwards;
  pointer-events: auto;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================================
   Interactive Add-to-Cart, Category Filters & UI Enhancements
   ============================================================== */
.sales-cell-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-toggle-cart {
  padding: 0.28rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  border: 1.5px solid #059669;
  background: #ffffff;
  color: #059669;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-toggle-cart:hover {
  background: #ecfdf5;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(5, 150, 105, 0.15);
}

.btn-toggle-cart.is-selected {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.btn-toggle-cart.is-selected:hover {
  background: #047857;
  border-color: #047857;
}

.category-filters-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.category-filter-label {
  font-size: 0.825rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

.category-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.category-pill.active {
  background: #064e3b;
  color: #ffffff;
  border-color: #064e3b;
}

.cart-badge-bounce {
  animation: badgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.action-icon {
  position: relative;
}

.action-icon-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 9999px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Modal Content Card Polish */
.modal-info-section {
  padding: 1.25rem 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.modal-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.modal-info-card strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

/* ==============================================================
   Responsive Queries
   ============================================================== */
@media (max-width: 1280px) {
  .nav-links {
    gap: 1.15rem;
  }
  .nav-stats-pill {
    padding: 0.3rem 0.75rem;
    gap: 0.45rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 1120px) {
  .nav-stats-pill {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .banner-stats-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-group {
    width: 100%;
    justify-content: space-between;
  }
  .checkout-bottom-card {
    flex-direction: column;
  }
  .checkout-action-side {
    width: 100%;
  }
}
