* {
  box-sizing: border-box;
}

body {
  background-color: #D6EFF6;
  width: 100%;
  margin: 0;
  padding-left: 0px;
  font-family: Arial, sans-serif;
}

h1 {
  width: 100%;
  text-align: center;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif", sans-serif;
}
h5 { font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, "serif"; }

/* Keep nav default lightweight; do NOT make it full-screen */
#nav { align-content: left; margin: 0; padding: 0; }

/* ===== Top bar (match add_product.php spacing) ===== */
#topbar {
  background-image: url("website_images/top_div2.png");
  background-size: cover;
  background-repeat: no-repeat;
  backface-visibility: visible;
  font-family: Arial, sans-serif;
  font-weight: bold;
  position: fixed;
  width: 100%;
  height: 195px;           /* desktop header height */
  padding: 0;
  margin-left: 0px;
  z-index: 1000;
}

#logo {
  position: relative;
  z-index: 1002;
  padding-top: 10px;       /* matches add_product.php */
  padding-left: 20px;      /* ensures left padding on mobile too */
  width: 30%;
}
#logo img {
  height: 80px;            /* desktop logo size from add_product.php */
  width: auto;
  display: block;
  object-fit: contain;
}

/* ===== Language Switchers ===== */
/* Desktop/Tablet (top-right) */
.lang-switch {
  position: absolute;
  top: 18px;               /* match prior spacing */
  right: 30px;
  z-index: 1002;
  font-size: 14px;
  line-height: 1;
}
.lang-switch a {
  color: #4b56f0;
  text-decoration: none;
  padding: 4px 6px;
}
.lang-switch a:hover { text-decoration: underline; }

/* Mobile (inside hamburger overlay) */
.lang-switch-mobile { display: none; }

/* ===== Desktop Menu ===== */
.menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 30px;
  top: 70px;               /* this keeps nav ~10px lower than logo top */
  z-index: 1000;
}
.menu li a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 17px;
  color: #4b56f0;
}

/* ===== Hamburger (hidden on desktop; spacing matches add_product.php) ===== */
.hamburger {
  font-size: 36px;         /* same size as add_product.php */
  color: #4b56f0;
  cursor: pointer;
  display: none;           /* hidden on desktop */
  position: absolute;
  top: 26px;               /* matches .nav-row padding-top:26px feel */
  right: 16px;
  z-index: 1101;           /* above topbar */
}

#menu-toggle { display: none; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  /* shorter header like add_product.php */
  #topbar { height: 170px; }

  /* keep mini logo + left padding */
  #logo { 
    padding-top: 8px;
    padding-left: 20px;
  }
  #logo img {
    content: url("website_images/logo_winful2.png");
    height: 95px;
    width: auto;
  }

  /* Ensure the desktop language switch never shows on mobile */
  .lang-switch { display: none !important; }

  /* Show mobile language switch inside overlay */
  .lang-switch-mobile {
    display: block;
    position: static;   /* FIX: keep inside overlay, not floating */
    text-align: center;
    padding: 0;
    margin: 0 0 8px 0;
  }
  .lang-switch-mobile a {
    color: #4b56f0;
    text-decoration: none;
    padding: 6px 4px;
    font-size: 18px;
  }

  /* hamburger placement */
  .hamburger {
    display: block;
    font-size: 36px;
    top: 20px;
    right: 18px;
    color: #4b56f0;
  }

  /* full-screen overlay menu — perfectly centered */
  .menu {
    display: none;
    flex-direction: column;
    justify-content: center;   /* vertical centering */
    align-items: center;       /* horizontal centering */
    gap: 16px;

    background-color: #ebfcfe;
    position: fixed;
    inset: 0;                  /* top:0; right:0; bottom:0; left:0 */
    width: 100vw;
    height: 100vh;
    z-index: 1100;

    /* remove any push-down */
    padding: 0;
    text-align: center;
    overflow-y: auto;
  }

  /* show overlay when checkbox is checked (HTML: input + label + ul.menu) */
  #menu-toggle:checked + .hamburger + .menu { display: flex; }

  .menu li { list-style: none; }
  .menu li a {
    padding: 14px 20px;
    font-size: 20px;
    border: none;
    color: #4b56f0;
    text-decoration: none;
  }
}

/* ===== The rest of your existing CSS ===== */
.carousel-container { padding-top: 130px; margin-left: -15px; height: 100%; }

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 200px;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { color: rgba(0, 247, 255, 0.66); }

.circles { margin-top: -25px; }

.dot {
  cursor: pointer;
  height: 15px; width: 15px;
  margin: 0 2px; background-color: #bbb; border-radius: 50%;
  display: inline-block; transition: background-color 0.6s ease;
}
.active, .dot:hover { background-color: #717171; }

.fade { animation-name: fade; animation-duration: 1.5s; }

#featured {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.f1 {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 30px; padding: 40px; box-sizing: border-box;
  max-width: 1200px; margin: 0 auto; flex-wrap: nowrap;
}
.f1img { width: 30%; height: auto; display: block; }
.f1text { text-align: center; margin-top: 10px; font-weight: bold; }

#eright {
  width: 100%; display: flex; gap: 10px; padding-left: 2%; padding-top: 70px;
}
#eleft a img { padding-top: 5px; padding-right: 18%; }
.h4 { margin-left: 2%; margin-top: 0px; }

.ender {
  background-image: url("website_images/end_div.png");
  background-size: cover; background-repeat: no-repeat; backface-visibility: visible;
}
.endinf {
  height: 100%; width: 50%; flex: 1; align-content: center; align-items: center; padding-top: 20px;
}
.wechat { margin-top: 5px; width: 30%; text-align: center; }
.wechat img { margin-top: 10px; width: 100px; height: auto; display: block; padding-bottom: 5%; }

#endinf { height: 100%; width: 30%; justify-content: center; align-content: center; }

.nobullets { list-style-type: none; padding: 0; margin: 0; }

@media (max-width: 768px) {
  #eright {
    flex-direction: column; align-items: center; padding-top: 70px; padding-left: 0; gap: 30px;
  }
  .endinf, #endinf {
    width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  .endinf { padding-top: 40px; }
  #endinf img { max-width: 100px; height: auto; margin-top: 10px; }
  .wechat { width: 100%; display: flex; justify-content: center; margin-top: 10px; }
  .wechat img { max-width: 100px; height: auto; display: block; }
}

/* ------ Dropdown for About Us (desktop) ------ */
.menu > li { position: relative; }
.menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #ebfcfe;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  z-index: 1200;
}
.menu .submenu li a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 16px;
  color: #4b56f0;
  text-decoration: none;
}
.menu .submenu li a:hover { text-decoration: underline; }
.menu > li.has-sub:hover > .submenu { display: block; }

/* ------ Mobile: show submenu inline under About Us ------ */
@media (max-width: 768px) {
  .menu .submenu {
    position: static;
    display: block;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: -6px 0 6px 0;
  }
  .menu .submenu li a { padding: 8px 10px; font-size: 18px; }
}

/* 2024 Winful Website coded by Sarah T. for inquiries email tam-s@live.ca */