/* =========================================================
   KEYSHU - SINGLE PRODUCT DETAIL FINAL V8
   WooCommerce + Flatsome
   Fix sản phẩm đơn: Giá sale -> Giá gốc -> % giảm
========================================================= */

:root {
  --ks-primary: #03b0b1;
  --ks-primary-dark: #029596;
  --ks-primary-soft: #eefafa;
  --ks-heading: #173b42;
  --ks-text: #425e65;
  --ks-muted: #71858b;
  --ks-border: #dceff0;
  --ks-border-2: #edf6f6;
  --ks-white: #ffffff;
  --ks-sale: #ef2f2f;
  --ks-sale-soft: #ffe8e8;
  --ks-star: #f59e0b;
  --ks-shadow: 0 18px 55px rgba(3, 176, 177, 0.08);
}

.single-product .product-main,
.single-product .product-main * {
  box-sizing: border-box;
  /* border-radius: 10px; */
}

.single-product .product-main {
  width: 100%;
  padding: 18px 14px 36px;
  background: linear-gradient(180deg, #f4ffff 0%, #ffffff 100%);
}

.single-product .product-main > .row.content-row {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 28px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  gap: 34px;
  align-items: start;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--ks-border);
  box-shadow: var(--ks-shadow);
}

.single-product .product-main .product-gallery.col,
.single-product .product-main .product-summary.col,
.single-product .product-main .product-info.summary {
  width: 100% !important;
  max-width: none !important;
  flex-basis: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* =========================================================
   LEFT - GALLERY
========================================================= */

.single-product .product-gallery {
  min-width: 0;
  padding: 0 !important;
}

.single-product .product-images {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.single-product .product-gallery-slider {
  overflow: visible !important;
  border-radius: 22px !important;
  background: transparent !important;
}

.single-product .product-images .flickity-viewport {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: transparent !important;
}

.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: transparent !important;
}

.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 22px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Sale badge */
.single-product .badge-container {
  top: 36px !important;
  left: 26px !important;
  z-index: 10 !important;
}

.single-product .badge,
.single-product .badge-inner,
.single-product .callout.badge,
.single-product .badge-circle {
  width: auto !important;
  height: auto !important;
  min-width: 72px;
  min-height: 48px;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ff3149 0%, #ff5f6d 100%) !important;
  border: none !important;
  box-shadow: 0 14px 26px rgba(255, 49, 73, 0.24);
}

.single-product .badge-inner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 14px !important;
}

.single-product .onsale {
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

/* Gallery arrows */
.single-product .product-gallery-slider .flickity-button {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--ks-primary) !important;
  border: 1px solid var(--ks-border) !important;
  box-shadow: 0 12px 28px rgba(3, 176, 177, 0.14) !important;
  opacity: 1 !important;
}

.single-product .product-gallery-slider .flickity-button.previous {
  left: -24px !important;
}

.single-product .product-gallery-slider .flickity-button.next {
  right: -24px !important;
}

.single-product .flickity-button-icon .arrow {
  fill: currentColor !important;
}

/* Zoom */
.single-product .product-images .image-tools.bottom {
  left: auto !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 8 !important;
}

.single-product .zoom-button,
.single-product .wishlist-button {
  width: 50px !important;
  height: 50px !important;
  min-height: 50px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--ks-primary) !important;
  border: 1px solid var(--ks-border) !important;
  box-shadow: 0 12px 28px rgba(3, 176, 177, 0.12) !important;
}

.single-product .zoom-button:hover,
.single-product .wishlist-button:hover {
  color: var(--ks-primary-dark) !important;
}

/* =========================================================
   THUMBNAIL - VUÔNG
========================================================= */

.single-product .product-thumbnails {
  width: calc(100% - 120px) !important;
  margin: 18px auto 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.single-product .product-thumbnails .flickity-viewport {
  height: 88px !important;
  overflow: hidden !important;
}

.single-product .product-thumbnails .flickity-slider {
  display: flex !important;
  align-items: center !important;
}

.single-product .product-thumbnails .col {
  width: 88px !important;
  max-width: 88px !important;
  flex: 0 0 88px !important;
  padding: 0 6px !important;
}

.single-product .product-thumbnails a {
  display: block !important;
  width: 76px !important;
  height: 76px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  border: 1.5px solid transparent !important;
  box-shadow: none !important;
  transition: all 0.22s ease;
}

.single-product .product-thumbnails .is-nav-selected a,
.single-product .product-thumbnails .is-selected a {
  border-color: var(--ks-primary) !important;
  box-shadow: 0 8px 20px rgba(3, 176, 177, 0.14) !important;
}

.single-product .product-thumbnails img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 11px !important;
}

.single-product .product-thumbnails .flickity-button {
  display: none !important;
}

/* =========================================================
   RIGHT - SUMMARY
========================================================= */

.single-product .product-summary {
  padding: 6px 12px 20px 0 !important;
  color: var(--ks-text);
  min-width: 0;
}

/* Breadcrumb: chữ đen, in đậm, không nền */
.single-product .woocommerce-breadcrumb {
  width: auto;
  max-width: 100%;
  margin: 0 0 18px !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #111827 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.single-product .woocommerce-breadcrumb a {
  color: #111827 !important;
  text-decoration: none !important;
  font-weight: 900 !important;
}

.single-product .woocommerce-breadcrumb a:hover {
  color: var(--ks-primary) !important;
}

.single-product .woocommerce-breadcrumb .divider {
  color: #94a3b8 !important;
  font-weight: 800 !important;
}

.single-product .woocommerce-breadcrumb::after,
.single-product .product-summary .woocommerce-breadcrumb::after {
  content: none !important;
  display: none !important;
}

.single-product .product-title,
.single-product .product_title.entry-title {
  max-width: 610px !important;
  margin: 0 0 16px !important;
  color: var(--ks-heading) !important;
  font-size: 25px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  text-align: justify !important;
}

.single-product .is-divider.small,
.single-product .next-prev-thumbs {
  display: none !important;
}

/* =========================================================
   RATING
========================================================= */

.single-product .woocommerce-product-rating {
  margin: 0 0 12px !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 22px;
}

.single-product .woocommerce-product-rating::after {
  content: none !important;
  display: none !important;
}

.single-product .woocommerce-product-rating .woocommerce-review-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: var(--ks-heading) !important;
}

.single-product .star-rating {
  width: 94px !important;
  height: 18px !important;
  margin: 0 !important;
  color: var(--ks-star) !important;
  font-size: 15px !important;
  letter-spacing: 1px !important;
}

.single-product .star-rating::before,
.single-product .star-rating span::before {
  color: var(--ks-star) !important;
}

