/* Modern Profile Card */
.modern-profile-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}
body {
  background: linear-gradient(rgba(26, 32, 44, 0.9), rgba(45, 55, 72, 0.9)), url('../../assets/img/login-bg.webp') !important;
  background-position-x: 0%, 0% !important;
  background-position-y: 0%, 0% !important;
  background-attachment: scroll, scroll !important;
  background-size: auto, auto !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
}
.modern-profile-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.profile-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-company {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.profile-detail-item i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
}

.profile-detail-item a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-detail-item a:hover {
  color: #667eea;
}

.profile-detail-item strong {
  color: #1f2937;
  font-weight: 600;
}

.profile-card-footer {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 0.75rem;
}

.profile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.profile-btn i {
  font-size: 1rem;
}

.settings-btn {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #e5e7eb;
}

.settings-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.logout-btn {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.logout-btn:hover {
  background: #fecaca;
  color: #b91c1c;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .profile-card-header {
    padding: 1.25rem;
  }

  .profile-name {
    font-size: 1.125rem;
  }

  .profile-company {
    font-size: 0.8125rem;
  }

  .profile-card-body {
    padding: 1.25rem;
    gap: 0.875rem;
  }

  .profile-detail-item {
    font-size: 0.8125rem;
  }

  .profile-card-footer {
    padding: 0.875rem 1.25rem;
  }

  .profile-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .profile-btn span {
    display: none;
  }

  .profile-btn i {
    font-size: 1.125rem;
  }
}

/* Modern Balance Cards */
.modern-balance-container {
  display: flex;
  gap: 0.75rem;
  margin: 2px 0 10px 0;
}

.modern-balance-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.modern-balance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-balance-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modern-balance-card:hover::before {
  opacity: 1;
}

.balance-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin: 0 auto 0.5rem auto;
}

.debt-card .balance-card-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.debt-card::before {
  color: #ef4444;
}

.credit-card .balance-card-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.credit-card::before {
  color: #10b981;
}

