/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure the header and footer specifically use the right font if needed */
.header, .footer {
  font-family: 'Lato', sans-serif;
}

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #012c60;
  z-index: 9999;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 45px;
}

.desktop-nav {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex: 1;
}

.desktop-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.desktop-nav a:hover {
  color: #cce5ff;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: white;
  transition: 0.3s;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.badge-trending {
  background: red;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: 6px;
}

.right-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.icon {
  width: 20px;
  height: 20px;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: #012c60;
  padding: 8px 14px;
  border-radius: 25px;
  font-weight: bold;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

#myAccountLink {
  text-decoration: none;
}

.profile-btn:hover {
  background: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.search-box {
  position: absolute;
  top: 75px;
  right: 20px;
  background: white;
  padding: 8px 14px;
  border-radius: 30px;
  display: flex;
  gap: 10px;
  width: 300px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-box input {
  flex: 1;
  outline: none;
  border: none;
  color: #012c60;
}

.search-box button {
  background: #014f8c;
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

.mobile-menu {
  background: #012c60;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  color: white;
  padding: 8px 0;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ===================== SECOND ROW ===================== */
.second-row {
  background: #012c60;
  text-align: center;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.second-row::-webkit-scrollbar {
  display: none;
}

.scroll-x {
  display: flex;
  gap: 20px;
  padding: 6px;
}

.scroll-x a {
  color: white;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.scroll-x a:hover {
  color: #ffdf85;
  text-decoration: underline;
}

/* ===================== LOCATION ROW ===================== */
.location-row {
  background: linear-gradient(to right, #e2ae3f, #f4c36f);
  padding: 5px 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
}

.location-row::-webkit-scrollbar {
  display: none;
}

.location-row .loc-btn {
  display: inline-block;
  background: #fff7dc;
  color: #012c70;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  flex-shrink: 0;
}

.location-row .loc-btn:hover {
  background: #ffe3a3;
  color: #014f8c;
}

/* ===================== FLIPPING BANNER ===================== */
.flip-banner {
  background: linear-gradient(to right, #e2ae3f, #f4c36f);
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#flipText {
  font-size: 13px;
  font-weight: bold;
  color: #012c60;
  white-space: nowrap;
  text-align: center;
  padding: 0 10px;
}

/* 🟢 ===================== YELLOW SCROLL HIDE ANIMATION ===================== */
.yellow-wrapper {
  transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
  max-height: 100px; /* Big enough to fit both rows */
  overflow: hidden;
  opacity: 1;
}

.yellow-wrapper.hidden-sub {
  max-height: 0;
  opacity: 0;
  pointer-events: none; /* Prevents invisible clicks */
}

/* ===================== HEADER RESPONSIVE ===================== */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-only { display: flex; }
  .lbl { display: none; }
  .scroll-x { justify-content: flex-start; }
  .scroll-x a { font-size: 13px; padding: 0 6px; }
  .location-row { justify-content: flex-start; padding: 4px 8px; }
  .location-row .loc-btn { font-size: 11px; padding: 2px 6px; }
}

@media (min-width: 769px) {
  .scroll-x { justify-content: center; }
  .location-row { justify-content: center; flex-wrap: wrap; }
}

/* ===================== 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;
  width: 140px;
  height: auto;
  margin: 0 auto;
  font-weight: bold;
  margin-top: 40px;
}

.footer-logo img {
  width: 240%;
  height: auto;
  margin-top: -300px !important;
  margin-left: -80px;
}

.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: 100%;
  padding: 10px 0;
  text-align: center;
  box-sizing: border-box;
  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;
  }
}