.herobanner {
  background-color: #f0f1f2;
}

.herobanner-inner {
  background: #fff;
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(290px, auto) 1fr;
  overflow: hidden;
}

.herobanner .grid-product {
  display: grid;
  grid-template-columns: 1fr 154px;
  gap: 16px;
  height: 100%;
}

.herobanner .product {
  display: block;
  padding: 12px;
  width: 100%;
}

.herobanner .product img {
  max-width: 92px;
  margin: 0 auto;
  mix-blend-mode: darken;
  transition: transform 0.25s ease;
}

.herobanner .product .txt {
  font-size: 14px;
  margin-top: 8px;
  font-family: "MiSansThai-Semibold";
}

.herobanner .product:hover img {
  transform: scale(1.1);
}

.herobanner-highlight {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f9f9f9;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.herobanner-highlight img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.herobanner-highlight .txt {
  position: relative;
  padding-left: 40px;
}

.herobanner-highlight .txt h1 {
  font-size: 38px;
  font-family: var(--fontSemiBold);
  line-height: 1.25;
  margin-top: 4px;
}
.herobanner-highlight .txt h2 {
  font-size: 16px;
  font-family: var(--fontMedium);
  margin-top: 16px;
}

.herobanner .swiper-wrapper {
  transition-timing-function: linear;
}

.herobanner .swiper {
  width: 100%;
}

.herobanner .wrap-logo-brand {
  position: relative;
}

.herobanner .wrap-logo-brand:before {
  content: "";
  position: absolute;
  width: 40%;
  height: 100%;
  top: 0;
  left: -1px;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
}

.herobanner .wrap-logo-brand:after {
  content: "";
  position: absolute;
  width: 40%;
  height: 100%;
  top: 0;
  right: -1px;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 2;
}

.herobanner .logo-brand {
  width: 100%;
  height: calc(40px + 16px);
  padding: 8px 10px;
  background: #f9f9f9;
  border-radius: 8px;
}

.herobanner .logo-brand img {
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.herobanner .swiper-slide {
  width: fit-content;
}

.category-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  border-right: 1px solid #ececec;
  background: #fff;
}

.category-head {
  padding: 20px;
  font-size: 16px;
  font-family: var(--fontSemiBold);
  display: grid;
  grid-template-columns: 20px auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #ececec;
  width: 100%;
}

.category-lists {
  margin-top: 0;
  margin-bottom: auto;
  width: 100%;
}

.category-lists ul li a {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-family: var(--fontMedium);
  width: 100%;
  padding: 12px 20px;
  border-bottom: 1px solid #ececec;
}

.category-lists ul li a img {
  filter: grayscale(1) brightness(0);
  transition: filter 0.2s ease;
}

.category-lists ul li a:hover {
  background-color: #ececec30;
  font-family: var(--fontMedium);
}

.category-lists ul li a:hover img {
  filter: grayscale(0) brightness(1);
}
.category-lists ul li a p {
  transition: color 0.2s ease;
}
.category-lists ul li a:hover p {
  color: #0054d0;
}

.category-lists ul li a svg {
  transition: all 0.2s ease;
}

.category-lists ul li a:hover svg {
  transform: translateX(4px);
}

.category-lists ul li a:hover svg path {
  fill: #0054d0;
  stroke: #0054d0;
}

.category-more {
  padding: 24px 20px;
  height: 100%;
  display: flex;
  width: 100%;
}

.category-more a {
  font-family: var(--fontSemiBold);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.category-more a svg {
  position: relative;
  top: 1px;
  transition: transform 0.2s ease;
}

.category-more a:hover svg {
  transform: translateX(2px);
}

.shortcut {
  background: #ffffff;
  border-top: 1px solid rgba(0 0 0 / 6%);
  border-bottom: 1px solid rgba(0 0 0 / 6%);
  padding: 26px 0;
  text-align: center;
}

.shortcut a {
  background-color: #0054d0;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--fontSemiBold);
  color: #fff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.shortcut a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #000;
  opacity: 0.5;
  transition: all 0.12s ease;
}

.shortcut a:hover:before {
  opacity: 0.9;
  background: #0054d0;
}

.shortcut a span {
  position: relative;
}

.shortcut .swiper-button-next,
.shortcut .swiper-button-prev {
  width: 85px;
  height: calc(100% + 2px);
  top: -1px;
  margin: 0;
}
.shortcut .swiper-button-next svg,
.shortcut .swiper-button-prev svg {
  width: 11px;
}
.shortcut .swiper-button-next:after,
.shortcut .swiper-rtl .swiper-button-prev:after,
.shortcut .swiper-button-prev:after,
.shortcut .swiper-rtl .swiper-button-next:after {
  display: none;
}

.shortcut .swiper-button-next {
  right: 16px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 1) 75%
  );
  justify-content: flex-end;
}

.shortcut .swiper-button-prev {
  left: 16px;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 1) 75%
  );
  justify-content: flex-start;
}

.shortcut .swiper-button-disabled {
  opacity: 0;
}

.item-gift {
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr minmax(100px, 370px);
  height: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.item-gift .txt {
  padding: 24px 8px 24px 40px;
}

.item-gift .img {
  aspect-ratio: 370/270;
  align-self: center;
}

.item-gift .img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.swiper-gift-festival {
  overflow: visible;
}

.swiper-gift-festival .swiper-slide {
  height: auto;
}

.swiper-gift-festival .swiper-slide:nth-child(odd) .item-gift {
  background: #ebf1fb;
}

.swiper-gift-festival .swiper-slide:nth-child(even) .item-gift {
  background: #ffedcc;
}

.item-gift h2 {
  font-size: 24px;
  font-family: var(--fontSemiBold);
  color: #000;
}
.item-gift h3 {
  font-size: 16px;
  font-family: var(--fontNormal);
  color: #344054;
  margin-top: 16px;
  line-height: 1.65;
  text-wrap: balance;
}

.swiper-best-seller {
  overflow: visible;
}

.item-seller {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 12%);
  display: grid;
  align-items: flex-start;
}

.item-seller .img {
  background: #f4f4f4;
  border-bottom: 1px solid rgba(0, 0, 0, 12%);
  aspect-ratio: 240/170;
}

.item-seller .txt {
  padding: 16px;
}

