* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --colorPrimary: #a4916d;
  --colorBlack: #000;
  --colorWhite: #fff;
  --fontPrimary: "alchemist_serif_fontregular", serif;
  --fontSecond: "eb_garamondregular";
  --fontSecondItalic: "eb_garamonditalic";
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100%;
  height: 100%;
  background: var(--colorBlack);
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  line-height: 1.4;
  color: var(--colorWhite);
  font-family: var(--fontPrimary), system-ui, sans-serif;
}

body.is-hidden {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  margin: 0;
  padding: 0;
  color: var(--colorWhite);
  text-decoration: none;
  font-weight: normal;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

img {
  max-width: 100%;
  width: auto;
  height: auto;
  vertical-align: middle;
}

.s-relative {
  position: relative;
}

.s-absolute {
  position: absolute;
}

.container {
  max-width: 1280px;
  padding: 0 24px;
  margin: 0 auto;
}

.container-inner {
  max-width: 1088px;
  padding: 0 24px;
  margin: 0 auto;
}

button {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.intro {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-intro {
  width: 100%;
  height: 100%;
  background-color: #000;
  /* background: radial-gradient(500px 500px, transparent 50%, black 50%); */
}

.intro .svg-text {
  position: absolute;
  z-index: 5;
  max-width: 25%;
}

.intro .svg-snake {
  position: absolute;
  aspect-ratio: 1 / 1;
  height: auto;
  position: absolute;
  z-index: 5;
  transform: rotate(-45deg);
  max-width: 45%;
}

.join-the-society {
  padding: 0 0 100px;
  margin: 0 auto;
  overflow: hidden;
}

.join-the-society .head {
  position: relative;
  text-align: center;
}

.video-dragon {
  margin-top: -208px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
}

.txt-join {
  width: 100%;
  max-width: 407px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.line-join {
  max-width: 522px;
  margin: 0 auto;
  margin-top: -160px;
  position: relative;
}

.element-join {
  position: relative;
  padding-top: 80px;
}

.bg-join {
  width: 750px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.crystal-join {
  position: absolute;
  width: 100%;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 768px;
  z-index: 1;
}

.form-join {
  position: relative;
}

.form-join .txt {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0 48px;
  padding-top: 150px;
  width: 100%;
  max-width: 522px;
  transform: translateX(-50%);
}

.form-join .txt h2 {
  font-size: 20px;
  color: var(--colorWhite);
  font-family: var(--fontSecond);
  margin-bottom: 16px;
}

.group-join {
  position: relative;
  margin-bottom: 24px;
}
.group-join input {
  font-size: 20px;
  padding: 4px 0;
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--colorPrimary);
  width: 100%;
  background: transparent;
  font-family: var(--fontSecond);
  color: var(--colorWhite);
  border-radius: 0;
}
.group-join input:focus {
  outline: none;
}

/* LABEL ======================================= */
.group-join label {
  color: var(--colorPrimary);
  font-size: 20px;
  position: absolute;
  pointer-events: none;
  left: 0;
  top: 0px;
  transition: 0.25s ease all;
  -moz-transition: 0.25s ease all;
  -webkit-transition: 0.25s ease all;
  font-family: var(--fontSecond);
}

/* active state */
.group-join input:focus ~ label,
.group-join input:valid ~ label {
  top: -16px;
  font-size: 14px;
  color: var(--colorPrimary);
}

/* BOTTOM BARS ================================= */
.group-join .bar {
  position: relative;
  display: block;
  width: 100%;
}
.group-join .bar:before,
.group-join .bar:after {
  content: "";
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: var(--colorPrimary);
  transition: 0.25s ease all;
  -moz-transition: 0.25s ease all;
  -webkit-transition: 0.25s ease all;
}
.group-join .bar:before {
  left: 0%;
}

/* active state */
.group-join input:focus ~ .bar:before {
  width: 100%;
}

/* HIGHLIGHTER ================================== */
.group-join .highlight {
  position: absolute;
  height: 60%;
  width: 100px;
  top: 25%;
  left: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* active state */
.group-join input:focus ~ .highlight {
  -webkit-animation: inputHighlighter 0.25s ease;
  -moz-animation: inputHighlighter 0.25s ease;
  animation: inputHighlighter 0.25s ease;
}

.btn-submit-join {
  font-size: 20px;
  background: var(--colorPrimary);
  color: #000;
  font-family: var(--fontPrimary);
  padding: 12px 24px;
  display: block;
  margin-left: auto;
  margin-right: 0;
  transition: background 0.25s ease-in;
}

.btn-submit-join:hover {
  background: #91794d;
}

.bg-head {
  position: absolute;
  top: 0;
  opacity: 0.75;
}

.bg-head:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 200px;
  top: 0;
  left: 0;
  background: linear-gradient(0deg, #00000000 0%, #000 100%);
}

.bg-head:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, #00000000 15%, #000 80%);
}

.txthead-shop {
  text-align: center;
  padding: 64px 0;
}

.txthead-shop img {
  max-width: 228px;
  margin: 0 auto;
}

.txthead-shop p {
  font-size: 20px;
  font-family: var(--fontSecond);
  max-width: 480px;
  margin: 24px auto 0;
}

.product-all {
  background: url(../images/wood-stand.png) bottom center repeat-y;
  background-size: auto 400px;
  position: relative;
  text-align: center;
  margin-bottom: 50px;
  overflow: hidden;
}

.lists-product ul {
  display: grid;
  position: relative;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lists-product .item {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 24px 0 48px;
  position: relative;
}

.lists-product .bg-item-video {
  position: absolute;
  width: 70%;
  height: 200px;
  left: 12%;
  top: 123px;
  filter: blur(20px);
  border-radius: 100% 100% 75% 75%;
  transition: opacity 0.65s ease;
  mix-blend-mode: normal;
  opacity: 0.8;
}

.lists-product .item .img {
  position: relative;
}
.lists-product .item .txt {
  position: relative;
}

.lists-product .item .txt h2 {
  font-family: var(--fontPrimary);
  color: var(--colorWhite);
  font-size: 18px;
  transition: color 0.25s ease;
}
.lists-product .item .txt .price {
  font-family: var(--fontSecond);
  color: var(--colorPrimary);
  font-size: 18px;
  transition: color 0.25s ease;
}

.lists-product .item .img img {
  transform: scale(1);
  transform-origin: 50% 90%;
  transition: transform 0.25s ease;
  filter: drop-shadow(0px 10px 7px rgba(0, 0, 0, 0.7));
}
.lists-product .item:hover .img img {
  transform: scale(1.05);
}

.lists-product .item:hover .txt h2 {
  color: var(--white);
}

.lists-product .item:hover .txt .price {
  color: var(--white);
}

/* .lists-product .item:hover .bg-item-video {
  opacity: 0.75;
} */

.pagination-product {
  margin: 0 0 80px;
  width: 100%;
  display: inline-block;
}

.pagination-product ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination-product ul li a {
  padding: 15px;
  height: 38px;
  border: 1px solid var(--colorPrimary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colorPrimary);
  background: var(--colorBlack);
  font-size: 18px;
  font-family: var(--fontSecond);
  transition: all 0.15s ease;
}

.pagination-product ul li a.active {
  background: var(--colorPrimary);
  color: var(--colorBlack);
  pointer-events: none;
}

.pagination-product ul li a:hover {
  background: #a4916d90;
  color: var(--colorBlack);
}
.pagination-product ul li a:hover.active {
  background: var(--colorPrimary);
  color: var(--colorBlack);
}

.product-filter {
  position: relative;
}

.product-filter-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--colorPrimary);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.product-filter .filter {
  margin: 0 -20px;
}

.product-filter .filter ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow: auto;
  padding: 0 20px;
}

.product-filter .filter ul li {
  color: var(--colorPrimary);
  font-size: 16px;
  height: 38px;
  border: 1px solid var(--colorPrimary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.45s ease;
  white-space: nowrap;
}

.product-filter .filter ul li:hover {
  background: var(--colorPrimary);
  color: var(--colorBlack);
}

.product-filter .filter ul li.active {
  background: var(--colorPrimary);
  color: var(--colorBlack);
  pointer-events: none;
}

.product-filter .sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--colorPrimary);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.product-filter .sort p {
  font-size: 16px;
  color: var(--colorPrimary);
}

.product-filter .sort .dropdown {
  position: relative;
  display: inline-block;
}

.product-filter .sort .dropdown-toggle {
  padding: 10px 16px;
  background-color: #222;
  color: var(--colorPrimary);
  border: none;
  border-radius: 1px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fontPrimary);
  transition: 0.25s ease;
}

.product-filter .sort .dropdown-toggle:hover {
  background-color: #333;
}

.product-filter .sort .dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--colorPrimary);
  border-radius: 0 0 1px 1px;
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  text-align: center;
  width: 100%;
  transition: all 0.25s ease;
}

