@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ===================== NEW HEADER ===================== */
.font-poppins { font-family: 'Poppins', sans-serif; }
.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.nh-hidden { display: none !important; }
.lg-block { display: none !important; }

.new-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s;
  background-color: rgba(1, 44, 96, 0.85); /* #012c60/[0.85] */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(1, 60, 140, 0.5); /* #013c8c/50 */
  box-shadow: 0 2px 12px 0 rgba(1, 44, 96, 0.35);
}

.nh-container {
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem;
}

.nh-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 0.75rem;
  /* ADDED: Forces this row and the search bar to stay on top */
  position: relative;
  z-index: 20;
}

.nh-logo-link { flex-shrink: 0; display: block; }
.nh-logo-img {
  height: 28px;
  width: auto;
  transition: opacity 0.2s;
}
.nh-logo-link:hover .nh-logo-img { opacity: 0.9; }

.nh-desktop-nav { display: none; }
.nh-nav-link {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
  text-decoration: none;
}
.nh-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nh-badge {
  display: inline-block;
  font-size: 8.5px;
  font-weight: bold;
  background-color: #ef4444; /* red-500 */
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.025em;
}

.nh-right-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nh-icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #ffffff;
  cursor: pointer;
}
.nh-icon { width: 16px; height: 16px; }
.nh-icon-sm { width: 14px; height: 14px; }

.nh-search-dropdown {
  position: absolute;
  right: 0; /* Now it anchors to the edge of the screen */
  top: calc(100% + 8px); 
  width: calc(100vw - 2rem);
  max-width: 310px; 
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  background-color: #011e42; 
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: nh-fade-in 0.2s ease-out;
}

@keyframes nh-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nh-search-input {
  flex: 1;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  border: none;
}
.nh-search-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.nh-search-go {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  transition: background-color 0.2s;
  background-color: #e2ae3f;
  color: #011e42;
  border: none;
  cursor: pointer;
}

.nh-deals-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9999px;
  transition: all 0.2s;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.025em;
  cursor: pointer;
}

.nh-account-link { text-decoration: none; display: block; }
.nh-account-btn-desktop { display: none; }

.nh-border-top { border-top: 1px solid rgba(255, 255, 255, 0.06); width: 100%; }

.nh-category-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  height: 34px;
}
.nh-cat-link {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  padding: 0 12px;
  height: 34px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}
.nh-cat-link:first-child { padding-left: 0; }
.nh-cat-link:last-child { border-right: none; }
.nh-cat-link:hover { color: #e2ae3f; }

.nh-mobile-nav-scroll {
  display: flex;
  align-items: center;
  overflow-x: auto;
  height: 40px;
  gap: 1.25rem;
}
.nh-mobile-main-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  letter-spacing: 0.025em;
  text-decoration: none;
}
.nh-mobile-main-link:hover { color: #ffffff; }

.nh-mobile-dropdown {
  padding: 0.5rem 0;
  /* ADDED: Puts this layer below the top row */
  position: relative;
  z-index: 10;
}

.nh-mobile-dropdown-nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
}
.nh-dropdown-link {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 8px;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.nh-dropdown-link:hover { color: #ffffff; }
.nh-no-border { border-bottom: none; }

/* Sub-bars scroll wrapper animation */
.nh-subbars-wrapper {
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  max-height: 120px;
  opacity: 1;
  /* ADDED: Puts this layer below the top row */
  position: relative;
  z-index: 10;
}

/* Animations for hints */
@keyframes hintScroll {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-20px); }
  45%  { transform: translateX(-22px); }
  60%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}

.hint-scroll-mobile {
  animation: hintScroll 1s ease-in-out 0.8s 1 both;
}

.hint-scroll-city {
  animation: hintScroll 1s ease-in-out 1s 1 both;
}

/* City / Location Sub-bar Styles */
.nh-city-bg {
  background-color: transparent; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nh-city-scroll {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 32px;
  gap: 8px;
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .nh-city-scroll {
    justify-content: center;
  }
}

.nh-city-link {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nh-city-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.40);
}

/* Dropdown Dot styling */
.nh-dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nh-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(226, 174, 63, 0.6);
  flex-shrink: 0;
}

/* Media Queries */
@media (min-width: 640px) {
  .nh-container { padding: 0 1.5rem; }
  .sm-hidden { display: none !important; }
  .nh-account-btn-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 9999px;
    padding: 7px 16px;
    transition: all 0.2s;
    background-color: rgba(226, 174, 63, 0.12);
    border: 1px solid rgba(226, 174, 63, 0.38);
    color: #e2ae3f;
    cursor: pointer;
  }
  .nh-search-dropdown {
    right: 0;
    width: 310px;
  }
}

@media (min-width: 768px) {
  .nh-logo-img { height: 32px; }
}

@media (min-width: 1024px) {
  .nh-container { padding: 0 2rem; }
  .lg-hidden { display: none !important; }
  .lg-block { display: block !important; }
  .nh-desktop-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }
  
  /* Centers the city links on desktop */
  .nh-city-scroll {
    justify-content: center;
  }
  
  /* Removes the bounce/hint animation on desktop */
  .hint-scroll-city,
  .hint-scroll-mobile {
    animation: none !important;
  }
}

/* Push page content below fixed header */
body {
  padding-top: 130px;
}

/* Desktop header height: top row 58px + deals bar 34px + city bar 32px */
@media (min-width: 1024px) {
  body {
    padding-top: 124px;
  }
}

/* ===================== FOOTER ===================== */
footer {
  background: url('https://dxk1acp76n912.cloudfront.net/images/homepage/waterma.png') no-repeat center center;
  background-size: cover;
  background-color: #012c60;
  color: #ffffff;
  padding: 30px 20px;
  text-align: center;
  margin-top: 0px;
}

.footer-logo {
  position: relative;
  padding: 10px;
  /* Increase this width if you want the logo to be bigger overall */
  width: 250px; 
  height: auto;
  margin: 40px auto 20px auto; /* Centers the container and gives it space */
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo img {
  width: 100%; /* Makes the image neatly fill the 250px container */
  height: auto;
  /* Removed all the negative margins causing your issue */
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 1.4rem;
  text-align: center;
  margin-top: -5px !important;
}

.footer-social a {
  color: white;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 10px;
  text-align: center;
}

.footer p a {
  color: #ffffff;
  text-decoration: none;
}

.footer p a:hover {
  text-decoration: underline;
}

.footer p a:active {
  color: #f0a500;
}

.payment-box {
  background-color: white;
  width: 100vw; /* Forces the box to be exactly the width of the screen */
  margin-left: calc(-50vw + 50%); /* Pulls the box out to the left edge, ignoring the container */
  padding: 10px 0;
  text-align: center;
  box-sizing: border-box;
  min-height: 60px;
  margin-top: 15px;
  margin-bottom: 15px;
  
}
.inline-payment-icons {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  align-items: center;
  opacity: 1;
}

.inline-payment-icons img {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.inline-payment-icons img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

/* Footer Mobile */
@media (max-width: 768px) {
  .footer {
    padding: 20px 10px;
    height: auto;
    font-size: 14px;
    flex-direction: column;
  }
  .footer-logo {
    margin-top: 40px;
  }
  .footer-social {
    font-size: 1.2rem;
  }
  .footer-content {
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.5;
  }
}