/* ================================== Home Page CSS ==================================*/
.plainDiv {
  background: linear-gradient(45deg, #ecdfbb 40%, #faf1d4 70%);
  width: 85%;
  height: 55%;
  border-bottom-right-radius: 20px;
  position: absolute;
}

.store_name_container {
  width: 85%;
  height: 55%;
  display: flex;
  flex-direction: column;
  position: relative; /* or absolute / fixed if needed */
  z-index: 9;
}
.store-name {
  color: var(--secondaryBlue-color);
  font-size: 40px;
  margin-bottom: 15px;
  margin-top: 14%; /* higher value = more front */
  margin-left: 10%;
}

.store-phrase {
  color: var(--secondaryBrown-color);
  font-size: 20px;
  margin-top: 5px;
  margin-left: 10%;
  width: 60%;
}

.btn-container {
  display: flex;
  position: absolute;
  bottom: -15px;
  left: 10%;
  gap: 12px;
}

.main-btn {
  font-size: 16px;
  transition: transform 0.3s ease; /* smooth animation */
}

.login-btn {
  color: rgba(86, 104, 54, 0.9);
  background-color: var(--secondaryWhite-color);
  padding-right: 15px;
  padding-left: 15px;
  outline-color: rgba(86, 104, 54, 0.5);
  outline-width: 1px;
  outline-style: solid;
}

.login-btn:hover {
  color: var(--secondaryBrown-color);
  background-color: #f3f2f0;
}

.main-img {
  position: absolute;
  right: 100px;
  bottom: 50px;
  width: 18%;
  height: auto;
}

.card-container {
  width: 70%;
  height: 30%;
  margin-top: 5%;
  display: flex;
  justify-content: space-around;
}

.card {
  width: 20%;
  height: 185px;
  background: linear-gradient(45deg, #ecdfbb 40%, #faf1d4 60%);
  border-radius: 10px;
  position: relative;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
  border: 3px solid var(--secondaryGreen-color);
}

.card:hover {
  transform: translateY(-8px);
}

.card .img {
  position: absolute;
  top: -30px;
  width: 75%;
}

/* ================================== Responsive Media Queries ================================== */

@media (max-width: 1350px) {
  .card-container {
    width: 95%;
    height: 215px;
  }

  .card .img {
    position: absolute;
    top: -30px;
    width: 60%;
  }

  .main-img {
    display: none; /* Hides */
  }
}

/* --- TABLETS & SMALL LAPTOPS (Max width: 1024px) --- */
@media (max-width: 1024px) {
  .card-container {
    height: 26%;
  }

  .store-name {
    font-size: 32px;
    margin-top: 13%;
  }

  .store-phrase {
    width: 80%;
    font-size: 18px;
  }

  .card {
    width: 26%;
  }

  .card .img {
    position: absolute;
    top: -35px;
    width: 60%;
  }

  .plainDiv {
    width: 100%; /* Take up full width on mobile */
    border-bottom-left-radius: 20px; /* Match the right side curve */
    height: 50%;
  }
}

@media (max-width: 768px) {
  .plainDiv {
    width: 100%; /* Take up full width on mobile */
    border-bottom-left-radius: 20px; /* Match the right side curve */
    height: 45%;
  }

  .card {
    width: 45%;
    height: 130px;
  }

  .card-container {
    gap: 60px; /* Add breathing room between stacked cards */
    margin: auto;
    margin-top: 10%;
    padding-bottom: 50px;
    width: 80%;
    height: 10%;
  }
  .card .img {
    position: absolute;
    top: -30px;
    width: 80%;
  }
}

/* --- MOBILE PHONES (Max width: 568px) --- */
@media (max-width: 568px) {
  .plainDiv {
    width: 100%; /* Take up full width on mobile */
    border-bottom-left-radius: 20px; /* Match the right side curve */
    height: 45%;
  }

  .store_name_container {
    width: 100%;
  }

  .store-name {
    font-size: 28px;
    margin-left: 5%;
    margin-top: 22%; /* Push text down below the navbar */
  }

  .store-phrase {
    width: 90%;
    margin-left: 5%;
    font-size: 16px;
  }

  .btn-container {
    left: 5%;
    bottom: -0px; /* Push buttons down to avoid text overlap */
  }

  .main-img {
    display: none; /* Hides the large overlapping image on tiny screens */
  }

  .card-container {
    flex-direction: column; /* Stack the A, B, C cards vertically */
    align-items: center;
    height: auto;
    margin: auto;
    margin-top: 20%;
    padding-bottom: 40px;
  }

  .card {
    width: 70%;
    height: 160px;
  }

  .card .img {
    position: absolute;
    top: -30px;
    width: 60%;
  }

  .btn-container {
    display: flex;
    flex-direction: column;
    position: absolute;
  }
}
