/* style reset */
* {
  margin: 0;
  padding: 0;
  /* css3 box model */
  box-sizing: border-box;
}

em,
i {
  font-style: normal
}

li {
  list-style: none;
}

img {
  border: 0;
  vertical-align: middle;
}

button {
  cursor: pointer;
}

a {
  color: #666;
  text-decoration: none;
}

button:hover,
a:hover {
  filter: brightness(120%);
}

::-webkit-scrollbar {
  display: none;
}

button,
input,
textarea {
  outline: none;
  border: 0;
}

textarea {
  resize: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2vw;
}

h3 {
  margin-bottom: 1.4vw;
}

h4,
h5 {
  font-weight: 500;
}

/* button */
.btn-normal {
  padding: 1vw 4vw;
  font-size: 1.2vw;
  border: none;
}

.btn-small {
  padding: 8px 20px;
  font-size: 1vw;
  border: none;
  border-radius: 5px;
}

.btn-green {
  background-color: #5b9a8b;
  color: #fff;
}

.btn-yellow {
  background-color: #f7e987;
  color: #5b9a8b;
}

.btn-gray {
  background-color: #eee;
}

/* main */
.main-w {
  width: 90%;
  margin: 0 auto;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* header section*/
header {
  background-color: #5b9a8b;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4vw;
  height: 8vw;
}

.logo a {
  display: block;
  width: 10vw;
  height: 6vw;
  background: url(../images/logo-header.png) no-repeat left/contain;
  font-size: 0;
}

/* dropdown part */
.dropdown {
  position: relative;
  display: inline-block;
}

.drop-content {
  display: none;
  position: absolute;
  padding: 1vw 1.4vw;
  background-color: #00000050;
  z-index: 1;
}

.user-info {
  white-space: nowrap;
  text-align: center;
  line-height: 2vw;
}

.nav-items {
  align-self: flex-end;
  margin-bottom: 2vw;
}

.nav-items .drop-content a {
  text-align: center;
  display: block;
  margin-top: 1.4vw;
  font-size: 1.2vw;
  font-weight: 500;
  color: #fff;
}

.dropdown:hover .drop-content {
  display: block;
}


/* nav items */

.nav-items>ul>li {
  float: left;
}

.nav-items ul li a {
  font-size: 1.2vw;
  padding: 0 1.2vw;
  color: #fff;
}

.nav-items ul li a:hover {
  color: #f7e987;
}

.nav-right {
  display: flex;
  gap: 1.4vw;
  margin-left: auto;
}

.nav-right .login {
  font-size: 1.2vw;
}

.nav-right a i {
  font-size: 1.2vw;
  color: #eee;
}

.account-info,
.login {
  font-size: 1.4vw;
  color: #fff;
}

.account-info a {
  font-size: 1vw;
  color: #eee;

}

/* page number */
.pages {
  cursor: pointer;
  display: flex;
  justify-content: center;
  gap: 2vw;
  margin-top: 3vw;
}

.pages span {
  padding: 2px 6px;
  color: #5b9a8b;
}

.page-active {
  background-color: #5b9a8b;
}

.pages .page-active {
  color: #fff;
}

/* banner image */
.banner img {
  width: 100%;
}

/* bottom image */
.bottom-img img {
  width: 100%;
}

/* footer section */
footer {
  height: 14vw;
  background-color: #f7e987;
}

.footer {
  padding-top: 2vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #5b9a8b;
}

.copyright {
  width: 12vw;
  background: url(../images/logo.png) no-repeat top/80%;
  text-align: center;
}

.copyright p {
  margin-top: 7vw;
}

.terms {
  display: flex;
  flex-direction: column;
  gap: 1vw;

}

.terms a {
  color: #5b9a8b;
}

.sub-form {
  margin-top: 2vw;
}

.sub-form input {
  width: 70%;
  padding: 0.8vw 2vw;
  border: 1px solid #5b9a8b;
  border-radius: 4px;
  background-color: transparent;
  margin-right: 8px;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.email a,
.media a i {
  color: #5b9a8b;
}

.media {
  width: 40%;
  display: flex;
  justify-content: space-between;
  margin-left: auto;
}

/* check user login */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.confirm-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4vw;
  font-size: 1.4vw;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.x-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  font-size: 1.2vw;
  background-color: #ccc;
  color: #333;
  border-radius: 50%;
}


.confirm-box .confirm-btn {
  margin-top: 3vw;
  display: flex;
  justify-content: center;
  gap: 2vw;
}




/* cart quantity number */
#cart_icon {
  position: relative;
  display: inline-block;
}

#cart_icon span {
  display: none;
  position: absolute;
  top: -16px;
  left: 45%;
  width: 1.6vw;
  height: 1.6vw;
  border-radius: 50%;
  background-color: red;
  color: #fff;
  font-size: 1vw;
  line-height: 1.6vw;
  text-align: center;
  margin: 0;
}



/* address form page */

.address_form {
  margin-top: 4vw;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}


/* responsive */
@media only screen and (max-width:770px) {
  .sub-form input {
    font-size: 1vw;
    width: 70%;
    margin-right: 8px;
  }
}