:root{
    --blue: #2e2185;
    --white: #fff;
    --gray: #f5f5f5;
    --black1: #222;
    --black2: #999;
    --orange: orange;
    --golden: rgb(255, 183, 0);
}

 body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        background: greenyellow;
    }

.header {
  border-bottom: 1px solid #ccc;
}

/* Top Banner */
.top-banner {
  background-color: var(--blue);
  color: #fff;
  text-align: center;
  padding: 5px 0;
  font-size: 16px;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background-color: #f8f8f8;
  font-size: 14px;
}

.top-bar a {
  text-decoration: none;
  color: var(--blue);
  margin-right: 15px;
}

.right-options {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Main Header */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background-color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
}

.logo img {
  height: 40px;
}

.search-bar {
  display: flex;
  flex-grow: 1;
  margin: 0 12px;
}

.search-bar input {
  flex-grow: 1;
  padding: 8px;
  border: 2px solid var(--blue);
  border-right: none;
  border-radius: 4px 0 0 4px;
}

.search-bar input:hover {
  border: 3px solid var(--blue); 
  box-shadow: 0 0 5px rgba(211, 47, 47, 0.5); /* Add a subtle shadow */
}

.search-bar .search-button {
  padding: 8px 15px;
  background-color: var(--blue);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}

.user-options {
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-options a {
  text-decoration: none;
  color: #333;
  font-size: 20px;
}

/* Styling for icons */
.right-options .icon {
  font-size: 24px; /* Larger icon size */
  line-height: 1; /* Prevent excessive vertical spacing */
  color: blue;
}
 .user-options .icon {
  font-size: 35px; /* Larger icon size */
  line-height: 1; /* Prevent excessive vertical spacing */
  color: #d32f2f;
}

.user-options .icon:hover {
  color: #ff6f61; /* Slight hover effect for the icons */
}

/* Icon Container for Badge Positioning */
.icon-container {
  position: relative;
  display: inline-block;
}

/* Badge Styling */
.cart_badge {
  position: absolute;
  top: -18px; /* Adjust vertical position */
  right: -10px; /* Adjust horizontal position */
  background-color: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  padding: 4px 4px;
  min-width: 17px;
  text-align: center;
  line-height: 2;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Search Suggestions */
.search-suggestions {
  display: flex;
  gap: 10px;
  padding: 5px 15px;
  background-color: #fff;
  font-size: 15px;
  max-width: 100%;
  overflow-x: visible;
  overflow-x: auto; /* Enable horizontal scrolling */
  white-space: nowrap; /* Prevent wrapping to new lines */
  border-bottom: 1px solid var(--blue);
  border-top: 1px solid var(--blue);
}

.search-suggestions a {
  text-decoration: none;
  color: var(--blue);
  padding: 2px 5px;
  border: 1px solid var(--golden);
  border-radius: 4px;
  flex-shrink: 0; /* Prevent items from shrinking */
  transition: background-color 0.3s, color 0.3s;
}

.search-suggestions a:hover {
  background-color: var(--blue);
  color: #fff;
  border: 3px solid var(--golden);
  box-shadow: 0 4px 8px var(--blue); /* Subtle shadow effect */
  transform: translateY(-1px); /* Slight lift effect */
  transition: all 0.3s ease-in-out;
}

/* Add smooth scrolling for better UX */
.search-suggestions::-webkit-scrollbar {
  height: 6px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/*====== submenu and banner styling=======*/

    .container {
            display: flex;
            max-width: 1200px;
            max-width: 100%;
            margin-top: 5px;
            margin-bottom: 15px;
            margin-left: 5px;
            margin-right: 5px;
            align-items: stretch;
            height: 510px;
        }

        /* Sidebar */
        .sidebar, .right-panel {
            width: 255px;
            background: #fff;
            padding: 5px;
            border-radius: 5px;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            position: relative;
        }
        .sidebar:hover {
          overflow-y: auto; /* Enable scrolling */
        }

         /* Customize scrollbar width */
       .sidebar::-webkit-scrollbar {
         width: 5px; /* Adjust width */
         }
       /* Customize scrollbar track */
      .sidebar::-webkit-scrollbar-track {
        background: #f1f1f1; /* Light gray background */
        border-radius: 5px;
         }

       /* Customize scrollbar thumb (the draggable part) */
      .sidebar::-webkit-scrollbar-thumb {
         background: #888; /* Darker gray */
         border-radius: 5px;
       }

     /* On hover, make the scrollbar more visible */
     .sidebar::-webkit-scrollbar-thumb:hover {
         background: #555;
      }
  
     .sidebar ul {
            list-style: none;
            padding: 0;
            flex-grow: 1;
        }

    .sidebar ul li {
            padding: 8px;
            border-bottom: 1px solid #ddd;
            cursor: pointer;
            position: relative;
            display: flex;
            align-items: center;
            font-weight: bold;
        }

        .sidebar ul li i {
            margin-right: 10px;
            font-weight: bold;
            color: var(--blue);
        }

        .sidebar ul li:hover {
            color: var(--blue);
            z-index: 10;
        }

         .sidebar ul li i:hover {
            color: var(--golden);
            z-index: 10;
        }

        /* Mega Menu (Submenu) */
        .submenu {
            position: fixed;
            top: 200px; /* Start from the top of the parent list item */
            left: 280px;
            background: white;
            width: 60vw;  /* Full width of the viewport */
            padding: 10px;
            display: none; /* Hide by default */
            border-radius: 5px;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
            z-index: 15;
            transition: all 0.3s ease;
            display: none;
            flex-direction: column;  /* Ensure items stack vertically */
            gap: 10px; /* Space between each item */
            max-height: 530px; /* Limit the height of the submenu */
            overflow-y: auto; /* Enable scrolling if items exceed max height */
            overflow-x: hidden;
        }

        /* Show the submenu when the list item is hovered */
        .sidebar ul li:hover .submenu {
            display: flex; /* Show the submenu when hovered */
            z-index: 15;

        }

        .submenu div {
            padding: 10px;
        }

        .submenu div h4 {
            font-size: 1.2em;
            margin-bottom: 10px;
            display: block; /* Ensure h4 items are stacked vertically */
            margin-top: 0; /* Remove top margin */
        }

        .submenu div h4 img {
            width: 20px;  /* Adjust size of the image */
            height: 20px;
            margin-bottom: 10px;  /* Space between image and text */
        }

        .submenu p {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;  /* Spacing between items */
            margin: 5px 0;
        }

        .submenu p a {
              display: flex;
              flex-direction: column; /* Stack image above text */
              align-items: center;
              text-decoration: none;
              color: #333;
              font-size: 1em;
              white-space: nowrap; /* Prevent text from breaking */
              text-align: center; /* Center text */
              gap: 3px; /* Adjust spacing */
        }

      .submenu p a:hover {
           color: orange;
        }

      .submenu p a img {
          width: 50px; /* Increase image size */
          height: 50px;
          margin-bottom: 3px; /* Add spacing between image and text */
        }



        /* Main Banner */
        .main-banner {
            flex: 1;
            background: #ddd;
            min-height: 450px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            border-radius: 5px;
            overflow: hidden;
        }

        .banner-content {
            text-align: center;
        }

        .slider-dots {
            position: absolute;
            bottom: 10px;
            display: flex;
            gap: 5px;
        }

        /* Right Panel */
        .right-panel {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .right-panel div {
            padding: 10px;
            border-bottom: 1px solid #ddd;
            flex-grow: 1;
        }

        .whatsapp {
            background: orange;
            color: white;
            text-align: center;
            font-weight: bold;
            padding: 15px;
            border-radius: 5px;
        }

        /* Flash Sales Banner */
        .flash-sales {
            background: red;
            color: white;
            text-align: center;
            padding: 10px;
            font-weight: bold;
            margin-top: 20px;
        }

    .carousel-inner img {
         height: 510px;
         object-fit: cover; /* Ensures proper scaling without distortion */
         border-radius: 5px;
       }

    .carousel-control-prev {
       left: 2px;
      }

    .carousel-control-next {
       right: 2px;
     } 
    .carousel-control-prev, 
    .carousel-control-next {
       background-color: var(--white); /* Semi-transparent background */
       border: none;
       padding: 10px;
       border-radius: 50%;
     }
 
    /* Icon Styling for the Buttons */
   .carousel-control-prev-icon, 
   .carousel-control-next-icon {
      width: 10px;
      height: 10px;
      border-radius: 10%;
      background-size: 50%;
      background-repeat: no-repeat;
      background-position: center;
     }
    

.carousel-indicators button {
    background-color: var(--golden); /* Inactive indicators color */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
}

.carousel-indicators .active {
    background-color: var(--golden); /* Active indicator color */
    color: var(--golden);
}

    .default-slider {
        width: 100%;  /* Ensures full width */
        max-width: 1200px; /* Adjust based on your layout */
        margin: auto; /* Centers the slider */
      }



/*========Shopping categories/ Groups Styling===*/
.groups {
  
  margin-left: 5px;
            margin-right: 5px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 15px;
  background: var(--golden);
  scroll-behavior: smooth;
}

.category-card {
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  flex: 0 0 350px; /* Fixed width for cards */
  background-color: var(--blue);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 15px;
}

.card-content {
  display: flex;
  gap: 15px;
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  width: 100%; /* Ensure the container takes full width */
}

.product-image {
  width: 60px; /* Smaller image size */
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  margin-left: auto; /* Push the image to the right */
  order: 1; /* Ensure the image appears last */
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Center the text content */
  text-align: center; /* Center text content */
  width: 100%; /* Ensure product info takes full width */
}


.product-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.product-info .price {
  font-size: 24px;
  color: var(--golden);
  font-weight: bold;
}

.product-info .original-price {
  text-decoration: line-through;
  color: #ffe4b5;
}

.product-info .shop-now {
  align-self: flex-end;
  bottom: 0px;
  right: 0px;
  background-color: var(--golden);
  color: #000;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.product-info .shop-now:hover {
  background-color: #ffc700;
}

/* Hide scrollbar for a cleaner look */
.groups::-webkit-scrollbar {
  display: none;
}



/*====footer styling===*/

.footer {
  background: var(--blue);
  color: #333;
  padding: 20px 0;
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--golden);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--orange);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ddd;
  padding: 20px 0;
}

.social-media, .app-links, .payment-methods {
  margin-bottom: 10px;
}

.social-media span, .app-links span {
  display: block;
  margin-bottom: 5px;
  color: var(--golden);
}

.social-media a img, .app-links a img, .payment-methods img {
  max-height: 30px;
  margin: 0 5px;
  vertical-align: middle;
  color: var(--white);
}

.footer-bottom p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--golden);
}


/*================================ Responsive Design ========================================*/
/* Full-width on tablets (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 100%; /* Override for tablets */
    }
}


@media (max-width: 768px) {
  .main-header {
    flex-wrap: wrap;
    gap: 15px;
  }

  .top-banner{
    display: none;
  }

  .top-bar{
    display: none;
  }

   .sidebar, .right-panel {
     display: none;
   }

  .search-bar {
    margin: 10px 0;
  }

  .search-suggestions {
    justify-content: center;
    gap: 5px;
  }

   /* Position user-options at the bottom of the screen */
  .user-options {
    position: fixed; /* Fix the element relative to the viewport */
    bottom: 0; /* Align it to the bottom edge */
    left: 0; /* Align to the left edge */
    width: 100%; /* Span the full width of the screen */
    background-color: white; /* Add a background for better visibility */
    padding: 10px 15px; /* Add padding for aesthetics */
    display: flex;
    z-index: 10;
    justify-content: space-around; /* Space out the options evenly */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  }

  .user-options a {
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Center align both elements */
    text-decoration: none; /* Remove underline from links */
    color: black; /* Default color */
    font-size: 20px; /* Adjust text size */
  }

  .user-options .icon {
    font-size: 35px; /* Adjust icon size for better visibility */
    margin-bottom: 4px; /* Add spacing between icon and text */
    color: red;
  }

  .user-options a:hover .icon {
    color: red; /* Hover effect for icon */
  }

  .user-options a:hover {
    color: var(--blue); /* Hover effect for text */
  }

  .container{
     height: 200px;
     width: 100%;
     margin: 2 0;
     padding: 0;
  }

  .carousel-inner img {
     height: 200px;
  }

    .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-column {
    margin-bottom: 20px;
  }

  .footer-column ul li {
    margin-bottom: 5px;
  }
}
