
/* ===== Global Styles ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #F0F0F0;
}

main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

h2 {
  color: #C62828;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: clamp(20px, 4vw, 45px);
}


/* ===== Nav Bar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #002544;
  padding: 2.2em 50px;
  box-shadow: 0 2px 4px rgba(8, 42, 180, 0.1);
  position: sticky;
  top: 0; 
  z-index: 999;
  flex-wrap: wrap;
}

.nav-title {
  font-family:'Trebuchet MS', sans-serif; 
  font-size: clamp(24px, 5vw, 40px);
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  line-height: 1.2;
}

/* ===== Nav Links & button ===== */
.nav-content {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-content > * {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-content a,
.dropdown-button {
  position: relative;
  color: white;
  font-size: clamp(10px, 2vw, 18px);
  font-weight: bold;
  background: none;
  border: none;
  text-decoration: none;
  font-family: 'Trebuchet', sans-serif;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.nav-content a::after,
.dropdown-button::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right,#88ccf6, #fff);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-content a:hover,
.dropdown-button:hover {
  color: #88ccf6;
  text-shadow: 0 0 5px rgba(239, 191, 4, 0.5);
}

.nav-content a:hover::after,
.dropdown-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.dropdown-button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ===== Dropdown Menu ===== */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: #f4f4f4;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #002544;
}

.dropdown-content a:hover {
  background-color: #dedcdc;
}

.show .dropdown-content {
  display: block;
}


  /* ===== Welcome Banner ===== */
  .welcome {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background-image: url("mall.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 35.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.75em 1.25em 0;
    margin-bottom: 0;
  }

  .welcome h2 {
    font-size: 3.3em;
    background: linear-gradient(to right, #8fd0ff, #bfe6ff, #e6f7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.3em;
  }

  .welcome p {
    font-size: 1.2em;
    color: #ffffff;
    margin-top: 0;
  }
  
  /* ===== Search Bar ===== */
  .search-container {
    border-radius: 0.625em;
    background-color: white;
    margin: 1.875em auto 0;
    width: 90%;
    max-width: 25em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625em 1.25em;
  }

  .search-container p {
    font-size: 1em;
    color: rgb(173, 170, 170);
    margin: 0;
  }

  .search-button {
    background: none;
    border: none;
    cursor: pointer;
  }

  .search-button img {
    height: 1.875em;
    border-radius: 1.25em;
  }

  /* ===== Category button ===== */
  .category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto 20px;
    padding: 10px 20px;
    max-width: 1000px;
  }
  
  .category-btn-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: #002544;
    color: white;
    border-radius: 12px;
    padding: 20px;
    width: 150px;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .category-btn-box:hover {
    background-color: #014c8c;
    transform: translateY(-5px);
  }
  
  .category-btn-box img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .category-btn-box span {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
  }
  
  @media (max-width: 768px) {
    .category-buttons {
      flex-wrap: nowrap;
      overflow-x: auto;
      justify-content: flex-start;
      padding: 0 1em;
      gap: 0.5em;
      scroll-snap-type: x mandatory;
    }
  
    .category-btn-box {
      flex: 0 0 auto;
      width: 6.5em;
      padding: 0.6em;
      scroll-snap-align: start;
    }
  
    .category-btn-box img {
      width: 28px;
      height: 28px;
      margin-bottom: 0.3em;
    }
  
    .category-btn-box span {
      font-size: 0.75em;
      text-align: center;
    }
  }

  @media (max-width: 480px) {
    .category-buttons {
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.4em;
      padding: 0 0.5em;
    }
  
    .category-btn-box {
      width: 4.2em;
      padding: 0.4em;
      border-radius: 8px;
    }
  
    .category-btn-box img {
      width: 22px;
      height: 22px;
      margin-bottom: 0.3em;
    }
  
    .category-btn-box span {
      font-size: 0.65em;
      text-align: center;
    }
  }

  
  /* ===== Recommended Section ===== */
  .recommend-section {
    width: 100%;
    padding: 0 1.25em;
    text-align: center;
    background-color: rgb(237, 237, 237);
    margin: 0 auto 4em;
  }

  .recommend-section hr {
    margin: 0.5em auto;
    border: none;
    border-top: 2px solid #ccc;
    width: 80%;
  }

  .section-title {
    font-size: 2.1875em;
    color: #002544;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
  }

  .recommend-shop {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25em;
    justify-content: center;
    margin: 1em auto;
    align-items: stretch;
    max-width: 75em;
  }

  .shop-card {
    background: white;
    padding: 1em;
    border-radius: 0.5em;
    box-shadow: 0 0.25em 0.625em rgba(0, 0, 0, 0.05);
    border-left: 0.375em solid #4b0082;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .shop-card:hover {
    transform: translateY(-0.1875em);
  }

  .shop-card a {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .shop-name {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 0.3em;
  }

  .stars {
    color: #ffa500;
    margin-bottom: 0.3em;
  }

  .location {
    font-style: italic;
    color: #555;
  }

  .description {
    margin-top: 0.5em;
    color: #333;
  }

  .shop-img {
    width: 100%;
    height: 11.25em;
    object-fit: cover;
    border-radius: 0.375em;
    margin-bottom: 0.625em;
    object-fit: contain;
  }

  .recommend-divider {
    border: none;
    border-top: 2px solid #ccc;  
    width: 75%;               
    margin: 2em auto;            
  }

  .recommend-shop {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-img {
    height: 6.5em;
    object-fit: contain;
  }

  /* ===== Footer ===== */
  footer {
    text-align: center;
    padding: 20px;
    background-color: #002544;
    color: white;
    margin-top: 40px;
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    place-items: center;
    background-color:#002544;
    padding: 20px;
    }
    
    
  .footer-section h3 {
    margin-bottom: 20px;
    color:white
  }
    
  .footer-section p {
    margin: 5px 0px;
    color:#bfe6ff;
  }
    
  .footer-bottom {
    text-align: center;
    padding: 10px;
    padding-bottom: 20px;
    background-color: #002544;
    font-size: 14px;
    color:white;
  }

  .footer-section a {   
    text-decoration: none;
    color: #bfe6ff;
  }

  /* ===== Responsive Adjustment ===== */
  /* ===== Desktop ===== */
  @media (min-width: 1024px) {
    .welcome {
      height: 45em;
    }

    .footer-content {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      text-align: left;
      gap: 2em;
      padding: 3em 4em;
    }

    .footer-section {
      width: 100%;
      max-width: none;
    }

    .footer-section h3,
    .footer-section p,
    .footer-section a {
      text-align: center;
    }
  }
  
  /* ===== Tablet ===== */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;
      align-items: center;
      padding: 1em 20px;
    }
  
    .nav-title {
      text-align: center;
      width: 100%;
    }
  
    .nav-content {
      justify-content: center;
      width: 100%;
      margin-top: 0.5em;
      text-align: center;
    }

    .welcome h2 {
      font-size: 2em;
    }

    .welcome p {
      font-size: 1em;
    }

    .section-title {
      font-size: 1.875em;
    }

    .shop-name {
      font-size: 1.125em;
    }

    .search-container {
      width: 90%;
    }

    .recommend-shop {
      grid-template-columns: 1fr;
    }
  }

  /* ===== Phone ===== */
  @media (max-width: 480px) {
    .welcome {
      height: 20em; 
      padding-top: 2em;
      padding-bottom: 1em;
    }

    .welcome h2 {
      font-size: 1.8em;
    }

    .welcome p {
      font-size: 0.95em;
    }

    .search-container {
      max-width: 16em;
      padding: 0.2em 1.0em;
    }
    
    .search-container p {
      font-size: 1em;
    }
    
    .search-button img {
      height: 1.5em;
    }
    
    .recommend-shop {
      grid-template-columns: repeat(2, 1fr);
      gap: 1em;
    }

    .shop-name {
      font-size: 0.85em;
    }


    .stars {
      margin-bottom: 0.2em;
    }
    
    .location {
      font-size: 0.9em;
    }
    
    .description {
      font-size: 0.7em;
    }


    .section-title {
      font-size: 1.25em;
    }

    .shop-img {
      width: 100%;
      height: 2.5em;
      object-fit: cover;
      border-radius: 0.375em;
      margin-bottom: 0.625em;
      object-fit: contain;
    }

  }

/* ========================= Login Page Style ========================== */

/* ===== Login Style ===== */
.loginpage-body {
  font-family: 'Trebuchet MS', sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("mall2.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.loginpage-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* ===== Login form container ===== */
.login-form {
  background: rgba(64, 64, 64, 0.15);
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.3);
  padding: 30px 20px;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  backdrop-filter: blur(25px);
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}

/* ==== Login Title ==== */
.login-form h1.login {
  font-size: 60px;
  margin-bottom: 40px;
}

/* ===== Input Container ===== */
.input-box {
  position: relative;
  margin: 20px 0;
  width: 100%;
}

/* === Icon === */
.input-box .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  filter: brightness(0) invert(1);
}

.input-box .icon img {
  height: 20px;
  width: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ==== Input Fields ==== */
.input-box input {
  width: 100%;
  border-radius: 99px;
  padding: 10px 10px 10px 45px;
  height: 45px;
  font-size: 15px;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  outline: none;
}

.input-box input::placeholder {
  color: rgb(155, 155, 155);
  opacity: 1;
}

/* ==== Remember Me Section ==== */
.remember-forgot-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  gap: 8px;
  color: white;
}

.remember-forgot-box input[type="checkbox"] {
  cursor: pointer;
  accent-color: white;
}

/* ==== Submit Button ==== */
.login-button input {
  font-size: 16px;
  border-radius: 99px;
  border: none;
  background-color: #002544;
  box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.15);
  width: 60%;
  max-width: 200px;
  margin: 20px auto;
  padding: 10px 0;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* ==== Links ==== */
.forget-password {
  margin: 20px 0;
}

.forget-password a,
.register a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.register {
  margin-top: 15px;
  color: white;
}

/* ========================= Register form Page Style ========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Register Style ===== */
.registerpage-body {
  font-family: 'Trebuchet MS', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25em;
  background-image: url("mall2.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.registerpage-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* ===== Register form ===== */
.register-form {
  background: rgba(64, 64, 64, 0.15);
  color: white;
  border: 0.1875em solid rgba(255, 255, 255, 0.3);
  border-radius: 1em;
  backdrop-filter: blur(1.5625em);
  box-shadow: 0 0 1.25em rgba(0, 0, 0, 0.15);
  padding: 2.2em 1.5em;
  width: 100%;
  max-width: 27em; 
}

/* ===== Register header ===== */
.register-form h1 {
  font-size: 2em;
  margin-bottom: 1.5em;
  text-align: center;
}

.name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625em;
  margin-bottom: 1.25em;
}

.name-row .input-box2 {
  flex: 1 1 calc(50% - 0.625em);
  max-width: calc(50% - 0.625em);
}

/* ===== Input box fields ===== */
.input-box2 {
  position: relative;
  margin: 1em auto;
  width: 90%;
  max-width: 21.25em; 
  margin-left: 1.25em;
}

.input-box2 input {
  width: 100%;
  height: 2.625em;
  border-radius: 99em;
  padding-left: 2.8125em;
  font-size: 1em;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  outline: none;
}

.input-box2 input::placeholder {
  color: rgb(170, 170, 170);
}

/* ===== Icon ===== */
.input-box2 .icon {
  position: absolute;
  left: 0.9375em;
  top: 50%;
  transform: translateY(-50%);
  height: 1.25em;
  width: 1.25em;
}

.icon img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

/* ===== Calendar Pick ===== */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1);
  cursor: pointer;
  padding-right: 1.25em;
}
input[type="date"] {
  color: rgb(180, 180, 180);
  height: 2.625em;
  line-height: normal;
  padding-right: 1.25em;
  appearance: none;
  -webkit-appearance: none;
}

/* ===== Checkbox for submit ===== */
.accept {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.875em;
  margin: 1.25em 0;
}
.accept input {
  margin-right: 0.5em;
  cursor: pointer;
  accent-color: white;
}

/* ===== Submit button ===== */
.signup-button {
  display: flex;
  justify-content: center;
  margin-top: 1.25em;
}
.signup-button input {
  width: 12.5em;
  padding: 0.625em;
  border: none;
  border-radius: 99em;
  background-color: #002544;
  color: white;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 0 0.625em rgba(0, 0, 0, 0.2);
}

/* ========================= Complete Page Style ========================== */

/* ===== Complete Style ===== */
.completionpage-body {
  font-family: 'Trebuchet MS', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25em;
  background-image: url("mall2.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.completionpage-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: -1;
}

/* ===== Completion Form style ===== */
.completion-form {
  background: rgba(64, 64, 64, 0.15);
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 1em;
  backdrop-filter: blur(25px);
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.15);
  padding: 2.5em 2em;
  width: 100%;
  max-width: 27em;
  text-align: center;
}

/* ===== Completion Form Header ===== */
.completion-form h1 {
  font-size: 2em;
  margin-bottom: 1.5em;
}


/* ========================= Get Email Style ========================== */

/* ===== Get email sign up button ===== */
.signup-button {
  display: flex;
  justify-content: center;
  margin-top: 1.25em;
}

/* ===== Get email input ===== */
.signup-button input {
  width: 12.5em;
  padding: 0.625em;
  border: none;
  border-radius: 99em;
  background-color: #002544;
  color: white;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ===== Get email body style ===== */
.resetpage-body {
  font-family: 'Trebuchet MS', sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("mall2.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.resetpage-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* ===== Get email form ===== */
.reset-form {
  background: rgba(64, 64, 64, 0.15);
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.3);
  padding: 30px 20px;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  backdrop-filter: blur(25px);
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}

/* ===== Get email title header ===== */
.reset-title {
  font-size: 60px;
  margin-bottom: 20px;
}

/* ===== Get email subtitle ===== */
.reset-subtitle {
  font-size: 1.1em;
  margin-bottom: 25px;
  font-weight: normal;
}

/* ========================= Verification Page Style ========================== */

/* ===== Verification code input ===== */
.code-inputs {
  display: flex;
  justify-content: center;
  gap: 0.8em;
  margin: 1.5em 0;
}

.code-inputs input {
  width: 2.8em;
  height: 3em;
  text-align: center;
  font-size: 1.5em;
  color: white;
  border-radius: 0.75em;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  outline: none;
}

.code-inputs input:focus {
  border-color: #00aaff;
  background-color: rgba(255, 255, 255, 0.2);
}

/* ===== Responsive adjustments ===== */

/* ===== Phone ===== */
@media (max-width: 480px) {
  .code-inputs input {
    width: 2.2em;
    height: 2.5em;
    font-size: 1.2em;
  }
}

/* ===== Back to top ===== */
#backToTop {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  font-size: 22px;
  border: none;
  outline: none;
  background-color: #014c8c;
  color: #bfe6ff;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#backToTop:hover {
  background-color: #a7dcfd;
  transform: scale(1.2);
}
































































































