/*---------------------------------------general styles----------------------*/
/*
 */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/* * =========================================================================================================== * */
/* *  BASE STYLING  * */
/* * =========================================================================================================== * */
* {
  box-sizing: border-box;
}

/* TODO: to check which elemt that overflows on x axis
[...document.querySelectorAll('*')].filter(el => el.offsetWidth > window.innerWidth)
*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  scroll-behavior: auto;
  font-family: "Roboto", sans-serif;
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  /*or clip*/
}

body.is-visible {
  visibility: visible !important;
  /*used with js for a smoother refresh*/
  opacity: 1 !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* * =========================================================================================================== * */
/* *  CUSTOM UTLITY CLASSES * */
/* * =========================================================================================================== * */
:root {
  /* Light shade for background/borders */
  --WarehouseBlue: #1e3a8a;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

.bg-pattern {
  background-image: repeating-radial-gradient(
    #0c0a0a 80%,
    #2f312f 90%,
    #3f4549 90%
  );
  background-size: 65px 65px;
}

.bg-error {
  background-color: #f8d7da;
  /* Light red */
  border: 1px solid #f5c6cb;
  /* Slightly darker red border */
  color: #721c24;
  /* Dark red text */
  padding: 10px;
}

.text-gradient-primary {
  background: linear-gradient(90deg, #0d6efd, #20c997);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.text-warehouse-blue {
  color: var(--WarehouseBlue) !important;
}

.bg-warehouse-blue {
  background-color: var(--WarehouseBlue) !important;
}

.text-gradient {
  background: linear-gradient(
    90deg,
    rgba(0, 116, 255, 1) 20%,
    rgba(247, 20, 20, 1) 83%
  );
  background-clip: text;
  color: transparent;
}

/*used for navbar and footer*/
.bg-dark-blue {
  background-color: rgba(7, 15, 41, 0.3) !important;
}

.animation-spin {
  animation: spin-to-right 1s ease-in-out infinite;
}

@keyframes spin-to-right {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #969696;
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.shadow-hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shadow-hover:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.hover-lift:hover {
  transform: translateY(-3px);
}

.transition-all {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-6px);
  -webkit-box-shadow: 13px 6px 36px -8px rgba(105, 105, 105, 0.75);
  -moz-box-shadow: 13px 6px 36px -8px rgba(105, 105, 105, 0.75);
  box-shadow: 13px 6px 36px -8px rgba(105, 105, 105, 0.75);
}

.cursor-pointer {
  cursor: pointer !important;
}

.ghost-button {
  all: unset;
  /* Or selectively unset styles: */
  /* appearance: none;
     background: none;
     border: none;
     padding: 0;
     margin: 0;
     font: inherit;
     color: inherit;
     outline: none;
     text-align: inherit;
     line-height: inherit; */

  cursor: pointer;
  display: inline-flex;
  /* ensures SVGs or icons align properly */
  align-items: center;
  justify-content: center;
  /* optional: prevent accidental double clicks */
  -webkit-user-select: none;
  user-select: none;
}

.text-justify {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.shrink-text {
  display: inline-block;
  word-break: keep-all;
  white-space: nowrap;
  font-size: clamp(10px, 10vw, 15px);
}

.text-line-through {
  text-decoration: line-through !important;
}

.shadow-white {
  box-shadow: rgba(255, 255, 255, 0.15) 0px 15px 25px,
    rgba(255, 255, 255, 0.05) 0px 5px 10px;
}

.zoom-in-sm:hover {
  transform: scale(1.1);
}

/* * =========================================================================================================== * */
/* * WHATSAPP WIDGET (FAB) * */
/* * =========================================================================================================== * */
/* Base Styles */
#whatsapp-chat-widget {
  --whatsapp-green: #25d366;
  --whatsapp-dark: #128c7e;
  --whatsapp-light: #dcf8c6;
  --chat-bg: #f7ceb3;
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* Chat Card */
#whatsapp-chat-widget .whatsapp-card {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  max-width: 90vw;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1050;
  background: white;
  border: none;
}

#whatsapp-chat-widget .whatsapp-card.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Header */
#whatsapp-chat-widget .card-header {
  background: var(--whatsapp-dark);
  padding: 15px;
  color: white;
  position: relative;
}

#whatsapp-chat-widget .agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

#whatsapp-chat-widget .agent-avatar {
  position: relative;
  width: 50px;
  height: 50px;
}

#whatsapp-chat-widget .agent-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

#whatsapp-chat-widget .company-logo {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid white;
  background: white;
}

