body {
  background-color: #f8f9fa;
  font-family: "Poppins", sans-serif;
  padding-bottom: 60px; /* prevent content from being hidden behind bottom nav */
}

.navbar-brand {
  font-size: 1.5rem;
}

.card {
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

footer {
  font-size: 0.9rem;
}
/* Fullscreen Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}

.navbar {
  z-index: 1050 !important; /* higher than other elements */
}


.nav-search{
  width: 30%;
  min-width: 260px;
  position: relative;
}


.nav-search-input {
  height: 32px;               /* smaller height for better navbar fit */
  font-size: 0.8rem;          /* slightly smaller text inside */
  border-radius: 20px;        /* rounded but not bulky */
  border: 1px solid #ccc;
  padding: 0 40px 0 12px;     /* balanced inner spacing */
  line-height: 32px;
  color: #333;
  transition: all 0.2s ease;
  background-color: #fff;          /* better vertical centering */
  display: none;
}


.nav-search-input:focus {
  box-shadow: none;
  border-color: #ff4747;
}

.nav-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ff4747;
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease;
}


.nav-search-btn-center {
  background-color: #ff4747;
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease;
  margin: 0 auto; /* centers horizontally */
  position: relative; /* ensure no absolute positioning */
}

.nav-search-btn:hover {
  background-color: #e63939;
}


.navbar-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffffee;
  backdrop-filter: blur(5px);
}


/* Logo fits navbar neatly */
.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Adjust search input on small devices */
@media (max-width: 991px) {
  .navbar form {
    width: 100%;
    margin: 5px 0;
    align-items: center;
  }


}

/* Make icons align nicely */
.navbar .nav-link i {
  font-size: 1.2rem;
  vertical-align: middle;
  margin-right: 4px;
}




 
.navbar {
  transition: all 0.3s ease;
}

.navbar-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffffee; /* light transparent white */
  backdrop-filter: blur(6px);  /* subtle blur like AliExpress */
}



.nav-search-btn i.red { color: blue; }

 


/* Account Slide Drawer */
.account-slide {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 80vh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  transition: right 0.35s ease;
  overflow-y: auto;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.account-slide.active {
  right: 0;
}

.slide-header {
  background-color: #f8f9fa;
}

.slide-header h6 {
  font-weight: 200;
  color: #333;
}

.slide-body a {
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  border-radius: 5px;
  padding: 8px 10px;
  transition: background-color 0.2s ease;
}

.slide-body a:hover {
  background-color: #f1f1f1;
  color: #ff4747;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  z-index: 1990;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}




/* Bottom Navigation for Mobile */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  z-index: 3000;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-menu {
  position: fixed;
  bottom: 100px;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  z-index: 3000;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-nav .bottom-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #444;
  cursor: pointer;
}
 

.bottom-item i {
  font-size: 1.5rem;
  position: relative;
}

.mobile-bottom-nav .bottom-item i {
  display: block;
  font-size: 1.3rem;
}

.mobile-bottom-nav .bottom-item.active,
.mobile-bottom-nav .bottom-item:hover {
  color: #ff4747;
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none;
  }
}

 




.card-img-top {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.card-title {
  font-size: 0.9rem;
}

.bannerdiv{
margin-left: 10%;
margin-top: 2%;
}

#bannerCarousel .carousel-item img  {
  height: 450px;          /* fixed desktop height */
  object-fit: cover;      /* crops without distortion */
  width: 100%;            /* full width */
  border-radius: 8px;
 
}
.promotions{

   height: 450px;  
   border-radius: 8px;
    
}

    /* This is your promo card */
    .promoSwiper {
      width: 380px;
      height: 450px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 8px 30px rgba(0,0,0,0.08);
      background: #fff;
    }

    .promoSwiper img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* change to contain if you don't want crop */
      display: block;
    }

    /* Optional: small label for demo */
    .label { margin-bottom: 10px; color: #333; font-weight: 600; }

.advertdiv{
  margin-left: 1%;
  margin-right: 1%;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
  #bannerCarousel .carousel-item img .promotionas {
    height: 350px;
  }
  .promotions{
    height: 350px;
  }
.bannerdiv{
margin-left: 0%;
margin-top: 2%;
}

}

.feature-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.feature-box i {
  color: #333;
}


.btn-ecom {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #fff;
}