.item-seller .txt h2 {
  font-family: var(--fontSemiBold);
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-seller .txt .price {
  font-size: 12px;
  font-family: var(--fontNormal);
  background: #0054d010;
  border-radius: 6px;
  display: inline-block;
  padding: 4px 12px;
  margin-top: 12px;
}

.item-seller .txt .price span {
  font-family: var(--fontSemiBold);
  color: #0054d0;
  display: inline-block;
  margin-left: 2px;
}

.label-seller {
  background: #e43307;
  text-align: center;
  color: #fff;
  font-family: var(--fontSemiBold);
  display: inline-block;
  font-size: 12px;
  padding: 4px 16px;
  border-radius: 10px 10px 0 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.accordion-faq {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
.accordion-faq .item {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid #00000010;
}
.accordion-faq .item .heading {
  background: #f9f9f9 url("../images/icons/i_accodion_open.svg") no-repeat;
  cursor: pointer;
  color: #000;
  padding: 16px 64px 16px 32px;
  background-position: calc(100% - 12px) center;
  position: relative;
  font-size: 18px;
  font-family: var(--fontSemiBold);
}
.accordion-faq .item.open .heading {
  background: #f9f9f9 url("../images/icons/i_accodion_close.svg") no-repeat;
  background-position: calc(100% - 12px) center;
}
.accordion-faq .item .content {
  display: none;
  padding: 0px 32px 16px;
  background: #f9f9f9;
  position: relative;
  font-size: 14px;
  font-family: var(--fontNormal);
}

.accordion-faq .item .content a {
  color: #0054d0;
}

.swiper-ideas .swiper-wrapper {
  transition-timing-function: linear;
}

.img-idea {
  border: 10px solid #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0px 16px rgba(0 0 0 / 10%);
}

.step-order {
  display: flex;
  justify-content: center;
  padding: 0 4%;
  gap: 100px;
}

.step-order .step {
  flex: 1 0 0;
  position: relative;
}

.step-order .step .icon {
  background: #ebf1fb;
  width: 100px;
  aspect-ratio: 1/1;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0054d0;
  position: relative;
}

.step-order .step:not(:nth-last-child(1)):before {
  content: "";
  position: absolute;
  width: 175%;
  height: 2px;
  background: #0054d0;
  left: 0;
  top: 50px;
}

.item-popular {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(0 0 0 / 8%);
  background: #fff;
}

.item-popular .banner {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 370/200;
  position: relative;
  width: 100%;
  margin-top: 16px;
}

.item-popular .banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.item-popular .banner .gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.item-popular .banner .txt {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 18px;
  font-family: var(--fontSemiBold);
}

.products-popular {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  gap: 24px;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(0 0 0 / 10%);
}

.products-popular .img {
  background: #ebf1fb;
  aspect-ratio: 1/1;
  border-radius: 999px;
  max-width: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.products-popular img {
  mix-blend-mode: darken;
  max-width: 100px;
}
.products-popular .txt {
  margin-top: 8px;
}
.products-popular .txt h2 {
  font-size: 14px;
  font-family: var(--fontSemiBold);
}

.products-popular .txt h3 {
  font-size: 12px;
  color: #666;
  font-family: var(--fontMedium);
  margin-top: 2px;
}

.products-popular a:hover .img {
  background: #dce4f2;
}

.swiper-brand .swiper-slide {
  width: auto;
}

.swiper-brand {
  overflow: visible;
}

.swiper-brand a {
  transition: transform 0.15s ease;
}

.swiper-brand .swiper-slide:hover a {
  transform: translateY(-8px);
}

.grid-find {
  display: grid;
  grid-template-columns: auto 40%;
  gap: 20px;
}

.find-tag {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 32px;
}

.find-tag li a {
  padding: 8px 12px;
  display: inline-block;
  border-radius: 6px;
  box-shadow: 0 3px 3px rgba(0 0 0 / 5%);
  border: 1px solid #e1e1e1;
  transition: all 0.15s ease;
  font-size: 16px;
}

.find-tag li a:hover {
  color: #0054d0;
  border-color: #0054d075;
  background: #0054d010;
}

.find-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  will-change: transform;
}

.find-item:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0 0 0 / 0%) 20%,
    rgba(0 0 0 / 80%) 75%
  );
  z-index: 1;
}

.find-item .img {
  height: 100%;
}

.find-item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s ease, filter 0.3s ease;
  filter: brightness(0.65);
}

.find-item .txt {
  color: #fff;
  font-size: 16px;
  font-family: var(--fontSemiBold);
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-bottom: 12px;
  z-index: 1;
}

.find-item:not(:hover) img {
  scale: 1.1;
  filter: brightness(1);
}

