/* Import Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;900&display=swap');

/* Apply globally */
body {
  font-family: 'Raleway', sans-serif;
}





/* Header Styling */
/* Header transition for hide/show */
header {
  position: sticky;
  margin: 0;
  padding: 0;
  top: 0;
  z-index: 200;
  background: #fff;
  transition: transform 0.3s ease-in-out; /* smooth hide/show */
  
}

/* When hidden, move it up */
header.hide {
  transform: translateY(-100%);
}

/* Remove vertical gaps so bars stack flush */
header > * {
  margin: 0;
  padding: 0;
}

/* Contact Bar (topmost) */
.contact-bar {
  background: #edc304; /* dark blue */
  color: #000000;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
}

.contact-bar .contact-left {
  font-weight: 500;
}

.contact-bar .contact-right {
  display: flex;
  gap: 10px;
  font-weight: 500;
}

.contact-bar span {
  display: flex;
  align-items: center;
  gap: 5px;
}


/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 8px auto;
  padding: 0.5rem 20px; /* horizontal padding only */
  z-index: 210;
  flex-wrap: wrap;
}

.logo img {
  height: 55px;
  width: auto;
  margin: 0;
}



/* Search Container */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

/* Search Bar */
#search-bar {
  width: 350px; /* slightly wider */
  padding: 13px 45px 10px 15px; /* leave space for icon on right */
  border: 1px solid #ccc;
  /* border-radius: 25px; */
  font-size: 18px;
  outline: none;
  /*background: #f5f5f5; /* light gray background */
  color: #222;
  transition: all 0.3s ease;
  
}

#search-bar:focus {
  border-color: #2775e1;
  background: #fff;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.15); */
}

/* Search Icon */
#search-icon {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background: #2775e1; /* dark blue circle */
  /*border-radius: 50%; */
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

#search-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

#search-icon:hover {
  background: #024274;
}

/* Search results dropdown */
#search-results {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  display: none;
  z-index: 999;
}

#search-results a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

#search-results a:hover {
  background: #f1f1f1;
}

/* Side Panel Search */
.side-search {
  position: relative;
  margin-bottom: 20px;
}

#side-search-bar {
  width: 75%; /* slightly wider */
  padding: 13px 45px 10px 15px; /* leave space for icon on right */
  border: 1px solid #ccc;
  /* border-radius: 25px; */
  font-size: 16px;
  outline: none;
  /*background: #f5f5f5; /* light gray background */
  color: #222;
  transition: all 0.3s ease;
}

#side-search-bar:focus {
  border-color: #2775e1;
  background: #fff;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.15);*/
}

#side-search-icon {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background: #2775e1; /* dark blue circle */
  /*border-radius: 50%; */
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;

}

#side-search-icon svg {
  fill: #fff;
}

/* Side Search results dropdown */
#side-search-results {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  display: none;
  z-index: 999;
}

#side-search-results a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

#side-search-results a:hover {
  background: #f1f1f1;
}


/* Search result item with image and text */
#search-results a,
#side-search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 15px;
}

#search-results .product-thumb,
#side-search-results .product-thumb {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 6px;
}

#search-results .product-name,
#side-search-results .product-name {
  flex: 1;
  color: #333;
  font-size: 16px;
  text-align: left;
}


/*End of Search*/


/* Opening Times (replacing country indicator) */
.opening-times {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* align right side */
  gap: 2px;
  color: #333;
  /*background: #f0f0f0; */
  padding: 2px 12px;
  border-radius: 8px;
  margin: 0;
}

.open-title{
  font-size: 20px;
}

.opening-times{
  font-size: 15px;
}
.opening-times .open-title {
  font-weight: 600;
  color: #2775e1;
  margin-bottom: 2px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .top-bar {
    justify-content: space-between;
    margin: 0;
    gap: 0;              /* remove horizontal gaps */
    padding: 0rem 12px; /* slight vertical padding for breathing room */

  }

  .logo img {
    height: 45px;        /* reduce height a little */
    width: auto;
    margin-top: 4px;
  }



}