/* Sign In button – calm, professional green */
.btn-signin {
  background-color: #16a34a; /* Tailwind green-600 */
}
.btn-signin:hover {
  background-color: red; /* slightly darker on hover */
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

/* Register button – standout blue for call to action */
.btn-register {
  background-color: orange; /* Tailwind blue-600 */
}

.btn-register:hover {
  background-color: #1d4ed8;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Optional: add subtle spacing between them */
.btn-group-auth {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/**** OTP ***/
.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.otp-input {
  width: 50px;
  height: 55px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.otp-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
}

@media (max-width: 480px) {
  .otp-input {
    width: 40px;
    height: 48px;
    font-size: 1.2rem;
  }
}

/*** end otp ***/






/*** left Cart ****/
 
 

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  max-height: calc(100vh - 150px);
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 10px;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: #d32f2f;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background: #f8f9fa;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.qty-btn:hover {
  background: #e9ecef;
}

.qty-value {
  width: 30px;
  text-align: center;
  font-size: 0.9rem;
}

.cart-deletebtn {
  border: none;
  background: transparent;
  color: #888;
  transition: color 0.2s ease;
  margin-right: 0% !important;
  margin-top: 0% !important;
}

.cart-deletebtn:hover {
  color: #ff4747;
}


.cart-badge {
  position: absolute;
  top: -2px;        /* Adjust vertical position */
  right: 32%;       /* Adjust horizontal position to center above the icon */
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  border-radius: 50%;
  background: #dc3545;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.cart-badge.updated {
  animation: bounce 0.3s ease;
}


/**  end left cart



//product designs 
/* Product card */
.product-card {
  background: #fff;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* The hover button container */
.product-hover-actions {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  transition: all 0.3s ease;
}

/* Buttons style */
.product-hover-actions .action-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: orange;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(0,0,0,0.2);
  transition: 0.5s ease;
}

.product-hover-actions .action-btn:hover {
  transform: scale(1.1);
}

.product-card:hover .product-hover-actions {
  bottom: 50%;
}


.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
 
.product-body {
  padding: 10px 12px;
  margin-top: 0px;
  margin-bottom: 0px;
}
.product-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}
.product-price {
  color: #28a745;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 0px;
}
.product-old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
  margin-top: 0px;
  margin-bottom: 0px;
}
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff4747;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

@media (min-width: 1200px) {
  .col-xl-1-7 {
    flex: 0 0 calc(100% / 7);
    max-width: calc(100% / 7);
  }
}

/* Container styling */
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Product image */
.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  
  
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff4747;
  color: white;
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 5px;
}

/* Overlay buttons (hidden by default) */
.product-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show on hover */
.product-card:hover .product-actions {
  opacity: 1;
}

/* Action button style */
.btn-action {
  background: white;
  border: 1px solid #ddd;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background: #ff4747;
  color: white;
  border-color: #ff4747;
}



.product-actions-always {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  background: #fff;
}

/* NEW — indicate added-to-cart state */
.btn-action.added {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

/* keep icons sized consistently */
.btn-action i {
  font-size: 1.1rem;
}

/* optional alignment tweak for uniform look */
.product-body {
  text-align: left;
  padding: 8px;
  margin-top: 0px;
  margin-bottom: 0px;
 
}

section {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
  


/* Horizontal Scroll */

/* Horizontal scrolling section */
.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.horizontal-scroll .product-card {
  flex: 0 0 auto;
  width: 160px; /* approximate product width */
  scroll-snap-align: start;
}



/*End Horizontal Scroll */




/*/ product end designs 



///searching
/* Search dropdown */

.search-results {
  position: absolute;
  top: 100%;
  left:auto;
  width: auto;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  z-index: 999;
  display: none;
  max-height: auto;
  overflow-y: auto;
 
}

@media (max-width: 768px){

  .search-results {
  left:0;       
  width: 100%;
  
}

}

.search-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-item:hover {
  background: #f8f9fa;
}

.search-item img {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 10px;
}

.search-item .info {
  flex-grow: 1;
}

.search-item .name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.search-item .price {
  font-size: 0.8rem;
  color: #777;
}



/**end of searching   */



/********** Sub Menu **********/
        .sub_menu {
            display: flex;
            align-items: center;
            background: #ffffff;
            border-bottom: 1px solid #eee;
             margin: 0 auto;
             max-width: 1200px;
            height: 60px;
            padding: 10px 0px;
           

        }

        .sub_menu_categories{
            background: #ff7a00;
            color: #fff;
            padding: 0 20px;
            height: 100%;
            display: flex;
            align-items: center;
            font-weight: bold;
            cursor: pointer;
            
        }
.sub_menu_categories span{
              font-size: 20px;
            margin-right: 8px;
}

        .sub_menu_menu {
            display: flex;
            margin-left: 30px;
            gap: 25px;
        }

                /* Menu links */
        .sub_menu_menu {
            display: flex;
            margin-left: 30px;
            gap: 25px;
        }

        .sub_menu_menu a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
        }

        .sub_menu_active {
            color: #ff7a00;
        }

        .sub_menu_menu a:hover {
            color: #ff7a00;
        }

        @media(max-width:768px){
        .sub_menu{
          display: none;
        }
        }

/**********End Sub Menu **********/