.article {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-details {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-details .item {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #00000010;
  display: grid;
  grid-template-columns: 160px auto;
  gap: 20px;
}

.article-details .item .img {
  border-radius: 10px;
  overflow: hidden;
}

.article-details .item .txt {
  max-width: 350px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.article-details .item .txt h2 {
  font-size: 18px;
  font-family: var(--fontSemiBold);
  color: #000;
  line-height: 1.65;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.send-gift {
  border-radius: 12px;
  background: linear-gradient(96.88deg, #0054d0 20.02%, #002b6a 104.08%);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 160px;
}

.send-gift .img {
  position: relative;
}
.send-gift .img img {
  position: absolute;
  max-width: 145%;
  top: -8%;
}

.send-gift .txt {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.send-gift .txt input {
  height: 40px;
  width: 100%;
  border-radius: 5px 0 0 5px;
  background: #ffffff20;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  font-family: var(--fontSemiBold);
  border: 1px solid #ffffff30;
  outline: none;
}

.send-gift .txt input:focus {
  border-color: #fff;
}

.send-gift .txt button {
  height: 40px;
  width: 100%;
  border-radius: 0 5px 5px 0;
  background: #ffffff20;
  padding: 0 16px;
  color: #fff;
  font-size: 12px;
  font-family: var(--fontBold);
  border: 1px solid #ffffff30;
  border-left: 0;
}

.send-gift .txt button:hover {
  background: #ffffff50;
}

.send-gift .txt input::placeholder {
  color: #ffffff90;
  font-family: var(--fontNormal);
}

.send-gift .txt .wrap-input {
  display: grid;
  grid-template-columns: auto 25%;
}

.swiper-testimonial {
  height: 100%;
}

.testimonial-item {
  height: 100%;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #00000010;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.testimonial-item .rating {
  display: flex;
  gap: 4px;
  align-items: center;
}

.testimonial-item h2 {
  font-size: 18px;
  font-family: var(--fontSemiBold);
  max-width: 480px;
}

.testimonial-item p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 480px;
}

.grid-testimonial {
  display: grid;
  grid-template-rows: 1fr minmax(144px, auto);
}

.control-testimonial {
  display: flex;
  gap: 8px;
}

.control-testimonial > div {
  width: 40px;
  height: 40px;
  border: 1px solid #00000010;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
}

.control-testimonial .swiper-button-disabled {
  opacity: 0.2;
}

.img-banner-product {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 100%;
}

.img-banner-product img {
  object-fit: cover;
}

.img-banner-product .txt {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 40px;
  color: #fff;
}

.img-banner-product:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 50%;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(0 0 0 / 98%) 5%,
    rgba(0 0 0 / 0%) 100%
  );
}

.img-banner-product .txt h2 {
  font-size: 30px;
  font-family: var(--fontSemiBold);
  line-height: 1.25;
  margin-bottom: 4px;
}

.img-banner-product .txt p {
  font-size: 18px;
  font-family: var(--fontMedium);
}

.swiper-product {
  margin-top: -8px;
}

.swiper-product .swiper-slide {
  padding-top: 6px;
}

.product-desktop {
  min-height: 1px;
  position: relative;
}
.product-mobile {
  margin-top: 16px;
  margin-bottom: 32px;
}

.btn-loadmore {
  border: 1px solid rgba(0 0 0 /10%);
  font-size: 14px;
  font-family: var(--fontSemiBold);
  color: rgba(0 0 0 / 80%);
  padding: 10px 32px;
  border-radius: 99px;
  transition: all 0.15s ease;
}

.btn-loadmore:hover {
  color: #0054d0;
  background: #0054d020;
  border-color: #0054d020;
}

.swiper-tab-product {
  overflow: visible;
}

.swiper-tab-product .swiper-slide {
  width: auto;
  padding: 4px;
}

.tab-product {
  display: block;
  padding: 1px;
  transition: all 0.15s ease;
  background-color: transparent;
  border-radius: 6px;
  overflow: hidden;
}

.tab-product span {
  font-size: 14px;
  font-family: var(--fontMedium);
  box-shadow: 0 3px 3px rgba(0 0 0 / 4%);
  border-radius: 5px;
  padding: 6px 12px;
  border: 1px solid rgba(0 0 0 / 10%);
  transition: all 0.15s ease;
  cursor: pointer;
  display: block;
  background: #fff;
}

.tab-product.active,
.tab-product:hover {
  background-color: #0054d0;
}
.tab-product.active span,
.tab-product:hover span {
  border-color: #0054d0;
  color: #0054d0;
  background: rgb(255 255 255 / 95%);
}
