/* =========================================================
 * Thủy Bích Vĩnh Long — Product Card
 * File: css/tb-product-card.css
 *
 * Owner:
 * - Product card visual system used by Shop/Category and PDP Related.
 * - Image frame, card body, badges, swatches, title, meta line, price, arrow.
 *
 * Not owner:
 * - Shop/archive grid spacing. Use css/tb-plp.css.
 * - PDP related section shell and 5-column layout. Use css/tb-pdp.css.
 * - PDP marketplace/Zalo/specs/summary.
 * ========================================================= */

/* 00 Component contract */
.tb-product-card {
  --tb-product-card-ready: 1;
  box-sizing: border-box;
}

.tb-product-card *,
.tb-product-card *::before,
.tb-product-card *::after {
  box-sizing: border-box;
}

/* 01 PLP card visuals */
/* =========================================================
   03. PRODUCT GRID / CARD
========================================================= */

body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner {
  height: auto;
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small {
  display: block;
  height: auto;
  min-height: 0;
  background: var(--tb-surface-card);
  border: 1px solid var(--tb-card-border);
  border-radius: var(--tb-radius-card);
  overflow: hidden;
  box-shadow: none;
  transform: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small:hover {
  border-color: var(--tb-card-border-hover);
  background: #fff;
  transform: none;
  box-shadow: 0 6px 16px rgba(30, 35, 32, 0.025);
}

/* Image */
body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small > .box-image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  background: var(--tb-surface-image);
  overflow: hidden;
  border: 0;
  box-shadow: none;
  transition: background-color .18s ease;
}

body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small:hover > .box-image {
  background: #F7F8F5;
}

body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small > .box-image .image-cover {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding-top: 98%;
  background: var(--tb-surface-image);
  overflow: hidden;
  transition: background-color .18s ease;
}

body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small > .box-image .image-cover > a {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small > .box-image .image-cover img {
  position: absolute !important;
  inset: 8px !important;
  width: calc(100% - 16px) !important;
  height: calc(100% - 16px) !important;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

/* Sale badge - giữ nguyên màu/logic hiện tại */
body.woocommerce.archive .tb-product-card .tb-card-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 22;
  min-width: 0;
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tb-sale-red);
  color: #fff;
  border-radius: 4px;
  font-family: var(--tb-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: none;
  transform: none;
}

body.woocommerce.archive .tb-product-card .tb-card-sale-badge:hover {
  background: var(--tb-sale-red-hover);
}

body.woocommerce.archive .tb-product-card .tb-card-sale-badge::after {
  display: none;
  content: none;
}

/* Hide default tools / legacy actions */
body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small > .box-image > .image-tools:not(.tb-card-top-tools),
body.woocommerce.archive .tb-product-card .tb-card-top-tools,
body.woocommerce.archive .tb-product-card .tb-card-heart-fallback,
body.woocommerce.archive .tb-product-card .tb-card-heart-svg,
body.woocommerce.archive .tb-product-card .tb-card-actions,
body.woocommerce.archive .tb-product-card .tb-card-detail-btn,
body.woocommerce.archive .tb-product-card .tb-card-wishlist-action {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Card body */
body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small > .box-text {
  display: block;
  height: auto;
  min-height: 0;
  padding: 16px 12px 18px;
  background: #fff;
  border-top: 0;
  text-align: left;
  box-shadow: none;
}

/* Swatches + gift badge */
body.woocommerce.archive .tb-product-card .tb-card-top-meta {
  min-height: 22px;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

body.woocommerce.archive .tb-product-card .tb-card-swatches {
  min-height: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
}

body.woocommerce.archive .tb-product-card .tb-card-swatch {
  width: 14px;
  height: 14px;
  min-width: 14px;
  display: inline-block;
  border-radius: 999px;
  background: var(--tb-swatch-color, #6B3F24);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

body.woocommerce.archive .tb-product-card .tb-card-swatch-more {
  color: var(--tb-muted);
  font-size: 11px;
  line-height: 1;
}

body.woocommerce.archive .tb-product-card .tb-card-badge {
  min-height: 22px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--tb-badge-bg);
  color: var(--tb-badge-text);
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  font-family: var(--tb-font);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

body.woocommerce.archive .tb-product-card .tb-card-badge * {
  color: inherit;
  text-transform: none;
  letter-spacing: 0;
}

body.woocommerce.archive .tb-product-card .tb-card-gift-svg {
  width: 12px;
  height: 12px;
  min-width: 12px;
  display: block;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
}

/* Title + metadata */
body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small .product-title,
body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small .product-title a,
body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small .title-wrapper a {
  min-height: 39px;
  color: var(--tb-text);
  font-size: 14.4px;
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -0.01em;
}

body.woocommerce.archive .tb-product-card .tb-product-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.35;
}

body.woocommerce.archive .tb-product-card .tb-product-name--full {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.woocommerce.archive .tb-product-card .tb-product-code {
  display: block;
  margin-top: 1px;
  color: var(--tb-text);
  font-size: inherit;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

body.woocommerce.archive .tb-product-card .tb-card-info-line {
  min-height: 18px;
  max-width: 100%;
  margin: 7px 0 0;
  color: var(--tb-muted);
  font-family: var(--tb-font);
  font-size: 12.8px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  word-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide ratings */
body.woocommerce.archive .tb-product-card .tb-card-rating-row,
body.woocommerce.archive .products .tb-product-card .star-rating,
body.woocommerce.archive .products .tb-product-card .text-count-review,
body.woocommerce.archive .products .tb-product-card .yith-ywar-product-rating {
  display: none !important;
}

/* Price + arrow */
body.woocommerce.archive .tb-product-card .tb-card-bottom-row {
  width: 100%;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--tb-line-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
}

body.woocommerce.archive .tb-product-card .tb-card-price-row,
body.woocommerce.archive .tb-product-card .tb-card-price-row .price-wrapper {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.woocommerce.archive .tb-product-card .tb-card-price-clean,
body.woocommerce.archive .tb-product-card .tb-card-price-clean--sale,
body.woocommerce.archive .tb-product-card .tb-card-sale-price {
  display: inline-flex;
  align-items: baseline;
  color: var(--tb-text-strong);
  font-family: var(--tb-font);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

body.woocommerce.archive .tb-product-card .tb-card-price-clean--sale {
  gap: 7px;
  max-width: 100%;
}

body.woocommerce.archive .tb-product-card .tb-card-price-clean *,
body.woocommerce.archive .tb-product-card .tb-card-price-clean .woocommerce-Price-amount,
body.woocommerce.archive .tb-product-card .tb-card-price-clean .woocommerce-Price-currencySymbol,
body.woocommerce.archive .tb-product-card .tb-card-price-clean bdi,
body.woocommerce.archive .tb-product-card .tb-card-sale-price *,
body.woocommerce.archive .tb-product-card .tb-card-sale-price .woocommerce-Price-amount,
body.woocommerce.archive .tb-product-card .tb-card-sale-price .woocommerce-Price-currencySymbol,
body.woocommerce.archive .tb-product-card .tb-card-sale-price bdi {
  color: inherit;
  font-size: 18px;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

body.woocommerce.archive .tb-product-card .tb-card-regular-price {
  display: inline-flex;
  align-items: baseline;
  color: var(--tb-muted-light);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

body.woocommerce.archive .tb-product-card .tb-card-regular-price *,
body.woocommerce.archive .tb-product-card .tb-card-regular-price .woocommerce-Price-amount,
body.woocommerce.archive .tb-product-card .tb-card-regular-price .woocommerce-Price-currencySymbol,
body.woocommerce.archive .tb-product-card .tb-card-regular-price bdi {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: inherit;
}

body.woocommerce.archive .tb-product-card .tb-card-arrow-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  background: var(--tb-text-strong);
  color: #fff;
  border: 1px solid var(--tb-text-strong);
  border-radius: var(--tb-radius-md);
  box-shadow: none;
  text-decoration: none;
  transform: none;
  opacity: 1;
  transition: background-color .14s ease, border-color .14s ease, opacity .14s ease;
}

body.woocommerce.archive .tb-product-card .tb-card-arrow-btn:hover {
  background: var(--tb-text);
  border-color: var(--tb-text);
  color: #fff;
  transform: none;
  box-shadow: none;
  opacity: .96;
}

body.woocommerce.archive .tb-product-card .tb-card-arrow-btn:visited,
body.woocommerce.archive .tb-product-card .tb-card-arrow-btn:active,
body.woocommerce.archive .tb-product-card .tb-card-arrow-btn:focus {
  background: var(--tb-text-strong);
  border-color: var(--tb-text-strong);
  color: #fff;
  transform: none;
  box-shadow: none;
}

body.woocommerce.archive .tb-product-card .tb-card-arrow-btn:focus-visible {
  outline: 2px solid rgba(169, 138, 94, 0.55);
  outline-offset: 3px;
}

body.woocommerce.archive .tb-product-card .tb-card-arrow-svg {
  width: 16px;
  height: 16px;
  display: block;
  color: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .14s ease, opacity .14s ease;
}

body.woocommerce.archive .tb-product-card .tb-card-arrow-btn:hover .tb-card-arrow-svg {
  transform: translateX(1px);
  opacity: .92;
}

/* 02 PDP Related card visuals */
/* PDP related product-card skin. Scoped here because PLP card CSS may not load on PDP. */
body.single-product .tb-pdp-related-products .tb-product-card .product-small.box {
  overflow: hidden;
  border: 1px solid rgba(231, 234, 229, .96);
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

body.single-product .tb-pdp-related-products .tb-product-card .box-image {
  position: relative;
  margin: 0;
  background: #f5f6f4;
  overflow: hidden;
}

body.single-product .tb-pdp-related-products .tb-product-card .box-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

body.single-product .tb-pdp-related-products .tb-product-card .box-text {
  width: auto !important;
  padding: 16px 16px 14px !important;
  color: var(--tbv-pdp-text) !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  position: relative;
}

body.single-product .tb-pdp-related-products .tb-product-card .box-text,
body.single-product .tb-pdp-related-products .tb-product-card .box-text * {
  text-transform: none;
  letter-spacing: 0;
}

body.single-product .tb-pdp-related-products .tb-product-card .box-text :is(.tb-card-top-meta, .tb-card-title-review, .tb-card-info-line, .tb-card-bottom-row) {
  font-size: 15px;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-sale-badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  border-radius: 3px;
  background: #c63f32;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-top-tools {
  z-index: 5;
  top: 12px;
  right: 12px;
  color: #080c0a;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-heart-svg {
  width: 20px;
  height: 20px;
  display: block;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-top-meta {
  min-height: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-swatches {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: var(--tb-swatch-color, #8A5A35);
  box-shadow: inset 0 0 0 1px rgba(8, 12, 10, .08);
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-swatch-more {
  color: var(--tbv-pdp-muted);
  font-size: 12px;
  line-height: 1;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-badge {
  min-height: 22px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--tb-badge-bg, #F6EBDD);
  color: var(--tb-badge-text, #8A5A36);
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  font-family: var(--tb-font, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-badge * {
  color: inherit;
  text-transform: none;
  letter-spacing: 0;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-gift-svg {
  width: 12px;
  height: 12px;
  min-width: 12px;
  flex: 0 0 12px;
  display: block;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-title-review,
body.single-product .tb-pdp-related-products .tb-product-card .product-title {
  margin: 0;
}

body.single-product .tb-pdp-related-products .tb-product-card :is(.product-title, .product-title a, .tb-product-name, .tb-product-code) {
  color: var(--tbv-pdp-text) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

body.single-product .tb-pdp-related-products .tb-product-card .product-title a {
  display: grid;
  gap: 2px;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-product-code {
  display: block;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-info-line {
  margin-top: 10px;
  color: var(--tbv-pdp-muted) !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-bottom-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(231, 234, 229, .88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.single-product .tb-pdp-related-products .tb-product-card :is(.tb-card-price-row, .price-wrapper) {
  min-width: 0;
}

body.single-product .tb-pdp-related-products .tb-product-card :is(
  .price,
  .price .amount,
  .price .woocommerce-Price-amount,
  .price bdi,
  .price ins,
  .price ins .amount,
  .price ins .woocommerce-Price-amount,
  .price ins bdi
) {
  color: var(--tbv-pdp-text) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  text-decoration: none !important;
}

body.single-product .tb-pdp-related-products .price .woocommerce-Price-currencySymbol {
  font-size: inherit !important;
  font-weight: inherit !important;
}

body.single-product .tb-pdp-related-products .tb-product-card :is(.price del, .price del .amount, .price del .woocommerce-Price-amount, .price del bdi) {
  color: rgba(98, 105, 101, .42);
  font-size: 13px;
  font-weight: 500;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-arrow-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 4px;
  background: #080c0a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body.single-product .tb-pdp-related-products .tb-product-card .tb-card-arrow-svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.single-product .tb-pdp-related-products .tb-product-card :is(.star-rating, .woocommerce-product-rating, .review-count) {
  display: none;
}


/* 03 PLP mobile card visuals */
@media (max-width: 549px) {
    body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small > .box-image .image-cover img {
      inset: 7px !important;
      width: calc(100% - 14px) !important;
      height: calc(100% - 14px) !important;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-sale-badge {
      top: 10px;
      left: 10px;
      height: 22px;
      padding: 0 8px;
      font-size: 11.5px;
    }
  
    body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small > .box-text {
      padding: 13px 8px 14px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-top-meta {
      min-height: 22px;
      margin-bottom: 10px;
      gap: 7px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-swatches {
      gap: 6px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-swatch {
      width: 14px;
      height: 14px;
      min-width: 14px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-badge {
      min-height: 22px;
      padding: 0 7px;
      font-size: 10.5px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-gift-svg {
      width: 11px;
      height: 11px;
      min-width: 11px;
    }
  
    body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small .product-title,
    body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small .product-title a,
    body.woocommerce.archive #main .products.row > .product-small.col.tb-product-card > .col-inner > .box.product-small .title-wrapper a {
      min-height: 38px;
      font-size: 13.4px;
      line-height: 1.34;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-info-line {
      min-height: 17px;
      margin-top: 6px;
      font-size: 12px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-bottom-row {
      margin-top: 18px;
      padding-top: 10px;
      grid-template-columns: minmax(0, 1fr) 28px;
      gap: 8px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-price-clean,
    body.woocommerce.archive .tb-product-card .tb-card-sale-price {
      font-size: 15.5px;
      line-height: 28px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-price-clean--sale {
      gap: 6px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-regular-price {
      font-size: 11.5px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-arrow-btn {
      width: 28px;
      height: 28px;
      min-width: 28px;
      min-height: 28px;
    }
  
    body.woocommerce.archive .tb-product-card .tb-card-arrow-svg {
      width: 15px;
      height: 15px;
    }
}

/* 04 PDP Related mobile card visuals */
@media (max-width: 849px) {
  body.single-product .tb-pdp-related-products .tb-product-card .box-text {
      padding: 13px 12px 12px !important;
      font-size: 14px !important;
    }
  
    body.single-product .tb-pdp-related-products .tb-product-card :is(.product-title, .product-title a, .tb-product-name, .tb-product-code) {
      font-size: 13.5px !important;
    }
  
    body.single-product .tb-pdp-related-products .tb-product-card .tb-card-info-line {
      font-size: 12.5px !important;
    }
  
    body.single-product .tb-pdp-related-products .tb-product-card :is(.price, .price .amount, .price .woocommerce-Price-amount, .price bdi, .price ins, .price ins .amount, .price ins .woocommerce-Price-amount, .price ins bdi) {
      font-size: 16px !important;
    }
}

/* Related gift badge compact safety */
@media (max-width: 549px) {
  body.single-product .tb-pdp-related-products .tb-product-card .tb-card-badge {
    min-height: 21px;
    padding: 0 7px;
    font-size: 9.8px;
    border-radius: 5px;
  }

  body.single-product .tb-pdp-related-products .tb-product-card .tb-card-gift-svg {
    width: 11px;
    height: 11px;
    min-width: 11px;
    flex-basis: 11px;
  }
}