#whatsapp-chat-widget .online-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #4caf50;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-dark);
}

#whatsapp-chat-widget .agent-details {
  flex: 1;
}

#whatsapp-chat-widget .agent-details h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

#whatsapp-chat-widget .agent-details .availability {
  margin: 3px 0 0;
  font-size: 12px;
  opacity: 0.9;
}

#whatsapp-chat-widget .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 5px;
}

#whatsapp-chat-widget .close-btn:hover {
  opacity: 1;
}

#whatsapp-chat-widget .chat-message {
  background: white;
  padding: 12px 16px;
  border-radius: 0px 8px 8px 8px;
  margin-bottom: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 80%;
}

#whatsapp-chat-widget .chat-message p {
  margin: 0;
  color: #333;
  line-height: 1.4;
}

#whatsapp-chat-widget .message-time {
  display: block;
  font-size: 10px;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

/* Input Area */
#whatsapp-chat-widget .input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

#whatsapp-chat-widget .form-control {
  flex: 1;
  border-radius: 20px;
  border: 1px solid #ddd;
  padding: 10px 15px;
  font-size: 14px;
  transition: all 0.2s;
}

#whatsapp-chat-widget .form-control:focus {
  border-color: var(--whatsapp-green);
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
  outline: none;
}

#whatsapp-chat-widget .btn-send {
  background: var(--whatsapp-green);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

#whatsapp-chat-widget .btn-send:hover {
  background: #128c7e;
  transform: scale(1.05);
}

/* Floating Button */
#whatsapp-chat-widget .whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  z-index: 1040;
  transition: all 0.3s ease;
  padding: 0;
}

#whatsapp-chat-widget .whatsapp-fab:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

#whatsapp-chat-widget .fab-icon {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

#whatsapp-chat-widget .notification-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: #ff3b30;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
}

#whatsapp-chat-widget .pulse-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--whatsapp-green);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.3);
    opacity: 0;
  }

  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Animation when card appears */
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 576px) {
  #whatsapp-chat-widget .whatsapp-card {
    right: 10px;
    bottom: 80px;
    width: calc(100vw - 20px);
  }

  #whatsapp-chat-widget .whatsapp-fab {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }

  #whatsapp-chat-widget .fab-icon {
    width: 25px;
    height: 25px;
  }
}

/* * =========================================================================================================== * */
/* *  NAVBAR & HEADER MODERNIZATION  * */
/* * =========================================================================================================== * */

