:root {
  --main-color: #0e6d00;
  --title-color: #fff;
  --title-fs: 16px;
  --space: 4px;
  --font: 'Montserrat';
  --ip-height: 40px;
  --ip-color: #444;
  --ip-color-focus: #000;
  --ip-placeholder: #444;
  --ip-stroke: #333;
  --ip-stroke-focus: #0e6d00;
  --ip-radius: 4px;
  --ip-fs: 15px;
  --cp-color: #444;
  --cp-fs: 12px;
  --but-fs: 16px;
  --but-radius: 20px;
  --er-fs: 12px;
  --er-color:#e42126;
  --sl-border: #ccc;
  --card-border: #ccc;
  --tab-fs: 14px;
  --tab-title-sp:20px;
  --na-fs: 16px;
  --swiper-pagination-bullet-inactive-color:#0089ff;
  --swiper-pagination-bullet-width: 12px;
  --swiper-pagination-bullet-height: 12px;
}

.section {
  width: 100%;
  height: auto;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.jus-start {
  justify-content: flex-start;
}

.jus-center {
  justify-content: center;
}

.jus-end {
  justify-content: flex-end;
}

.jus-between {
  justify-content: space-between;
}

.ali-start {
  align-items: flex-start;
}

.ali-center {
  align-items: center;
}

.ali-end {
  align-items: flex-end;
}

.ml {
  margin-left: var(--ml);
}
.mt {
  margin-top: var(--mt);
}
.ml {
  margin-right: var(--mr);
}
.ml {
  margin-bottom: var(--mb);
}
.pl {
  padding-left: var(--pl);
}
.pt {
  padding-top: var(--pt);
}
.pl {
  padding-right: var(--pr);
}
.pl {
  padding-bottom: var(--pb);
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}


.header {
  position: fixed;
  width: 100%;
  height: auto;
  left: 0;
  top:0;
  background-color: #fff;
  z-index: 10;
}

.header__container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}
.logo-top {
  width: 70px;
  line-height: 0;
}
.logo-top img {
  display: block;
  width: 100%;
  height: auto;
}
.menu {
  position: relative;
  margin-left: auto;
}
.menu-but {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1;
}
.menu-but img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.nav {
  position: absolute;
  right: 0;
  top:0;
  width: 220px;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
  padding: 40px 0;
}
.nav__menu {
  width: 100%;
  background-color: #fff;
  -webkit-border-radius: 15px;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.nav__menu--item {
  width: 100%;
}
.nav__menu--item:not(:last-child) {
  margin-bottom:calc(var(--space) * 4);
}
.nav__menu--item a {
  font-family: var(--font);
  color: var(--ip-color);
  font-size: var(--na-fs);
  font-weight: 700;
  text-decoration: none;
  -webkit-transition: color 0.3s ease-in-out;
  transition: color 0.3s ease-in-out;
}
.nav__menu--item a:hover {
  color: var(--main-color);
}

.form-section,
.card-section {
  justify-content: center;
}

.form-section,
.card-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
}

.box-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.account-box,
.register-box,
.tab-box,
.header__container {
  width: 90%;
}
.tab-header,
.tab-body {
  width: 100%;
}
.tab-header {
  gap: 5px;
}
form {
  width: 100%;
  height: auto;
  display: block;
  -webkit-border-radius: 20px;
  border-radius: 20px;
}

.account-box form,
.register-box form {
  border: 2px solid var(--main-color);
  padding-bottom: 20px;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  width: 100%;
  height: auto;
}

.form-title {
  background-color: var(--main-color);
  color: var(--title-color);
  font-size: var(--title-fs);
  padding: 15px;
  font-weight: 900;
  margin-bottom: 20px;
  -webkit-border-radius: 16px 16px 0 0;
  border-radius:  16px 16px 0 0;
}

.account-box .form__group,
.register-box .form__group {
  padding: 0 15px
}
 
.form__col {
  position: relative;
}