/* Extra small screens (phones under 480px) */
/* Extra small screens (phones under 480px) */
@media (max-width: 480px) {
  .bottom-bar {
    display: none;
  }

  .top-bar {
    margin: 0;
    margin-top: 2px;
    justify-content: center;
    gap: 0;
    padding: 0rem 4px; /* even tighter for tiny screens */
    position: relative; /* allow pseudo-element positioning */
  }

  .top-bar::after {
    content: "";
    position: absolute;
    bottom: -2px; /* adjust position */
    left: 0;
    width: 100%;
    height: 3px; /* thickness of the line */
    background: linear-gradient(90deg, green, yellow, green);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
  }

  @keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 200% 50%;
    }
  }

  .logo img {
    height: 40px;        /* smaller logo for small phones */
    width: auto;
  }

  .opening-times,
  .search-container {
    display: none;
  }

  .contact-bar {
    display: none;
  }
}




/* Bottom Bar */
.bottom-bar {
  background: #2775e1;
  width: 100%;
  /*border-top: 1px solid #024274; /* optional separation */
  margin: 0;
  padding: 0.8rem 0;
  z-index: 200;
}

/* Nav links inside bottom bar */
.bottom-bar .nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* Animated underline for bottom-bar nav links */
.bottom-bar .nav-links a {
  position: relative;
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.bottom-bar .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px; /* space between text and underline */
  width: 0%;
  height: 2px;
  background-color: #ffffff; /* underline color */
  transition: width 0.3s ease;
}

.bottom-bar .nav-links a:hover::after {
  width: 100%; /* expand underline on hover */
}

.bottom-bar .nav-links a:hover {
  color: #ffffff; /* optional: change text color on hover */
}


/* Responsive for phones */
@media (max-width: 768px) {
  /* hide bottom bar on small screens */
  .bottom-bar {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 20px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 20px;
    gap: 10px;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }

  #menu-icon {
    display: block;
  }
    /* ✅ Fix for contact bar on small screens */
  .contact-bar {
    justify-content: center !important; /* force centering */
    text-align: center;
  }

  .contact-bar .contact-left {
    display: none; /* hide phone & email */
  }

  .contact-bar .contact-right {
    flex: 1;            /* take full width */
    display: flex;
    justify-content: center; /* center horizontally */
  }

    .top-bar .search-container {
    display: none;
  }
}


/* Side Panel */
.side-panel {
  position: fixed;
  top: 0;
  right: -300px; /* hidden initially */
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 6px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 500;
  padding: 50px 20px;
}

.side-panel.show {
  right: 0;
}

.side-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 0;
  margin: 0;
}

/* Animated underline effect for side nav links */
.side-nav-links a {
  position: relative;
  display: inline-block;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.side-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px; /* space between text and underline */
  width: 0%;
  height: 2px;
  background-color: #0066B3; /* underline color */
  transition: width 0.3s ease;
}

.side-nav-links a:hover::after {
  width: 100%; /* expand underline fully */
}

.side-nav-links a:hover {
  color: #0066B3; /* optional: change text color on hover */
}

/* Hamburger Icon - Floating on Mobile */
/* Bounce animation */
@keyframes bounceOnce {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-15px); }
  40%  { transform: translateY(0); }
  60%  { transform: translateY(-8px); }
  80%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* Apply animation to menu icon */
#menu-icon {
  display: none; /* hidden by default on large screens */
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 40px;
  background: #2775e1;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 300;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;

  /* Bounce effect on page load */
  animation: bounceOnce 1s ease forwards;
}

#menu-icon:hover {
  transform: scale(1.1);
  background: #024274;
}

/* Show only on screens smaller than 768px */
@media (max-width: 768px) {
  #menu-icon {
    display: flex;
  }
}

