@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 {
  --dark-color: #000;
  --icon-box-1: #0c4a95;
  --icon-box-2: #17c653;
  --icon-box-3: #f7c002;
  --icon-box-4: #f82859;
  --icon-box-5: #7339ea;
  --icon-box-6: #43ced7;
  --icon-box-7: #000000;
  --whatsapp-color: #25d366;
  --radius: 10px;
  --font-family: "Inter", sans-serif;
}

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

*,
*::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 {
  height: 100vh;
  position: relative;
  margin: auto auto;
  z-index: 10;
  display: block;
  overflow-x: hidden;
}

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: 0;
  left: 0;
  z-index: 9999;
  background: var(--dark-color);
  width: 100%;
  padding: 10px 0;
}

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

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

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

input {
  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;
}

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;
}

.icon-box {
  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;
}

.row .col-4:nth-of-type(1) .icon-box {
  background: var(--icon-box-1);
}

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

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

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

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

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

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

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

/* .icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
} */

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

.icon-box span {
  margin: 0;
  font-size: 12px;
  color: #fff;
  text-transform: capitalize !important;
}
.icon-box i span {
  font-size: 30px;
}

.category-box {
  background: var(--dark-color) !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;
}

.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-card img {
  display: table;
  margin: 0 auto;
  width: max-content;
  height: 100px;
  /* object-fit: cover; */
  padding: 10px;
  border-radius: var(--radius);
}

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

.product-card .product-info .product-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  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: #333;
  font-weight: 600;
  position: relative;
  text-align: center;
  /* padding-left: 15px; */
}

/* .section-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--dark-color);
  border-radius: 2px;
} */
#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: var(--dark-color);
  color: #fff;
  padding: 10px 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

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

.balance-card {
  position: relative;
  width: 100%;
  height: 100px;
  background: var(--dark-color) !important;
  color: #fff;
  padding: 10px;
  border-radius: var(--radius);
  text-align: left;
}
.balance-card:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  background-image: url(../img/wave.svg);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 30%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.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 {
  position: absolute;
  top: 0px;
  right: 10px;
  background: var(--dark-color);
  border: none;
  border-radius: var(--radius);
}

#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, .125);
  transition: all 0.3s ease;
}

.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;
}

.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: 1rem;
}

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

.categories-tabs-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 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: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  user-select: none;
  min-width: fit-content;
}

.category-tab:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.category-tab.active {
  background: var(--dark-color);
  border-color: var(--dark-color);
  color: #fff;
}

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

.category-tab.disabled:hover {
  background: #f8f9fa;
  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: 30px;
}

.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: 100vh;
    min-height: -webkit-fill-available;
    padding-bottom: 60px; /* Bottom bar height + extra space */
  }

  .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);
  }

  /* Ensure content scrolls properly when keyboard is open */
  body.keyboard-open {
    height: auto !important;
    position: fixed;
    width: 100%;
  }

  .icon-box {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px !important;
    width: 100px !important;
  }

  /* .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
  } */

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

  .icon-box span {
    margin-top: 10px;
    font-size: 30px;
    color: #fff;
    text-align: center;
    text-transform: capitalize !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;
  }

  .icon-box {
    padding: 0.8rem;
  }

  .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-box {
    padding: 0.7rem;
  }

  /* .icon-wrapper {
    width: 60px;
    height: 60px;
  } */

  .icon-wrapper i {
    font-size: 20px;
  }

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