/* Glassmorphism Background */
.bg-glass-dark {
  background: linear-gradient(
    180deg,
    rgba(8, 10, 12, 0.95) 0%,
    rgba(18, 20, 24, 0.98) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1000;
}

/* Refined Gradient Text */
.text-gradient-gold {
  background: linear-gradient(135deg, #ffd700 0%, #fdb931 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Modern Search Bar */
.search-glass-container .input-group-text {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.search-glass-container .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: none;
  color: #fff;
  transition: all 0.3s ease;
}

.search-glass-container .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.search-glass-container:hover .input-group-text,
.search-glass-container:hover .form-control {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.search-glass-container .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Modern Nav Links (Pill Style) */
.nav-link-modern {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50px;
  padding: 0.5rem 1rem !important;
  margin: 0 2px;
}

.nav-link-modern:hover {
  text-decoration: none !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link-modern.active {
  color: #fff !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Icon Buttons in Navbar */
.nav-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link-modern i {
  transition: transform 0.3s ease;
}
.nav-link-modern:hover i {
  transform: scale(1.1);
}

/* Dropdown Menu Premium */
.dropdown-menu-premium {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  animation: slideUpFade 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown-menu-premium .dropdown-item {
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #4b5563;
  font-weight: 500;
  transition: all 0.2s;
}

.dropdown-menu-premium .dropdown-item:hover {
  background-color: #f3f4f6;
  color: #111827;
  transform: translateX(4px);
}

.dropdown-menu-premium .dropdown-item.active {
  background-color: #eff6ff;
  color: #2563eb;
}

.dropdown-item i {
  width: 20px;
  opacity: 0.7;
}

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

.navbar-bottom .dropdown-item:hover {
  color: rgb(0, 0, 0);
}

.nav-brand-logo {
  height: 72px;
  transition: height 0.3s ease;
}

.search-box {
  max-width: 600px;
  margin: 0 auto;
}

.dropdown-notification {
  width: 350px !important;
}

@media only screen and (max-width: 746px) {
  .dropdown-notification {
    width: 220px !important;
  }
}

@media only screen and (max-width: 746px) {
  .dropdown-menu-account {
    width: 100px !important;
  }
}

.dropdown-notification .dropdown-item {
  padding: 0.75rem 1rem;
  background: white;
  white-space: normal;
}

.dropdown-item.active:hover {
  color: white;
}

@media (max-width: 991.98px) {
  .nav-brand-logo {
    height: 50px;
  }

  .navbar-nav {
    padding-top: 1rem;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 992px) {
  .navbar-bottom {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}



.blinking-dot {
  animation: blinking 1.5s infinite ease;
}

@keyframes blinking {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* * =========================================================================================================== * */
/** CARDS **/
/* * =========================================================================================================== * */

.product-card {
  transition: all 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.product-card__img-wrapper {
  aspect-ratio: 1 / 1;
  min-height: 200px;
  max-height: 280px;
}

.product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* allow 2 lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.card-brand-logo {
  height: 60px;
  max-width: 80px;
  object-fit: contain;
}

@media (max-width: 576px) {
  .product-card__img-wrapper {
    min-height: 180px;
  }
}

.product-card__img-wrapper .second-image {
  z-index: 1;
  opacity: 0;
  width: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
}

/* Only apply hover swap when wrapper actually has a second image */
.product-card__img-wrapper.has-second:hover .second-image {
  opacity: 1;
  width: auto;
}

.product-card__img-wrapper.has-second:hover .first-image {
  opacity: 0;
}

/***********************pdf box styles**********************/

.pdf-card {
  transition: all 0.3s ease;
  max-width: 200px !important;
}

.book-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  /* key for texture effect */
  pointer-events: none;
  /* so clicks go to the book, not the overlay */
}

.book-highlight-overlay {
  z-index: 3;
  opacity: 0.7;
  filter: blur(20px);
  background-color: #fff;
  border-radius: 50%;
  width: 40%;
  height: 20%;
  position: absolute;
  top: 20%;
  left: 50%;
  overflow: hidden;
  pointer-events: none;
}

/* * ================================================animation utilities=========================================================== * */
.animation.animation {
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  animation-fill-mode: both;
  -webkit-animation-fill-mode: both;
}

/* Specific animation names */
.animation.animation--fadeInLeft {
  animation-name: fadeInLeft;
  -webkit-animation-name: fadeInLeft;
}

.animation.animation--fadeInRight {
  animation-name: fadeInRight;
  -webkit-animation-name: fadeInRight;
}

.animation.animation--fadeInPlace {
  animation-name: fadeInPlace;
  -webkit-animation-name: fadeInPlace;
}

/* =========================
   Keyframes
   ========================= */

@keyframes fadeInPlace {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}