.single-product .keyshu-rating-real-text {
  color: var(--ks-heading);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.single-product .keyshu-no-rating {
  display: inline-flex;
  color: var(--ks-muted);
}

/* =========================================================
   PRICE BOX - FIX ORDER: SALE -> OLD -> DISCOUNT
========================================================= */

.single-product .product-summary > .price-wrapper,
.single-product .product-summary .price-wrapper,
.single-product .woocommerce-variation-price {
  display: none !important;
}

.single-product .keyshu-single-price {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  display: block !important;
}

.single-product .keyshu-single-price-row {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 72px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #f5f7fa;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

/* Giá sale */
.single-product .keyshu-single-price-row > ins,
.single-product .keyshu-single-price ins {
  order: 1 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
}

/* Giá gốc */
.single-product .keyshu-single-price-row > del,
.single-product .keyshu-single-price del {
  order: 2 !important;
  display: inline-flex !important;
  align-items: center;
  color: #99a3ad !important;
  opacity: 1 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration-thickness: 2px;
}

/* Badge % luôn nằm sau giá */
.single-product .keyshu-single-price-row > .keyshu-price-discount,
.single-product .keyshu-price-discount {
  order: 3 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 50px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--ks-sale-soft);
  color: var(--ks-sale);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

/* Trường hợp WooCommerce bọc trong .price */
.single-product .keyshu-single-price .price {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 !important;
  color: var(--ks-sale) !important;
  font-size: 30px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

.single-product .keyshu-single-price .price ins {
  order: 1 !important;
}

.single-product .keyshu-single-price .price del {
  order: 2 !important;
}

/* Màu và size số tiền */
.single-product .keyshu-single-price .amount,
.single-product .keyshu-single-price-row > ins .amount,
.single-product .keyshu-single-price ins .amount,
.single-product .keyshu-single-price .price ins .amount {
  color: var(--ks-sale) !important;
  font-size: 30px !important;
  font-weight: 900 !important;
}

.single-product .keyshu-single-price-row > del .amount,
.single-product .keyshu-single-price del .amount,
.single-product .keyshu-single-price .price del .amount {
  color: #99a3ad !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

/* Ẩn screen reader text khỏi flex layout */
.single-product .keyshu-single-price-row > .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   MOBILE - giữ gọn hơn, không quá cao
========================================================= */

@media (max-width: 767px) {
  .single-product table.variations {
    max-width: 100% !important;
    margin-bottom: 12px !important;
  }

  .single-product table.variations tr {
    margin-bottom: 12px !important;
  }

  .single-product table.variations th.label {
    margin-bottom: 8px !important;
  }

  .single-product table.variations th.label label {
    font-size: 13px !important;
  }

  .single-product .keyshu-variation-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding-bottom: 2px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .single-product .keyshu-variation-pills::-webkit-scrollbar {
    display: none !important;
  }

  .single-product .keyshu-variation-pill {
    flex: 0 0 auto !important;
    min-width: 96px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
  }

  .single-product .keyshu-variation-pill.is-active::after {
    width: 18px !important;
    height: 18px !important;
    font-size: 11px !important;
    border-radius: 10px 0 8px 0 !important;
  }
}

/* =========================================================
   QUANTITY + ADD TO CART
========================================================= */

.single-product .single_variation_wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.single-product .woocommerce-variation,
.single-product .single_variation {
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .woocommerce-variation-add-to-cart,
.single-product .variations_button {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.single-product .ux-quantity.quantity.buttons_added {
  flex: 0 0 auto;
  width: 112px !important;
  height: 38px !important;
  display: grid !important;
  grid-template-columns: 36px 40px 36px !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 1.5px solid var(--ks-border) !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.single-product .ux-quantity .button,
.single-product .ux-quantity input[type="button"],
.single-product .ux-quantity input.minus,
.single-product .ux-quantity input.plus {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;

  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: none !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--ks-primary) !important;

  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 36px !important;
  text-align: center !important;
  text-indent: 0 !important;
  letter-spacing: 0 !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  box-shadow: none !important;
}

.single-product .ux-quantity input.minus {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.single-product .ux-quantity input.plus {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.single-product .ux-quantity .button:hover,
.single-product .ux-quantity input[type="button"]:hover {
  background: var(--ks-primary-soft) !important;
}

.single-product .ux-quantity input.qty {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;

  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-top: none !important;
  border-bottom: none !important;
  border-left: 1px solid var(--ks-border) !important;
  border-right: 1px solid var(--ks-border) !important;
  border-radius: 0 !important;

  background: #ffffff !important;
  color: var(--ks-heading) !important;

  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 36px !important;
  text-align: center !important;
  text-indent: 0 !important;

  appearance: textfield !important;
  -moz-appearance: textfield !important;

  box-shadow: none !important;
}

.single-product .ux-quantity input.qty::-webkit-outer-spin-button,
.single-product .ux-quantity input.qty::-webkit-inner-spin-button {
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Nút thêm giỏ hàng */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button.button.alt {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 210px !important;
  max-width: max-content !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 30px !important;
  border: none !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #f44336 0%, #c62828 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase !important;
  box-shadow: 0 12px 24px rgba(198, 40, 40, 0.20) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  opacity: 1 !important;
  transition: all 0.22s ease;
}

.single-product .single_add_to_cart_button::before {
  content: "\f290";
  font-family: "Font Awesome 6 Free", "Font Awesome 7 Free";
  font-weight: 900;
  font-size: 13px;
}

.single-product .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(183, 28, 28, 0.26) !important;
}

.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button.wc-variation-selection-needed {
  background: linear-gradient(135deg, #ef9a9a 0%, #d66a6a 100%) !important;
  cursor: not-allowed;
}

/* Nút mua ngay */
.single-product .ux-buy-now-button,
.single-product button.ux-buy-now-button.button.primary,
.single-product .variations_button .ux-buy-now-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 150px !important;
  max-width: max-content !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 28px !important;
  border: none !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-dark) 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase !important;
  box-shadow: 0 12px 24px rgba(3, 176, 177, 0.20) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 1 !important;
  transition: all 0.22s ease;
}

.single-product .ux-buy-now-button:hover,
.single-product button.ux-buy-now-button.button.primary:hover {
  background: linear-gradient(135deg, var(--ks-primary-dark) 0%, #017879 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(3, 176, 177, 0.25) !important;
}

.single-product form.cart::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   KEYSHU - META NHỎ BÊN PHẢI
   Ẩn SKU / Danh mục / Thẻ mặc định
   Thay bằng icon + text nhỏ, nhẹ, không làm nổi bật
========================================================= */

.single-product .product_meta {
  width: 100%;
  margin: 22px 0 0 !important;
  padding: 12px 0 0 !important;
  border-top: 1px dashed var(--ks-border) !important;

  color: var(--ks-muted);
  font-family: "SVN-Gilroy", sans-serif;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
}

/* Ẩn 3 dòng mặc định WooCommerce */
.single-product .product_meta > .sku_wrapper,
.single-product .product_meta > .posted_in,
.single-product .product_meta > .tagged_as {
  display: none !important;
}

/* Reset link/text mặc định còn sót */
.single-product .product_meta a {
  color: inherit !important;
  text-decoration: none !important;
}

/* Khối icon + text mới - chia 2 cột */
.single-product .keyshu-single-small-meta,
.single-product .keyshu-single-small-meta * {
  box-sizing: border-box;
}

.single-product .keyshu-single-small-meta {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 8px;

  color: #73878d;
}

.single-product .keyshu-single-small-meta__item {
  min-width: 0;
  min-height: 18px;

  display: flex;
  align-items: flex-start;
  gap: 7px;

  color: #73878d;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0;
}

.single-product .keyshu-single-small-meta__item span:last-child {
  min-width: 0;
  display: block;
}

.single-product .keyshu-single-small-meta__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--ks-primary);
  opacity: 0.85;
}

.single-product .keyshu-single-small-meta__icon::before {
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.single-product .keyshu-single-small-meta__icon--gift::before {
  content: "\f06b";
}

.single-product .keyshu-single-small-meta__icon--truck::before {
  content: "\f0d1";
}

.single-product .keyshu-single-small-meta__icon--shield::before {
  content: "\f3ed";
}

/* Không làm nổi bật số tiền / phần trăm trong meta nhỏ */
.single-product .keyshu-single-small-meta strong,
.single-product .keyshu-single-small-meta b {
  color: inherit !important;
  font-weight: 700;
}

@media (max-width: 767px) {
  .single-product .keyshu-single-small-meta {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .single-product .keyshu-single-small-meta__item {
    font-size: 11px;
    line-height: 1.45;
  }

  .single-product .keyshu-single-small-meta__icon {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  .single-product .keyshu-single-small-meta__icon::before {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .single-product .keyshu-single-small-meta__item {
    font-size: 10.8px;
  }
}
/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
  .single-product .product-main > .row.content-row {
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
    gap: 26px;
    padding: 24px !important;
  }

  .single-product .product-title,
  .single-product .product_title.entry-title {
    font-size: 25px !important;
  }

  .single-product .product-short-description {
    font-size: 13px !important;
  }

  .single-product .keyshu-variation-pill {
    min-width: 86px;
  }
}

@media (max-width: 991px) {
  .single-product .product-main {
    padding: 14px 10px 32px;
  }

  .single-product .product-main > .row.content-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px !important;
    border-radius: 22px;
  }

  .single-product .product-summary {
    padding: 0 4px 20px !important;
  }

  .single-product .product-gallery-slider .flickity-button.previous {
    left: 12px !important;
  }

  .single-product .product-gallery-slider .flickity-button.next {
    right: 12px !important;
  }

  .single-product .product-thumbnails {
    width: 100% !important;
    padding: 0 10px !important;
  }

  .single-product .product-title,
  .single-product .product_title.entry-title {
    max-width: 100% !important;
    font-size: 25px !important;
  }
}

@media (max-width: 767px) {
  .single-product .product-main {
    padding: 10px 8px 28px;
  }

  .single-product .product-main > .row.content-row {
    padding: 14px !important;
    border-radius: 18px;
  }

  .single-product .product-images .flickity-viewport,
  .single-product .woocommerce-product-gallery__image,
  .single-product .woocommerce-product-gallery__image a,
  .single-product .woocommerce-product-gallery__image img {
    border-radius: 16px !important;
  }

  .single-product .badge-container {
    top: 14px !important;
    left: 14px !important;
  }

  .single-product .badge,
  .single-product .badge-inner,
  .single-product .callout.badge,
  .single-product .badge-circle {
    min-width: 60px;
    min-height: 38px;
    border-radius: 12px !important;
  }

  .single-product .onsale {
    font-size: 14px !important;
  }

  .single-product .product-gallery-slider .flickity-button {
    display: none !important;
  }

  .single-product .zoom-button {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  .single-product .product-thumbnails .flickity-viewport {
    height: 72px !important;
  }

  .single-product .product-thumbnails .col {
    width: 72px !important;
    max-width: 72px !important;
    flex: 0 0 72px !important;
    padding: 0 5px !important;
  }

  .single-product .product-thumbnails a {
    width: 62px !important;
    height: 62px !important;
    border-radius: 11px !important;
  }

  .single-product .product-summary {
    padding: 0 2px 18px !important;
  }

  .single-product .woocommerce-breadcrumb {
    font-size: 10px !important;
    margin-bottom: 12px !important;
  }

  .single-product .product-title,
  .single-product .product_title.entry-title {
    font-size: 25px !important;
    line-height: 1.22 !important;
    margin-bottom: 14px !important;
  }

  .single-product .keyshu-single-price {
    max-width: 100%;
  }

  .single-product .keyshu-single-price-row {
    min-height: 56px;
  }

  .single-product .keyshu-single-price .price,
  .single-product .keyshu-single-price .amount,
  .single-product .keyshu-single-price ins .amount,
  .single-product .keyshu-single-price-row > ins .amount {
    font-size: 25px !important;
  }

  .single-product .product-short-description {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  .single-product table.variations tr {
    grid-template-columns: 1fr !important;
    gap: 9px;
  }

  .single-product table.variations th.label {
    padding-top: 0 !important;
  }

  .single-product .keyshu-variation-pills {
    gap: 8px;
  }

  .single-product .keyshu-variation-pill {
    min-width: auto;
    height: 34px;
    padding: 0 12px;
    font-size: 10.5px;
  }

  .single-product .woocommerce-variation-add-to-cart,
  .single-product .variations_button {
    width: 100%;
    display: grid !important;
    grid-template-columns: 108px minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .single-product .ux-quantity.quantity.buttons_added {
    width: 108px !important;
    height: 38px !important;
    grid-template-columns: 31px 1fr 31px !important;
  }

  .single-product .ux-quantity .button,
  .single-product .ux-quantity input[type="button"],
  .single-product .ux-quantity input.qty {
    height: 36px !important;
    min-height: 36px !important;
  }

  .single-product .single_add_to_cart_button,
  .single-product button.single_add_to_cart_button.button.alt,
  .single-product .ux-buy-now-button,
  .single-product button.ux-buy-now-button.button.primary {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap;
  }

  .single-product .single_add_to_cart_button::before {
    font-size: 11px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .single-product .product-main > .row.content-row {
    padding: 12px !important;
  }

  .single-product .product-title,
  .single-product .product_title.entry-title {
    font-size: 22px !important;
  }

  .single-product .star-rating {
    width: 86px !important;
    font-size: 14px !important;
  }

  .single-product .keyshu-rating-real-text {
    font-size: 11px;
  }

  .single-product .keyshu-single-price-row {
    min-height: 54px;
    padding: 9px 12px;
    gap: 10px;
  }

  .single-product .keyshu-single-price .price,
  .single-product .keyshu-single-price .amount,
  .single-product .keyshu-single-price ins .amount,
  .single-product .keyshu-single-price-row > ins .amount {
    font-size: 23px !important;
  }

  .single-product .keyshu-single-price del,
  .single-product .keyshu-single-price del .amount,
  .single-product .keyshu-single-price-row > del .amount {
    font-size: 12px !important;
  }

  .single-product .woocommerce-variation-add-to-cart,
  .single-product .variations_button {
    grid-template-columns: 94px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  .single-product .ux-quantity.quantity.buttons_added {
    width: 94px !important;
    grid-template-columns: 28px 1fr 28px !important;
  }

  .single-product .single_add_to_cart_button,
  .single-product button.single_add_to_cart_button.button.alt,
  .single-product .ux-buy-now-button,
  .single-product button.ux-buy-now-button.button.primary {
    height: 38px !important;
    min-height: 38px !important;
    min-width: 0 !important;
    padding: 0 5px !important;
    font-size: 9.6px !important;
    gap: 4px;
  }

  .single-product .single_add_to_cart_button::before {
    font-size: 10px;
  }
}
.single-product .icon-expand {
  position: relative;
  top: 7.5px;
}
/* =========================================================
   KEYSHU - PRODUCT FOOTER TABS
   WooCommerce + Flatsome
   Giao diện giống ảnh mẫu, chuẩn responsive
========================================================= */

:root {
  --ks-tab-primary: #03b0b1;
  --ks-tab-primary-dark: #029596;
  --ks-tab-bg: #eefafa;
  --ks-tab-text: #34495e;
  --ks-tab-muted: #64748b;
  --ks-tab-heading: #111827;
  --ks-tab-border: #dceff0;
  --ks-tab-border-2: #e5edf3;
  --ks-tab-white: #ffffff;
  --ks-tab-star: #f59e0b;
  --ks-tab-radius: 18px;
  --ks-tab-shadow: 0 18px 50px rgba(3, 176, 177, 0.08);
}

/* Wrapper ngoài */
.single-product .product-footer {
  width: 100%;
  padding: 46px 14px 54px;
}

.single-product .product-footer > .container {
  max-width: 1160px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Card chính */
.single-product .woocommerce-tabs.wc-tabs-wrapper {
  max-width: 1160px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 42px 40px 48px !important;
  border-radius: 20px;
  background: var(--ks-tab-white);
  border: 1px solid rgba(220, 239, 240, 0.8);
  box-shadow: var(--ks-tab-shadow);
  overflow: hidden;
}

/* =========================================================
   TAB NAV
========================================================= */

.single-product .woocommerce-tabs ul.tabs.wc-tabs {
  width: 100%;
  margin: 0 !important;
  padding: 0 0 1px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--ks-tab-border-2);
  list-style: none !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs::before,
.single-product .woocommerce-tabs ul.tabs.wc-tabs::after {
  display: none !important;
  content: none !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  list-style: none !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li::before,
.single-product .woocommerce-tabs ul.tabs.wc-tabs li::after {
  display: none !important;
  content: none !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
  position: relative;
  min-width: 180px;
  height: 44px;
  padding: 0 22px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #66758d !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  transition: all 0.22s ease;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li a:hover {
  color: var(--ks-tab-primary) !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li.active a {
  color: var(--ks-tab-primary) !important;
}

/* =========================================================
   TAB CONTENT
========================================================= */

.single-product .woocommerce-tabs .tab-panels {
  margin: 0 !important;
  padding: 30px 58px 0 !important;
  border: none !important;
  background: transparent !important;
}

.single-product .woocommerce-tabs .panel {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: var(--ks-tab-text);
  animation: keyshuTabFade 0.24s ease;
}

@keyframes keyshuTabFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Text mô tả */
.single-product .woocommerce-tabs .panel h2,
.single-product .woocommerce-tabs .panel h3,
.single-product .woocommerce-tabs .panel h4 {
  margin: 0 0 16px !important;
  color: var(--ks-tab-heading) !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.single-product .woocommerce-tabs .panel p {
  margin: 0 0 16px !important;
  color: #43536a !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  font-weight: 500 !important;
}

.single-product .woocommerce-tabs .panel p:last-child {
  margin-bottom: 0 !important;
}

.single-product .woocommerce-tabs .panel ul,
.single-product .woocommerce-tabs .panel ol {
  margin: 16px 0 0 22px !important;
  padding: 0 !important;
  color: #43536a;
}

.single-product .woocommerce-tabs .panel li {
  margin: 0 0 10px !important;
  padding-left: 4px;
  color: #43536a !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
}

.single-product .woocommerce-tabs .panel li::marker {
  color: #475569;
  font-size: 0.85em;
}

/* =========================================================
   ADDITIONAL INFORMATION TABLE
========================================================= */

.single-product .woocommerce-tabs .woocommerce-product-attributes {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--ks-tab-border);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.single-product .woocommerce-tabs .woocommerce-product-attributes tbody,
.single-product .woocommerce-tabs .woocommerce-product-attributes tr,
.single-product .woocommerce-tabs .woocommerce-product-attributes th,
.single-product .woocommerce-tabs .woocommerce-product-attributes td {
  border-color: var(--ks-tab-border) !important;
}

.single-product .woocommerce-tabs .woocommerce-product-attributes th {
  width: 180px;
  padding: 16px 18px !important;
  background: #f7ffff !important;
  color: var(--ks-tab-heading) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.single-product .woocommerce-tabs .woocommerce-product-attributes td {
  padding: 16px 18px !important;
  color: var(--ks-tab-text) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  font-weight: 600 !important;
}

.single-product .woocommerce-tabs .woocommerce-product-attributes td p {
  margin: 0 !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  .single-product .woocommerce-tabs.wc-tabs-wrapper {
    padding: 34px 28px 40px !important;
  }

  .single-product .woocommerce-tabs .tab-panels {
    padding: 28px 28px 0 !important;
  }

  .single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
    min-width: 150px;
    padding: 0 16px !important;
    font-size: 14px !important;
  }

  .single-product .woocommerce-tabs #reviews.woocommerce-Reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .single-product .product-footer {
    padding: 28px 10px 38px;
  }

  .single-product .woocommerce-tabs.wc-tabs-wrapper {
    padding: 22px 16px 28px !important;
    border-radius: 16px;
  }

  .single-product .woocommerce-tabs ul.tabs.wc-tabs {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    overflow: visible;
    gap: 6px;
    padding-bottom: 0 !important;
    border-bottom: none;
  }

  .single-product .woocommerce-tabs ul.tabs.wc-tabs::-webkit-scrollbar {
    display: none;
  }

  .single-product .woocommerce-tabs ul.tabs.wc-tabs li {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px;
    padding: 0 6px !important;
    border-radius: 999px;
    border: 1px solid var(--ks-tab-border) !important;
    background: #ffffff !important;
    color: #66758d !important;
    font-size: 11.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .single-product .woocommerce-tabs ul.tabs.wc-tabs li.active a {
    background: var(--ks-tab-primary) !important;
    border-color: var(--ks-tab-primary) !important;
    color: #ffffff !important;
  }

  .single-product .woocommerce-tabs ul.tabs.wc-tabs li.active a::after {
    display: none !important;
  }

  .single-product .woocommerce-tabs .tab-panels {
    padding: 22px 0 0 !important;
  }

  .single-product .woocommerce-tabs .panel h2,
  .single-product .woocommerce-tabs .panel h3,
  .single-product .woocommerce-tabs .panel h4 {
    font-size: 17px !important;
  }

  .single-product .woocommerce-tabs .panel p,
  .single-product .woocommerce-tabs .panel li {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  .single-product .woocommerce-tabs .woocommerce-product-attributes,
  .single-product .woocommerce-tabs .woocommerce-product-attributes tbody,
  .single-product .woocommerce-tabs .woocommerce-product-attributes tr,
  .single-product .woocommerce-tabs .woocommerce-product-attributes th,
  .single-product .woocommerce-tabs .woocommerce-product-attributes td {
    display: block;
    width: 100% !important;
  }

  .single-product .woocommerce-tabs .woocommerce-product-attributes th {
    padding: 14px 16px 8px !important;
  }

  .single-product .woocommerce-tabs .woocommerce-product-attributes td {
    padding: 0 16px 14px !important;
  }

  .single-product .woocommerce-tabs .comment_container {
    padding: 14px;
  }

  .single-product .woocommerce-tabs .comment_container img.avatar {
    width: 42px !important;
    height: 42px !important;
    margin-right: 12px;
  }

  .single-product .woocommerce-tabs .review-form-inner {
    padding: 18px !important;
  }
}

@media (max-width: 480px) {
  .single-product .woocommerce-tabs.wc-tabs-wrapper {
    padding: 18px 12px 24px !important;
    border-radius: 14px;
  }

  .single-product .woocommerce-tabs ul.tabs.wc-tabs {
    gap: 5px;
  }

  .single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
    height: 36px;
    padding: 0 4px !important;
    font-size: 10.5px !important;
    letter-spacing: -0.1px !important;
  }

  .single-product .woocommerce-tabs .tab-panels {
    padding-top: 18px !important;
  }

  .single-product .woocommerce-tabs .panel h2,
  .single-product .woocommerce-tabs .panel h3,
  .single-product .woocommerce-tabs .panel h4 {
    font-size: 16px !important;
  }

  .single-product .woocommerce-tabs .panel p,
  .single-product .woocommerce-tabs .panel li {
    font-size: 13.5px !important;
  }

  .single-product .woocommerce-tabs .comment_container {
    display: flex;
    gap: 10px;
  }
}
h3.product-section-title.container-width.product-section-title-related.pt-half.pb-half.uppercase{
    text-align: center;
}
span.amount{
    color: var(--keyshu-price) !important;
}
/* =========================================================
   KEYSHU - RELATED PRODUCTS / SẢN PHẨM THEO CÔNG DỤNG
   Áp dụng cả desktop + mobile
   Target chính xác:
   .product-footer .related.related-products-wrapper.product-section

   Lưu ý:
   - Đây là bản thay thế toàn bộ CSS cũ cho section này.
   - Không dán chồng thêm nhiều đoạn related products khác.
========================================================= */

/* =========================================================
   1. SECTION TỔNG
========================================================= */

body .product-footer {
  background: #effffb;
}

body .product-footer .related.related-products-wrapper.product-section {
  --ks-rel-primary: #03b0b1;
  --ks-rel-heading: #315f66;
  --ks-rel-muted: #8a9ca3;
  --ks-rel-muted-2: #b7c2c7;
  --ks-rel-border: #e4eef0;
  --ks-rel-price: #ee4d2d;
  --ks-rel-sale: #ff4545;
  --ks-rel-success: #15b37e;
  --ks-rel-rating: #ffae12;
  --ks-rel-red: #f44336;
  --ks-rel-red-dark: #d92922;
  --ks-rel-icon-font: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";

  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 34px 0 48px;

  position: relative;
  overflow: visible;

  background: #effffb;
}

body .product-footer .related.related-products-wrapper.product-section,
body .product-footer .related.related-products-wrapper.product-section * {
  box-sizing: border-box;
}

/* =========================================================
   2. TIÊU ĐỀ SECTION
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .product-section-title-related {
  width: 100%;
  max-width: 1320px;

  margin: 0 auto 18px;
  padding: 0 20px;

  color: var(--ks-rel-heading);
  background: transparent;
  border: 0;

  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-align: left;
  text-transform: uppercase;
}

/* =========================================================
   3. SLIDER FLATSOME / FLICKITY
   Quan trọng: không để height auto, vì item Flickity là absolute
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .row-slider,
body .product-footer .related.related-products-wrapper.product-section .row.row-small.slider,
body .product-footer .related.related-products-wrapper.product-section .row.row-small.row-slider {
  width: 100%;
  max-width: 1320px;

  margin: 0 auto;
  padding: 0 20px;

  position: relative;
  overflow: visible;
}

body .product-footer .related.related-products-wrapper.product-section .flickity-viewport {
  width: 100%;
  height: 404px !important;
  min-height: 404px;

  overflow: hidden;
}

body .product-footer .related.related-products-wrapper.product-section .flickity-slider {
  height: 100%;
}

body .product-footer .related.related-products-wrapper.product-section .product-small.col {
  width: 244px;
  max-width: 244px;
  min-width: 244px;
  height: 100%;

  padding: 0;
  margin: 0 14px 0 0;

  float: none;
}

body .product-footer .related.related-products-wrapper.product-section .product-small.col > .col-inner {
  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;
}

/* Ẩn nút điều hướng slider trong ảnh mẫu */
body .product-footer .related.related-products-wrapper.product-section .flickity-prev-next-button,
body .product-footer .related.related-products-wrapper.product-section .flickity-page-dots {
  display: none;
}

/* =========================================================
   4. CARD SẢN PHẨM
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .product-small .box {
  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;
  min-height: 0;

  margin: 0;
  padding: 10px 10px 11px;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid var(--ks-rel-border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(43, 91, 101, 0.08);

  transition: none;
}

body .product-footer .related.related-products-wrapper.product-section .product-small:hover .box {
  transform: none;
}

/* =========================================================
   5. ẢNH SẢN PHẨM
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .box-image {
  width: 100%;
  aspect-ratio: 1 / 1;

  margin: 0 0 12px;
  padding: 0;

  position: relative;
  overflow: hidden;

  background: #f3f8f8;
  border-radius: 22px;
}

body .product-footer .related.related-products-wrapper.product-section .box-image .image-fade_in_back,
body .product-footer .related.related-products-wrapper.product-section .box-image .image-fade_in_back > a {
  display: block;
  width: 100%;
  height: 100%;
}

body .product-footer .related.related-products-wrapper.product-section .box-image img {
  display: block;

  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: center center;

  border-radius: 22px;
  transform: none;
}

body .product-footer .related.related-products-wrapper.product-section .box-image img.back-image {
  display: none;
}

/* Ẩn các tool không có trong ảnh mẫu */
body .product-footer .related.related-products-wrapper.product-section .quick-view,
body .product-footer .related.related-products-wrapper.product-section .grid-tools,
body .product-footer .related.related-products-wrapper.product-section .image-tools.bottom,
body .product-footer .related.related-products-wrapper.product-section .wishlist-popup,
body .product-footer .related.related-products-wrapper.product-section .box-image .image-tools.top.right {
  display: none;
}

/* =========================================================
   6. NỘI DUNG CARD
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .box-text-products {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;

  width: 100%;
  height: auto;

  margin: 0;
  padding: 0 2px;

  background: transparent;
  text-align: left;
}

body .product-footer .related.related-products-wrapper.product-section .product-cat,
body .product-footer .related.related-products-wrapper.product-section .category {
  display: none;
}

body .product-footer .related.related-products-wrapper.product-section .title-wrapper,
body .product-footer .related.related-products-wrapper.product-section .price-wrapper,
body .product-footer .related.related-products-wrapper.product-section .add-to-cart-button {
  height: auto;
}

body .product-footer .related.related-products-wrapper.product-section .product-title {
  display: -webkit-box;

  min-height: 38px;
  margin: 0 0 7px;
  padding: 0;

  overflow: hidden;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body .product-footer .related.related-products-wrapper.product-section .product-title a {
  display: block;

  color: var(--ks-rel-heading);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;

  text-decoration: none;
}

/* =========================================================
   7. RATING
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .price-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  width: 100%;

  margin: 0;
  padding: 0;

  gap: 0;
  line-height: 1;
  text-align: left;
}

body .product-footer .related.related-products-wrapper.product-section .star-rating,
body .product-footer .related.related-products-wrapper.product-section .keyshu-rating-score,
body .product-footer .related.related-products-wrapper.product-section .review-count {
  order: 1;

  display: inline-flex;
  align-items: center;
}

body .product-footer .related.related-products-wrapper.product-section .star-rating {
  width: 67px;
  height: 14px;

  margin: 0 6px 0 0;
  padding: 0;

  position: relative;
  overflow: hidden;

  color: var(--ks-rel-rating);
  font-size: 0;
  line-height: 14px;
  letter-spacing: 0;
}

body .product-footer .related.related-products-wrapper.product-section .star-rating::before {
  content: "★★★★★";

  position: absolute;
  top: 0;
  left: 0;

  color: #d9e2e5;
  font-family: "SVN-Gilroy", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 1px;
}

body .product-footer .related.related-products-wrapper.product-section .star-rating span {
  display: block;

  height: 14px;
  padding-top: 14px;

  position: absolute;
  top: 0;
  left: 0;

  overflow: hidden;
  font-size: 0;
}

body .product-footer .related.related-products-wrapper.product-section .star-rating span::before {
  content: "★★★★★";

  position: absolute;
  top: 0;
  left: 0;

  color: var(--ks-rel-rating);
  font-family: "SVN-Gilroy", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 1px;
}

body .product-footer .related.related-products-wrapper.product-section .keyshu-rating-real-text {
  display: none;
}

body .product-footer .related.related-products-wrapper.product-section .keyshu-rating-score {
  margin: 0 4px 0 0;

  color: var(--ks-rel-primary);
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 800;
  white-space: nowrap;
}

body .product-footer .related.related-products-wrapper.product-section .review-count {
  margin: 0;

  color: var(--ks-rel-muted);
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 1;
}

body .product-footer .related.related-products-wrapper.product-section .review-count::before,
body .product-footer .related.related-products-wrapper.product-section .review-count::after {
  display: none;
  content: none;
}

/* Sản phẩm chưa có đánh giá */
body .product-footer .related.related-products-wrapper.product-section .keyshu-no-rating {
  order: 1;

  display: inline-flex;
  align-items: center;

  min-height: 14px;

  color: var(--ks-rel-muted);
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 700;
  white-space: nowrap;
}

body .product-footer .related.related-products-wrapper.product-section .keyshu-no-rating::before {
  content: "☆☆☆☆☆";

  margin-right: 5px;

  color: #d9e2e5;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 1px;
}

/* =========================================================
   8. GIÁ + BADGE SALE
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .price {
  order: 2;
  flex: 0 0 100%;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;

  width: 100%;
  margin: 7px 0 0;

  color: var(--ks-rel-price);
  white-space: nowrap;
}

body .product-footer .related.related-products-wrapper.product-section .price ins {
  order: 1;
  flex: 0 0 auto;

  color: var(--ks-rel-price);
  text-decoration: none;
}

body .product-footer .related.related-products-wrapper.product-section .price del {
  order: 2;
  flex: 0 1 auto;

  display: inline-flex;
  align-items: center;

  margin: 0;

  color: var(--ks-rel-muted-2);
  opacity: 1;

  text-decoration-line: line-through;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

body .product-footer .related.related-products-wrapper.product-section .price ins .amount,
body .product-footer .related.related-products-wrapper.product-section .price ins bdi,
body .product-footer .related.related-products-wrapper.product-section .price > .amount,
body .product-footer .related.related-products-wrapper.product-section .price > .amount bdi,
body .product-footer .related.related-products-wrapper.product-section .price .amount,
body .product-footer .related.related-products-wrapper.product-section .price bdi {
  color: var(--ks-rel-price);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;

  text-decoration: none;
  border-bottom: none;
}

body .product-footer .related.related-products-wrapper.product-section .price del .amount,
body .product-footer .related.related-products-wrapper.product-section .price del bdi,
body .product-footer .related.related-products-wrapper.product-section .price del span {
  color: var(--ks-rel-muted-2);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;

  text-decoration-line: line-through;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

body .product-footer .related.related-products-wrapper.product-section .price .badge-container {
  order: 3;
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;

  margin: 0 0 0 2px;
  padding: 0;

  position: static;
  inset: auto;
  z-index: auto;
  transform: none;
}

body .product-footer .related.related-products-wrapper.product-section .price .badge,
body .product-footer .related.related-products-wrapper.product-section .price .badge-circle,
body .product-footer .related.related-products-wrapper.product-section .price .badge-inner {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;

  margin: 0;
  padding: 0;

  line-height: 1;
  border-radius: 4px;
  transform: none;
}

body .product-footer .related.related-products-wrapper.product-section .price .badge-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 6px;

  color: #ffffff;
  background: var(--ks-rel-sale);
  box-shadow: none;
}

body .product-footer .related.related-products-wrapper.product-section .price .badge-inner,
body .product-footer .related.related-products-wrapper.product-section .price .badge-inner .onsale,
body .product-footer .related.related-products-wrapper.product-section .price .badge-inner.new-bubble {
  color: #ffffff;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

body .product-footer .related.related-products-wrapper.product-section .badge-inner .onsale::before,
body .product-footer .related.related-products-wrapper.product-section .price::after,
body .product-footer .related.related-products-wrapper.product-section .screen-reader-text {
  display: none;
  content: none;
}

/* =========================================================
   9. TRẠNG THÁI KHO
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .price-wrapper::after {
  content: "✓ CÒN HÀNG";

  order: 3;
  flex: 0 0 100%;

  display: block;

  margin: 5px 0 0;

  color: var(--ks-rel-success);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.15px;
  text-transform: uppercase;
}

body .product-footer .related.related-products-wrapper.product-section .product-small.out-of-stock .price-wrapper::after,
body .product-footer .related.related-products-wrapper.product-section .product-small.outofstock .price-wrapper::after {
  content: "✖ HẾT HÀNG";
  color: var(--ks-rel-price);
}

/* =========================================================
   10. NÚT THÊM GIỎ HÀNG
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .add-to-cart-button {
  margin-top: auto;
  padding-top: 12px;
}

body .product-footer .related.related-products-wrapper.product-section .add-to-cart-button .button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 38px;
  min-height: 38px;
  max-height: 38px;

  margin: 0;
  padding: 0 36px 0 0;

  position: relative;
  overflow: hidden;

  color: #ffffff;
  background: linear-gradient(135deg, var(--ks-rel-red) 0%, var(--ks-rel-red-dark) 100%);
  border: none;
  border-radius: 7px;
  box-shadow: 0 7px 16px rgba(217, 41, 34, 0.20);

  font-size: 10px;
  line-height: 38px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;

  transform: none;
}

body .product-footer .related.related-products-wrapper.product-section .add-to-cart-button .button::before {
  content: "";

  position: absolute;
  top: 0;
  right: 36px;
  z-index: 2;

  width: 1px;
  height: 100%;

  background: rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

body .product-footer .related.related-products-wrapper.product-section .add-to-cart-button .button::after {
  content: "\f07a";

  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 38px;

  color: #ffffff;
  font-family: var(--ks-rel-icon-font);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;

  transform: none;
  animation: none;
}

body .product-footer .related.related-products-wrapper.product-section .add-to-cart-button .button:hover,
body .product-footer .related.related-products-wrapper.product-section .add-to-cart-button .button:focus {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ks-rel-red) 0%, var(--ks-rel-red-dark) 100%);
  box-shadow: 0 7px 16px rgba(217, 41, 34, 0.20);
  transform: none;
}

/* Hết hàng */
body .product-footer .related.related-products-wrapper.product-section .product-small.out-of-stock .add-to-cart-button .button,
body .product-footer .related.related-products-wrapper.product-section .product-small.outofstock .add-to-cart-button .button {
  color: #ffffff;
  background: #cbd5e0;
  box-shadow: none;
  pointer-events: none;
}

body .product-footer .related.related-products-wrapper.product-section .product-small.out-of-stock .box-image img,
body .product-footer .related.related-products-wrapper.product-section .product-small.outofstock .box-image img {
  filter: grayscale(100%) opacity(0.64);
}

body .product-footer .related.related-products-wrapper.product-section .out-of-stock-label {
  display: none;
}

/* =========================================================
   11. FIX CÁC INLINE STYLE CỦA FLATSOME / FLICKITY
========================================================= */

body .product-footer .related.related-products-wrapper.product-section .box-text-products[style],
body .product-footer .related.related-products-wrapper.product-section .product-title[style],
body .product-footer .related.related-products-wrapper.product-section .price-wrapper[style],
body .product-footer .related.related-products-wrapper.product-section .add-to-cart-button[style] {
  height: auto;
}

/* Riêng Flickity cần giữ !important vì plugin gắn inline height */
body .product-footer .related.related-products-wrapper.product-section .flickity-viewport[style] {
  height: 404px !important;
}

/* =========================================================
   12. RESPONSIVE
========================================================= */

@media (max-width: 849px) {
  body .product-footer .related.related-products-wrapper.product-section {
    padding: 24px 0 36px;
  }

  body .product-footer .related.related-products-wrapper.product-section .product-section-title-related {
    margin-bottom: 16px;
    padding-left: 20px;
    padding-right: 20px;

    font-size: 16px;
  }

  body .product-footer .related.related-products-wrapper.product-section .row-slider,
  body .product-footer .related.related-products-wrapper.product-section .row.row-small.slider,
  body .product-footer .related.related-products-wrapper.product-section .row.row-small.row-slider {
    padding-left: 20px;
    padding-right: 0;
  }

  body .product-footer .related.related-products-wrapper.product-section .flickity-viewport,
  body .product-footer .related.related-products-wrapper.product-section .flickity-viewport[style] {
    height: 392px !important;
    min-height: 392px;
  }

  body .product-footer .related.related-products-wrapper.product-section .product-small.col {
    width: 244px;
    max-width: 244px;
    min-width: 244px;
    margin-right: 14px;
  }
}

@media (max-width: 390px) {
  body .product-footer .related.related-products-wrapper.product-section .flickity-viewport,
  body .product-footer .related.related-products-wrapper.product-section .flickity-viewport[style] {
    height: 392px !important;
    min-height: 392px;
  }

  body .product-footer .related.related-products-wrapper.product-section .product-small .box {
    padding: 10px 10px 11px;
  }

  body .product-footer .related.related-products-wrapper.product-section .product-title a {
    font-size: 13px;
  }
}

@media (max-width: 350px) {
  body .product-footer .related.related-products-wrapper.product-section .row-slider,
  body .product-footer .related.related-products-wrapper.product-section .row.row-small.slider,
  body .product-footer .related.related-products-wrapper.product-section .row.row-small.row-slider {
    padding-left: 12px;
  }

  body .product-footer .related.related-products-wrapper.product-section .product-small.col {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: calc(100vw - 24px);
  }

  body .product-footer .related.related-products-wrapper.product-section .flickity-viewport,
  body .product-footer .related.related-products-wrapper.product-section .flickity-viewport[style] {
    height: 430px !important;
    min-height: 430px;
  }
}

/* =========================================================
   KEYSHU - CUSTOM REVIEWS V3
   WooCommerce + Flatsome
========================================================= */

.single-product .keyshu-reviews-section {
  --ks-review-primary: #03b0b1;
  --ks-review-primary-dark: #029596;
  --ks-review-star: #ff5a00;
  --ks-review-text: #333333;
  --ks-review-muted: #777777;
  --ks-review-soft: #f1f3f5;
  --ks-review-line: #e3e5e8;
  --ks-review-green: #22c55e;

  width: 100%;
  padding: 0 0px 46px;
  margin-top: 30px;
}

.single-product .keyshu-reviews-section,
.single-product .keyshu-reviews-section * {
  box-sizing: border-box;
}

.single-product .keyshu-reviews-card {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px 10px;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

/* Ẩn các phần cũ nếu còn sót từ CSS/code cũ */
.single-product .keyshu-review-list-head,
.single-product .keyshu-filter-image,
.single-product .keyshu-review-image-note {
  display: none !important;
}

.single-product .keyshu-review-title-row h2 {
  margin: 0 0 14px !important;
  color: var(--ks-review-text) !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
}

.single-product .keyshu-review-title-row h2 span {
  font-weight: 600;
}

.single-product .keyshu-review-top {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.single-product .keyshu-review-score-box {
  text-align: center;
}

.single-product .keyshu-review-score {
  margin-bottom: 4px;
  color: var(--ks-review-star);
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

.single-product .keyshu-review-total {
  margin-top: 6px;
  color: var(--ks-review-muted);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

/* Sao tổng quan */
.single-product .keyshu-stars {
  position: relative;
  display: inline-block;
  width: 92px;
  height: 18px;
  color: #d6d8db;
  font-family: "SVN-Gilroy", sans-serif;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 1px;
  overflow: hidden;
}

.single-product .keyshu-stars::before {
  content: "★★★★★";
}

.single-product .keyshu-stars span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  height: 100%;
  overflow: hidden;
  color: var(--ks-review-star);
}

.single-product .keyshu-stars span::before {
  content: "★★★★★";
}

.single-product .keyshu-stars-large {
  width: 106px;
  height: 22px;
  font-size: 22px;
  line-height: 22px;
}

/* Bộ lọc sao */
.single-product .keyshu-review-filter-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.single-product .keyshu-rating-filter {
  min-width: 150px;
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: #f0f1f3;
  color: #777777;
  font-size: 13px;
  line-height: 36px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}

.single-product .keyshu-rating-filter:hover {
  color: var(--ks-review-primary);
  background: #eaffff;
}

.single-product .keyshu-rating-filter.is-active {
  background: var(--ks-review-primary);
  color: #ffffff;
}

.single-product .keyshu-rating-filter .keyshu-filter-star {
  color: currentColor;
  font-size: 13px;
}

/* CTA viết đánh giá */
.single-product .keyshu-review-cta-box {
  text-align: center;
}

.single-product .keyshu-review-cta-box p {
  margin: 0 auto 12px !important;
  color: var(--ks-review-text) !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  text-align: center !important;;
}

.single-product .keyshu-review-open {
  width: 210px;
  height: 44px;
  border: 1.5px solid var(--ks-review-primary);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ks-review-primary);
  font-size: 16px;
  line-height: 42px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}

.single-product .keyshu-review-open:hover {
  background: var(--ks-review-primary);
  color: #ffffff;
}

/* FORM */
.single-product .keyshu-review-form-panel {
  margin: 18px 0 20px;
}

.single-product .keyshu-review-form-panel[hidden] {
  display: none !important;
}

.single-product .keyshu-review-form-inner {
  padding: 34px 34px 30px;
  border-radius: 10px;
  background: #eef0f2;
  border: 1px solid var(--ks-review-primary);
}

.single-product .keyshu-review-form-inner .comment-respond {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.single-product .keyshu-review-form-inner .comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0 !important;
}

.single-product .keyshu-comment-form-rating {
  width: 100%;
  margin: 0 !important;
}

.single-product .keyshu-comment-form-rating > label {
  display: block;
  margin: 0 0 14px;
  color: var(--ks-review-text);
  font-size: 15px;
  font-weight: 800;
}

/* Select rating ẩn, WooCommerce JS sẽ tạo p.stars mặc định */
.single-product .keyshu-comment-form-rating select#rating {
  display: none !important;
}

/* =========================================================
   FIX SAO ĐÁNH GIÁ TRONG FORM - KHÔNG CHỒNG CHÉO
========================================================= */

.single-product .keyshu-comment-form-rating {
  width: 100%;
  margin: 0 0 8px !important;
}

.single-product .keyshu-comment-form-rating > label {
  display: block;
  width: 100%;
  margin: 0 0 14px !important;
  color: var(--ks-review-text);
  font-size: 15px;
  font-weight: 800;
}

/* Reset toàn bộ style sao mặc định để tránh chồng */
.single-product .keyshu-comment-form-rating p.stars,
.single-product .keyshu-comment-form-rating p.stars span {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  height: 44px !important;
  margin: 0 16px 0 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  overflow: visible !important;
  vertical-align: middle !important;
}

/* Mỗi sao là 1 ô riêng, không đè lên nhau */
.single-product .keyshu-comment-form-rating p.stars a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 44px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Xóa icon sao mặc định của WooCommerce/Flatsome */
.single-product .keyshu-comment-form-rating p.stars a::after {
  display: none !important;
  content: none !important;
}

/* Sao custom */
.single-product .keyshu-comment-form-rating p.stars a::before {
  content: "★" !important;
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  color: #cfd3d8 !important;
  font-family: "SVN-Gilroy", sans-serif !important;
  font-size: 40px !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  opacity: 1 !important;
}

/* Hover: tô màu từ trái sang sao đang hover */
.single-product .keyshu-comment-form-rating p.stars:hover a::before {
  color: var(--ks-review-star) !important;
}

.single-product .keyshu-comment-form-rating p.stars a:hover ~ a::before {
  color: #cfd3d8 !important;
}

/* Khi đã chọn sao */
.single-product .keyshu-comment-form-rating p.stars.selected a::before {
  color: var(--ks-review-star) !important;
}

.single-product .keyshu-comment-form-rating p.stars.selected a.active ~ a::before {
  color: #cfd3d8 !important;
}

.single-product .keyshu-comment-form-rating p.stars.selected a.active::before {
  color: var(--ks-review-star) !important;
}

/* Text Rất hài lòng nằm cách sao rõ ràng */
.single-product .keyshu-rating-status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 4px;
  color: var(--ks-review-text);
  font-size: 15px;
  font-weight: 500;
  vertical-align: middle;
}

/* Mobile */
@media (max-width: 480px) {
  .single-product .keyshu-comment-form-rating p.stars,
  .single-product .keyshu-comment-form-rating p.stars span {
    gap: 5px !important;
    height: 38px !important;
    margin-right: 10px !important;
  }

  .single-product .keyshu-comment-form-rating p.stars a {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 38px !important;
  }

  .single-product .keyshu-comment-form-rating p.stars a::before {
    font-size: 32px !important;
  }

  .single-product .keyshu-rating-status {
    min-height: 38px;
    font-size: 14px;
  }
}

.single-product .keyshu-rating-status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ks-review-text);
  font-size: 15px;
  font-weight: 500;
  vertical-align: middle;
}

.single-product .keyshu-comment-content {
  width: 100%;
  margin: 0 !important;
}

.single-product .keyshu-comment-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.single-product .keyshu-comment-label-row label {
  color: var(--ks-review-text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
}

.single-product .keyshu-char-count {
  color: #888888;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.single-product .keyshu-comment-content textarea {
  width: 100%;
  min-height: 122px;
  padding: 14px 16px !important;
  border: 1px solid #d8dde3 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--ks-review-text) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  font-weight: 500;
  outline: none !important;
  box-shadow: none !important;
  resize: vertical;
}

.single-product .keyshu-comment-content textarea:focus {
  border-color: var(--ks-review-primary) !important;
  box-shadow: 0 0 0 3px rgba(3, 176, 177, 0.14) !important;
}

.single-product .keyshu-form-half {
  flex: 1 1 calc(50% - 9px);
  margin: 0 !important;
}

.single-product .keyshu-form-half label {
  display: block;
  margin: 0 0 7px;
  color: var(--ks-review-text);
  font-size: 14px;
  font-weight: 800;
}

.single-product .keyshu-form-half input {
  width: 100%;
  height: 44px;
  padding: 0 14px !important;
  border: 1px solid #d8dde3 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--ks-review-text) !important;
  font-size: 14px !important;
  box-shadow: none !important;
  outline: none !important;
}

.single-product .keyshu-form-half input:focus {
  border-color: var(--ks-review-primary) !important;
  box-shadow: 0 0 0 3px rgba(3, 176, 177, 0.14) !important;
}

.single-product .keyshu-form-submit {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin: 16px 0 0 !important;
}

.single-product .keyshu-review-cancel {
  height: 44px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: var(--ks-review-primary-dark);
  font-size: 16px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.single-product .keyshu-review-submit,
.single-product .keyshu-form-submit #submit {
  width: 150px;
  height: 44px;
  min-height: 44px;
  padding: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--ks-review-primary) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 44px !important;
  font-weight: 900 !important;
  text-transform: none !important;
  box-shadow: 0 10px 22px rgba(3, 176, 177, 0.22) !important;
  cursor: pointer;
}

.single-product .keyshu-review-submit:hover,
.single-product .keyshu-form-submit #submit:hover {
  background: var(--ks-review-primary-dark) !important;
  color: #ffffff !important;
}

/* REVIEW ITEMS */
.single-product .keyshu-review-list {
  width: 100%;
}

.single-product .keyshu-review-item {
  padding: 14px 0 18px;
  border-bottom: 1px solid #dedede;
}

.single-product .keyshu-review-item:last-child {
  border-bottom: none;
}

.single-product .keyshu-review-author-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--ks-review-text);
  font-size: 15px;
  line-height: 1.4;
}

.single-product .keyshu-review-author-line strong {
  font-weight: 900;
}

.single-product .keyshu-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ks-review-green);
  font-size: 14px;
  font-weight: 500;
}

.single-product .keyshu-verified-badge::before {
  content: "✓";
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ks-review-green);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
}

.single-product .keyshu-review-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #888888;
  font-size: 13px;
  line-height: 1.4;
}

.single-product .keyshu-small-rating {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--ks-review-star);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.single-product .keyshu-rating-label {
  color: var(--ks-review-star);
  font-size: 13px;
  font-weight: 500;
}

.single-product .keyshu-review-product-name {
  margin-bottom: 8px;
  color: #888888;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.single-product .keyshu-review-content {
  color: #444444;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

.single-product .keyshu-review-content p {
  margin: 0 0 8px !important;
}

.single-product .keyshu-review-content p:last-child {
  margin-bottom: 0 !important;
}

.single-product .keyshu-shop-reply {
  max-width: 900px;
  margin: 10px 0 0 34px;
  color: #444444;
  font-size: 15px;
  line-height: 1.55;
}

.single-product .keyshu-shop-reply > span {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ks-review-primary);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.single-product .keyshu-shop-reply p {
  margin: 0 !important;
}

.single-product .keyshu-no-review {
  padding: 24px 0;
  color: #777777;
  font-size: 15px;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .single-product .keyshu-review-top {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .single-product .keyshu-review-cta-box {
    grid-column: 1 / -1;
  }

  .single-product .keyshu-rating-filter {
    min-width: 128px;
  }
}

@media (max-width: 767px) {
  .single-product .keyshu-reviews-section {
    padding: 0 10px 34px;
  }

  .single-product .keyshu-reviews-card {
    padding: 16px 14px 8px;
    border-radius: 16px 16px 0 0;
  }

  .single-product .keyshu-review-title-row h2 {
    font-size: 18px !important;
  }

  .single-product .keyshu-review-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .single-product .keyshu-review-filter-box {
    justify-content: flex-start;
  }

  .single-product .keyshu-rating-filter {
    min-width: calc(50% - 4px);
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .single-product .keyshu-review-open {
    width: 100%;
    max-width: 260px;
  }

  .single-product .keyshu-review-form-inner {
    padding: 20px 16px;
  }

  .single-product .keyshu-comment-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .single-product .keyshu-form-half {
    flex-basis: 100%;
  }

  .single-product .keyshu-form-submit {
    justify-content: space-between;
    gap: 12px;
  }

  .single-product .keyshu-review-submit,
  .single-product .keyshu-form-submit #submit {
    width: 130px;
  }

  .single-product .keyshu-shop-reply {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .single-product .keyshu-rating-filter {
    min-width: 100%;
  }

  .single-product .keyshu-comment-form-rating p.stars a {
    width: 30px !important;
  }

  .single-product .keyshu-comment-form-rating p.stars a::before {
    width: 30px !important;
    font-size: 34px !important;
  }

  .single-product .keyshu-rating-status {
    min-height: 34px;
    font-size: 14px;
  }
}
/* =========================================================
   MOBILE - FILTER ĐÁNH GIÁ KÉO NGANG 1 HÀNG
   Chỉ áp dụng trên mobile
========================================================= */

@media (max-width: 767px) {
  .single-product .keyshu-review-filter-box {
    width: 100%;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;

    padding: 0 2px 10px !important;
    margin: 0 !important;

    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .single-product .keyshu-review-filter-box::-webkit-scrollbar {
    display: none !important;
  }

  .single-product .keyshu-rating-filter {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;

    height: 34px !important;
    padding: 0 18px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    white-space: nowrap !important;
    border-radius: 999px !important;

    font-size: 12px !important;
    line-height: 34px !important;
    font-weight: 800 !important;

    scroll-snap-align: start;
  }

  .single-product .keyshu-rating-filter.is-active {
    background: var(--ks-review-primary) !important;
    color: #ffffff !important;
  }
}

/* Ghi đè đoạn cũ ở max-width 480px nếu trước đó có min-width: 100% */
@media (max-width: 480px) {
  .single-product .keyshu-review-filter-box {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
  }

  .single-product .keyshu-rating-filter {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }
}
/* =========================================================
   KEYSHU SINGLE PRODUCT - FLASH SALE
========================================================= */

.single-product .keyshu-sp-flash-sale,
.single-product .keyshu-sp-flash-sale * {
  box-sizing: border-box;
}

.single-product .keyshu-sp-flash-sale {
  width: 100%;
  max-width: 560px;
  margin: 8px 0 12px !important;
  padding: 0 !important;
  font-family: "SVN-Gilroy", sans-serif;
}

.single-product .keyshu-sp-flash-sale-head {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #ff6200 0%, #ff7a1a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
}

.single-product .keyshu-sp-flash-sale-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.single-product .keyshu-sp-flash-sale-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
}

.single-product .keyshu-sp-flash-sale-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #ffffff;
  white-space: nowrap;
}

.single-product .keyshu-sp-flash-sale-label {
  margin-right: 4px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.single-product .keyshu-sp-flash-sale-time {
  min-width: 26px;
  height: 22px;
  padding: 0 5px;
  border-radius: 4px;
  background: #000000;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.single-product .keyshu-sp-flash-sale-sep {
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.single-product .keyshu-sp-flash-sale-notice {
  width: 100%;
  margin: 6px 0 0 !important;
  padding: 7px 10px;
  border-radius: 5px;
  background: #fff4dc;
  color: #ff5a00;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.single-product .keyshu-sp-flash-sale--ended .keyshu-sp-flash-sale-time {
  background: #111111;
  color: #ffffff;
}
/* =========================================================
   KEYSHU SINGLE PRODUCT MOBILE - FLASH SALE
========================================================= */

@media (max-width: 549px) {
  .single-product .keyshu-sp-flash-sale {
    max-width: 100%;
    margin: 8px 0 10px !important;
  }

  .single-product .keyshu-sp-flash-sale-head {
    min-height: 38px;
    padding: 7px 8px;
    align-items: center;
    gap: 8px;
  }

  .single-product .keyshu-sp-flash-sale-title {
    font-size: 13px;
  }

  .single-product .keyshu-sp-flash-sale-icon {
    font-size: 15px;
  }

  .single-product .keyshu-sp-flash-sale-label {
    display: none;
  }

  .single-product .keyshu-sp-flash-sale-time {
    min-width: 24px;
    height: 21px;
    padding: 0 5px;
    font-size: 11px;
  }

  .single-product .keyshu-sp-flash-sale-notice {
    font-size: 11.5px;
    line-height: 1.45;
  }
}

@media (max-width: 360px) {
  .single-product .keyshu-sp-flash-sale-head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .single-product .keyshu-sp-flash-sale-countdown {
    width: 100%;
    justify-content: flex-start;
  }
}
/* =========================================================
   KEYSHU SINGLE PRODUCT - COUPON POPUP
========================================================= */

.single-product .keyshu-sp-coupon-wrap,
.single-product .keyshu-sp-coupon-wrap * {
  box-sizing: border-box;
}

.single-product .keyshu-sp-coupon-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-family: "SVN-Gilroy", sans-serif;
}

.single-product .keyshu-sp-coupon-trigger {
  width: auto;
  min-height: 34px;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid rgba(3, 176, 177, 0.22) !important;
  border-radius: 999px !important;
  background: #f0fdfc !important;
  color: #027b7c !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.22s ease;
}

.single-product .keyshu-sp-coupon-trigger:hover {
  border-color: rgba(3, 176, 177, 0.45) !important;
  background: #e6fbfa !important;
  color: #016a6b !important;
}

.single-product .keyshu-sp-coupon-trigger-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #03b0b1;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.single-product .keyshu-sp-coupon-trigger-count {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #03b0b1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.keyshu-sp-coupon-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.keyshu-sp-coupon-popup.is-open {
  display: flex;
}

.keyshu-sp-coupon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 20, 0.56);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.keyshu-sp-coupon-dialog {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 44px));
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  animation: keyshuCouponPopupIn 0.22s ease both;
  font-family: "SVN-Gilroy", sans-serif;
}

@keyframes keyshuCouponPopupIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.keyshu-sp-coupon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.08) !important;
  color: #111827 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.keyshu-sp-coupon-header {
  padding: 24px 58px 16px 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(3, 176, 177, 0.16) 0 74px, transparent 75px),
    linear-gradient(135deg, #f6ffff 0%, #ffffff 58%, #eafafa 100%);
  border-bottom: 1px solid #e5f3f3;
}

.keyshu-sp-coupon-header h3 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #103c42 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.keyshu-sp-coupon-header p {
  margin: 0 !important;
  color: #647982;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.keyshu-sp-coupon-list {
  max-height: calc(min(720px, calc(100dvh - 44px)) - 116px);
  padding: 16px;
  overflow-y: auto;
  background: #ffffff;
}

.keyshu-sp-coupon-card {
  position: relative;
  width: 100%;
  min-height: 98px;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid #d9eeee;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 182px;
  gap: 16px;
  align-items: center;
  box-shadow: 0 8px 22px rgba(3, 176, 177, 0.06);
}

.keyshu-sp-coupon-card:last-child {
  margin-bottom: 0;
}

.keyshu-sp-coupon-code {
  min-height: 64px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #03b0b1 0%, #029596 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: break-word;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.keyshu-sp-coupon-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.keyshu-sp-coupon-content strong {
  color: #102f36;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.keyshu-sp-coupon-content span {
  color: #536b73;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
}

.keyshu-sp-coupon-content small {
  color: #f05a28;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 800;
}

.keyshu-sp-coupon-actions,
.keyshu-account-coupon-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.keyshu-sp-coupon-copy,
.keyshu-sp-coupon-save {
  width: 86px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.22s ease;
}

.keyshu-sp-coupon-copy {
  background: #03b0b1 !important;
}

.keyshu-sp-coupon-save {
  background: #ff5a1f !important;
}

.keyshu-sp-coupon-copy:hover {
  background: #029596 !important;
}

.keyshu-sp-coupon-save:hover {
  background: #e84b14 !important;
}

.keyshu-sp-coupon-copy.is-copied,
.keyshu-sp-coupon-save.is-saved {
  background: #16a34a !important;
}

.keyshu-sp-coupon-copy:disabled,
.keyshu-sp-coupon-save:disabled {
  opacity: 0.82;
  cursor: wait;
}

body.keyshu-sp-coupon-is-open {
  overflow: hidden;
}

/* =========================================================
   KEYSHU MY ACCOUNT - COUPON ICON + SAVED COUPONS
========================================================= */

.woocommerce-MyAccount-navigation-link--ma-giam-gia a {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.woocommerce-MyAccount-navigation-link--ma-giam-gia a::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: inline-block;
  background: #03b0b1;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 10.5V6.75A2.75 2.75 0 0 0 18.25 4H5.75A2.75 2.75 0 0 0 3 6.75v3.75a1.5 1.5 0 0 1 0 3v3.75A2.75 2.75 0 0 0 5.75 20h12.5A2.75 2.75 0 0 0 21 17.25V13.5a1.5 1.5 0 0 1 0-3ZM9 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm6.2.55-6.4 7.4a.9.9 0 0 1-1.36-1.18l6.4-7.4A.9.9 0 0 1 15.2 8.3ZM14 16.25a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 10.5V6.75A2.75 2.75 0 0 0 18.25 4H5.75A2.75 2.75 0 0 0 3 6.75v3.75a1.5 1.5 0 0 1 0 3v3.75A2.75 2.75 0 0 0 5.75 20h12.5A2.75 2.75 0 0 0 21 17.25V13.5a1.5 1.5 0 0 1 0-3ZM9 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm6.2.55-6.4 7.4a.9.9 0 0 1-1.36-1.18l6.4-7.4A.9.9 0 0 1 15.2 8.3ZM14 16.25a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.keyshu-account-coupon-page,
.keyshu-account-coupon-page * {
  box-sizing: border-box;
}

.keyshu-account-coupon-page {
  width: 100%;
  max-width: 860px;
  font-family: "SVN-Gilroy", sans-serif;
}

.keyshu-account-coupon-page h2 {
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: #103c42 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.keyshu-account-coupon-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #03b0b1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.keyshu-account-coupon-title-icon::before {
  content: "%";
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.keyshu-account-coupon-list {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.keyshu-account-coupon-card {
  width: 100% !important;
  min-height: 104px;
  padding: 14px !important;
  border: 1px solid #d9eeee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  box-shadow: 0 8px 22px rgba(3, 176, 177, 0.06) !important;
}

.keyshu-account-coupon-code {
  width: 190px !important;
  min-width: 190px !important;
  min-height: 64px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #03b0b1 0%, #029596 100%) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  word-break: break-word !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: 0.4px !important;
}

.keyshu-account-coupon-content {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

.keyshu-account-coupon-content strong {
  color: #102f36 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
}

.keyshu-account-coupon-content span {
  color: #536b73 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}

.keyshu-account-coupon-content small {
  color: #f05a28 !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

.keyshu-account-coupon-actions {
  width: 110px !important;
  min-width: 110px !important;
  flex: 0 0 110px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.keyshu-account-coupon-actions .keyshu-sp-coupon-copy {
  position: static !important;
  width: 96px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #03b0b1 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.keyshu-account-coupon-actions .keyshu-sp-coupon-copy:hover {
  background: #029596 !important;
}

.keyshu-account-coupon-actions .keyshu-sp-coupon-copy.is-copied {
  background: #16a34a !important;
}
/* =========================================================
   KEYSHU SINGLE PRODUCT MOBILE - COUPON POPUP
========================================================= */

@media (max-width: 549px) {
  .single-product .keyshu-sp-coupon-wrap {
    max-width: 100%;
    margin: 0 0 12px !important;
  }

  .single-product .keyshu-sp-coupon-trigger {
    min-height: 32px;
    padding: 0 10px !important;
    font-size: 12.5px !important;
  }

  .single-product .keyshu-sp-coupon-trigger-icon {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .keyshu-sp-coupon-popup {
    align-items: flex-end;
    padding: 0;
  }

  .keyshu-sp-coupon-dialog {
    width: 100%;
    max-height: 86dvh;
    border-radius: 18px 18px 0 0;
    animation: keyshuCouponPopupMobileIn 0.24s ease both;
  }

  @keyframes keyshuCouponPopupMobileIn {
    from {
      opacity: 1;
      transform: translateY(100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .keyshu-sp-coupon-close {
    top: 10px;
    right: 10px;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 23px !important;
  }

  .keyshu-sp-coupon-header {
    padding: 22px 54px 14px 16px;
  }

  .keyshu-sp-coupon-header h3 {
    font-size: 19px !important;
  }

  .keyshu-sp-coupon-header p {
    font-size: 12.5px;
  }

  .keyshu-sp-coupon-list {
    max-height: calc(86dvh - 104px);
    padding: 14px 12px 18px;
  }

  .keyshu-sp-coupon-card {
    min-height: auto;
    padding: 12px;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
  }

  .keyshu-sp-coupon-code {
    min-height: 62px;
    padding: 0 8px;
    font-size: 13px;
  }

  .keyshu-sp-coupon-content {
    padding-right: 0;
  }

  .keyshu-sp-coupon-content strong {
    font-size: 13.5px;
  }

  .keyshu-sp-coupon-content span {
    font-size: 12px;
  }

  .keyshu-sp-coupon-content small {
    font-size: 11px;
  }

  .keyshu-sp-coupon-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: stretch;
    gap: 8px;
  }

  .keyshu-sp-coupon-copy,
  .keyshu-sp-coupon-save {
    flex: 1 1 0;
    width: auto !important;
    height: 34px !important;
  }

  .keyshu-account-coupon-page {
    max-width: 100%;
  }

  .keyshu-account-coupon-page h2 {
    font-size: 20px !important;
    margin-bottom: 14px !important;
  }

  .keyshu-account-coupon-title-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .keyshu-account-coupon-card {
    width: 100% !important;
    min-height: auto !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .keyshu-account-coupon-code {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
  }

  .keyshu-account-coupon-content {
    width: 100% !important;
  }

  .keyshu-account-coupon-content strong {
    font-size: 13.5px !important;
  }

  .keyshu-account-coupon-content span {
    font-size: 12px !important;
  }

  .keyshu-account-coupon-content small {
    font-size: 11px !important;
  }

  .keyshu-account-coupon-actions {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    justify-content: stretch !important;
  }

  .keyshu-account-coupon-actions .keyshu-sp-coupon-copy {
    width: 100% !important;
    height: 34px !important;
  }
}
/* =========================================================
   KEYSHU PRODUCT GROUPS - ADMIN
========================================================= */

.keyshu-group-admin-box,
.keyshu-group-items-wrap {
  width: 100%;
}

.keyshu-group-settings-table th {
  width: 230px;
  font-weight: 700;
}

.keyshu-group-settings-table input.regular-text {
  width: 100%;
  max-width: 520px;
}

.keyshu-group-note {
  margin: 0 0 14px;
  font-size: 13px;
}

.keyshu-group-items-table {
  margin-top: 10px;
  border: 1px solid #dcdcde;
}

.keyshu-group-items-table th {
  font-weight: 700;
  color: #1d2327;
  background: #f6f7f7;
}

.keyshu-group-items-table td {
  vertical-align: middle;
}

.keyshu-col-sort {
  width: 80px;
  text-align: center;
}

.keyshu-col-image {
  width: 180px;
}

.keyshu-col-label {
  width: 220px;
}

.keyshu-col-product {
  min-width: 320px;
}

.keyshu-col-hidden {
  width: 80px;
  text-align: center;
}

.keyshu-col-action {
  width: 80px;
  text-align: center;
}

.keyshu-col-sort input {
  width: 64px;
  text-align: center;
}

.keyshu-col-label input {
  width: 100%;
}

.keyshu-image-preview {
  width: 62px;
  height: 62px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 8px;
}

.keyshu-image-preview:empty::before {
  content: "No image";
  color: #9ca3af;
  font-size: 11px;
}

.keyshu-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.keyshu-select-image,
.keyshu-remove-image {
  margin: 0 4px 4px 0 !important;
}

.keyshu-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.keyshu-status-on {
  color: #007f83;
  background: rgba(3, 176, 177, 0.12);
}

.keyshu-status-off {
  color: #9f1239;
  background: rgba(255, 45, 27, 0.1);
}

@media (max-width: 1200px) {
  .keyshu-group-items-table,
  .keyshu-group-items-table thead,
  .keyshu-group-items-table tbody,
  .keyshu-group-items-table tr,
  .keyshu-group-items-table th,
  .keyshu-group-items-table td {
    display: block;
    width: 100%;
  }

  .keyshu-group-items-table thead {
    display: none;
  }

  .keyshu-group-item-row {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
  }

  .keyshu-group-items-table td {
    padding: 8px 0 !important;
  }

  .keyshu-col-sort,
  .keyshu-col-hidden,
  .keyshu-col-action {
    text-align: left;
  }
}

/* =========================================================
   KEYSHU PRODUCT GROUPS - FRONTEND FINAL
   Chiết xuất:
   - Chỉ ảnh: nút nhỏ theo ảnh
   - Ảnh + text: nút rộng theo nội dung
   - Chỉ text: nút dạng pill gọn
========================================================= */

.single-product .keyshu-linked-product-group {
  width: 100%;
  max-width: 650px;
  margin: 0 0 18px !important;
  padding: 16px;
  border: 1px solid rgba(3, 176, 177, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(3, 176, 177, 0.05);
  font-family: "SVN-Gilroy", sans-serif;
}

.single-product .keyshu-linked-product-group,
.single-product .keyshu-linked-product-group * {
  box-sizing: border-box;
}

.single-product .keyshu-linked-product-group__head {
  width: 100%;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #173b42;
  font-size: 14px;
  line-height: 1.35;
}

.single-product .keyshu-linked-product-group__label {
  color: #425e65;
  font-weight: 800;
}

.single-product .keyshu-linked-product-group__current {
  color: #03b0b1;
  font-weight: 900;
}

.single-product .keyshu-linked-product-group__list {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

/* Base option */
.single-product .keyshu-linked-product-option {
  position: relative;
  min-height: 58px;
  padding: 8px 12px;
  border: 1.5px solid #d8e7e8;
  border-radius: 12px;
  background: #ffffff;
  color: #334155 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.single-product .keyshu-linked-product-option:hover {
  border-color: #03b0b1;
  background: #f4ffff;
  color: #03b0b1 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(3, 176, 177, 0.1);
}

.single-product .keyshu-linked-product-option.is-active {
  border-color: #03b0b1;
  background: #eefafa;
  color: #03b0b1 !important;
  box-shadow: 0 8px 20px rgba(3, 176, 177, 0.14);
  cursor: default;
}

.single-product .keyshu-linked-product-option.is-active::after {
  content: "✓";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border-radius: 12px 0 10px 0;
  background: #03b0b1;
  color: #ffffff;
  font-size: 13px;
  line-height: 15px;
  font-weight: 900;
  text-align: center;
}

/* Ảnh trong nút */
.single-product .keyshu-linked-product-option__image {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: block;
  overflow: hidden;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e6eef0;
}

.single-product .keyshu-linked-product-option__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: inherit;
}

.single-product .keyshu-linked-product-option__name {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   Kiểu 1: Chỉ ảnh
   Nút thu nhỏ theo ảnh, không bị rộng thừa
===================================================== */

.single-product .keyshu-linked-product-group--image .keyshu-linked-product-option {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 8px;
  justify-content: center;
}

.single-product .keyshu-linked-product-group--image .keyshu-linked-product-option__image {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.single-product .keyshu-linked-product-group--image .keyshu-linked-product-option__name {
  display: none !important;
}

/* =====================================================
   Kiểu 2: Ảnh + text
   Chiều rộng tự giãn theo text
===================================================== */

.single-product .keyshu-linked-product-group--image_label .keyshu-linked-product-option {
  width: auto;
  min-width: 124px;
  max-width: 230px;
  height: auto;
  min-height: 58px;
  padding: 8px 14px 8px 9px;
  justify-content: flex-start;
}

.single-product .keyshu-linked-product-group--image_label .keyshu-linked-product-option__name {
  max-width: 145px;
}

/* =====================================================
   Kiểu 3: Chỉ text
===================================================== */

.single-product .keyshu-linked-product-group--label .keyshu-linked-product-option {
  width: auto;
  min-width: 90px;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
}

.single-product .keyshu-linked-product-group--label .keyshu-linked-product-option__name {
  max-width: none;
  display: block;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 849px) {
  .single-product .keyshu-linked-product-group {
    max-width: 100%;
    margin-bottom: 16px !important;
    padding: 14px 0 14px 14px;
    border-radius: 13px;
  }

  .single-product .keyshu-linked-product-group__head {
    padding-right: 14px;
    margin-bottom: 10px;
    font-size: 13px;
  }

  .single-product .keyshu-linked-product-group__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 9px;
    padding-right: 14px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .single-product .keyshu-linked-product-group__list::-webkit-scrollbar {
    display: none;
  }

  .single-product .keyshu-linked-product-option {
    flex: 0 0 auto;
  }

  .single-product .keyshu-linked-product-group--image .keyshu-linked-product-option {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    height: 54px;
    min-height: 54px;
    padding: 7px;
  }

  .single-product .keyshu-linked-product-group--image_label .keyshu-linked-product-option {
    min-width: 116px;
    max-width: 210px;
  }
}
/* =========================================================
   VARIATION PILL - KEYSHU FINAL SMALL
   Text bên trên
   [1 HỘP] [2 HỘP] [3 HỘP]
   Nút nhỏ: width 90px, height 40px
========================================================= */

.single-product form.cart,
.single-product form.variations_form {
  margin: 0 !important;
}

/* Bảng biến thể */
.single-product table.variations {
  width: 100% !important;
  max-width: 650px !important;
  /* margin: 0 0 16px !important; */
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.single-product table.variations tbody,
.single-product table.variations tr,
.single-product table.variations th,
.single-product table.variations td {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Mỗi thuộc tính xếp dọc */
.single-product table.variations tr {
  display: block !important;
  margin: 0 0 14px !important;
}

/* Label DUNG TÍCH */
.single-product table.variations th.label {
  display: block !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.single-product table.variations th.label label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;

  color: var(--ks-heading) !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

/* Cột chứa nút */
.single-product table.variations td.value {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .keyshu-variation-select-wrap {
  position: relative !important;
  width: 100% !important;
}

/* Ẩn select gốc */
.single-product .keyshu-variation-select-wrap select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}

/* Danh sách nút */
.single-product .keyshu-variation-pills {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Nút 1 HỘP / 2 HỘP / 3 HỘP */
.single-product .keyshu-variation-pill {
  position: relative !important;

  width: 90px !important;
  min-width: 90px !important;
  max-width: 90px !important;

  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;

  padding: 0 8px !important;
  margin: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 1.5px solid #d8e7e8 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #334155 !important;

  font-family: "SVN-Gilroy", sans-serif !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;

  box-shadow: none !important;
  cursor: pointer !important;

  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease !important;
}

.single-product .keyshu-variation-pill:hover {
  border-color: var(--ks-primary) !important;
  background: #f4ffff !important;
  color: var(--ks-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(3, 176, 177, 0.1) !important;
}

/* Nút đang chọn */
.single-product .keyshu-variation-pill.is-active {
  border-color: var(--ks-primary) !important;
  background: var(--ks-primary-soft) !important;
  color: var(--ks-primary) !important;
  box-shadow: 0 8px 20px rgba(3, 176, 177, 0.14) !important;
}

/* Tick nhỏ hơn */
.single-product .keyshu-variation-pill.is-active::after {
  content: "✓" !important;

  position: absolute !important;
  right: -1px !important;
  bottom: -1px !important;

  width: 18px !important;
  height: 18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 10px 0 8px 0 !important;
  background: var(--ks-primary) !important;
  color: #ffffff !important;

  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

/* Biến thể không khả dụng */
.single-product .keyshu-variation-pill.is-disabled,
.single-product .keyshu-variation-pill:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
}

/* Ẩn reset variation */
.single-product .reset_variations,
.single-product a.reset_variations,
.single-product .reset_variations_alert {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Mobile */
@media (max-width: 767px) {
  .single-product table.variations tr {
    margin-bottom: 12px !important;
  }

  .single-product table.variations th.label {
    margin-bottom: 8px !important;
  }

  .single-product .keyshu-variation-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding-bottom: 2px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .single-product .keyshu-variation-pill {
    flex: 0 0 auto !important;

    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;

    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;

    padding: 0 8px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
  }

  .single-product .keyshu-variation-pill.is-active::after {
    width: 17px !important;
    height: 17px !important;
    font-size: 10px !important;
    border-radius: 9px 0 7px 0 !important;
  }
}
/* =========================================================
   KEYSHU - STICKY CART TOTAL BAR FINAL
   Desktop giữ thanh cũ, Mobile dùng thanh riêng
========================================================= */

body.single-product .keyshu-sticky-cart-total,
body.single-product .keyshu-sticky-cart-total *,
body.single-product .keyshu-sticky-cart-total-mobile,
body.single-product .keyshu-sticky-cart-total-mobile * {
  box-sizing: border-box;
}

/* =========================================================
   DESKTOP BAR
========================================================= */

body.single-product .keyshu-sticky-cart-total {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483000 !important;

  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important;

  font-family: "SVN-Gilroy", sans-serif !important;

  background: rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;

  border-top: 1px solid rgba(3, 176, 177, 0.14) !important;
  box-shadow: 0 -14px 36px rgba(15, 23, 42, 0.1) !important;

  transform: translate3d(0, 120%, 0) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  transition:
    transform 0.26s ease,
    opacity 0.22s ease,
    visibility 0.22s ease !important;
}

body.single-product .keyshu-sticky-cart-total.is-visible {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.single-product .keyshu-sticky-cart-total.is-empty {
  transform: translate3d(0, 120%, 0) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.single-product .keyshu-sticky-cart-total__inner {
  width: 100% !important;
  max-width: 1160px !important;
  min-height: 58px !important;

  margin: 0 auto !important;
  padding: 9px 10px 9px 12px !important;

  display: grid !important;
  grid-template-columns: minmax(250px, 0.95fr) 1px minmax(240px, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;

  border: 1px solid rgba(3, 176, 177, 0.18) !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 34px rgba(3, 176, 177, 0.12) !important;
}

body.single-product .keyshu-sticky-cart-total__summary {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
}

body.single-product .keyshu-sticky-cart-total__cart-icon {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  background: var(--ks-primary-soft) !important;
  color: var(--ks-primary) !important;
  box-shadow: 0 8px 18px rgba(3, 176, 177, 0.12) !important;
}

body.single-product .keyshu-sticky-cart-total__cart-icon::before {
  content: "\f291" !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

body.single-product .keyshu-sticky-cart-total__money {
  min-width: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
}

body.single-product .keyshu-sticky-cart-total__money-label {
  color: var(--ks-heading) !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.single-product .keyshu-sticky-cart-total__money-value,
body.single-product .keyshu-sticky-cart-total__money-value .amount,
body.single-product .keyshu-sticky-cart-total__money-value bdi {
  color: var(--ks-sale) !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.single-product .keyshu-sticky-cart-total__divider {
  width: 1px !important;
  height: 34px !important;
  background: rgba(113, 133, 139, 0.24) !important;
}

body.single-product .keyshu-sticky-cart-total__status {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.single-product .keyshu-sticky-cart-total__check-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  border: 1.5px solid #24b26b !important;
  background: #ffffff !important;
  color: #24b26b !important;
}

body.single-product .keyshu-sticky-cart-total__check-icon::before {
  content: "\f00c" !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

body.single-product .keyshu-sticky-cart-total__status-text {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

body.single-product .keyshu-sticky-cart-total__count {
  color: var(--ks-heading) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.single-product .keyshu-sticky-cart-total__updated {
  color: var(--ks-muted) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

body.single-product .keyshu-sticky-cart-total__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 9px !important;
}

body.single-product .keyshu-sticky-cart-total__btn {
  height: 42px !important;
  min-width: 128px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  border-radius: 9px !important;
  border: 1.5px solid transparent !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.single-product .keyshu-sticky-cart-total__btn--cart {
  background: #ffffff !important;
  color: var(--ks-primary) !important;
  border-color: rgba(3, 176, 177, 0.34) !important;
}

body.single-product .keyshu-sticky-cart-total__btn--checkout {
  background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-dark) 100%) !important;
  color: #ffffff !important;
  border-color: var(--ks-primary) !important;
  box-shadow: 0 10px 22px rgba(3, 176, 177, 0.22) !important;
}

body.single-product .keyshu-sticky-cart-total__btn-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.single-product .keyshu-sticky-cart-total__btn-icon--cart::before {
  content: "\f290" !important;
  font-size: 13px !important;
}

body.single-product .keyshu-sticky-cart-total__btn-icon--arrow::before {
  content: "\f105" !important;
  font-size: 15px !important;
}

body.single-product .keyshu-sticky-cart-total.is-loading .keyshu-sticky-cart-total__money-value,
body.single-product .keyshu-sticky-cart-total.is-loading .keyshu-sticky-cart-total__updated,
body.single-product .keyshu-sticky-cart-total-mobile.is-loading .keyshu-sticky-cart-total-mobile__price,
body.single-product .keyshu-sticky-cart-total-mobile.is-loading .keyshu-sticky-cart-total-mobile__status span {
  opacity: 0.55 !important;
}

body.single-product .keyshu-sticky-cart-total.is-updated .keyshu-sticky-cart-total__inner,
body.single-product .keyshu-sticky-cart-total-mobile.is-updated .keyshu-sticky-cart-total-mobile__inner {
  animation: keyshuStickyCartPulse 0.55s ease both;
}

@keyframes keyshuStickyCartPulse {
  0% {
    box-shadow: 0 12px 34px rgba(3, 176, 177, 0.12);
  }

  45% {
    box-shadow: 0 16px 42px rgba(3, 176, 177, 0.26);
  }

  100% {
    box-shadow: 0 12px 34px rgba(3, 176, 177, 0.12);
  }
}

/* =========================================================
   MOBILE BAR RIÊNG
========================================================= */

body.single-product .keyshu-sticky-cart-total-mobile {
  display: none !important;
}

@media (max-width: 767px) {
  body.single-product .keyshu-sticky-cart-total {
    display: none !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 2147483640 !important;

    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;

    display: block !important;

    font-family: "SVN-Gilroy", sans-serif !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;

    border-top: 1px solid rgba(3, 176, 177, 0.16) !important;
    box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.14) !important;

    transform: translate3d(0, 120%, 0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transition:
      transform 0.26s ease,
      opacity 0.22s ease,
      visibility 0.22s ease !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile.is-visible {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile.is-empty {
    transform: translate3d(0, 120%, 0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;

    border: 1px solid rgba(3, 176, 177, 0.2) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 34px rgba(3, 176, 177, 0.16) !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__top {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__icon {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 10px !important;
    background: var(--ks-primary-soft) !important;
    color: var(--ks-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__icon::before {
    content: "\f291" !important;
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__money {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__label {
    color: var(--ks-heading) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__price,
  body.single-product .keyshu-sticky-cart-total-mobile__price .amount,
  body.single-product .keyshu-sticky-cart-total-mobile__price bdi {
    color: var(--ks-sale) !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__status {
    width: 100% !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: rgba(3, 176, 177, 0.06) !important;

    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__check {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;

    border-radius: 50% !important;
    border: 1.5px solid #24b26b !important;
    background: #ffffff !important;
    color: #24b26b !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__check::before {
    content: "\f00c" !important;
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-size: 10px !important;
    font-weight: 900 !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__status-text {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__status-text strong {
    color: var(--ks-heading) !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__status-text span {
    color: var(--ks-muted) !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__btn {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 8px !important;

    border-radius: 9px !important;
    border: 1.5px solid transparent !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__btn--cart {
    background: #ffffff !important;
    color: var(--ks-primary) !important;
    border-color: rgba(3, 176, 177, 0.34) !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__btn--checkout {
    background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-dark) 100%) !important;
    color: #ffffff !important;
    border-color: var(--ks-primary) !important;
    box-shadow: 0 10px 20px rgba(3, 176, 177, 0.22) !important;
  }

  body.single-product.keyshu-sticky-cart-total-visible {
    padding-bottom: 158px !important;
  }

  body.single-product.keyshu-sticky-cart-total-visible .sticky-add-to-cart,
  body.single-product.keyshu-sticky-cart-total-visible .sticky-add-to-cart--active,
  body.single-product.keyshu-sticky-cart-total-visible .product-sticky {
    z-index: 9999 !important;
  }
}

@media (max-width: 380px) {
  body.single-product .keyshu-sticky-cart-total-mobile__money {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  body.single-product .keyshu-sticky-cart-total-mobile__actions {
    grid-template-columns: 1fr !important;
  }

  body.single-product.keyshu-sticky-cart-total-visible {
    padding-bottom: 198px !important;
  }
}
/* =========================================================
   KEYSHU - STICKY CART POPUP
   Popup giỏ hàng khi nhấn "Xem giỏ hàng" ở thanh ghim dưới chân
   - Tăng / giảm số lượng trực tiếp
   - Giá từng dòng + tổng phụ tự cập nhật theo AJAX
   - Sản phẩm 0đ khóa số lượng, không hiện text thông báo
   - Không lộ mini cart mặc định trong lúc load
========================================================= */

body.single-product .keyshu-cart-popup,
body.single-product .keyshu-cart-popup * {
  box-sizing: border-box;
}

body.single-product .keyshu-cart-popup {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  font-family: "SVN-Gilroy", sans-serif !important;
  transition: opacity 0.24s ease, visibility 0.24s ease !important;
}

body.single-product .keyshu-cart-popup.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.single-product.keyshu-cart-popup-open {
  overflow: hidden !important;
}

body.single-product .keyshu-cart-popup__overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  cursor: pointer !important;
}

body.single-product .keyshu-cart-popup__panel {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  width: 470px !important;
  max-width: calc(100vw - 36px) !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(3, 176, 177, 0.18) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28) !important;
  overflow: hidden !important;
  outline: none !important;
  transform: translateX(28px) scale(0.98) !important;
  opacity: 0 !important;
  transition: transform 0.28s ease, opacity 0.24s ease !important;
}

body.single-product .keyshu-cart-popup.is-open .keyshu-cart-popup__panel {
  transform: translateX(0) scale(1) !important;
  opacity: 1 !important;
}

body.single-product .keyshu-cart-popup__header {
  flex: 0 0 auto !important;
  min-height: 78px !important;
  padding: 16px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  border-bottom: 1px solid var(--ks-border, #dceff0) !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(3, 176, 177, 0.12) 0 58px, transparent 60px),
    linear-gradient(135deg, #f8ffff 0%, #ffffff 62%, #eefafa 100%) !important;
}

body.single-product .keyshu-cart-popup__title-wrap {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body.single-product .keyshu-cart-popup__icon {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: var(--ks-primary-soft, #eefafa) !important;
  color: var(--ks-primary, #03b0b1) !important;
  box-shadow: 0 10px 22px rgba(3, 176, 177, 0.12) !important;
}

body.single-product .keyshu-cart-popup__icon::before {
  content: "\f291" !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.single-product .keyshu-cart-popup__header h3 {
  margin: 0 0 4px !important;
  color: var(--ks-heading, #173b42) !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: -0.2px !important;
}

body.single-product .keyshu-cart-popup__header p {
  margin: 0 !important;
  color: var(--ks-muted, #71858b) !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

body.single-product .keyshu-cart-popup__close {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(3, 176, 177, 0.18) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--ks-primary, #03b0b1) !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body.single-product .keyshu-cart-popup__close::before {
  content: "\f00d" !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.single-product .keyshu-cart-popup__close:hover {
  background: var(--ks-primary-soft, #eefafa) !important;
}

body.single-product .keyshu-cart-popup__body {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  background: #ffffff !important;
}

body.single-product .keyshu-cart-popup__body::-webkit-scrollbar {
  width: 5px !important;
}

body.single-product .keyshu-cart-popup__body::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(3, 176, 177, 0.28) !important;
}

body.single-product .keyshu-cart-popup__body::-webkit-scrollbar-track {
  background: transparent !important;
}

/* Loading - che trắng hoàn toàn, không lộ giao diện mặc định phía sau */
body.single-product .keyshu-cart-popup.is-loading .keyshu-cart-popup__body::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 50 !important;
  background: #ffffff !important;
}

body.single-product .keyshu-cart-popup.is-loading .keyshu-cart-popup__body::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  z-index: 51 !important;
  width: 34px !important;
  height: 34px !important;
  margin: -17px 0 0 -17px !important;
  border-radius: 999px !important;
  border: 3px solid rgba(3, 176, 177, 0.18) !important;
  border-top-color: var(--ks-primary, #03b0b1) !important;
  animation: keyshuCartPopupSpin 0.78s linear infinite !important;
}

body.single-product .keyshu-cart-popup.is-opening-load .keyshu-cart-popup__body > * {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.single-product .keyshu-cart-popup__loading-state {
  min-height: 360px !important;
  background: #ffffff !important;
}

@keyframes keyshuCartPopupSpin {
  to {
    transform: rotate(360deg);
  }
}

body.single-product .keyshu-cart-popup__content {
  min-height: 100% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.single-product .keyshu-cart-popup__list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

body.single-product .keyshu-cart-popup__item {
  position: relative !important;
  min-height: 142px !important;
  margin: 0 !important;
  padding: 15px 52px 15px 106px !important;
  border-bottom: 1px solid var(--ks-border-2, #edf6f6) !important;
  background: #ffffff !important;
}

body.single-product .keyshu-cart-popup__thumb {
  position: absolute !important;
  top: 15px !important;
  left: 16px !important;
  width: 74px !important;
  height: 74px !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  border: 1px solid var(--ks-border-2, #edf6f6) !important;
  background: #f8ffff !important;
}

body.single-product .keyshu-cart-popup__thumb img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

body.single-product .keyshu-cart-popup__item-content {
  min-width: 0 !important;
}

body.single-product .keyshu-cart-popup__name {
  display: -webkit-box !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: var(--ks-heading, #173b42) !important;
  font-size: 14px !important;
  line-height: 1.42 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  text-transform: none !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

body.single-product .keyshu-cart-popup__name:hover {
  color: var(--ks-primary, #03b0b1) !important;
}

body.single-product .keyshu-cart-popup__meta {
  margin: 0 0 7px !important;
  color: var(--ks-muted, #71858b) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}

body.single-product .keyshu-cart-popup__meta dl,
body.single-product .keyshu-cart-popup__meta dt,
body.single-product .keyshu-cart-popup__meta dd,
body.single-product .keyshu-cart-popup__meta p {
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .keyshu-cart-popup__unit-price {
  margin: 0 0 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--ks-muted, #71858b) !important;
  font-size: 12.5px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

body.single-product .keyshu-cart-popup__unit-price strong,
body.single-product .keyshu-cart-popup__unit-price .amount,
body.single-product .keyshu-cart-popup__unit-price bdi {
  color: var(--ks-sale, #ef2f2f) !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
}

body.single-product .keyshu-cart-popup__bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body.single-product .keyshu-cart-popup__qty {
  width: 118px !important;
  height: 34px !important;
  flex: 0 0 118px !important;
  display: grid !important;
  grid-template-columns: 34px 1fr 34px !important;
  overflow: hidden !important;
  border: 1.5px solid var(--ks-border, #dceff0) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

body.single-product .keyshu-cart-popup__qty-btn {
  width: 34px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--ks-primary, #03b0b1) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

body.single-product .keyshu-cart-popup__qty-btn:hover {
  background: var(--ks-primary-soft, #eefafa) !important;
}

body.single-product .keyshu-cart-popup__qty-btn:disabled,
body.single-product .keyshu-cart-popup__qty-btn[aria-disabled="true"] {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

body.single-product .keyshu-cart-popup__qty-input {
  width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 1px solid var(--ks-border, #dceff0) !important;
  border-right: 1px solid var(--ks-border, #dceff0) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--ks-heading, #173b42) !important;
  box-shadow: none !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  -moz-appearance: textfield !important;
}

body.single-product .keyshu-cart-popup__qty-input::-webkit-outer-spin-button,
body.single-product .keyshu-cart-popup__qty-input::-webkit-inner-spin-button {
  margin: 0 !important;
  -webkit-appearance: none !important;
}

body.single-product .keyshu-cart-popup__qty.is-locked {
  opacity: 0.58 !important;
  background: #f5f7f8 !important;
  cursor: not-allowed !important;
}

body.single-product .keyshu-cart-popup__qty.is-locked .keyshu-cart-popup__qty-btn,
body.single-product .keyshu-cart-popup__qty.is-locked .keyshu-cart-popup__qty-input {
  cursor: not-allowed !important;
  background: #f5f7f8 !important;
  color: #9aa8ad !important;
}

body.single-product .keyshu-cart-popup__line-total {
  min-width: 112px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
  text-align: right !important;
}

body.single-product .keyshu-cart-popup__line-total span {
  color: var(--ks-muted, #71858b) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

body.single-product .keyshu-cart-popup__line-total strong,
body.single-product .keyshu-cart-popup__line-total .amount,
body.single-product .keyshu-cart-popup__line-total bdi {
  color: var(--ks-sale, #ef2f2f) !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
}

body.single-product .keyshu-cart-popup__remove {
  position: absolute !important;
  top: 16px !important;
  right: 14px !important;
  left: auto !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(239, 47, 47, 0.18) !important;
  background: #fff5f5 !important;
  color: var(--ks-sale, #ef2f2f) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body.single-product .keyshu-cart-popup__remove::before {
  content: "\f2ed" !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

body.single-product .keyshu-cart-popup__remove:hover {
  background: var(--ks-sale, #ef2f2f) !important;
  color: #ffffff !important;
}

body.single-product .keyshu-cart-popup__remove.is-locked,
body.single-product .keyshu-cart-popup__remove:disabled {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
  background: #f5f7f8 !important;
  border-color: #e5ecef !important;
  color: #9aa8ad !important;
}

body.single-product .keyshu-cart-popup__remove.is-locked:hover,
body.single-product .keyshu-cart-popup__remove:disabled:hover {
  background: #f5f7f8 !important;
  color: #9aa8ad !important;
}

body.single-product .keyshu-cart-popup__footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 3 !important;
  margin-top: auto !important;
  padding: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid var(--ks-border, #dceff0) !important;
}

body.single-product .keyshu-cart-popup__subtotal {
  min-height: 58px !important;
  padding: 16px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #f8ffff !important;
  border-bottom: 1px solid var(--ks-border-2, #edf6f6) !important;
}

body.single-product .keyshu-cart-popup__subtotal span {
  color: var(--ks-heading, #173b42) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

body.single-product .keyshu-cart-popup__subtotal strong,
body.single-product .keyshu-cart-popup__subtotal .amount,
body.single-product .keyshu-cart-popup__subtotal bdi {
  color: var(--ks-sale, #ef2f2f) !important;
  font-size: 19px !important;
  font-weight: 900 !important;
}

body.single-product .keyshu-cart-popup__checkout {
  width: calc(100% - 36px) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 14px 18px calc(14px + env(safe-area-inset-bottom)) !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--ks-primary, #03b0b1) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--ks-primary, #03b0b1) 0%, var(--ks-primary-dark, #029596) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(3, 176, 177, 0.22) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.single-product .keyshu-cart-popup__checkout:hover {
  background: linear-gradient(135deg, var(--ks-primary-dark, #029596) 0%, #017879 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 26px rgba(3, 176, 177, 0.28) !important;
}

body.single-product .keyshu-cart-popup__empty {
  min-height: 260px !important;
  padding: 42px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

body.single-product .keyshu-cart-popup__empty-icon {
  width: 58px !important;
  height: 58px !important;
  margin: 0 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 18px !important;
  background: var(--ks-primary-soft, #eefafa) !important;
  color: var(--ks-primary, #03b0b1) !important;
}

body.single-product .keyshu-cart-popup__empty-icon::before {
  content: "\f07a" !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-size: 24px !important;
  font-weight: 900 !important;
}

body.single-product .keyshu-cart-popup__empty strong {
  margin: 0 0 7px !important;
  color: var(--ks-heading, #173b42) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

body.single-product .keyshu-cart-popup__empty p {
  max-width: 290px !important;
  margin: 0 !important;
  color: var(--ks-muted, #71858b) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
}

@media (max-width: 767px) {
  body.single-product .keyshu-cart-popup__panel {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: min(84vh, 700px) !important;
    border-radius: 20px 20px 0 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    transform: translateY(105%) !important;
  }

  body.single-product .keyshu-cart-popup.is-open .keyshu-cart-popup__panel {
    transform: translateY(0) !important;
  }

  body.single-product .keyshu-cart-popup__header {
    min-height: 72px !important;
    padding: 14px 16px !important;
  }

  body.single-product .keyshu-cart-popup__icon {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }

  body.single-product .keyshu-cart-popup__header h3 {
    font-size: 16px !important;
  }

  body.single-product .keyshu-cart-popup__header p {
    font-size: 11.5px !important;
  }

  body.single-product .keyshu-cart-popup__close {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  body.single-product .keyshu-cart-popup__item {
    min-height: 138px !important;
    padding: 13px 46px 13px 94px !important;
  }

  body.single-product .keyshu-cart-popup__thumb {
    top: 13px !important;
    left: 14px !important;
    width: 66px !important;
    height: 66px !important;
  }

  body.single-product .keyshu-cart-popup__name {
    font-size: 13px !important;
  }

  body.single-product .keyshu-cart-popup__remove {
    top: 13px !important;
    right: 12px !important;
  }

  body.single-product .keyshu-cart-popup__bottom {
    align-items: flex-end !important;
    gap: 8px !important;
  }

  body.single-product .keyshu-cart-popup__qty {
    width: 108px !important;
    flex-basis: 108px !important;
    grid-template-columns: 31px 1fr 31px !important;
  }

  body.single-product .keyshu-cart-popup__qty-btn {
    width: 31px !important;
  }

  body.single-product .keyshu-cart-popup__line-total {
    min-width: 96px !important;
  }

  body.single-product .keyshu-cart-popup__line-total strong,
  body.single-product .keyshu-cart-popup__line-total .amount,
  body.single-product .keyshu-cart-popup__line-total bdi {
    font-size: 14px !important;
  }

  body.single-product .keyshu-cart-popup__subtotal {
    padding: 15px 14px !important;
  }

  body.single-product .keyshu-cart-popup__subtotal span {
    font-size: 13px !important;
  }

  body.single-product .keyshu-cart-popup__subtotal strong,
  body.single-product .keyshu-cart-popup__subtotal .amount,
  body.single-product .keyshu-cart-popup__subtotal bdi {
    font-size: 17px !important;
  }

  body.single-product .keyshu-cart-popup__checkout {
    width: calc(100% - 28px) !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 380px) {
  body.single-product .keyshu-cart-popup__item {
    min-height: 158px !important;
    padding-right: 42px !important;
  }

  body.single-product .keyshu-cart-popup__bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body.single-product .keyshu-cart-popup__line-total {
    align-items: flex-start !important;
    text-align: left !important;
  }
}
/* =========================================================
   KEYSHU - RÚT GỌN MÔ TẢ SẢN PHẨM 10 DÒNG + XEM THÊM
   Dùng cho WooCommerce single product tabs
========================================================= */

body.single-product .woocommerce-tabs.wc-tabs-wrapper {
  margin-top: 28px;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc {
  position: relative;
  max-height: 17.5em; /* khoảng 10 dòng, line-height 1.75 */
  overflow: hidden;
  transition: max-height 0.35s ease;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc p,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc li {
  color: #34424d;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc strong {
  color: #1f3f46;
  font-weight: 800;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    #ffffff 78%
  );
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc.is-expanded {
  max-height: 5000px;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc.is-expanded::after {
  opacity: 0;
}

body.single-product .keyshu-product-desc-toggle-wrap {
  width: 100%;
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.single-product .keyshu-product-desc-toggle {
  min-width: 138px;
  min-height: 40px;
  padding: 0 22px;
  border: 1.5px solid #03B0B1;
  border-radius: 999px;
  background: #ffffff;
  color: #03B0B1;
  font-family: "SVN-Gilroy", sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  box-shadow: 0 8px 18px rgba(3, 176, 177, 0.12);
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

body.single-product .keyshu-product-desc-toggle::after {
  content: "\f078";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

body.single-product .keyshu-product-desc-toggle.is-expanded::after {
  content: "\f077";
}

body.single-product .keyshu-product-desc-toggle:hover {
  background: #03B0B1;
  color: #ffffff;
  border-color: #03B0B1;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(3, 176, 177, 0.22);
}

body.single-product .keyshu-product-desc-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(3, 176, 177, 0.14);
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc-no-toggle {
  max-height: none;
  overflow: visible;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc-no-toggle::after {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc p,
  body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc li {
    font-size: 15px;
    line-height: 1.72;
  }

  body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc {
    max-height: 17.2em;
  }

  body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description.keyshu-product-desc.is-expanded {
    max-height: 5000px;
  }

  body.single-product .keyshu-product-desc-toggle {
    min-width: 132px;
    min-height: 38px;
    font-size: 13.5px;
  }
}
body.single-product .keyshu-cart-popup__qty.is-locked {
  opacity: 0.58 !important;
  background: #f5f7f8 !important;
  cursor: not-allowed !important;
}

body.single-product .keyshu-cart-popup__qty.is-locked .keyshu-cart-popup__qty-btn,
body.single-product .keyshu-cart-popup__qty.is-locked .keyshu-cart-popup__qty-input {
  cursor: not-allowed !important;
  background: #f5f7f8 !important;
  color: #9aa8ad !important;
}

/* =========================================================
   KEYSHU - PRODUCT META COUNTS ABOVE TITLE
   Hiển thị: Đã bán + Lượt xem cùng 1 hàng
========================================================= */

.product-small .keyshu-product-meta-counts {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.product-small .keyshu-product-count-badge {
  min-width: 0;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.product-small .keyshu-product-sales-count {
  background: #fff7ed;
  color: #ea580c;
}

.product-small .keyshu-product-views-count {
  background: #eefafa;
  color: #028f90;
}

.product-small .keyshu-product-sales-icon,
.product-small .keyshu-product-views-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.product-small .keyshu-product-sales-icon {
  font-size: 12px;
}

.product-small .keyshu-product-views-icon::before {
  content: "\f06e";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
}

.product-small .box-text .product-title,
.product-small .box-text .name {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 640px) {
  .product-small .keyshu-product-meta-counts {
    margin: 7px 0 4px;
    gap: 4px;
  }

  .product-small .keyshu-product-count-badge {
    height: 20px;
    padding: 0 6px;
    gap: 3px;
    font-size: 10px;
  }

  .product-small .keyshu-product-sales-icon,
  .product-small .keyshu-product-views-icon {
    font-size: 10.5px;
  }
}
/* =========================================================
   KEYSHU - SẢN PHẨM THEO GIẢI PHÁP LÀN DA
   Nằm trước sản phẩm liên quan
========================================================= */

.single-product .keyshu-skin-solution-products {
  width: 100%;
  padding: 34px 0 44px;
  background: #effffb;
}

.single-product .keyshu-skin-solution-products,
.single-product .keyshu-skin-solution-products * {
  box-sizing: border-box;
}

.single-product .keyshu-skin-solution-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.single-product .keyshu-skin-solution-head {
  width: 100%;
  margin: 0 0 18px;
}

.single-product .keyshu-skin-solution-title {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  color: #315f66;
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-align: left;
  text-transform: uppercase;
}

/* Danh mục con hàng ngang */
.single-product .keyshu-skin-solution-cats {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.single-product .keyshu-skin-solution-cats::-webkit-scrollbar {
  display: none;
}

.single-product .keyshu-skin-solution-cat {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #dceff0;
  background: #ffffff;
  color: #315f66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(3, 176, 177, 0.06);
  transition: all 0.22s ease;
}

.single-product .keyshu-skin-solution-cat span {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(3, 176, 177, 0.1);
  color: #03b0b1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.single-product .keyshu-skin-solution-cat:hover {
  border-color: #03b0b1;
  background: #03b0b1;
  color: #ffffff;
  transform: translateY(-1px);
}

.single-product .keyshu-skin-solution-cat:hover span {
  background: #ffffff;
  color: #03b0b1;
}

/* Grid sản phẩm: 4 sản phẩm / 1 hàng desktop */
.single-product .keyshu-skin-solution-grid {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px 16px !important;
}

.single-product .keyshu-skin-solution-grid::before,
.single-product .keyshu-skin-solution-grid::after {
  display: none !important;
  content: none !important;
}

.single-product .keyshu-skin-solution-grid > .product-small,
.single-product .keyshu-skin-solution-grid > .product-small.col {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  flex-basis: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.single-product .keyshu-skin-solution-grid .col-inner {
  height: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
  .single-product .keyshu-skin-solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 14px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .single-product .keyshu-skin-solution-products {
    padding: 28px 0 36px;
  }

  .single-product .keyshu-skin-solution-container {
    padding: 0 10px;
  }

  .single-product .keyshu-skin-solution-title {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .single-product .keyshu-skin-solution-cats {
    gap: 8px;
    padding-bottom: 2px;
  }

  .single-product .keyshu-skin-solution-cat {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .single-product .keyshu-skin-solution-cat span {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .single-product .keyshu-skin-solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
  }
}
/* =========================================================
   KEYSHU - GIẢI PHÁP LÀN DA PRODUCT CARD MOBILE ONLY
   Chỉ áp dụng cho section:
   .single-product .keyshu-skin-solution-products
========================================================= */

@media (max-width: 767px) {
  .single-product .keyshu-skin-solution-products {
    width: 100%;
    padding: 28px 0 36px !important;
    background: #effffb !important;
    overflow: hidden;
  }

  .single-product .keyshu-skin-solution-products,
  .single-product .keyshu-skin-solution-products * {
    box-sizing: border-box;
  }

  .single-product .keyshu-skin-solution-container {
    width: 100%;
    max-width: 100%;
    padding: 0 7px !important;
    margin: 0 auto !important;
  }

  /* Header section */
  .single-product .keyshu-skin-solution-head {
    margin: 0 0 16px !important;
  }

  .single-product .keyshu-skin-solution-title {
    margin: 0 0 12px !important;
    padding: 0 4px !important;
    color: #315f66 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
  }

  /* Danh mục con kéo ngang */
  .single-product .keyshu-skin-solution-cats {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 4px 4px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .single-product .keyshu-skin-solution-cats::-webkit-scrollbar {
    display: none !important;
  }

  .single-product .keyshu-skin-solution-cat {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid #dceff0 !important;
    background: #ffffff !important;
    color: #315f66 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 14px rgba(3, 176, 177, 0.06) !important;
  }

  .single-product .keyshu-skin-solution-cat span {
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: rgba(3, 176, 177, 0.1) !important;
    color: #03b0b1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 900 !important;
  }

  /* Grid 2 cột mobile */
  .single-product .keyshu-skin-solution-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 13px 16px !important;
  }

  .single-product .keyshu-skin-solution-grid::before,
  .single-product .keyshu-skin-solution-grid::after {
    display: none !important;
    content: none !important;
  }

  /* Reset Flatsome column */
  .single-product .keyshu-skin-solution-grid > .product-small,
  .single-product .keyshu-skin-solution-grid > .product-small.col {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    flex-basis: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Card */
  .single-product .keyshu-skin-solution-grid .col-inner {
    height: 100% !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(3, 176, 177, 0.08) !important;
  }

  .single-product .keyshu-skin-solution-grid .product-small.box {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* Ảnh sản phẩm */
  .single-product .keyshu-skin-solution-grid .box-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 12px 12px 14px 14px !important;
    overflow: hidden !important;
    background: #d8fbf8 !important;
  }

  .single-product .keyshu-skin-solution-grid .box-image .image-fade_in_back,
  .single-product .keyshu-skin-solution-grid .box-image a {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  .single-product .keyshu-skin-solution-grid .box-image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px 12px 14px 14px !important;
  }

  .single-product .keyshu-skin-solution-grid .box-image img.show-on-hover,
  .single-product .keyshu-skin-solution-grid .box-image .back-image {
    display: none !important;
  }

  /* Wishlist icon góc phải */
  .single-product .keyshu-skin-solution-grid .image-tools.top.right {
    top: 9px !important;
    right: 9px !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .single-product .keyshu-skin-solution-grid .wishlist-button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ffffff !important;
    color: #03b0b1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 16px rgba(3, 176, 177, 0.12) !important;
    opacity: 1 !important;
  }

  .single-product .keyshu-skin-solution-grid .wishlist-button i {
    color: #03b0b1 !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .single-product .keyshu-skin-solution-grid .wishlist-popup {
    display: none !important;
  }

  /* Nội dung card */
  .single-product .keyshu-skin-solution-grid .box-text-products {
    flex: 1 1 auto !important;
    padding: 11px 12px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    background: #ffffff !important;
  }

  .single-product .keyshu-skin-solution-grid .title-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }

  .single-product .keyshu-skin-solution-grid .product-cat {
    display: none !important;
  }

  /* Badge đã bán + lượt xem */
.single-product .keyshu-skin-solution-grid .keyshu-product-meta-counts {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  overflow: hidden !important;
}

.single-product .keyshu-skin-solution-grid .keyshu-product-count-badge {
  height: 22px !important;
  min-width: 0 !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.single-product .keyshu-skin-solution-grid .keyshu-product-sales-count {
  background: #fff4e9 !important;
  color: #ff5a1f !important;
}

.single-product .keyshu-skin-solution-grid .keyshu-product-views-count {
  background: #eefafa !important;
  color: #028f90 !important;
}

.single-product .keyshu-skin-solution-grid .keyshu-product-sales-icon,
.single-product .keyshu-skin-solution-grid .keyshu-product-views-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.single-product .keyshu-skin-solution-grid .keyshu-product-sales-icon {
  font-size: 11px !important;
}

.single-product .keyshu-skin-solution-grid .keyshu-product-views-icon::before {
  content: "\f06e" !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
}

  /* Tên sản phẩm: gọn 2 dòng */
  .single-product .keyshu-skin-solution-grid .product-title,
  .single-product .keyshu-skin-solution-grid .woocommerce-loop-product__title {
    margin: 0 0 9px !important;
    padding: 0 !important;
    min-height: 38px !important;
  }

  .single-product .keyshu-skin-solution-grid .product-title a,
  .single-product .keyshu-skin-solution-grid .woocommerce-loop-product__title a {
    color: #245763 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
    letter-spacing: -0.1px !important;
    text-align: left !important;
    text-decoration: none !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
  }

  /* Rating + còn hàng + giá */
  .single-product .keyshu-skin-solution-grid .price-wrapper {
    margin: auto 0 11px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }

  .single-product .keyshu-skin-solution-grid .keyshu-rating-real-text,
  .single-product .keyshu-skin-solution-grid .keyshu-no-rating {
    order: 1 !important;
    width: 100% !important;
    height: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    display: block !important;
  }

  .single-product .keyshu-skin-solution-grid .keyshu-rating-real-text::before,
  .single-product .keyshu-skin-solution-grid .keyshu-no-rating::before {
    content: "★★★★★";
    color: #d8e0e4 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
  }

  .single-product .keyshu-skin-solution-grid .price-wrapper::after {
    content: "✓ CÒN HÀNG";
    order: 2 !important;
    margin: -1px 0 4px !important;
    color: #00a36c !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: 0.1px !important;
  }

  .single-product .keyshu-skin-solution-grid .price {
    order: 3 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #f44336 !important;
    line-height: 1 !important;
  }

  .single-product .keyshu-skin-solution-grid .price,
  .single-product .keyshu-skin-solution-grid .price .amount,
  .single-product .keyshu-skin-solution-grid .price bdi {
    color: #f44336 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
  }

  .single-product .keyshu-skin-solution-grid .price del,
  .single-product .keyshu-skin-solution-grid .price del .amount,
  .single-product .keyshu-skin-solution-grid .price del bdi {
    color: #9ca3af !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .single-product .keyshu-skin-solution-grid .price ins {
    text-decoration: none !important;
  }

  .single-product .keyshu-skin-solution-grid .badge-container {
    display: none !important;
  }

  /* Nút thêm giỏ hàng */
  .single-product .keyshu-skin-solution-grid .add-to-cart-button {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button {
    position: relative !important;
    width: 100% !important;
    height: 35px !important;
    min-height: 35px !important;
    margin: 0 !important;
    padding: 0 46px 0 12px !important;

    border: none !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #ff463d 0%, #d92525 100%) !important;
    color: #ffffff !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;

    box-shadow: none !important;
    overflow: hidden !important;
    opacity: 1 !important;
  }

  /* Vạch chia trước icon giỏ hàng */
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button::before,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button::before {
    content: "";
    position: absolute !important;
    top: 0 !important;
    right: 35px !important;
    left: auto !important;
    width: 1px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.28) !important;
    border: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
  }

  /* Icon giỏ hàng bên phải: luôn giữ nguyên */
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button::after,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button::after {
    content: "\f07a" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 35px !important;
    height: 35px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    background: rgba(183, 28, 28, 0.18) !important;
    color: #ffffff !important;

    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 35px !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
  }

  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button:hover,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button:hover {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%) !important;
    color: #ffffff !important;
    transform: none !important;
  }

  /* Khi WooCommerce loading: giữ nguyên text + icon giỏ hàng */
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button.loading,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button.loading,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button.keyshu-cart-loading,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button.keyshu-cart-loading {
    color: #ffffff !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }

  /* Khi loading: icon loading nằm chính giữa nút */
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button.loading::before,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button.loading::before,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button.keyshu-cart-loading::before,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button.keyshu-cart-loading::before {
    content: "" !important;
    position: absolute !important;
    z-index: 3 !important;

    top: 50% !important;
    left: 50% !important;
    right: auto !important;

    width: 17px !important;
    height: 17px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    border-top-color: #ffffff !important;

    background: transparent !important;

    transform: translate(-50%, -50%) !important;
    animation: keyshuSkinCartSpinCenter 0.75s linear infinite !important;
  }

  /* Khi loading: icon giỏ hàng vẫn giữ nguyên bên phải */
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button.loading::after,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button.loading::after,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.button.keyshu-cart-loading::after,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.add_to_cart_button.keyshu-cart-loading::after {
    content: "\f07a" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 35px !important;
    height: 35px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    background: rgba(183, 28, 28, 0.18) !important;
    color: #ffffff !important;

    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 35px !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
  }

  /* Nút Xem giỏ hàng sau khi thêm */
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.added,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.keyshu-view-cart {
    background: linear-gradient(135deg, #03b0b1 0%, #028f90 100%) !important;
    color: #ffffff !important;
  }

  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.added::after,
  .single-product .keyshu-skin-solution-grid .add-to-cart-button a.keyshu-view-cart::after {
    content: "\f061" !important;
    background: rgba(0, 0, 0, 0.12) !important;
  }
}

/* Loading quay chính giữa nút thêm giỏ hàng */
@keyframes keyshuSkinCartSpinCenter {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* =========================================================
   KEYSHU - MOBILE OFF CANVAS CART POPUP
   Chỉ áp dụng mobile
========================================================= */

@media (max-width: 767px) {
  body .mfp-content.off-canvas-cart,
  body .mfp-content.off-canvas-cart * {
    box-sizing: border-box;
  }

  body .mfp-content.off-canvas-cart {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 92vh !important;
    margin: 0 !important;
    padding: 0 !important;

    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;

    background: transparent !important;
    border-radius: 22px 22px 0 0 !important;
    overflow: hidden !important;

    transform: none !important;
  }

  body .mfp-wrap.mfp-ready .mfp-content.off-canvas-cart {
    animation: keyshuMobileCartUp 0.24s ease both;
  }

  @keyframes keyshuMobileCartUp {
    from {
      opacity: 0;
      transform: translateY(28px) !important;
    }

    to {
      opacity: 1;
      transform: translateY(0) !important;
    }
  }

  body .mfp-bg {
    background: rgba(15, 23, 42, 0.48) !important;
    opacity: 1 !important;
  }

  body .mfp-content.off-canvas-cart #cart-popup {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body .mfp-content.off-canvas-cart .cart-popup-inner {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    background: #ffffff !important;
    border-radius: 22px 22px 0 0 !important;
    overflow: hidden !important;

    box-shadow: 0 -14px 40px rgba(15, 23, 42, 0.18) !important;
  }

  /* Thanh kéo nhỏ phía trên */
  body .mfp-content.off-canvas-cart .cart-popup-inner::before {
    content: "";
    width: 44px;
    height: 5px;
    margin: 10px auto 2px;
    border-radius: 999px;
    background: #d8e3e6;
    display: block;
    flex: 0 0 auto;
  }

  /* =========================================================
     TITLE
  ========================================================= */

  body .mfp-content.off-canvas-cart .cart-popup-title {
    position: relative !important;
    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 12px 48px 14px !important;

    background: #ffffff !important;
    border-bottom: 1px solid #edf2f4 !important;
    text-align: center !important;
  }

  body .mfp-content.off-canvas-cart .cart-popup-title .heading-font {
    color: #173b42 !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

  body .mfp-content.off-canvas-cart .cart-popup-title .is-divider {
    display: none !important;
  }

  /* Nút đóng Magnific nếu Flatsome có render */
  body .mfp-wrap .mfp-content.off-canvas-cart .mfp-close,
  body .mfp-wrap .mfp-close {
    top: 14px !important;
    right: 14px !important;

    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;

    padding: 0 !important;
    border-radius: 50% !important;

    /* background: #eefafa !important; */
    color: #03b0b1 !important;

    font-size: 0 !important;
    line-height: 1 !important;
    opacity: 1 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-shadow: none !important;
  }

  body .mfp-wrap .mfp-content.off-canvas-cart .mfp-close::before,
  body .mfp-wrap .mfp-close::before {
    content: "\f00d";
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
  }

  /* =========================================================
     CONTENT
  ========================================================= */

  body .mfp-content.off-canvas-cart .widget_shopping_cart {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .mfp-content.off-canvas-cart .widget_shopping_cart_content {
    min-height: 0 !important;
    flex: 1 1 auto !important;

    display: flex !important;
    flex-direction: column !important;

    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  body .mfp-content.off-canvas-cart ul.woocommerce-mini-cart.cart_list {
    flex: 1 1 auto !important;

    max-height: calc(92vh - 210px) !important;
    min-height: 120px !important;

    margin: 0 !important;
    padding: 12px 14px 8px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    background: #f7fbfb !important;
    list-style: none !important;

    -webkit-overflow-scrolling: touch;
  }

  body .mfp-content.off-canvas-cart ul.woocommerce-mini-cart.cart_list::-webkit-scrollbar {
    width: 4px;
  }

  body .mfp-content.off-canvas-cart ul.woocommerce-mini-cart.cart_list::-webkit-scrollbar-thumb {
    background: rgba(3, 176, 177, 0.28);
    border-radius: 999px;
  }

  body .mfp-content.off-canvas-cart ul.woocommerce-mini-cart.cart_list::-webkit-scrollbar-track {
    background: transparent;
  }

  /* =========================================================
     PRODUCT ITEM
  ========================================================= */

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item.mini_cart_item {
    position: relative !important;

    min-height: 98px !important;
    margin: 0 0 10px !important;
    padding: 12px 40px 12px 88px !important;

    background: #ffffff !important;
    border: 1px solid #e5eff1 !important;
    border-radius: 14px !important;

    box-shadow: 0 6px 16px rgba(32, 78, 86, 0.06) !important;

    list-style: none !important;
    overflow: hidden !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item.mini_cart_item:last-child {
    margin-bottom: 0 !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item.mini_cart_item > a:not(.remove) {
    display: block !important;

    margin: 0 0 8px !important;
    padding: 0 !important;

    color: #1f3f46 !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
    font-weight: 800 !important;
    text-transform: none !important;
    text-decoration: none !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item.mini_cart_item img {
    position: absolute !important;
    left: 12px !important;
    top: 12px !important;

    width: 64px !important;
    height: 64px !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    border-radius: 12px !important;
    border: 1px solid #edf2f4 !important;
    background: #f8fafb !important;

    object-fit: cover !important;
    object-position: center !important;
  }

  body .mfp-content.off-canvas-cart .ux-mini-cart-qty {
    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
  }

  body .mfp-content.off-canvas-cart .ux-mini-cart-qty .quantity {
    color: #6b7c84 !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  body .mfp-content.off-canvas-cart .ux-mini-cart-qty .amount,
  body .mfp-content.off-canvas-cart .ux-mini-cart-qty bdi {
    color: #ee4d2d !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  /* Nút xoá */
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item a.remove,
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item a.remove_from_cart_button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;

    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;
    border: 1px solid #e7eef0 !important;
    background: #ffffff !important;
    color: #80919a !important;

    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;

    box-shadow: 0 4px 10px rgba(32, 78, 86, 0.08) !important;
    z-index: 5 !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item a.remove::before,
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item a.remove_from_cart_button::before {
    content: "\f2ed";
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    color: #80919a;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item a.remove:hover,
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item a.remove_from_cart_button:hover {
    border-color: #ff3b2f !important;
    background: #fff1f0 !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item a.remove:hover::before,
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item a.remove_from_cart_button:hover::before {
    color: #ff3b2f !important;
  }

  /* =========================================================
     FOOTER
  ========================================================= */

  body .mfp-content.off-canvas-cart .ux-mini-cart-footer {
    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom)) !important;

    background: #ffffff !important;
    border-top: 1px solid #e7eef0 !important;

    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.06) !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__total.total {
    position: relative !important;

    min-height: 48px !important;
    margin: 0 0 10px !important;
    padding: 0 12px 0 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;

    border: 1px solid rgba(3, 176, 177, 0.16) !important;
    border-radius: 12px !important;
    background: #eefafa !important;

    color: #173b42 !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__total.total::before {
    content: "\f543";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #03b0b1;
    color: #ffffff;

    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__total.total strong {
    color: #173b42 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__total.total .amount,
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__total.total bdi {
    color: #ee4d2d !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  /* Buttons */
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__buttons.buttons {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__buttons.buttons a.button {
    position: relative !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 0 8px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 11px !important;

    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;

    box-shadow: none !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__buttons.buttons a.wc-forward:not(.checkout) {
    border: 1.5px solid #03b0b1 !important;
    background: #ffffff !important;
    color: #028f90 !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__buttons.buttons a.checkout {
    border: 1.5px solid #f44336 !important;
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(198, 40, 40, 0.22) !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__buttons.buttons a.wc-forward:not(.checkout):active,
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__buttons.buttons a.checkout:active {
    transform: scale(0.98);
  }

  /* Giỏ hàng trống */
  body .mfp-content.off-canvas-cart .ux-mini-cart-empty {
    width: 100% !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 22px 0 30px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    text-align: center !important;
  }

  body .mfp-content.off-canvas-cart .ux-mini-cart-empty-icon {
    width: 100% !important;
    margin: 0 auto 20px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
  }

  body .mfp-content.off-canvas-cart .ux-mini-cart-empty-icon svg {
    display: block !important;
    margin: 0 auto !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__empty-message,
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__empty-message.empty {
    width: 100% !important;

    margin: 0 auto 30px !important;
    padding: 34px 18px !important;

    display: block !important;

    color: #60777e !important;
    background: #f7fbfb !important;

    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  body .mfp-content.off-canvas-cart .ux-mini-cart-empty .return-to-shop {
    width: 100% !important;

    margin: 0 auto !important;
    padding: 0 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    float: none !important;
    clear: both !important;

    text-align: center !important;
  }

  body .mfp-content.off-canvas-cart .ux-mini-cart-empty .return-to-shop a.button,
  body .mfp-content.off-canvas-cart .ux-mini-cart-empty .return-to-shop a.button.primary,
  body .mfp-content.off-canvas-cart .ux-mini-cart-empty .return-to-shop a.button.wc-backward,
  body .mfp-content.off-canvas-cart .ux-mini-cart-empty .return-to-shop a.button.primary.wc-backward {
    width: auto !important;
    min-width: 220px !important;
    max-width: calc(100vw - 56px) !important;

    height: 40px !important;
    min-height: 40px !important;

    margin: 0 auto !important;
    padding: 0 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    float: none !important;
    clear: both !important;

    border: 0 !important;
    border-radius: 999px !important;

    background: #03b0b1 !important;
    color: #ffffff !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    box-shadow: none !important;
    transform: none !important;
  }

  body .mfp-content.off-canvas-cart .ux-mini-cart-empty .return-to-shop a.button:hover,
  body .mfp-content.off-canvas-cart .ux-mini-cart-empty .return-to-shop a.button.primary:hover,
  body .mfp-content.off-canvas-cart .ux-mini-cart-empty .return-to-shop a.button.wc-backward:hover,
  body .mfp-content.off-canvas-cart .ux-mini-cart-empty .return-to-shop a.button.primary.wc-backward:hover {
    background: #029596 !important;
    color: #ffffff !important;
  }
}

/* Mobile nhỏ */
@media (max-width: 390px) {
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__buttons.buttons {
    grid-template-columns: 1fr !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__buttons.buttons a.button {
    height: 40px !important;
    min-height: 40px !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart-item.mini_cart_item {
    padding-right: 36px !important;
  }

  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__total.total .amount,
  body .mfp-content.off-canvas-cart .woocommerce-mini-cart__total.total bdi {
    font-size: 15px !important;
  }
}
/* =========================================================
   KEYSHU - PRODUCT GIFTS BOX REPLACE OLD PROMOTION BOX
   Dùng cho file: products-gift.php
   Vị trí: thay thế box "KHUYẾN MẠI VÀ QUÀ TẶNG KEYSHU"
========================================================= */

.single-product .keyshu-sp-gifts,
.single-product .keyshu-sp-gifts * {
  box-sizing: border-box;
}

.single-product .keyshu-sp-gifts {
  --ksg-red: #ef2b2a;
  --ksg-red-dark: #d90000;
  --ksg-teal: #03b0b1;
  --ksg-teal-dark: #008d90;
  --ksg-text: #20333c;
  --ksg-muted: #667785;
  --ksg-border: rgba(255, 77, 64, 0.22);

  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 18px 0 18px !important;
  padding: 14px;
  overflow: hidden;

  border: 1px solid var(--ksg-border);
  /* border-radius: 18px; */
  border-radius: 20px 5px 20px 20px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 77, 64, 0.15) 0 76px, transparent 77px),
    radial-gradient(circle at 94% 88%, rgba(255, 77, 64, 0.13) 0 96px, transparent 97px),
    linear-gradient(180deg, #fff9f8 0%, #ffffff 58%, #fff5f4 100%);
  box-shadow:
    0 14px 32px rgba(239, 43, 42, 0.11),
    0 4px 12px rgba(35, 55, 70, 0.04);
}

.single-product .keyshu-sp-gifts__shine {
  position: absolute;
  right: -52px;
  bottom: -82px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.single-product .keyshu-sp-gifts__head,
.single-product .keyshu-sp-gifts__condition-box,
.single-product .keyshu-sp-gifts__list,
.single-product .keyshu-sp-gifts__footer {
  position: relative;
  z-index: 2;
}

.single-product .keyshu-sp-gifts__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.single-product .keyshu-sp-gifts__title-wrap {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.single-product .keyshu-sp-gifts__main-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff453b 0%, #e40000 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(239, 43, 42, 0.22);
}

.single-product .keyshu-sp-gifts__main-icon::before {
  content: "\f06b";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.single-product .keyshu-sp-gifts__eyebrow {
  width: fit-content;
  margin: 0 0 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(3, 176, 177, 0.10);
  color: var(--ksg-teal-dark);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.single-product .keyshu-sp-gifts__title {
  margin: 0 !important;
  color: #d90000 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.single-product .keyshu-sp-gifts__desc {
  margin: 4px 0 0 !important;
  color: var(--ksg-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.single-product .keyshu-sp-gifts__today-badge {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffeceb;
  color: var(--ksg-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.single-product .keyshu-sp-gifts__condition-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 11px 12px;
  border: 1px solid rgba(3, 176, 177, 0.16);
  border-radius: 13px;
  background: rgba(3, 176, 177, 0.065);
}

.single-product .keyshu-sp-gifts__condition-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 11px;
  background: #ffffff;
  color: var(--ksg-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(3, 176, 177, 0.15);
}

.single-product .keyshu-sp-gifts__condition-icon::before {
  content: "\f058";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-size: 15px;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__condition-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.single-product .keyshu-sp-gifts__condition-content strong {
  color: #006c70;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__condition-content strong .amount,
.single-product .keyshu-sp-gifts__condition-content strong bdi {
  color: var(--ksg-red);
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__condition-content span {
  color: #526672;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
}

.single-product .keyshu-sp-gifts__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.single-product .keyshu-sp-gifts__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 77, 64, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 16px rgba(35, 55, 70, 0.045);
}

.single-product .keyshu-sp-gifts__thumb {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(3, 176, 177, 0.15);
  background: #f7ffff;
  display: block;
  text-decoration: none !important;
}

.single-product .keyshu-sp-gifts__image,
.single-product .keyshu-sp-gifts__thumb img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  display: block;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.single-product .keyshu-sp-gifts__item:hover .keyshu-sp-gifts__thumb img {
  transform: scale(1.05);
}

.single-product .keyshu-sp-gifts__item-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.single-product .keyshu-sp-gifts__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.single-product .keyshu-sp-gifts__item-badge {
  max-width: 64%;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(239, 43, 42, 0.10);
  color: var(--ksg-red);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__stock {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.single-product .keyshu-sp-gifts__stock.is-in-stock {
  background: rgba(3, 176, 177, 0.10);
  color: var(--ksg-teal-dark);
}

.single-product .keyshu-sp-gifts__stock.is-out-stock {
  background: #f1f5f9;
  color: #64748b;
}

.single-product .keyshu-sp-gifts__name {
  color: var(--ksg-text) !important;
  display: -webkit-box;
  overflow: hidden;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__name:hover {
  color: var(--ksg-red) !important;
}

.single-product .keyshu-sp-gifts__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--ksg-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.single-product .keyshu-sp-gifts__meta strong {
  color: var(--ksg-text);
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__meta strong .amount,
.single-product .keyshu-sp-gifts__meta strong bdi {
  color: var(--ksg-red) !important;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__item-condition {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  background: #fff7f6;
  color: #9f2724;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.single-product .keyshu-sp-gifts__item-condition span {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: rgba(239, 43, 42, 0.11);
  color: var(--ksg-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.single-product .keyshu-sp-gifts__item-condition span::before {
  content: "\f06a";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-size: 9px;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__item-note {
  margin: 0 !important;
  color: var(--ksg-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.single-product .keyshu-sp-gifts__footer {
  min-height: 42px;
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff3d35 0%, #e00000 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(224, 0, 0, 0.20);
}

.single-product .keyshu-sp-gifts__footer-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.single-product .keyshu-sp-gifts__footer-icon::before {
  content: "\f017";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-size: 13px;
  font-weight: 400;
}

/* Tablet và mobile */
@media (max-width: 849px) {
  .single-product .keyshu-sp-gifts {
    margin: 14px 0 16px !important;
    padding: 12px;
    border-radius: 16px;
  }

  .single-product .keyshu-sp-gifts__head {
    flex-direction: column;
    gap: 10px;
  }

  .single-product .keyshu-sp-gifts__today-badge {
    align-self: flex-start;
  }

  .single-product .keyshu-sp-gifts__item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .single-product .keyshu-sp-gifts__thumb {
    width: 72px;
    height: 72px;
  }
}

/* Mobile nhỏ */
@media (max-width: 480px) {
  .single-product .keyshu-sp-gifts {
    padding: 11px;
    border-radius: 15px;
  }

  .single-product .keyshu-sp-gifts__main-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .single-product .keyshu-sp-gifts__title {
    font-size: 14px !important;
  }

  .single-product .keyshu-sp-gifts__desc {
    font-size: 12.5px;
  }

  .single-product .keyshu-sp-gifts__condition-box {
    padding: 10px;
    border-radius: 12px;
  }

  .single-product .keyshu-sp-gifts__item {
    grid-template-columns: 66px minmax(0, 1fr);
    padding: 9px;
    border-radius: 13px;
  }

  .single-product .keyshu-sp-gifts__thumb {
    width: 66px;
    height: 66px;
    border-radius: 11px;
  }

  .single-product .keyshu-sp-gifts__item-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .single-product .keyshu-sp-gifts__item-badge {
    max-width: 100%;
  }

  .single-product .keyshu-sp-gifts__name {
    font-size: 13.5px;
  }

  .single-product .keyshu-sp-gifts__meta,
  .single-product .keyshu-sp-gifts__item-condition,
  .single-product .keyshu-sp-gifts__item-note {
    font-size: 11.5px;
  }

  .single-product .keyshu-sp-gifts__footer {
    min-height: 40px;
    font-size: 11.5px;
  }
}
/* =========================================================
   KEYSHU - PRODUCT GIFTS COLLAPSE MODE
   Chỉ hiển thị 1 quà tặng, bấm mới xem danh sách còn lại
========================================================= */

.single-product .keyshu-sp-gifts--collapse .keyshu-sp-gifts__preview-label {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.single-product .keyshu-sp-gifts--collapse .keyshu-sp-gifts__preview-label span {
  color: #20333c;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts--collapse .keyshu-sp-gifts__preview-label em {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(3, 176, 177, 0.09);
  color: #008d90;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts--collapse .keyshu-sp-gifts__list--preview {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr !important;
  margin: 0;
}

.single-product .keyshu-sp-gifts--collapse .keyshu-sp-gifts__list--preview .keyshu-sp-gifts__item {
  border-color: rgba(3, 176, 177, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.single-product .keyshu-sp-gifts__more-toggle {
  position: relative;
  z-index: 2;

  width: 100%;
  min-height: 42px;
  margin: 10px 0 0;
  padding: 0 13px;

  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #03b0b1 0%, #008d90 100%);
  color: #ffffff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-align: center;

  box-shadow: 0 10px 20px rgba(3, 176, 177, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.single-product .keyshu-sp-gifts__more-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 12px 24px rgba(3, 176, 177, 0.24);
}

.single-product .keyshu-sp-gifts__more-toggle:focus {
  outline: 2px solid rgba(3, 176, 177, 0.25);
  outline-offset: 2px;
}

.single-product .keyshu-sp-gifts__more-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.single-product .keyshu-sp-gifts__more-icon::before {
  content: "\f06b";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-size: 10px;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__more-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.single-product .keyshu-sp-gifts__more-arrow::before {
  content: "\f107";
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-size: 13px;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts.is-gift-open .keyshu-sp-gifts__more-arrow {
  transform: rotate(180deg);
}

.single-product .keyshu-sp-gifts__more-panel {
  position: relative;
  z-index: 2;
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(3, 176, 177, 0.15);
  background: rgba(255, 255, 255, 0.72);
}

.single-product .keyshu-sp-gifts__more-panel[hidden] {
  display: none !important;
}

.single-product .keyshu-sp-gifts__more-title {
  margin: 0 0 8px;
  color: #20333c;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 900;
}

.single-product .keyshu-sp-gifts__list--more {
  grid-template-columns: 1fr !important;
  gap: 9px;
}

.single-product .keyshu-sp-gifts__list--more .keyshu-sp-gifts__item {
  box-shadow: none;
}

.single-product .keyshu-sp-gifts__list--more .keyshu-sp-gifts__thumb {
  width: 66px;
  height: 66px;
}

.single-product .keyshu-sp-gifts__list--more .keyshu-sp-gifts__item {
  grid-template-columns: 66px minmax(0, 1fr);
}

@media (max-width: 480px) {
  .single-product .keyshu-sp-gifts--collapse .keyshu-sp-gifts__preview-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .single-product .keyshu-sp-gifts__more-toggle {
    min-height: 40px;
    font-size: 12px;
  }

  .single-product .keyshu-sp-gifts__more-panel {
    padding: 8px;
  }
}