@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=SUSE:wght@100..800&family=Sevillana&display=swap");
@import url("https://free.bboxtype.com/embedfonts/?family=FiraGO:200,300,400,600,700,800,900");
@import url("https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap");

:root {
  --dark-color: #333333;
  --dark-extra-color: #151414;
  --red-color: #ff0000;
  --border-main-color: #f4f4f4;
}

@font-face {
  font-family: "BPG Glaho";
  src: url("../fonts/bpg_glaho.ttf") format("truetype");
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a {
  /*font-family: "BPG Glaho", Arial, sans-serif;*/
  font-family: "FiraGO", sans-serif;
}

* {
  padding: 0;
  margin: 0;
}

.infobar {
  padding: 0 80px;
  height: 40px;
  background-color: rgba(21, 20, 20, 0.92);
  color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 15px;
  overflow: hidden;
}

.infobar p {
  padding-left: 8px;
  padding-right: 45px;
  font-weight: bold;
}

.info-left {
  display: flex;
  flex: 1;
}

.info-right {
  display: flex;
  flex: 1;
  justify-content: right;
  align-items: center;
}

.info-right img {
  width: 30px;
}

/* Base Styles for Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*background-color: #F1EFEF;*/
  background-color: whitesmoke;
  padding: 7px 130px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #f3f3f3;
}

.navbar i {
  color: var(--dark-color);
}

.logo {
  position: relative;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  height: 40px;
  margin-right: 40px;
  text-decoration: none;
  perspective: 1000px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo > p {
  position: relative;
  font-family: "Bree Serif", system-ui;
  font-size: 40px;
  background: linear-gradient(
    135deg,
    #ff3333 0%,
    #ff1a1a 25%,
    #ff0000 50%,
    #e60000 75%,
    #cc0000 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 10px;
  text-shadow: 0 2px 4px rgba(255, 0, 0, 0.25), 0 4px 8px rgba(230, 0, 0, 0.15);
  transform-style: preserve-3d;
  animation: logo-glow 2s ease-in-out infinite alternate;
}

.logo > p::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  height: 3px;
  /*background: linear-gradient(90deg, rgba(255,0,0,0) 0%, #ff0000 50%, rgba(255,0,0,0) 100%);*/
  transition: all 0.3s ease;
  background: #f5f5f5;
  transform: scaleX(0.9);
}

.logo:hover > p::after {
  transform: scaleX(1);
  opacity: 1;
}

.logo-mt-text {
  position: relative;
  color: #2d2d2d;
  display: flex;
  line-height: 14px;
  flex-direction: column;
  font-size: 14px;
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-left: 8px;
  transition: all 0.3s ease;
}

.logo-mt-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: linear-gradient(180deg, #ff0000 0%, transparent 100%);
  border-radius: 2px;
}

.logo:hover .logo-mt-text {
  transform: translateX(5px);
  color: #ff0000;
}

/* Add subtle animation on page load */
@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  animation: logoEntrance 0.6s ease forwards;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fff;
  /*border: 1px solid red;*/
  border-radius: 8px;
  padding: 1px 1px;
  margin-right: 20px;
  height: 42px;
}

.search-bar input {
  border: none;
  padding: 7px 8px;
  /*margin-right: 100px;*/
  font-size: 14px;
  border-radius: 8px;
  width: 100%;
}

.search-bar input:focus {
  outline: none !important;
}

.input-group-append button {
  /* For search bar search button */
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 10px;
  border: none;
  background-color: white;
  cursor: pointer;
}

.input-group-append button i:before {
  color: red;
  content: "\f002"; /* Font Awesome code for the search icon */
  transition: content 0.3s ease; /* Smooth transition */
}

.input-group-append button:hover i:before {
  color: red;
  content: "\f061"; /* Font Awesome code for the right arrow */
}

.menu-button {
  display: flex;
  align-items: center;
  height: 60%;
  background-color: white;
  color: var(--dark-color);
  /*box-shadow: 2px 2px var(--border-main-color);*/
  /*border-radius: 8px;*/
  padding: 0 15px;
  border-right: 1px solid var(--border-main-color);
  cursor: pointer;
  font-size: 16px;
  margin-right: 20px;
  text-decoration: none;
}

.menu-button i {
  color: var(--red-color);
}

.nav-text-span {
  font-size: 14px;
  font-weight: 500;
  color: #676767;
}

.nav-buttons {
  display: flex;
  align-items: center;
  background-color: rgb(255, 255, 255);
  color: #272727;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  margin-right: 20px;
  text-decoration: none;
  height: 40px;
}

.cart-i i {
  color: red;
}

.language-btn {
  padding: 6px 10px;
  height: 32px;
}

.language-btn img {
  height: 16px;
  object-fit: cover;
}

.icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-buttons img {
  max-height: 25px;
  object-fit: cover;
}

.dashboard-icon {
  display: flex;
  align-items: center;
}

/* Add container for image */
.dashboard-icon .avatar-container {
}

/* Image styling */
.dashboard-icon .avatar-container img {
  max-width: 40px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.dashboard-icon strong {
  letter-spacing: 1px;
  margin-left: 7px;
}

.cart-items-count {
  position: absolute;
  text-align: center;
  font-size: 15px;
  right: 20px;
  width: 20px;
  top: 0;
  border-radius: 50%;
  background-color: red;
  color: white;
}

/* End of Nav Bar */

.main-content {
  display: flex;
  flex: 1;
}

/* Enhanced Slider Styles */
.slider-first-div {
  padding: 20px;
  position: relative;
  margin: 0 auto;
  width: 97%; /* Added max-width for better large screen display */
  margin-bottom: 30px;
}

.slider {
  position: relative;
  margin: auto;
  overflow: hidden;
  border-radius: 15px; /* Increased border radius */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* Added depth shadow */
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

.slider:hover {
  transform: translateY(-5px); /* Hover lift effect */
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother timing function */
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.slide::before {
  /* Gradient overlay */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 400px; /* Fixed height */
  object-fit: cover;
  transform: scale(1.01); /* Prevent margin collapse */
  transition: transform 0.5s ease;
}

/* Dots Navigation Enhancements */
.dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
  text-align: center;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px; /* Added gap between dots */
}

.dot {
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.dot:hover {
  transform: scale(1.2);
  background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background: linear-gradient(45deg, #ff4444, #ff0000);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  animation: pulse 1.5s infinite; /* Added pulse animation */
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

/* Enhanced Categories Block */
.categories-block {
  padding: 2.5rem 5%;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
  border-radius: 1.5rem;
  margin: 2rem auto;
  max-width: 1400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.categories-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b 0%, #ff8787 50%, #ff6b6b 100%);
}

.categories-block h3 {
  font-size: 1.5rem;
  color: #2b2d42;
  margin-bottom: 1.2rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.categories-block h3:hover {
  transform: translateX(8px);
  color: #d90429;
}

.categories-menu {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 1.5rem 0;
}

.categories-menu > div {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e9ecef;
}

.categories-menu > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.categories-menu a {
  text-align: left;
}

.categories-menu h3 {
  font-size: 1.2rem;
  color: #d90429;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ffd7ba;
  font-weight: 500;
}

.categories-item {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  color: #4a4e69;
  transition: all 0.2s ease;
  position: relative;
}

.categories-item::before {
  content: "▹";
  color: #ff6b6b;
  margin-right: 0.8rem;
  font-size: 0.9rem;
}

.categories-item:hover {
  color: #d90429;
  transform: translateX(8px);
}

.categories-item:hover::before {
  color: #ff0000;
}

.categories-item p {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

/* messages */
.custom-container {
  width: 100%;
  padding: 10px;
}

.custom-alert {
  position: relative;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

/* Alert colors */
.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}

.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}

.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.custom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

.custom-close span {
  display: inline-block;
  font-weight: bold;
  line-height: 1;
  color: #000;
  opacity: 0.5;
}

.custom-close span:hover {
  color: #000;
  opacity: 0.75;
}

.bottom-nav,
.lang-mobile {
  display: none;
}

/* Add new mobile menu button styles */
.mobile-menu-button {
  display: none; /* Hidden by default */
}

@media (min-width: 1000px) {
  .search-bar {
    width: 450px;
  }
}

@media (min-width: 1250px) {
  .search-bar {
    width: 500px;
  }
}

/* Responsive Settings */
@media (max-width: 1250px) {
  .categories-block {
    padding: 40px 20px;
  }

  .navbar {
    padding: 10px 50px; /* Reduced padding for tablet and smaller desktops */
  }
}

@media (max-width: 768px) {
  .slider {
    border-radius: 8px;
  }

  .slide img {
    height: 300px;
  }

  .dot {
    height: 14px;
    width: 14px;
  }

  .dots {
    bottom: 15px;
    gap: 8px;
  }

  .nav-text-span {
    display: none;
  }

  .icons {
    display: flex;
    align-items: center;
  }

  /* Hide all icons except language button */
  .icons > * {
    display: none;
  }

  .icons .language-btn {
    display: flex;
    margin-right: 10px;
  }

  .lang-mobile {
    display: flex;
    align-items: center;
    padding: 10px 9px;
    height: 32px;
    margin-right: 10px;
  }

  .lang-mobile img {
    height: 16px;
    object-fit: cover;
  }

  .input-group-append button {
    padding-right: 0;
  }

  .menu-text {
    display: none;
  }

  .input-group-append i {
    padding-right: 15px;
  }

  .categories-block {
    padding: 20px; /* Reduced padding for smaller screens */
    text-align: center;
  }

  .categories-menu {
    margin-right: 0px;
    grid-template-columns: 1fr;
    margin-bottom: 15px;
    flex-direction: column; /* Stack the items vertically */
  }

  .categories-menu div {
    margin-bottom: 20px; /* Add space between categories */
  }

  .navbar {
    padding: 7px 5px;
  }

  .logo {
    margin-left: 10px;
  }

  .menu-button {
    height: 60%;
    padding: 4px 15px;
    font-size: 13px;
    background-color: white;
  }

  .menu-button i {
    color: red !important;
  }

  .search-bar {
    height: 38px;
  }

  .info-left > i.fa-clock, /* Assuming 'fa-clock' is the class for the clock icon */
    .info-left > p:first-of-type, /* Targets the first <p> element specifically */
    .info-right > img[src*="credo.png"], /* Targets an <img> element containing 'credo.png' in its src */
    .info-right > p:last-of-type {
    /* Targets the last <p> element specifically */
    display: none;
  }

  .infobar {
    padding: 0 20px;
  }

  .infobar p {
    font-size: 13px;
    padding-right: 0;
    font-weight: bold;
  }

  .info-left {
    flex: 3;
  }

  .info-right {
    flex: 2;
  }

  .mt-location {
    font-size: 10px;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    z-index: 10000;
  }

  .bottom-nav a {
    display: flex;
    line-height: 15px;
    flex-direction: column;
    color: white;
    text-align: center;
    flex-grow: 1;
    text-decoration: none;
    font-size: 10px;
  }

  .bottom-nav a span {
    font-size: 25px;
  }

  .bottom-nav a:hover {
    background-color: red;
  }

  .bottom-nav a:first-child:hover {
    border-radius: 10px 0 0 0;
  }

  .bottom-nav a:last-child:hover {
    border-radius: 0 10px 0 0;
  }

  .search-results-dropdown {
    position: fixed;
    top: 0; /* Will be set dynamically by JavaScript */
    left: 0;
    right: 0;
    width: 100vw;
    margin: 0;
    max-height: calc(100vh - 200px);
    z-index: 1002; /* Higher than navbar z-index */
    border-radius: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

  /* Show mobile menu button and hide desktop one */
  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    background-color: white;
    color: var(--red-color);
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
  }

  /* Hide desktop menu button in search bar */
  .search-bar .menu-button {
    display: none;
  }

  /* Adjust navbar for new layout */
  .navbar {
    padding: 7px 5px;
    display: flex;
    align-items: center;
  }

  /* Ensure proper spacing in search bar without menu button */
  .search-bar {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .slider-first-div {
    width: 100%;
    padding: 10px;
  }

  .slide img {
    height: 250px;
  }

  .dot {
    height: 12px;
    width: 12px;
  }

  .search-results-dropdown {
    left: 0;
    right: 0;
    width: 100vw;
  }

  .navbar {
    padding: 7px 5px;
  }

  .search-bar {
    max-width: 160px;
  }

  .search-input {
    width: 100px;
  }

  .menu-button {
    padding: 0 5px;
    margin-right: 5px;
  }

  .logo > p {
    font-size: 30px;
  }

  .search-results-dropdown {
    top: 55px;
  }

  .search-result-item {
    padding: 10px 12px;
  }
}

/* Ultra narrow screens like Galaxy Z Fold */
@media (max-width: 320px) {
  .navbar {
    padding: 7px 1px;
  }

  .logo > p {
    font-size: 20px;
  }

  .logo-mt-text {
    display: none;
  }

  .search-bar {
    max-width: 70px;
  }

  .search-input {
    width: 45px;
    font-size: 11px;
    padding: 2px !important;
    padding-right: 20px !important;
  }

  .menu-button {
    padding: 0 2px;
    margin-right: 1px;
  }

  .menu-button i {
    font-size: 12px;
  }

  .input-group-append button {
    padding: 0 3px;
  }

  .icons > * {
    margin-left: 0;
    padding: 0 1px;
  }

  .nav-buttons img {
    width: 18px;
    height: 18px;
  }

  .nav-buttons {
    padding: 1px;
  }

  .nav-buttons span,
  .cart-i {
    font-size: 0;
  }

  .cart-i i,
  .nav-buttons i {
    font-size: 12px;
    margin: 0;
  }

  .logo {
    margin-right: 2px;
  }

  .icons {
    display: flex;
    gap: 1px;
  }
}

/* Search Container Styles */
.search-container {
  position: relative;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 1002; /* Higher than navbar z-index */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.15),
    0 4px 12px rgba(231, 76, 60, 0.1);
  display: none;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 4px;
  border: 1px solid #ffe5e3;
  width: 100%;
}

.search-result-item {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  border-bottom: 1px solid #feecec;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #fff5f5;
}

.search-result-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-name {
  font-weight: 600;
  color: #2d2d2d;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.product-price {
  color: #e74c3c;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.product-category {
  font-size: 13px;
  color: #c0392b;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.home-product-category {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 13px;
  color: #c0392b;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  border-radius: 4px;
  width: fit-content;
  display: inline-block;
}

/* Custom Scrollbar */
.search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0 12px 12px 0;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(231, 76, 60, 0.4);
  border-radius: 4px;
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.search-loading-skeleton {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-size: 1000px 100%;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.input-group-append {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 999;
  display: none;
}

.hero-outer-div {
    margin-top: 5px;
    padding: 0px;
    background-color: #ffffff;
  }
  
  .hero-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0px auto;
    padding: 0 0px;
  }
  
  /* Home Categories Sidebar Styles */
  .home-categories-sidebar {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    height: 400px;
    overflow-y: auto;
    margin-top: 18px;
  }
  
  /* Webkit scrollbar styling */
  .home-categories-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  
  .home-categories-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  .home-categories-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff4444, #ff0000);
    border-radius: 4px;
    transition: all 0.3s ease;
  }
  
  .home-categories-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff0000, #cc0000);
  }
  
  /* Firefox scrollbar styling */
  .home-categories-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #ff0000 #f1f1f1;
  }
  
  .home-category-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .home-category-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background: #f8f8f8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
  }
  
  .home-category-item:hover {
    transform: translateX(4px);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
  
  .home-category-item:hover .home-category-name {
    color: #1d1d1f;
  }
  
  .home-category-item:hover .home-category-shop {
    color: #666666;
  }
  
  .home-category-item:hover .home-category-icon {
    background: #f5f5f7;
    transform: scale(1.05);
  }
  
  .home-category-item:focus {
    outline: none;
  }
  
  .home-category-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
    padding: 8px;
  }
  
  .home-category-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: invert(20%) sepia(90%) saturate(6000%) hue-rotate(0deg) brightness(100%) contrast(110%);
  }
  
  .filter-red {
    filter: invert(20%) sepia(90%) saturate(6000%) hue-rotate(0deg)
      brightness(100%) contrast(110%);
  }
  
  .home-category-item:hover .home-category-icon img {
    transform: scale(1.1);
  }
  
  .home-category-info {
    display: flex;
    flex-direction: column;
  }
  
  .home-category-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 3px;
    transition: color 0.3s ease;
  }
  
  .home-category-shop {
    font-size: 0.85rem;
    color: #666;
    transition: color 0.3s ease;
  }
  
  /* Responsive adjustments */
  @media (max-width: 1200px) {
    .home-categories-sidebar {
      display: none; /* Hide on mobile */
    }
  }

