/* =========================================================
   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: 32px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !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%;
  max-width: 520px;
  margin: 0 0 20px !important;
  padding: 0 !important;
  display: block;
}

.single-product .keyshu-single-price-row {
  min-height: 62px;
  padding: 12px 18px;
  border-radius: 11px;
  background: #f5f7fa;
  display: flex !important;
  align-items: center;
  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;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.single-product .product-short-description {
  max-width: 650px !important;
  margin: 0 0 20px !important;
  color: #60777e !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  font-weight: 600 !important;
}

.single-product .product-short-description p {
  margin: 0 !important;
}

.single-product .product-short-description br {
  display: none;
}

/* =========================================================
   VARIATION PILL
========================================================= */

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

.single-product table.variations {
  width: 100% !important;
  margin: 0 0 10px !important;
  border: none !important;
}

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

.single-product table.variations tr {
  display: grid !important;
  grid-template-columns: 82px 1fr !important;
  gap: 14px;
  align-items: start;
}

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

.single-product table.variations th.label label {
  margin: 0 !important;
  color: var(--ks-heading);
  font-size: 13px !important;
  font-weight: 800 !important;
}

.single-product .keyshu-variation-select-wrap {
  position: relative;
}

.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;
}

.single-product .keyshu-variation-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.single-product .keyshu-variation-pill {
  min-width: 92px;
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1.5px solid #d8e3e8;
  background: #ffffff;
  color: #3d4d63;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  box-shadow: none;
  transition: all 0.22s ease;
}

.single-product .keyshu-variation-pill:hover {
  border-color: var(--ks-primary);
  color: var(--ks-primary);
}

.single-product .keyshu-variation-pill.is-active {
  background: var(--ks-primary);
  border-color: var(--ks-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(3, 176, 177, 0.18);
}

.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;
}

/* =========================================================
   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: 32px 1fr 32px !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"] {
  width: 32px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--ks-primary) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.single-product .ux-quantity .button:hover {
  background: var(--ks-primary-soft) !important;
}

.single-product .ux-quantity input.qty {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !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-size: 13px !important;
  font-weight: 800 !important;
  text-align: center !important;
  box-shadow: 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;
}

/* =========================================================
   META + SHARE
========================================================= */

.single-product .product_meta {
  margin: 22px 0 0 !important;
  padding: 0 !important;
  border-top: 1px dashed var(--ks-border) !important;
  color: var(--ks-muted);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 600;
}

.single-product .product_meta > span {
  display: block;
  margin: 0 !important;
  padding: 9px 0 !important;
  border-bottom: 1px dashed var(--ks-border-2);
}

.single-product .product_meta span,
.single-product .product_meta a {
  color: var(--ks-muted) !important;
}

.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
  font-weight: 800;
  color: var(--ks-heading) !important;
}

.single-product .product_meta a {
  text-decoration: none !important;
  font-weight: 600;
}

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

.single-product .share-icons {
  margin-top: 16px !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.single-product .share-icons::before {
  content: "Chia sẻ:";
  margin-right: 8px;
  color: var(--ks-heading);
  font-size: 12px;
  font-weight: 800;
}

.single-product .share-icons .button,
.single-product .share-icons a.icon {
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--ks-border) !important;
  background: #ffffff !important;
  color: var(--ks-primary) !important;
  box-shadow: none !important;
}

.single-product .share-icons .button:hover,
.single-product .share-icons a.icon:hover {
  background: var(--ks-primary) !important;
  color: #ffffff !important;
  border-color: var(--ks-primary) !important;
}

/* =========================================================
   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: 30px !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: 30px !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: 2.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;
}

.single-product .keyshu-comment-form-rating select#rating {
  display: none !important;
}

/* 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;
  }
}