.product-filter .sort .dropdown-menu li {
  padding: 4px 2px;
  transition: all 0.25s ease;
  font-size: 14px;
}

.product-filter .sort .dropdown-menu li a {
  text-decoration: none;
  color: #333;
}

.product-filter .sort .dropdown-menu li:hover {
  background-color: #91794d;
}

.grid-detail-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: flex-start;
  gap: 48px;
}

.grid-detail-info .col {
  position: relative;
  overflow: hidden;
}

.detail-info {
  padding: 40 0;
}

.detail-info h2 {
  color: #ae986f;
  text-transform: uppercase;
  font-size: 20px;
  margin-bottom: 16px;
}

.detail-info ul {
  list-style-type: disc;
  padding-left: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.detail-info ul li,
.detail-info p {
  font-family: var(--fontSecond);
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
}

.detail-info p {
  margin-bottom: 15px;
}

.mockup-gallery,
.mockup-gallery img {
  width: 100%;
}

.detail-product {
  background: url(../images/wood-product.jpg) bottom center repeat-x;
  margin-top: calc(-56px + -72px); /* ลบความสูงของ header */
  padding-top: calc(56px + 72px);
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.detail-product .wood-product {
  position: absolute;
  bottom: 0;
  left: 0;
}

.detail-product .txt {
  padding-top: 100px;
  padding-right: 14%;
}

.detail-product .bg-item-video {
  z-index: -2;
  filter: blur(10px);
}

.detail-product:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(rgba(0 0 0 / 0%), rgba(0 0 0 / 50%), #000);
  z-index: -1;
}

.detail-product h1 {
  color: var(--colorPrimary);
  font-family: var(--fontPrimary);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  background: url(../images/texture-gold.jpg) center center / cover no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
}

.detail-product h1 br {
  display: none;
}

.detail-product p {
  font-size: 18px;
  color: var(--colorWhite);
  font-family: var(--fontSecond);
}

.detail-product .img-product {
  width: 540px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.detail-product .img-product img {
  width: 100%;
  filter: drop-shadow(0px 11px 18px rgba(0, 0, 0, 0.62));
}

.grid-detail-product {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: flex-start;
  position: relative;
}

.group-img-product {
  height: 600px;
}

.vine {
  width: 100%;
  transform: translateX(-50%);
  position: absolute;
  left: 50%;
  min-width: 1920px;
  bottom: 12%;
  pointer-events: none;
}

.box-order {
  width: 245px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background: rgba(0 0 0 / 30%);
  margin-top: 75px;
  padding: 12px;
}

.group-box-order {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.txt-price {
  max-width: 156px;
  margin: 0 auto;
}

.txtprice {
  padding-bottom: 4px;
}

.bundle_availability {
  padding-top: 10px;
}

.txtprice + p {
  margin-top: 0 !important;
}

.bundled_product .cart .variations td.label {
  color: #ae986f;
}

.box-order h2 {
  font-size: 36px;
  text-align: center;
  line-height: 1.25;
  margin-top: 8px;
}

.box-order h3 {
  font-size: 14px;
  text-align: center;
  line-height: 1.25;
  margin-top: 12px;
  font-family: var(--fontSecond);
}

.box-order p {
  font-size: 14px;
  text-align: center;
  font-family: var(--fontSecond);
  line-height: 1.25;
  margin-top: 16px;
}

.single_add_to_cart_button {
  display: block;
  text-align: center;
  background: var(--colorPrimary);
  font-size: 20px;
  padding: 8px 8px;
  color: var(--colorBlack);
  transition: background 0.25s ease;
}

.single_add_to_cart_button:hover {
  background: #91794d;
}

.btn-order {
  border: 2px solid #fff;
  border-radius: 99px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-order {
  display: grid;
  grid-template-columns: 44px auto 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.select-order input {
  width: 100%;
  height: 44px;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-size: 24px;
  font-family: var(--fontSecond);
  color: #000;
  outline: none;
}

/* Chrome, Safari, Edge, Opera */
.select-order input::-webkit-outer-spin-button,
.select-order input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.select-order input[type="number"] {
  -moz-appearance: textfield;
}

.readmore-arrow {
  text-align: center;
  position: absolute;
  width: 100%;
  bottom: 32px;
}
.readmore-arrow p {
  font-size: 18px;
  color: var(--colorPrimary);
  margin-bottom: 8px;
}

@media (max-width: 1023px) {
  .lists-product ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bg-head:before {
    height: 25%;
  }
  .bg-head:after {
    height: 50%;
  }

  .bg-head {
    height: 70vh;
  }

  .bg-head img {
    height: 100%;
    object-fit: cover;
  }
  .txthead-shop {
    padding: 48px 0;
  }

  .product-filter-grid {
    display: block;
  }
  .product-filter .sort {
    justify-content: space-between;
    margin-top: 24px;
  }

  .grid-detail-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .grid-detail-info .col:nth-child(1) {
    grid-row-start: 1;
    grid-row-end: 3;
  }

  /* .detail-product h1 {
  font-size: 28px;
}
.detail-product p {
  font-size: 16px;
} */

  .grid-detail-product {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }
  .detail-product .txt {
    padding-right: 0;
    padding-top: 80px;
  }
  .detail-product {
    background: url(../images/wood-product-mobile.jpg) repeat-x;
    background-position: 50% 800px;
    background-size: contain;
  }

  .vine {
    bottom: auto;
    top: 40%;
  }

  .group-box-order {
    justify-content: center;
  }
  .box-order {
    margin-top: 0;
    backdrop-filter: none;
    background: transparent;
  }
  .group-img-product {
    height: 540px;
  }

  .readmore-arrow {
    display: none;
  }
}

@media (max-width: 639px) {
  .container,
  .container-inner {
    padding: 0 40px;
  }

  header .container,
  header .container-inner,
  footer .container,
  footer .container-inner {
    padding: 0 20px;
  }

  .txt-join {
    max-width: 250px;
  }
  .bg-join {
    width: 480px;
  }
  .crystal-join {
    width: 440px;
  }
  .video-dragon {
    max-width: 300px;
    margin-top: -125px;
  }
  .element-join {
    padding-top: 32px;
  }
  .line-join {
    margin-top: -100px;
  }
  .form-join .txt {
    padding-top: 22%;
  }
  .form-join .txt h2 {
    font-size: 16px;
  }
  .group-join input {
    font-size: 18px;
  }
  .group-join {
    margin-bottom: 20px;
  }
  .btn-submit-join {
    font-size: 18px;
    padding: 10px 20px;
  }

  .lists-product ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 414px;
    margin: 0 auto;
  }
  .lists-product .item {
    height: 350px;
    /* padding-bottom: 0; */
  }
  .product-all {
    background-size: auto 350px;
  }
  .lists-product .item .img {
    position: relative;
  }

  .txthead-shop p {
    font-size: 16px;
    padding: 0 8%;
  }
  .txthead-shop img {
    max-width: 180px;
  }

  .lists-product .item .txt h2 {
    font-size: 16px;
  }
  .lists-product .item .txt .price {
    font-size: 16px;
  }

  .grid-detail-info {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 54px;
  }
  .detail-info h2 {
    font-size: 18px;
  }
  .detail-info p,
  .detail-info ul {
    margin-bottom: 20px;
  }

  .detail-page .lists-product .products li:nth-last-child(1) {
    display: none;
  }

  /* .detail-product .bg-item-video {
  opacity: 1;
} */

  .detail-product h1 {
    font-size: 28px;
  }
  .detail-product p {
    font-size: 16px;
    width: 90%;
    margin: 0 auto;
  }

  .detail-product .img-product {
    width: 500px;
  }
  .group-img-product {
    height: 480px;
  }
  .detail-product {
    background-position: 50% 730px;
  }
  .box-order {
    width: 100%;
    max-width: 320px;
  }
  .box-order p {
    margin-top: 16px;
  }
  .select-order {
    width: 80%;
    margin: 0 auto;
  }

  .detail-product .txt {
    padding-top: 40px;
  }

  .lists-product .item .bg-item-video {
    opacity: 1;
    height: 160px;
    top: 80px;
  }

  .detail-product h1 br {
    display: block;
  }
}

@media (max-width: 479px) {
  .form-join .txt {
    padding-top: 32%;
  }
}

@media (max-width: 374px) {
  .lists-product .item .img {
    width: 120%;
  }
}
