.product_count {
  display: block;
  margin: 28px 0 18px;
}

.s_product_inner {
  align-items: center;
}

#singleProductCarousel .single-prd-item {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
}

#singleProductCarousel .single-prd-item img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}

.single-product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.single-product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 6px;
  border: 1px solid #eeeeee;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-product-thumb.is-active {
  border-color: #384aeb;
  box-shadow: 0 0 0 1px rgba(56, 74, 235, 0.12);
}

.single-product-thumb img {
  width: 100%;
  height: 68px;
  object-fit: contain;
  display: block;
}

.product_count label {
  display: block;
  margin-bottom: 10px;
  padding-right: 0;
  font-size: 14px;
  color: #777;
  font-weight: 400;
}

.product_count__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eeeeee;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.product_count .product_count__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product_count .qty {
  width: 78px;
  height: 48px;
  border: 0;
  border-left: 1px solid #eeeeee;
  border-right: 1px solid #eeeeee;
  border-radius: 0;
  padding: 0 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #222;
}

.product_count .qty:focus {
  outline: none;
  box-shadow: none;
}

.product_count__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: none;
  background: #fff;
  color: #111;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-family: Arial, "Microsoft JhengHei", sans-serif;
  transition: all 0.3s ease;
}

.product_count__btn:hover {
  background: #f3f3f3;
  color: #000;
}

.product_total {
  margin-top: 12px;
  font-size: 16px;
  color: #555;
  font-weight: 500;
}

.product_total span {
  color: #384aeb;
  font-size: 22px;
  font-weight: 700;
}

.product_actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  max-width: 360px;
}

.product_actions .button {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 18px;
  border-radius: 30px;
  text-align: center;
  font-size: 16px;
}

.product_actions .primary-btn {
  margin-right: 0;
}

.button-buy-now {
  background: #fff;
  color: #384aeb;
}

.button-buy-now:hover {
  background: #384aeb;
  color: #fff;
}

@media (max-width: 575px) {
  #singleProductCarousel .single-prd-item {
    min-height: 300px;
    padding: 10px 0;
  }

  #singleProductCarousel .single-prd-item img {
    max-height: 300px;
  }

  .single-product-thumbs {
    gap: 8px;
  }

  .single-product-thumb {
    min-height: 70px;
    padding: 4px;
  }

  .single-product-thumb img {
    height: 58px;
  }

  .product_count__control {
    width: 100%;
    max-width: 174px;
  }

  .product_count .qty {
    flex: 1;
  }

  .product_actions {
    flex-direction: column;
    max-width: 100%;
  }
}