/* Media Queries */
@media (max-width: 768px) {
  .home-product-category {
    font-size: 10px;
  }

  .slider-first-div {
    width: 100vh;
  }

  .slider {
    width: 100%;
  }

  .slides {
    width: 100%;
  }

  .slide {
    width: 100%;
  }

  .navbar {
    position: sticky;
    top: 0;
    z-index: 1001;
    background-color: whitesmoke;
  }

  .infobar {
    position: sticky;
    top: 0;
    z-index: 1001;
  }

  /* Position the navbar below the infobar when sticky */
  .navbar.sticky {
    top: 40px;
  }

  .search-bar {
    margin: 0;
    padding: 0;
    max-width: 200px;
    width: auto;
  }

  .menu-button {
    padding: 0 8px;
    margin-right: 8px;
    font-size: 14px;
  }

  .menu-button i {
    font-size: 16px;
  }

  .nav-text-span {
    display: none;
  }

  .input-group {
    width: 100%;
  }

  .search-input {
    font-size: 14px;
    padding: 5px !important;
    padding-right: 35px !important;
    width: 120px;
  }

  .input-group-append button {
    padding: 0 8px;
    right: 0;
  }

  .logo {
    margin-right: 10px;
  }

  .icons > * {
    margin-left: 5px;
  }

  .search-container {
    position: relative;
  }

  .search-results-dropdown {
    position: fixed;
    top: 0; /* Will be set dynamically by JavaScript */
    left: 0;
    right: 0;
    width: 100vw;
    margin: 0;
    max-height: calc(100vh - 200px);
    z-index: 1002; /* Higher than navbar z-index */
    border-radius: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

  .search-result-item {
    padding: 12px 15px;
  }

  .search-result-item img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .search-results-dropdown {
    left: 0;
    right: 0;
    width: 100vw;
  }
  .navbar {
    padding: 7px 5px;
  }

  .search-bar {
    max-width: 160px;
  }

  .search-input {
    width: 100px;
  }

  .menu-button {
    padding: 0 5px;
    margin-right: 5px;
  }

  .logo > p {
    font-size: 30px;
  }

  .search-results-dropdown {
    top: 0; /* Will be set dynamically by JavaScript */
  }

  .search-result-item {
    padding: 10px 12px;
  }
}

/* Ultra narrow screens like Galaxy Z Fold */
@media (max-width: 320px) {
  .navbar {
    padding: 7px 1px;
  }

  .logo > p {
    font-size: 20px;
  }

  .logo-mt-text {
    display: none;
  }

  .search-bar {
    max-width: 70px;
  }

  .search-input {
    width: 45px;
    font-size: 11px;
    padding: 2px !important;
    padding-right: 20px !important;
  }

  .menu-button {
    padding: 0 2px;
    margin-right: 1px;
  }

  .menu-button i {
    font-size: 12px;
  }

  .input-group-append button {
    padding: 0 3px;
  }

  .icons > * {
    margin-left: 0;
    padding: 0 1px;
  }

  .nav-buttons img {
    width: 18px;
    height: 18px;
  }

  .nav-buttons {
    padding: 1px;
  }

  .nav-buttons span,
  .cart-i {
    font-size: 0;
  }

  .cart-i i,
  .nav-buttons i {
    font-size: 12px;
    margin: 0;
  }

  .logo {
    margin-right: 2px;
  }

  .icons {
    display: flex;
    gap: 1px;
  }
}

.product-gallery,
.product-price-info {
  width: 100%;
}