.tab-item {
  font-size: var(--tab-fs);
  font-weight: 500;
  border: 1px solid var(--card-border);
  border-bottom: none;
  padding: 10px;
  background-color: #fff;
  -webkit-border-radius: 4px 4px 0 0;
  border-radius: 4px 4px 0 0;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.tab-item.current {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
  margin-bottom: -1px;
}

.tab-body {
  position: relative;
  border-top: 1px solid var(--main-color);
}
.body-item {
  width: 100%;
  padding: 30px 0;
  background-color: #fff;
}
.body-item:not(.current) {
  position: absolute;
  left: 0;
  top:0;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}
.body-item.current {
  position: relative;
  pointer-events: all;
  opacity: 1;
}
.card-list {
  width: 100%;
}
.card {
  display: block;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
}
.tab-title {
  font-size: var(--tab-title-sp);
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: calc((var(--space) * 3));
}
.card-header {
  display: flex;
  background-color: var(--main-color);
  color: #fff;
  padding: 10px;
  align-items: center;
  font-weight: 500;
}
.card-info {
  display: flex;
  flex-grow: 1;
}
.card-phone {
  position: relative;
}
.card-phone::before {
  content: '-';
  padding: 0 10px;
}
.card-check {
  display: block;
  width: 20px;
  height: 20px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  border: 1px solid #fff;
  cursor: pointer;
}
.card-check input[type="checkbox"] {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.card-check input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #fff;
  -webkit-transform: scale(60%);
  transform: scale(60%);
  -webkit-border-radius: 50%;
  border-radius: 50%;
  opacity: 0;
}
.card-check input[type="checkbox"]:checked::before {
  opacity: 1;
}
.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 10px;
  text-align: center;
}
.card-detail {
  flex-grow: 1;
  padding: 40px 0;
}
.card-detail p:not(:last-child) {
  margin-bottom: 10px;
}
.card-action {
  padding-top: 10px;
}
.card-action .but {
  width: 60%;
  max-width: 100px;
  margin: 0 auto;
  padding: 10px 15px;
}
.address,
.store,
.cash {
  line-height: 1.4;
}
.address.sold,
.store.sold,
.cash.sold {
  position: relative;
  display: flex;
  justify-content: center;
}
.address.sold::before,
.store.sold::before,
.cash.sold::before  {
  content: '';
  flex: 0 0 20px;
  height: 20px;
  display: block;
  margin-right: 5px;
  position: relative;
  top:-2px;
}
.address.sold::before {
  background: url(../images/location.png) no-repeat center top;
  background-size: 100% auto;
}
.store.sold::before {
  background: url(../images/cart.png) no-repeat center top;
  background-size: 100% auto;
}
.cash.sold::before {
  background: url(../images/cash.png) no-repeat center top;
  background-size: 100% auto;
}
.pagination {
  display: flex;
  width: 100%;
  justify-content: center;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
}

.pagination a.active {
  background-color: dodgerblue;
  color: white;
}

.pagination a:hover:not(.active) {background-color: #ddd;}

.adv-box,
.advSlider,
.item-slide {
  width: 100%;
  height: auto;
}
.item-slide {
  position: relative;
}
.item-pic {
  position: relative;
  display: block;
  line-height: 0;
}
.item-pic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 34, 34, 0.15);
}

.item-pic img {
  width: 100%;
  height: auto;
}
.item-slide h2 {
  position: absolute;
  left: 0;
  bottom: 0;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}
.swiper-pagination {
  padding-top: 20px;
  position: relative !important;
}
.swiper-pagination-bullet {
  -webkit-transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  -webkit-transform: scale(0.6);
  transform: scale(0.6);
}
.swiper-pagination-bullet-active {
  -webkit-transform: scale(1);
  transform: scale(1);
}
@media only screen and (min-width: 860px) {
  .header__container {
    max-width: 1080px;
  }
  .box-section {
    padding-top: 80px;
  }
  .menu:hover .nav {
    opacity: 1;
    visibility: visible;
  }
  .gap {
    gap: var(--gap);
  }

  .form__col {
    width: 50%;
  }
  .logo {
    width: 140px;
    margin-bottom: calc(var(--space)*6);
  }

  .account-box {
    max-width: 600px;
    padding: 20px 0;
  }

  .register-box,
  .tab-box,
  .adv-box  {
    max-width: 1080px;
    padding: 20px 0;
  }
  .adv-box {
    margin-bottom: 40px;
  }
  .body-item {
    height: 100%;
  }
  .card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
  }
  .item-slide h2 {
    font-size: 3.125vw;
    padding: 0 5% 40px 5%;
    text-shadow: #222 1px 1px, #222 1px 1px, #222 6px 1px;
  }
  
}

@media only screen and (max-width: 860px) {
  .header__container {
    width: 100%;
    padding: 10px 5%;
  }
  .logo-top {
    width: 60px;
  }
  .box-section {
    padding: 80px 0;
  }
  .form-section {
    padding: 30px 0;
  }
  .account-box {
    max-width: 100%;
    padding: 30px 0;
  }
  .tab-box,
  .register-box {
    max-width: 100%;
  }
  .account-box form,
  .register-box form {
    -webkit-border-radius: 10px;
    border-radius: 10px;
  }
  .form-title {
    -webkit-border-radius: 6px 6px 0 0;
    border-radius: 6px 6px 0 0;
  }
  .logo {
    width: 140px;
    margin-bottom: calc(var(--space)*6);
  }
  .md-flex-wrap {
    flex-wrap: wrap;
  }
  .form__col {
    width: 100%;
  }
  .form__col:not(:last-child) {
    margin-bottom: calc(var(--space) * 3);
  }
  .tab-title {
    font-size: 18px;
  }
  .card {
    margin: 0 0 15px 0;
  }
  .menu.active .nav {
    opacity: 1;
    visibility: visible;
  }
  .adv-box {
    margin-bottom: 40px;
  }
  .item-slide h2 {
    font-size: 8.846vw;
    padding: 0 5% 40px 5%;
    text-shadow: #222 1px 1px, #222 1px 1px, #222 3px 1px;
  }
}
