

html{
    scroll-behavior: smooth;
}
/* For WebKit browsers (Chrome, Safari, Edge) */
.scrollbar-container::-webkit-scrollbar {
  height: 8px;
}

.scrollbar-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scrollbar-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.scrollbar-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.bg-gradient-dark {
  background-image: linear-gradient(195deg, rgb(38, 90, 84) 0%, rgb(66, 150, 120) 100%);
}
.bg-video-min {
    background-image: url('../videos/bg-min.mp4')
}
.bg-shop {
  position: relative; 
  background-image: url('../images/shop_bg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.bg-shop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.bg-shop > * {
  position: relative;
  z-index: 2;
}

.bg-banner{
    background-image: url('../images/banner-2.jpg');
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;}
    
.bg-banner-color{
    background: #d8d8d8;

}

.trending {
    font-size: 20px;
    font-style: italic;
    font-family: "Kaushan Script", cursive;
    color: rgb(51, 60, 86);
}
.text-main{
    color: rgb(38, 90, 84);
}
.bg-main{
    background-color: rgb(38, 90, 84);

}
.sidebar-animate-in {
    animation: opening .9s ease forwards; 
}
.sidebar-animate-out {
    animation: closing .9s ease forwards; 
}
a.link-active {
    color: #FFA500;
    font-weight: bolder;
    text-decoration: underline;
}

/* Container for toasts */
#toast-container {
  position: fixed;
  bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
align-items: end;
  pointer-events: none;
  z-index: 9999;
}

/* Individual toast styles */
.toast {
  min-width: 30%;
  max-width: 50%;
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 4px;
  color: #fff;
  font-family: Arial, sans-serif;
  position: relative;
  right: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: auto; /* allow interaction inside toasts if needed */
  overflow: hidden;
  animation: slideInRight 0.3s forwards;
}

/* Variant styles */
.toast.success {
  background-color: #4CAF50; /* green */
}

.toast.destructive {
  background-color: #f44336; /* red */
}

/* Progress bar styles */
.toast .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: rgba(255,255,255,0.3);
}

.toast .progress-bar {
  height: 100%;
  width: 0%;
  background-color: #fff;
  transition: width 0.1s linear;
}

/* Icon styles inside toast */
.toast .icon {
  margin-right: 10px;
  font-size: 20px;
  display: inline-block;
  vertical-align: middle;
}
/* Animations for slide-in and slide-out */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Exit class to trigger slide out */
.toast.exit {
  animation: slideOutRight 0.3s forwards;
}

@keyframes opening {
    0% {
        opacity: 0;
        transform: translateX(100%);
        visibility: hidden;
        display: none;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes closing {
    0% {
        opacity: 0;
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateX(100%);
        visibility: hidden;
        display: none;
    }
}
@media screen and (max-width: 992px) {
  #toast-container {
    min-width: 100%;
    max-width: 90%; 
  }
}

@keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
  #loadingSpinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spiner 1s linear infinite;
    z-index: 9999;
  }
  @keyframes spiner {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }