/**************************/
/* product */
/**************************/

.sw--product .swiper-slide {
  width: 30.7rem;
  height: auto;
}
.mobile .sw--blog .swiper-slide {
  width: 33.7rem;
}
.mobile .sw--product .swiper-slide {
  width: 28rem;
}
.sw--product .btn-sw {
  --swiper-navigation-top-offset: calc(50% + -2rem);
}
.product-card {
  border: 1px solid var(--c-blue-100);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 3.6rem;
  padding: 1.6rem;
  background: var(--c-white);
  transition: var(--anim);
}
.card-stock {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #FF03031A;
  border-radius: 10px;
  width: 72px;
  height: 30px;
  color: #F00;
  text-align: center;
  font-size: 12px;
  padding-top: 1px;
  z-index: 1;
}
.product-card__img img {
  aspect-ratio: 1 / 1;
  max-width: 81%;
  object-fit: contain;
}
.product-card__img {
  border-radius: 1.8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile .archive .product-card__img {
  max-width: 100px;
}
.product-card-body {
  display: flex;
  height: calc(100% - 1.5rem);
  position: relative;
  flex-direction: column;
  overflow: hidden;
}
.mobile .archive .product-card-body {
  flex-direction: row;
}
.mobile .archive .product-card {
  border-radius: 20px;
  padding: 10px;
}
.product-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
}

.discount-percentage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 3rem;
  height: 4rem;
  background: var(--c-secondary);
  border-radius: 0.8rem;
  font-size: var(--fs-15);
  white-space: nowrap;
  color: var(--c-white);
  padding: 0.5rem;
  line-height: 1;
  vertical-align: middle;
  font-weight: 600;
}