.total-card .balance-card-icon {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.total-card::before {
  color: #2563eb;
}

.balance-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.balance-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-amount {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Hover Effects */
.modern-balance-card:hover .balance-card-icon {
  transform: scale(1.1);
}

.debt-card:hover {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  border-color: rgba(239, 68, 68, 0.2);
}

.credit-card:hover {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

.total-card:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Mobile Responsive - YAN YANA KALACAK */
@media (max-width: 768px) {
  .modern-balance-container {
    gap: 0.5rem;
  }

  .modern-balance-card {
    padding: 0.75rem 0.5rem;
  }

  .balance-card-icon {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  .balance-label {
    font-size: 0.65rem;
  }

  .balance-amount {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .modern-balance-card {
    padding: 0.5rem 0.375rem;
  }

  .balance-card-icon {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .balance-amount {
    font-size: 0.875rem;
  }

  .balance-label {
    font-size: 0.6rem;
  }
}

/* Shops search modern */
.search-modern {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(40, 22, 170, 0.2);
  border-radius: 12px;
  padding: 6px 12px 6px 40px;
  /* compact vertical, room for icon */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-modern:focus-within {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-modern .search-icon {
  position: absolute;
  left: 12px;
  color: #6c757d;
  font-size: 18px;
}

.search-modern .search-input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 6px 8px;
  background: transparent;
}

.search-modern .search-input::placeholder {
  color: #9aa0a6;
}

/* removed explicit button styles since button is hidden */
@media (max-width: 576px) {
  #searchRow {
    gap: 6px !important;
  }

  .search-modern {
    padding: 6px 8px 6px 34px;
  }

  .search-modern .search-icon {
    left: 10px;
    font-size: 16px;
  }

  .search-modern .search-input {
    font-size: 13px;
    padding: 2px 4px;
  }

  /* button removed on mobile too */
}

/* Bottom bar icon colors - all icons colored */
.bottom-bar ul li a i {
  transition: color .15s ease;
  padding: 7px;
  border-radius: 12px;
}

/* Home */
.bottom-bar ul li a i.ki-home-2 {
  color: white;
  background: var(--icon-box-1) !important;
}

.bottom-bar ul li a:hover i.ki-home-2 {
  color: white;
  background: var(--icon-box-1) !important;
}

/* Categories */
.bottom-bar ul li a i.ki-shop {
  color: white;
  background: var(--icon-box-4);
}

.bottom-bar ul li a:hover i.ki-shop {
  color: white;
  background: var(--icon-box-4);
}

/* User/Profile */
.bottom-bar ul li a i.ki-user {
  color: white;
  background: var(--icon-box-12);
}

.bottom-bar ul li a i.ki-profile-user {
  color: white;
  background: var(--icon-box-2);
}


.bottom-bar ul li a:hover i.ki-user {
  color: white;
  background: var(--icon-box-12);
}

.bottom-bar ul li a:hover i.ki-profile-user {
  color: white;
  background: var(--icon-box-2);
}

/* Package */
.bottom-bar ul li a i.ki-package {
  color: white;
  background: #7339ea;
}

.bottom-bar ul li a:hover i.ki-package {
  color: white;
  background: #7339ea;
}

/* Percentage */
.bottom-bar ul li a i.ki-percentage {
  color: white;
  background: #f7c002;
}

.bottom-bar ul li a:hover i.ki-percentage {
  color: white;
  background: #f7c002;
}

/* Basket */
.bottom-bar ul li a i.ki-basket {
  color: white;
  background: #00bcd4;
}

.bottom-bar ul li a:hover i.ki-basket {
  color: white;
  background: #00bcd4;
}

.bottom-bar ul li a i.ki-handcart {
  color: white;
  background: var(--icon-box-1) !important;
}

.bottom-bar ul li a:hover i.ki-handcart {
  color: white;
  background: var(--icon-box-1);
}

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  /* Old solid colors - converted to gradients
  --icon-box-1: #0c4a95;
  --icon-box-2: #ff0000;
  --icon-box-3: #000000;
  --icon-box-4: #ff7400;
  --icon-box-5: #8bc24a;
  --icon-box-6: #00bcd4;
  --icon-box-7: #17c653;
  --icon-box-8: #f7c002;
  --icon-box-9: #7339ea;
  --icon-box-10: #43ced7;
  --icon-box-11: #3f51b5;
  --icon-box-12: #4caf50;
  --icon-box-13: #ff5722;
  --icon-box-14: #795548;
  --icon-box-15: #9c27b0;
  --icon-box-16: #607d8b;
  --icon-box-17: #1de9b6;
  --icon-box-18: #ffc107;
  --icon-box-20: #00acc1;
  */

  /* Previous gradient versions
  --icon-box-1: linear-gradient(135deg, #0c4a95 0%, #00bcd4 100%);
  --icon-box-2: linear-gradient(135deg, #ff0000 0%, #ff1313 100%);
  --icon-box-3: linear-gradient(135deg, #000000 0%, #1f1e1e 100%);
  --icon-box-4: linear-gradient(135deg, #ff7400 0%, rgb(240, 146, 23) 100%);
  --icon-box-5: linear-gradient(135deg, #8bc24a 0%, #7cb342 100%);
  --icon-box-6: linear-gradient(135deg, #0c4a95 0%, #00bcd4 100%);
  --icon-box-7: linear-gradient(135deg, #17c653 0%, #4caf50 100%);
  --icon-box-8: linear-gradient(135deg, #f7c002 0%, #ffc107 100%);
  --icon-box-9: linear-gradient(135deg, #7339ea 0%, #9c27b0 100%);
  --icon-box-10: linear-gradient(135deg, #43ced7 0%, #00bcd4 100%);
  --icon-box-11: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
  --icon-box-12: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
  --icon-box-13: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
  --icon-box-14: linear-gradient(135deg, #795548 0%, #8d6e63 100%);
  --icon-box-15: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
  --icon-box-16: linear-gradient(135deg, #607d8b 0%, #78909c 100%);
  --icon-box-17: linear-gradient(135deg, #1de9b6 0%, #00bcd4 100%);
  --icon-box-18: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
  --icon-box-20: linear-gradient(135deg, #00acc1 0%, #0097a7 100%);
  */
  /* Custom Gradients Based on Original Colors */
  --icon-box-1: linear-gradient(135deg, #0c4a95 0%, #00bcd4 100%);
  --icon-box-2: linear-gradient(45deg, #ff0000, #ff5252, #ff1744);
  --icon-box-3: linear-gradient(180deg, #000000, #424242, #616161);
  --icon-box-4: linear-gradient( 45deg, #ff7400, #ff9800, #ffb74d);
  --icon-box-5: linear-gradient(90deg, #8bc24a, #689f38, #558b2f);
  --icon-box-6: radial-gradient(ellipse at center, #00bcd4, #0097a7, #00838f);
  --icon-box-7: linear-gradient(135deg, #17c653, #2e7d32, #1b5e20);
  --icon-box-8: conic-gradient(from 90deg, #f7c002, #ffc107, #ffd54f);
  --icon-box-9: radial-gradient(circle at 70% 30%, #7339ea, #9c27b0, #ba68c8);
  --icon-box-10: linear-gradient(60deg, #43ced7, #00acc1, #0097a7);
  --icon-box-11: linear-gradient(120deg, #3f51b5, #5c6bc0, #7986cb);
  --icon-box-12: radial-gradient(circle at 40% 60%, #4caf50, #388e3c, #2e7d32);
  --icon-box-13: linear-gradient(225deg, #ff5722, #ff7043, #ff8a65);
  --icon-box-14: conic-gradient(from 180deg, #795548, #8d6e63, #a1887f);
  --icon-box-15: radial-gradient(ellipse at top, #9c27b0, #ba68c8, #ce93d8);
  --icon-box-16: linear-gradient(270deg, #607d8b, #78909c, #90a4ae);
  --icon-box-17: conic-gradient(from 315deg, #1de9b6, #00a693, #00695c);
  --icon-box-18: radial-gradient(circle at bottom, #ffc107, #ffd54f, #ffe082);
  --icon-box-19: linear-gradient(315deg, #ff9800, #ffb74d, #ffcc02);
  --icon-box-20: linear-gradient(150deg, #00acc1, #0097a7, #00838f);
  --dark-color: #000;
  --whatsapp-color: #26bc04;
  --radius: 10px;
  --font-family: "Inter", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  touch-action: manipulation;
}

/* Prevent double scroll: only body scrolls; main adapts height, no inner scroll containers */
html {
  overflow: hidden;
  height: 100%;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  padding-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  display: block;
  overflow-x: hidden;
}

main {
  min-height: 100%;
  position: relative;
  margin: 0 auto;
  /* z-index: 10; */
  display: block;
  overflow: visible;
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}

a {
  text-decoration: none !important;
  color: currentColor;
}

ul {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

p {
  margin: 0 !important;
}

.bottom-bar {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0;
  z-index: 9999;
  background: var(--dark-color);
  width: 100%;
  padding: 10px 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  padding-top: 15px;
}

.bottom-bar ul li a {
  font-size: 30px;
  /* color: #fff; */
  /* padding: 0 10px; */
}

.bottom-bar ul li a .cart-count {
  position: absolute;
  top: -10px;
  right: 0px;
  font-size: 12px;
  color: #fff;
  background: var(--icon-box-2);
  ;
  padding: 0 5px;
  border-radius: 5px;
}

/* Modernized product list */
.product-card {
  background: #1f2633;
  width: 100%;
  height: 100%;
  border: 0.7px solid #0f1319;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.product-card .product-image {
  position: relative;
  background: #fafafa;
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-image .price-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(17, 17, 17, 0.85);
  color: #fff;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.product-card .product-info {
  padding: 10px 10px 10px;
}

.product-card .product-title {
  font-size: 12px;
  line-height: 1.3;
  margin: 4px 0 4px;
  color: #111;
  display: block;
  overflow: hidden;
  text-overflow: clip;
  word-break: break-word;
}

.product-card .product-price {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.product-card .product-meta {
  margin-top: 4px;
}

.product-card .product-code-pill {
  font-size: 11px;
  color: #344054;
  background: #eef2f6;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}

.product-card .product-code-pill:hover {
  background: #e3e9ef;
}

.product-card .product-code-pill.copied {
  background: #d1fadf;
  color: #065f46;
}

.product-card .product-add {
  padding: 10px;
  padding-top: 2px;
  padding-bottom: 3px;
}

.product-card .product-add .btn {
  background: var(--icon-box-1) !important;
  height: 30px;
  border-radius: 10px;
  font-size: 12px;
}

.category-header .count-pill {
  /* background: #f1f3f5; */
  color: white;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Product list info boxes (price, code, name) */
.product-card .pl-info-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.product-card .pl-info-box {
  background: #ffffff17;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 2px 5px;
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  min-height: 17px;
}

.product-card .pl-price-box {
  font-size: 10px;
  font-weight: 500;
  color: white;
}

.product-card .pl-code-box .product-code-pill {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 10px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
}

.product-card .pl-name-box .product-title {
  font-size: 10px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

/* Product Details Modern */
.product-details .product-image-container {
  position: relative;
  background: #fafafa;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.product-details .product-image-container img.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-details .pd-price-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(17, 17, 17, .9);
  color: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.product-details .pd-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  margin: 8px 0 4px;
  color: #111;
}

.product-details .pd-code-pill {
  display: inline-block;
  font-size: 13px;
  color: #344054;
  background: #eef2f6;
  padding: 6px 10px;
  border-radius: 999px;
  user-select: none;
  cursor: pointer;
}

.product-details .pd-code-pill:hover {
  background: #e3e9ef;
}

.product-details .pd-code-pill.copied {
  background: #d1fadf;
  color: #065f46;
}

.product-details .product-price {
  font-size: 17px;
  font-weight: 800;
  color: #111;
}

.product-details .product-tax {
  font-size: 12px;
}

.product-details .quantity-control .btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-details .quantity-display {
  width: 52px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  height: 36px;
  line-height: 36px;
}

.product-details .add-to-cart-details {
  height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.product-details .product-description {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
}

.product-details .product-description h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

/* Product details unified card */
.product-details .pd-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.product-details .pd-media {}

.product-details .pd-content {
  padding: 12px;
}

.product-details .pd-section {
  padding: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.product-details .pd-info {
  background: #eef2f6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px;
}

.product-details .pd-header .pd-main {
  flex: 1 1 auto;
  min-width: 0;
}

.product-details .pd-header .whatsapp-link {
  align-self: flex-start;
  margin-left: 8px;
}

@media (max-width: 480px) {
  .product-details .pd-header {
    gap: 10px;
  }

  .product-details .pd-header .whatsapp-link {
    margin-left: 0;
  }
}

/* Sticky purchase bar above bottom navbar */
.product-details {
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
}

.pd-sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(50px + env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 9998;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
  padding: 20px 12px;
}

.pd-sticky-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.pd-wa-float {
  position: fixed;
  right: calc(env(safe-area-inset-left, 0px) + 12px);
  bottom: calc(120px + env(safe-area-inset-bottom, 0px) + 64px + 12px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--whatsapp-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  animation: pd-pulse 1.8s infinite;
}

.pd-wa-float img {
  width: 22px;
  height: 22px;
  display: inline-block;
}

@keyframes pd-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(38, 188, 4, 0.5);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(38, 188, 4, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(38, 188, 4, 0);
  }
}

.pd-sticky-actions .quantity-control .btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pd-sticky-actions .quantity-display {
  width: 60px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  height: 36px;
  line-height: 36px;
}

/* Hide number input spinners (mobile/desktop) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.product-details .pd-header {
  margin: 6px 0 10px;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.product-details .pd-header .pd-main {
  flex: 1 1 auto;
  min-width: 0;
}

.product-details .pd-header .whatsapp-link {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--radius);
  align-self: center;
}

.product-details .pd-header .whatsapp-link img {
  margin-right: 6px;
}

.product-details .pd-header .wa-text {
  display: inline;
}

@media (max-width: 420px) {
  .product-details .pd-header .wa-text {
    display: none;
  }

  .product-details .pd-header .whatsapp-link {
    padding: 6px 8px;
  }
}

.product-details .product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

/* Details boxes: price, code, name */
.product-details .pd-info-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.product-details .pd-info-box {
  background: #eee;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 8px;
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  /* max-height: 40px; */
  min-height: 40px;
}

.product-details .pd-price-box {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

.product-details .pd-code-box {
  min-width: 210px;
}

.product-details .pd-name-box {
  min-width: 290px;
}

.product-details .pd-code-box .pd-code-pill {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

.product-details .pd-name-box .pd-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

/* Zoom modal (moved from inline) */
.zoom-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.zoom-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.zoom-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.zoomable-image {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  transition: transform .3s ease;
  transform-origin: center center;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.close-zoom {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
}

.whatsapp-link {
  font-size: 12px;
  background: var(--icon-box-7);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius);
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* input styles normalized above; removed empty ruleset */

textarea {
  box-sizing: border-box !important;
  font-size: 12px !important;
  border: 1px solid #f1f1f5 !important;
  border-color: #f9f9f9 !important;
  background-color: #f9f9f9 !important;
  color: var(--dark-color) !important;
  box-shadow: none !important;
  transition: background 0.5s !important;
}

input:focus,
textarea:focus {
  box-shadow: none !important;
  border-color: none !important;
}

.form-label {
  font-size: 12px !important;
  color: var(--dark-color) !important;
  margin-left: 10px;
}

.login-page textarea {
  font-size: 12px !important;
  background: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
  resize: none;
  height: 100px !important;
  max-height: 100px !important;
  box-sizing: border-box !important;
  font-size: 12px !important;
  color: var(--dark-color);
  box-shadow: none;
  transition: background 0.5s;
}

.product-count {
  font-size: 12px;
}

.admin-icon-box {
  background: var(--icon-box-1);
  padding: 1.5rem;
  transition: all 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #fff;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
}

.admin-icon-box .title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize !important;
}

.icon-box {
  display: block;
  transition: all 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #fff;
  width: 100% !important;
  height: 100% !important;
  padding: 2px;
}

.icons-section {
  margin-top: 10px !important;
}

.icons-section .row .col-12 {
  padding: 2px !important;
  margin: 0 !important;
}

.icons-section .row .col-4 {
  padding: 2px !important;
  margin: 0 !important;
}

.icons-section .row .col-4 .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100px !important;
}
.icons-section .row .col-6:nth-of-type(1) .icon-box,
.icons-section .row .col-4:nth-of-type(1) .icon-box {
  background: var(--icon-box-1);
}

.icons-section .row .col-6:nth-of-type(2) .icon-box,
.icons-section .row .col-4:nth-of-type(2) .icon-box {
  background: var(--icon-box-2);
}

.icons-section .row .col-6:nth-of-type(3) .icon-box,
.icons-section .row .col-4:nth-of-type(3) .icon-box {
  background: var(--icon-box-3);
}

.icons-section .row .col-6:nth-of-type(4) .icon-box,
.icons-section .row .col-4:nth-of-type(4) .icon-box {
  background: var(--icon-box-4);
}

.icons-section .row .col-6:nth-of-type(5) .icon-box,
.icons-section .row .col-4:nth-of-type(5) .icon-box {
  background: var(--icon-box-5);
}

.icons-section .row .col-6:nth-of-type(6) .icon-box,
.icons-section .row .col-4:nth-of-type(6) .icon-box {
  background: var(--icon-box-6);
}

.icons-section .row .col-6:nth-of-type(7) .icon-box,
.icons-section .row .col-4:nth-of-type(7) .icon-box {
  background: var(--icon-box-1);
}

.icons-section .row .col-6:nth-of-type(8) .icon-box,
.icons-section .row .col-4:nth-of-type(8) .icon-box {
  background: var(--icon-box-2);
}

.icons-section .row .col-6:nth-of-type(9) .icon-box,
.icons-section .row .col-4:nth-of-type(9) .icon-box {
  background: var(--icon-box-3);
}

.icons-section .row .col-6:nth-of-type(10) .icon-box,
.icons-section .row .col-4:nth-of-type(10) .icon-box {
  background: var(--icon-box-4);
}

.icons-section .row .col-6:nth-of-type(11) .icon-box,
.icons-section .row .col-4:nth-of-type(11) .icon-box {
  background: var(--icon-box-5);
}

.icons-section .row .col-6:nth-of-type(12) .icon-box,
.icons-section .row .col-4:nth-of-type(12) .icon-box {
  background: var(--icon-box-6);
}

.icons-section .row .col-6:nth-of-type(13) .icon-box,
.icons-section .row .col-4:nth-of-type(13) .icon-box {
  background: var(--icon-box-7);
}

.icons-section .row .col-6:nth-of-type(14) .icon-box,
.icons-section .row .col-4:nth-of-type(14) .icon-box {
  background: var(--icon-box-8);
}

.custom .icon-box {
  background: var(--icon-box-1);
  width: 100% !important;
}

.icon-box:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icon-wrapper i {
  font-size: 35px;
  color: #fff;
}

.icon-box span {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize !important;
}

.icon-box i span {
  font-size: 30px;
}

/* .category-box {
  background: var(--dark-color) !important;
} */

.category-box.color-1 {
  background: var(--icon-box-1) !important;
}

.category-box.color-2 {
  background: var(--icon-box-2) !important;
}

.category-box.color-3 {
  background: var(--icon-box-3) !important;
}

.category-box.color-4 {
  background: var(--icon-box-4) !important;
}

.category-box.color-5 {
  background: var(--icon-box-5) !important;
}

.category-box.color-6 {
  background: var(--icon-box-6) !important;
}

.category-box.color-7 {
  background: var(--icon-box-1) !important;
}

.category-box.color-8 {
  background: var(--icon-box-2) !important;
}

.category-box.color-9 {
  background: var(--icon-box-3) !important;
}

.category-box.color-10 {
  background: var(--icon-box-4) !important;
}

.category-box.color-11 {
  background: var(--icon-box-5) !important;
}

.category-box.color-12 {
  background: var(--icon-box-6) !important;
}

.category-box.color-13 {
  background: var(--icon-box-1) !important;
}

.category-box.color-14 {
  background: var(--icon-box-2) !important;
}

.category-box.color-15 {
  background: var(--icon-box-3) !important;
}

.category-box.color-16 {
  background: var(--icon-box-4) !important;
}

.category-box.color-17 {
  background: var(--icon-box-5) !important;
}

.category-box.color-18 {
  background: var(--icon-box-6) !important;
}

.category-box.color-19 {
  background: var(--icon-box-1) !important;
}

.category-box.color-20 {
  background: var(--icon-box-2) !important;
}

.social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: white;
  border-radius: var(--radius);
  font-size: 18px;
  transition: 0.3s;
}

.social-icons li a.facebook {
  background-color: #3b5998;
}

.social-icons li a.instagram {
  background: radial-gradient(circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285aeb 90%);
}

.social-icons li a.twitter {
  background-color: #000000;
}

.social-icons li a.youtube {
  background-color: #ff0000;
}

.social-icons li a.linkedin {
  background-color: #0077b5;
}

.social-icons li a:hover {
  transform: scale(1.1);
}

.btn-primary {
  background: var(--dark-color) !important;
  border: none !important;
}

.login-page .glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8.5px);
  -webkit-backdrop-filter: blur(8.5px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-page input {
  font-size: 12px !important;
  background: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.login-page input::placeholder {
  color: #fff !important;
}

.login-page textarea::placeholder {
  color: #fff !important;
}

.login-page {
  position: relative;
}

.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/login-bg.webp) no-repeat center center;
  background-size: cover;
  z-index: -1;
}

.swiper-slide img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.back-button-container {
  position: relative;
}

.back-button-container button {
  position: absolute;
  top: -35px;
  left: 10px;
  background: #fff !important;
  color: var(--dark-color) !important;
  z-index: 10;
}

#cartOffcanvas {
  z-index: 10000;
}

/* .product-card {
  width: 100%;
  height: 100%;
  border: 0.7px solid var(--dark-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} */

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* padding: 10px; */
  border-radius: var(--radius);
}

.product-card .product-info {
  padding: 10px;
  padding-bottom: 0;
  padding-top: 4px;
}

.product-card .product-info .product-title {
  font-size: 10px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-info .product-title {
  max-width: 100%;
}

.product-card .product-info .product-price {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.product-card .product-info .add-to-cart {
  background: var(--dark-color);
  font-size: 12px;
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius);
  display: inline-block;
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mata-btn {
  border: none !important;
  background: var(--dark-color) !important;
  font-size: 12px !important;
  color: #fff !important;
  padding: 5px 10px !important;
  border-radius: var(--radius) !important;
  display: inline-block !important;
  text-align: center;
}

.product-code {
  background: var(--dark-color);
  font-size: 8px;
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius);
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
  width: max-content;
}

.section-title {
  color: #fff;
  font-weight: 600;
  position: relative;
  text-align: center;
}

#profileTabs {
  flex-wrap: nowrap;
}

#profileTabs .nav-link {
  font-size: 16px;
  cursor: pointer;
  color: var(--dark-color);
}

.iban-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-input {
  padding: 10px;
  width: 320px;
  font-size: 16px;
}

.payment-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fa-check {
  color: #fff;
}

.error-text {
  font-size: 12px;
}

.company-name {
  font-size: 14px;
  font-weight: 600;
}

#top-fixed-bar {
  background: linear-gradient(135deg, #28313f 0%, #293240 100%);
  color: #fff;
  padding: 10px 0;
  /* border-bottom-left-radius: 10px; */
  /* border-bottom-right-radius: 10px; */
  height: 75px;
}

#top-fixed-bar img {
  width: 150px;
}

.balance-card {
  position: relative;
  width: 100%;
  height: 100px;
  color: #fff;
  padding: 10px;
  border-radius: var(--radius);
  text-align: left;
}

.balance-card p:first-of-type {
  font-weight: 500;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  text-align: left;
}

.balance-card p {
  font-size: 16px;
  text-align: left;
  font-weight: 600;
}

.balance-swiper {
  width: 100%;
  height: fit-content;
  margin-bottom: 10px;
}

.swiper-pagination {
  margin-top: 10px;
  position: relative;
}

.swiper-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: var(--dark-color) !important;
  transition: all 0.3s ease-in;
}

.swiper-pagination .swiper-pagination-bullet-active {
  width: 20px !important;
  border-radius: 7px;
  background: var(--dark-color) !important;
}

.client-img {
  border-radius: var(--radius);
}

.online-badge {
  width: 20px;
  height: 20px;
  position: absolute;
  top: -4px;
  right: -4px;
  border-radius: 50%;
  background-color: var(--whatsapp-color);
  border: 2px solid #fff;
}

.info-text {
  font-size: 14px;
  color: var(--dark-color);
}

#logoutBtn {
  background: var(--dark-color);
  border: none;
  border-radius: var(--radius);
}

/* Balance Header Actions */
.modern-balance-container {
  position: relative;
}

.balance-header-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.balance-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.balance-action-btn:hover {
  background: white;
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.balance-action-btn.logout:hover {
  color: #f5576c;
}

/* Mobil responsive */
@media (max-width: 768px) {
  .balance-header-actions {
    top: 5px;
    right: 5px;
  }

  .balance-action-btn {
    width: 28px;
    height: 28px;
  }

  .balance-action-btn i {
    font-size: 0.85rem;
  }
}

#logoutBtn i {
  font-size: 12px;
  color: #fff;
}

.client-card {
  width: 100%;
  border-radius: var(--radius);
  border: 1px dotted var(--dark-color);
}

.client-card-content {
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--dark-color);
}

.client-card-content h4 {
  font-size: 12px;
  font-weight: 400;
  color: var(--dark-color);
}

.client-card-content p {
  font-size: 12px;
}

.client-card-content .accordion-button {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px !important;
  border-radius: var(--radius) !important;
  background: var(--dark-color) !important;
  color: #fff !important;
  font-size: 12px !important;
}

.client-card-content .accordion-button:not(.collapsed) {
  color: var(--dark-color);
  background-color: #fff;
  box-shadow: none;
}

.mobile-card .label {
  font-size: 12px;
  font-weight: 400;
  color: var(--dark-color);
}

.mobile-card .company-name-code {
  font-size: 12px;
  font-weight: 400;
  color: var(--dark-color);
}

#companyInfoTab form label {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-color);
}

.payments-table {
  font-size: 12px;
}

.profile-card ul li p {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark-color);
}

.profile-card ul li i {
  color: var(--icon-box-1);
}

.profile-card ul li i span {
  font-size: 14px;
}

.whatsapp-section {
  position: fixed;
  bottom: 60px;
  right: 10px;
  z-index: 1000;
}

.whatsapp-section .whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.modal-dialog {
  max-width: 800px;
}

.modal-backdrop {
  z-index: 0;
}

.info-table th {
  width: 150px;
  background-color: #f8f9fa;
}

.modal {
  height: 100vh;
}

.order-items-table {
  margin-top: 15px;
}

.order-items-table th {
  background-color: #f8f9fa;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: block;
}

.loader-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.loader {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  position: relative;
}

.mobile-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.125);
  transition: all 0.3s ease;
  background: #fff;
}

.mobile-card .row {
  margin-bottom: 5px;
}

.mobile-card .label {
  font-weight: bold;
  color: #6c757d;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/" !important;
  float: left;
  padding-right: 0.5rem;
  color: #6c757d;
}

.mobile-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-card ul li {
  margin-bottom: 0.75rem;
}

.mobile-card ul li:last-child {
  margin-bottom: 0;
}

.mobile-card .label {
  color: #6c757d;
  margin-bottom: 0;
}

.mobile-card .label span {
  color: #000;
  margin-left: 0.5rem;
}

.mata-btn {
  background: #009ef7;
  border-color: #009ef7;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.mata-btn:hover {
  background: #0089d6;
  border-color: #0089d6;
}

.mata-btn i {
  margin-right: 0.5rem;
}

.status-tab-group {
  border-bottom: 1px solid #dee2e6;
  gap: 0.5rem;
}

.status-tab {
  opacity: 0.5;
}

.status-tab.active {
  opacity: 1;
}

.order-item-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-item-card .item-details h5 {
  color: #fff;
  margin-bottom: 10px;
}

.order-item-card .item-details p {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
}

.barcode-input-container {
  max-width: 400px;
  margin: 0 auto;
}

#barcodeInputModal {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.alert-info {
  background: var(--dark-color);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.accordion-button {
  background: var(--dark-color);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #f1f1f5;
  border-color: #f9f9f9;
}

/* Search Section Styles */
.search-section {
  margin-bottom: 1.5rem;
}

.search-section .input-group {
  max-width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 25px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-section .input-group:focus-within {
  border-color: #009ef7;
  box-shadow: 0 4px 20px rgba(0, 158, 247, 0.15);
  transform: translateY(-1px);
}

.search-section .search-input {
  border: none;
  background: transparent;
  padding: 10px 10px;
  font-size: 16px;
  color: #495057;
  outline: none;
  box-shadow: none;
}

.search-section .search-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.search-section .search-input:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}

.search-section .mata-btn {
  background: var(--dark-color);
  border: none;
  padding: 15px 25px;
  border-radius: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-section .mata-btn:hover {
  background: #009ef7;
  transform: scale(1.05);
}

.search-section .mata-btn i {
  font-size: 18px;
  margin: 0;
}

/* Category Header Improvements */
.category-header {
  /* margin-bottom: 1.5rem; */
  /* padding: 20px; */
  padding: 10px 0;
  /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
  border-radius: 15px;
  /* border-left: 4px solid var(--dark-color); */
  /* border-left: 2px solid var(--dark-color); */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-header h2 {
  color: white;
  font-weight: 600;
  /* margin-bottom: 10px; */
  font-size: 16px;
}

.category-header p {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

.category-border-right {
  position: relative;
  background-color: #f1f1f5;
  padding: 10px;
  margin-bottom: 10px;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}

.category-border-right::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  background: var(--dark-color);
  border-radius: 10px;
}

.mata-btn-white {
  background: var(--dark-color);
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 600;
  padding: 6px;
}

/* Categories Tabs Styles */
.categories-tabs-section {
  /* margin-bottom: 1.5rem; */
  background: #f8f9fa;
  border-radius: 15px;
  /* padding: 15px; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.categories-tabs-wrapper {
  position: relative;
}

.categories-tabs-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.categories-tabs-container::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  user-select: none;
  min-width: fit-content;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-tab:hover {
  background: #ffffff;
  border-color: #009ef7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 158, 247, 0.15);
  color: inherit;
  text-decoration: none;
}

.category-tab.active {
  background: var(--dark-color);
  border-color: var(--dark-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-tab.active:hover {
  color: #fff;
}

.category-tab small {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 400;
  margin-left: 4px;
}

.category-tab.loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.category-tab.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid #e9ecef;
  border-top: 2px solid #009ef7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.category-tab.disabled {
  background: #f8f9fa;
  border-color: #e9ecef;
  color: #6c757d;
  cursor: default;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.category-tab.disabled:hover {
  background: #f8f9fa;
  transform: none;
  box-shadow: none;
  border-color: #e9ecef;
}

.category-tab span {
  font-size: 12px;
  font-weight: 500;
}

.loading-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.spinner-border.text-black {
  color: var(--dark-color) !important;
  border-color: var(--dark-color);
  border-right-color: transparent;
}

.pagination-container {
  margin-top: 5px;
}

.page-link {
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
}

.page-item.active .page-link {
  color: #fff;
  background-color: var(--dark-color);
  border-color: var(--dark-color);
}

.page-link:hover {
  color: #fff;
  background-color: var(--dark-color);
  border-color: var(--dark-color);
}

@media (max-width: 992px) {
  main {
    width: 100% !important;
    overflow: visible !important;
    min-height: 100%;
    min-height: -webkit-fill-available;
    padding-bottom: 70px;
    /* Bottom bar height + extra space */
  }

  .categories-section .col-4 {
    padding: 0;
  }

  .bottom-bar {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999;
  }

  /* Fix for mobile keyboard behavior */
  .mobile-card {
    position: relative;
    z-index: 1;
  }

  .input-group {
    position: relative;
    z-index: 2;
  }

  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="password"],
  textarea {
    -webkit-appearance: none;
    border-radius: var(--radius);
  }

  body.keyboard-open {
    height: auto !important;
    position: fixed;
    width: 100%;
  }

  .icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* .icon-wrapper i {
    font-size: 30px;
    color: #fff;
  } */

  .icon-box span {
    /* margin-top: 10px; */
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-transform: capitalize !important;
  }
  .icon-box > span {
    font-family: 'Poppins', sans-serif;
    /* letter-spacing: -.5px; */
    line-height: 1.1;
    font-weight: 700 !important;
  }

  .add-to-cart {
    position: relative;
    z-index: 2;
  }

  .multiline-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
    line-height: 1.4;
  }

  .ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
  }

  .modal-dialog-centered {
    max-width: 800px;
    margin: 1.75rem auto;
  }

  .modal-body {
    padding: 2rem;
  }

  .cart-item-details p {
    font-size: 13px;
  }

  .quantity-control .btn {
    width: 30px;
    border: none;
    background: var(--dark-color);
    color: #fff;
    border-radius: var(--radius);
  }

  .quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* .icon-wrapper {
    width: 70px;
    height: 70px;
  } */

  .categories-tabs-container {
    padding: 10px 0;
    gap: 8px;
  }

  .category-tab {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* .icon-wrapper i {
    font-size: 24px;
  } */

  .table-responsive {
    border: 0;
  }

  .table-responsive .table {
    margin-bottom: 0;
  }

  .table-responsive .table td {
    white-space: normal;
    padding: 8px;
  }

  .mobile-hide {
    display: none;
  }
}

@media (max-width: 576px) {
  /* .icon-wrapper i {
    font-size: 20px;
  } */

  .icon-box span {
    font-size: 12px;
    font-weight: 700;
  }
}

.mata-row {
  display: grid;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 8px;
  grid-template-columns: 1fr 1fr;
}

.mata-col {
  /* width: calc(33.3% - 4px); */
  height: 70px;
}

/* Responsive improvements for tabs and search */
@media (min-width: 768px) {
  .categories-tabs-section {
    padding: 20px;
    border-radius: 20px;
  }

  .categories-tabs-container {
    gap: 15px;
    padding: 10px 0;
  }

  .category-tab {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 30px;
  }

  .search-section .input-group {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 30px;
  }

  .search-section .search-input {
    padding: 18px 25px;
    font-size: 17px;
  }

  .search-section .mata-btn {
    padding: 18px 30px;
  }

  .category-header {
    padding: 25px;
    border-radius: 20px;
  }

  .category-header h2 {
    font-size: 28px;
  }

  .category-header p {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .categories-tabs-section {
    padding: 25px;
  }

  .search-section .input-group {
    max-width: 500px;
  }

  .category-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 158, 247, 0.2);
  }

  .category-tab.active {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .icon-box span {
    font-size: 12px;
  }
}


.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
  background-color: #ececec !important;
}

/* Dashboard Action Buttons - Modern Style */
.dashboard-action-buttons {
  margin-top: 1.5rem;
}

.dashboard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.dashboard-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.dashboard-btn span {
  letter-spacing: 0.5px;
}

/* Settings Button */
.dashboard-btn.settings-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dashboard-btn.settings-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.dashboard-btn.settings-btn:hover i {
  transform: rotate(90deg);
}

/* Logout Button */
.dashboard-btn.logout-btn {
  background: linear-gradient(135deg, #f43f5e 0%, #ef4444 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.dashboard-btn.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(244, 63, 94, 0.4);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.dashboard-btn.logout-btn:hover i {
  transform: translateX(5px);
}

/* Active state */
.dashboard-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .dashboard-action-buttons {
    margin-top: 1rem;
  }

  .dashboard-btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .dashboard-btn i {
    font-size: 1rem;
  }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    main {
        max-width: 90%;
        padding: 0 20px;
    }
}

/* Laptop */
@media screen and (min-width: 1024px) and (max-width: 1600px) {
    main {
        max-width: 1200px;
        margin: 0 auto;
    }
}