.product-card__sku {
  color: var(--c-dark-secondary);
  font-size: var(--fs-14);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-card__sku i {
  font-size: 1.4rem;
}
.product-card__title {
  font-size: var(--fs-16) !important;
  margin-top: 0.6rem;
  line-height: 1.8;
}
.mobile .product-card__title {
  font-weight: 600;
}
.product-card__title a:hover {
  color: var(--c-primary);
}
.price .on-sale {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.woocommerce-Price-currencySymbol {
  font-size: 0 !important;
  overflow: hidden;
}
.woocommerce-Price-currencySymbol::before {
  content: "\e907";
  font-size: 1.9rem;
  font-family: var(--ff-icon);
  color: var(--c-blue-150);
  margin-right: 0.4rem;
  line-height: 1;
}
.woocommerce-Price-amount.amount bdi {
  direction: ltr;
}
.price del .woocommerce-Price-currencySymbol {
  display: none;
}
.woocommerce-Price-amount {
  display: block;
  font-size: var(--fs-18);
  font-weight: 600;
}
.mobile .woocommerce-Price-amount {
  font-size: 2.2rem;
}
.on-sale del {
  color: var(--c-blue-150);
}
del .woocommerce-Price-amount {
  font-size: var(--fs-16);
  font-weight: normal;
  color: var(--c-blue-150);
}
.mobile del .woocommerce-Price-amount {
  font-size: 1.8rem;
}
.price-inquiry {
  font-size: var(--fs-18);
  font-weight: bold;
  color: var(--c-primary);
}
.out-of-stock {
  font-size: var(--fs-18);
  font-weight: bold;
  color: var(--c-danger);
}

/* add to card ajax */
.product-card__cart {
  position: relative;
  width: 4.8rem;
  height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  border: 1px solid var(--c-primary);
  border-radius: 1.6rem;
  transition: var(--anim);
  color: var(--c-primary);
}
.product-card__cart:hover {
  color: var(--c-secondary);
  border-color: var(--c-secondary);
}
.product-card-price-box {
  margin-right: auto;
}
.mobile .product-card-price-box {
  height: 9rem;
  display: flex;
  align-items: end;
}
.mobile .archive .product-card-price-box {
  height: auto;
}
.product-card-price-box .quantity-selector {
  gap: 0.2rem;

  border-radius: 1.2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
}
.desktop .product-card-price-box .quantity-selector {
  border: 1px solid var(--c-primary);
  padding: 0.2rem;
  width: 10rem;
}
.mobile .product-card-price-box .quantity-selector {
  flex-direction: column;
}
.mobile .archive .product-card-price-box .quantity-selector {
  flex-direction: row;
}
.product-card-price-box .quantity-selector :is(.decrease, .increase) {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: var(--c-primary);
  font-size: 2.1rem;
  background-color: var(--c-blue-75);
  font-family: monospace;
  cursor: pointer;
  transition: var(--anim);
}
.product-card-price-box .quantity-selector :is(.decrease, .increase):hover {
  background-color: var(--c-blue-100);
}
.product-card-price-box .quantity-selector span {
  border-radius: 50%;
  line-height: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -ms-user-select: none;
  color: var(--color3);
  font-weight: 600;
  font-size: var(--fs-14);
}
.loading-ajax::before {
  content: "";
  inset: auto;
  width: 2rem;
  height: 2rem;
  border: 0.25rem solid var(--c-secondary);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: absolute;
  transform: none;
  left: 50%;
  top: 50%;
  margin-top: -1rem;
  margin-left: -1rem;
  z-index: 3;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* counter */
.countdown-wrapper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  direction: ltr;
}

.countdown {
  font-size: var(--fs-18);
  color: var(--c-dark-secondary);
  direction: ltr;
}

.progress-bar {
  height: 0.8rem;
  background-color: #29166f2b;
  border-radius: 1.2rem;
  overflow: hidden;
  flex: 1;
  padding: 0.1rem;
}

.progress-fill {
  height: 100%;
  border-radius: 1.2rem;
  background-color: var(--c-primary);
  width: 0%;
  transition: width 1s linear;
}
.product-card-countdown {
  margin-top: 2rem;
}

/**************************/
/* post card*/
/**************************/
.post-card {
  position: relative;
  flex-direction: column;
  display: flex;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.sw--blog .swiper-slide {
  width: 41.7rem;
}
.post-card__img {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2.4rem;
}
/* .post-card__img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #00ff9c00 64%, #262626 100%);
  opacity: 1;
  transition: var(--anim);
  z-index: 1;
  border-radius: 2.4rem;
} */

.post-card__time {
  position: absolute;
  top: 2rem;
  font-weight: bold;
  font-size: var(--fs-14);
  height: 3.6rem;
  z-index: 2;
  left: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: 0.3s var(--ease2);
  background-color: #ffffffa6;
  border-radius: 100vw;
  padding: 0 1.2rem;
  gap: 0.6rem;
  backdrop-filter: blur(10px);
}
.post-card__time b {
}
.post-card__time i {
  color: var(--c-primary);
  font-size: 1.8rem;
}
.post-card__img::after {
  content: "";
  position: absolute;
  background-image: linear-gradient(to bottom, #00000017, transparent);
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.post-card__img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transition: 0.4s var(--ease2);
  aspect-ratio: 3 / 2;
  filter: brightness(0.9);
}

.post-card--detail {
  margin-top: 1.6rem;
  padding: 0 2rem;
}
.post-card__title {
  font-size: var(--fs-16);
  font-weight: 500;
}

.post-card:hover .post-card__title a {
  color: var(--c-secondary);
}
.section--blog .btn-sw {
  --swiper-navigation-top-offset: 42%;
}

/**************************/
/* BELOW 360px */
/**************************/
@media (min-width: 22.5em) {
}
/**************************/
/* BELOW 576px */
/**************************/
@media (min-width: 36em) {
}

/**************************/
/* ABOVE 800px */
/**************************/

@media (min-width: 50em) {
}

/**************************/
/* ABOVE 1024px */
/**************************/
@media (min-width: 64em) {
}
/**************************/
/* max 50em */
/**************************/
@media (max-width: 49.99em) {
}
