/* ==================================================
   GIA DỤNG FUJI — TRANG CHI TIẾT SẢN PHẨM
   ================================================== */

.gdf-sp-product {
  --gdf-blue: #063f86;
  --gdf-blue-dark: #042f68;
  --gdf-red: #e9203b;
  --gdf-orange: #ff6a00;
  --gdf-yellow: #f5a000;
  --gdf-text: #172033;
  --gdf-muted: #647087;
  --gdf-border: #e2e8f0;
  --gdf-soft: #f7faff;

  display: block !important;
  padding-bottom: 30px;
  background: #fff;
}

.gdf-sp-container {
  width: min(1170px, calc(100% - 30px));
  margin-inline: auto;
}

.gdf-sp-breadcrumb {
  padding: 13px 0;
  color: #647087;
  font-size: 12px;
}

.gdf-sp-breadcrumb .woocommerce-breadcrumb {
  margin: 0;
}

/* Khu vực mua hàng */
.gdf-sp-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 20px;
  align-items: stretch;
}

.gdf-sp-gallery,
.gdf-sp-summary {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--gdf-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 50, 96, .05);
}

/* Gallery WooCommerce */
.gdf-sp-gallery .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.gdf-sp-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.gdf-sp-gallery .woocommerce-product-gallery__image {
  overflow: hidden;
  border-radius: 8px;
}

.gdf-sp-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gdf-sp-gallery .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px !important;
}

.gdf-sp-gallery .flex-control-thumbs li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--gdf-border);
  border-radius: 7px;
}

.gdf-sp-gallery .flex-control-thumbs li img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gdf-sp-gallery .flex-control-thumbs li img.flex-active {
  border: 2px solid var(--gdf-blue);
}

.gdf-sp-gallery .onsale {
  top: 12px !important;
  left: 12px !important;
  min-width: auto;
  min-height: auto;
  padding: 6px 10px;
  border-radius: 5px;
  background: var(--gdf-red);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

/* Summary */
.gdf-sp-summary {
  position: relative;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.gdf-sp-discount {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--gdf-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.gdf-sp-summary .product_title {
  margin: 0 0 9px;
  color: var(--gdf-text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.gdf-sp-summary .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
}

.gdf-sp-summary .star-rating,
.gdf-sp-summary .star-rating::before,
.gdf-sp-summary .star-rating span::before {
  color: var(--gdf-yellow) !important;
}

.gdf-sp-summary .woocommerce-review-link {
  color: var(--gdf-blue);
  font-size: 12px;
  font-weight: 600;
}

.gdf-sp-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 12px;
  color: #7a8799;
  font-size: 11px;
}

.gdf-sp-meta-line strong {
  color: #4d5c71;
}

.gdf-sp-stock .stock {
  margin: 0;
  color: #159447;
  font-weight: 700;
}

.gdf-sp-summary .woocommerce-product-details__short-description {
  margin: 0 0 13px;
  color: #425168;
  font-size: 13px;
  line-height: 1.65;
}

.gdf-sp-summary .woocommerce-product-details__short-description p {
  margin: 0 0 8px;
}

.gdf-sp-summary .woocommerce-product-details__short-description ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gdf-sp-summary .woocommerce-product-details__short-description li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 20px;
}

.gdf-sp-summary .woocommerce-product-details__short-description li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gdf-blue);
  font-weight: 800;
  content: "✓";
}

.gdf-sp-summary p.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 13px;
  color: var(--gdf-red);
  font-size: 29px;
  font-weight: 800;
}

.gdf-sp-summary p.price ins,
.gdf-sp-summary p.price .amount {
  color: var(--gdf-red) !important;
  font-weight: 800;
  text-decoration: none;
}

.gdf-sp-summary p.price del,
.gdf-sp-summary p.price del .amount {
  color: #8f99a8 !important;
  font-size: 14px;
  font-weight: 400;
  opacity: 1;
}

/* Khuyến mãi */
.gdf-sp-promotion {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #ffc5cb;
  border-radius: 8px;
  background: #fff5f6;
}

.gdf-sp-promotion__icon {
  font-size: 21px;
}

.gdf-sp-promotion__content {
  min-width: 0;
}

.gdf-sp-promotion__content strong,
.gdf-sp-promotion__content span {
  display: block;
}

.gdf-sp-promotion__content strong {
  margin-bottom: 2px;
  color: var(--gdf-red);
  font-size: 12px;
}

.gdf-sp-promotion__content span {
  color: #46556b;
  font-size: 11px;
  line-height: 1.45;
}

.gdf-sp-promotion code {
  padding: 6px 9px;
  border: 1px dashed var(--gdf-red);
  border-radius: 5px;
  background: transparent;
  color: var(--gdf-red);
  font-size: 11px;
  font-weight: 700;
}

/* Biến thể */
.gdf-sp-summary .variations {
  margin-bottom: 10px;
}

.gdf-sp-summary .variations th,
.gdf-sp-summary .variations td {
  padding: 6px 0;
  border: 0;
  background: transparent;
}

.gdf-sp-summary .variations label {
  color: #46556b;
  font-size: 12px;
  font-weight: 700;
}

.gdf-sp-summary .variations select {
  min-height: 40px;
  margin: 0;
  border: 1px solid var(--gdf-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.gdf-sp-summary .reset_variations {
  color: var(--gdf-blue);
  font-size: 11px;
}

/* CTA tư vấn / đặt hàng */
.gdf-sp-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gdf-sp-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none !important;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.gdf-sp-contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(13, 50, 96, .12);
}

.gdf-sp-contact-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.gdf-sp-contact-btn__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.gdf-sp-contact-btn__text strong,
.gdf-sp-contact-btn__text small {
  color: #fff;
}

.gdf-sp-contact-btn__text strong {
  font-size: 14px;
  font-weight: 800;
}

.gdf-sp-contact-btn__text small {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 500;
  opacity: .92;
}

.gdf-sp-contact-btn--zalo {
  border-color: #0068ff;
  background: #0068ff;
}

.gdf-sp-contact-btn--zalo:hover {
  background: #0059da;
}

.gdf-sp-contact-btn--phone {
  border-color: var(--gdf-orange);
  background: var(--gdf-orange);
}

.gdf-sp-contact-btn--phone:hover {
  background: #e85f00;
}

.gdf-sp-contact-hours {
  margin: 8px 0 0;
  color: #78869a;
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
}

/* Cam kết */
.gdf-sp-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--gdf-border);
  border-radius: 10px;
  background: var(--gdf-border);
}

.gdf-sp-benefit {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 13px 16px;
  background: #fff;
}

.gdf-sp-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #bdd3ed;
  border-radius: 50%;
  color: var(--gdf-blue);
  font-size: 13px;
  font-weight: 800;
}

.gdf-sp-benefit strong,
.gdf-sp-benefit span {
  display: block;
}

.gdf-sp-benefit strong {
  margin-bottom: 3px;
  color: var(--gdf-blue);
  font-size: 12px;
}

.gdf-sp-benefit div > span {
  color: #748196;
  font-size: 10px;
  line-height: 1.4;
}

/* Mô tả sản phẩm */
.gdf-sp-description-section {
  margin-top: 20px;
  padding: 20px 24px 28px;
  border: 1px solid var(--gdf-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 50, 96, .04);
}

.gdf-sp-section-heading {
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf1f6;
}

.gdf-sp-section-heading h2 {
  margin: 0;
  color: var(--gdf-blue);
  font-size: 24px;
  font-weight: 800;
}

.gdf-product-description {
  color: #3f4e63;
  font-size: 15px;
  line-height: 1.82;
  text-align: justify;
}

.gdf-product-description > *:first-child {
  margin-top: 0;
}

.gdf-product-description h2 {
  margin: 30px 0 13px;
  color: var(--gdf-blue);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.gdf-product-description h3 {
  margin: 22px 0 9px;
  color: var(--gdf-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.gdf-product-description p {
  margin: 0 0 15px;
}

.gdf-product-description ul,
.gdf-product-description ol {
  margin: 0 0 17px;
  padding-left: 23px;
  text-align: left;
}

.gdf-product-description figure {
  margin: 24px auto;
  text-align: center;
}

.gdf-product-description img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px auto 8px;
  border-radius: 9px;
}

.gdf-product-description figcaption,
.gdf-product-description .wp-caption-text {
  margin: 0;
  color: #7a8799;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.gdf-product-description table {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--gdf-border);
  border-collapse: collapse;
  border-radius: 8px;
}

.gdf-product-description th,
.gdf-product-description td {
  padding: 11px 14px;
  border: 1px solid var(--gdf-border);
  text-align: left;
}

.gdf-product-description th {
  width: 34%;
  background: #f3f7fc;
  color: var(--gdf-blue);
  font-weight: 700;
}

.gdf-product-description iframe {
  display: block;
  width: min(100%, 900px);
  min-height: 500px;
  margin: 24px auto;
  border: 0;
  border-radius: 9px;
}

.gdf-product-description .wp-block-embed {
  margin: 24px auto;
}

.gdf-product-description .wp-block-embed__wrapper {
  position: relative;
  width: min(100%, 900px);
  margin: auto;
  padding-top: 56.25%;
}

.gdf-product-description .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

/* Related */
.gdf-sp-related {
  margin-top: 20px;
}

.gdf-sp-related .related.products {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--gdf-border);
  border-radius: 12px;
  background: #fff;
}

.gdf-sp-related .related.products > h2 {
  margin: 0 0 14px;
  color: var(--gdf-blue);
  font-size: 22px;
  font-weight: 800;
  text-transform: none;
}

.gdf-sp-related .product-small {
  border: 1px solid var(--gdf-border);
  border-radius: 8px;
  background: #fff;
}

.gdf-sp-related .product-small .box-image {
  border-radius: 8px 8px 0 0;
}

.gdf-sp-related .product-small .box-text {
  padding: 10px;
}

.gdf-sp-related .product-small .name {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  font-size: 12px;
  line-height: 19px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gdf-sp-related .price-wrapper .price,
.gdf-sp-related .price-wrapper .amount {
  color: var(--gdf-red) !important;
  font-weight: 800;
}

/* Sticky contact CTA */
/* Flatsome có thể tạo sticky Add to cart riêng. Ẩn nó để tránh trùng CTA. */
body.single-product .sticky-add-to-cart {
  display: none !important;
}

.gdf-sp-sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9997;
  padding: 8px 15px;
  border-top: 1px solid var(--gdf-border);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -7px 24px rgba(13, 50, 96, .1);
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
  transition:
    opacity .22s ease,
    transform .22s ease;
  backdrop-filter: blur(7px);
}

.gdf-sp-sticky.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gdf-sp-sticky__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  align-items: center;
  gap: 10px;
  width: min(1170px, 100%);
  margin: auto;
}

.gdf-sp-sticky__product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gdf-sp-sticky__product img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--gdf-border);
  border-radius: 6px;
}

.gdf-sp-sticky__product div {
  min-width: 0;
}

.gdf-sp-sticky__product strong {
  display: block;
  overflow: hidden;
  color: var(--gdf-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gdf-sp-sticky__product span,
.gdf-sp-sticky__product .amount {
  color: var(--gdf-red) !important;
  font-size: 13px;
  font-weight: 800;
}

.gdf-sp-sticky__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-decoration: none !important;
}

.gdf-sp-sticky__action-icon {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.gdf-sp-sticky__action-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.gdf-sp-sticky__action-copy strong,
.gdf-sp-sticky__action-copy small {
  display: block;
  color: inherit;
  white-space: nowrap;
}

.gdf-sp-sticky__action-copy strong {
  font-size: 13px;
  font-weight: 800;
}

.gdf-sp-sticky__action-copy small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  opacity: .92;
}

.gdf-sp-sticky__action--zalo {
  border-color: #0068ff;
  background: #0068ff;
}

.gdf-sp-sticky__action--zalo:hover {
  background: #0059da;
}

.gdf-sp-sticky__action--phone {
  border-color: var(--gdf-orange);
  background: var(--gdf-orange);
}

.gdf-sp-sticky__action--phone:hover {
  background: #e85f00;
}

/* Responsive */
@media (max-width: 849px) {
  .gdf-sp-purchase {
    grid-template-columns: 1fr;
  }

  .gdf-sp-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gdf-sp-sticky__inner {
    grid-template-columns: minmax(0, 1fr) 150px 150px;
  }
}

@media (max-width: 549px) {
  .gdf-sp-container {
    width: min(100% - 20px, 1170px);
  }

  .gdf-sp-breadcrumb {
    padding: 10px 0;
    font-size: 10px;
  }

  .gdf-sp-gallery,
  .gdf-sp-summary {
    padding: 13px;
    border-radius: 9px;
  }

  .gdf-sp-summary .product_title {
    font-size: 23px;
  }

  .gdf-sp-summary p.price {
    font-size: 25px;
  }

  .gdf-sp-gallery .flex-control-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .gdf-sp-promotion {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .gdf-sp-promotion code {
    grid-column: 2;
    width: max-content;
  }

  .gdf-sp-contact-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gdf-sp-contact-btn {
    min-height: 54px;
    padding: 8px 10px;
  }

  .gdf-sp-contact-btn__icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .gdf-sp-contact-btn__text strong {
    font-size: 12px;
  }

  .gdf-sp-contact-btn__text small {
    font-size: 9.5px;
  }

  .gdf-sp-benefits {
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }

  .gdf-sp-benefit {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    min-height: 70px;
    padding: 10px;
  }

  .gdf-sp-benefit__icon {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .gdf-sp-benefit strong {
    font-size: 10.5px;
  }

  .gdf-sp-benefit div > span {
    font-size: 9px;
  }

  .gdf-sp-description-section {
    margin-top: 14px;
    padding: 16px 14px 20px;
  }

  .gdf-sp-section-heading h2 {
    font-size: 21px;
  }

  .gdf-product-description {
    font-size: 14px;
    line-height: 1.75;
  }

  .gdf-product-description h2 {
    margin-top: 25px;
    font-size: 21px;
  }

  .gdf-product-description h3 {
    font-size: 17px;
  }

  .gdf-product-description th,
  .gdf-product-description td {
    padding: 9px;
    font-size: 12px;
  }

  .gdf-product-description iframe {
    min-height: 220px;
  }

  .gdf-sp-sticky {
    padding: 8px max(10px, env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .gdf-sp-sticky__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  .gdf-sp-sticky__product {
    display: none;
  }

  .gdf-sp-sticky__action {
    gap: 7px;
    min-width: 0;
    min-height: 52px;
    padding: 7px 9px;
    border-radius: 9px;
  }

  .gdf-sp-sticky__action-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .gdf-sp-sticky__action-copy strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
  }

  .gdf-sp-sticky__action-copy small {
    overflow: hidden;
    max-width: 100%;
    font-size: 9.5px;
    text-overflow: ellipsis;
  }
}


/* ==================================================
   PATCH 1.4.1 — BENEFITS + RELATED PRODUCTS
   ================================================== */

/* Giữ tất cả phần tử trong trang sản phẩm theo box model ổn định. */
.gdf-sp-product,
.gdf-sp-product *,
.gdf-sp-product *::before,
.gdf-sp-product *::after {
  box-sizing: border-box;
}

/* ---------- CAM KẾT MUA HÀNG ---------- */

.gdf-sp-benefits {
  width: 100%;
  max-width: 1170px;
  margin: 18px auto 0;
  gap: 0;
  border-color: #d7e3f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(13, 50, 96, .04);
}

.gdf-sp-benefit {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  min-height: 92px;
  padding: 16px 20px;
  border-right: 1px solid #d7e3f1;
}

.gdf-sp-benefit:last-child {
  border-right: 0;
}

.gdf-sp-benefit__icon {
  position: relative;
  display: grid !important;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #bcd3ef;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.gdf-sp-benefit__icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 25px;
  height: 25px;
  margin: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  content: "";
  transform: translate(-50%, -50%);
}

/* Chính hãng */
.gdf-sp-benefit__icon--shield::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063f86' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.8-2.8 8.2-7 10-4.2-1.8-7-5.2-7-10V6l7-3z'/%3E%3Cpath d='M8.8 12.1l2.1 2.1 4.5-4.7'/%3E%3C/svg%3E");
}

/* Bảo hành 24 tháng */
.gdf-sp-benefit__icon--warranty::before {
  width: auto;
  height: auto;
  background: none;
  color: var(--gdf-blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  content: "24";
}

/* Giao hàng */
.gdf-sp-benefit__icon--truck::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063f86' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3z'/%3E%3Cpath d='M14 10h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}

/* Đổi trả */
.gdf-sp-benefit__icon--return::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063f86' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h11a5 5 0 010 10H9'/%3E%3Cpath d='M7 4L4 7l3 3'/%3E%3C/svg%3E");
}

.gdf-sp-benefit strong {
  margin-bottom: 5px;
  color: var(--gdf-blue);
  font-size: 14px;
  line-height: 1.35;
}

.gdf-sp-benefit div > span {
  color: #6d7b90;
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- SẢN PHẨM LIÊN QUAN ---------- */

.gdf-sp-related {
  margin-top: 22px;
}

.gdf-sp-related .related,
.gdf-sp-related .related.products,
.gdf-sp-related .related-products-wrapper {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--gdf-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(13, 50, 96, .04);
}

/* Flatsome thường dùng h3.product-section-title thay vì h2. */
.gdf-sp-related .product-section-title,
.gdf-sp-related .related > h2,
.gdf-sp-related .related.products > h2 {
  margin: 0 0 15px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--gdf-blue) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Ép row của Flatsome thành grid ổn định. */
.gdf-sp-related .related .row,
.gdf-sp-related .related-products-wrapper .row,
.gdf-sp-related .related.products .row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 !important;
  width: 100% !important;
}

/* Xóa width/flex mặc định của cột Flatsome. */
.gdf-sp-related .row > .product-small,
.gdf-sp-related .row > .product,
.gdf-sp-related .product-small.col {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
}

.gdf-sp-related .product-small .col-inner,
.gdf-sp-related .product-small .product-small.box,
.gdf-sp-related .product-small .box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.gdf-sp-related .product-small .col-inner {
  overflow: hidden;
  border: 1px solid #d9e4f1;
  border-radius: 9px;
  background: #fff;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.gdf-sp-related .product-small .col-inner:hover {
  border-color: #a9c5e7;
  box-shadow: 0 9px 24px rgba(13, 50, 96, .09);
  transform: translateY(-2px);
}

.gdf-sp-related .product-small .box-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.gdf-sp-related .product-small .box-image .image-fade_in_back,
.gdf-sp-related .product-small .box-image .image-cover,
.gdf-sp-related .product-small .box-image > div {
  width: 100%;
  height: 100%;
}

.gdf-sp-related .product-small .box-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

.gdf-sp-related .product-small .box-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 138px;
  padding: 10px 11px 12px;
}

.gdf-sp-related .product-small .category {
  margin-bottom: 4px;
  color: #8a96a7;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .02em;
}

.gdf-sp-related .product-small .title-wrapper {
  flex: 1 1 auto;
}

.gdf-sp-related .product-small .name {
  display: -webkit-box;
  min-height: 38px;
  max-height: 38px;
  margin: 0 0 7px;
  overflow: hidden;
  color: var(--gdf-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 19px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gdf-sp-related .product-small .star-rating,
.gdf-sp-related .product-small .star-rating::before,
.gdf-sp-related .product-small .star-rating span::before {
  color: var(--gdf-yellow) !important;
}

.gdf-sp-related .product-small .star-rating {
  margin: 0 0 6px;
  font-size: 11px;
}

.gdf-sp-related .product-small .price-wrapper {
  margin-top: auto;
}

.gdf-sp-related .product-small .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 22px;
  margin: 0;
  color: var(--gdf-red) !important;
  font-size: 14px;
  font-weight: 800;
}

.gdf-sp-related .product-small .price ins,
.gdf-sp-related .product-small .price ins .amount,
.gdf-sp-related .product-small .price > .amount {
  color: var(--gdf-red) !important;
  font-weight: 800;
  text-decoration: none;
}

.gdf-sp-related .product-small .price del,
.gdf-sp-related .product-small .price del .amount {
  color: #9aa3b1 !important;
  font-size: 11px;
  font-weight: 400;
  opacity: 1;
}

/* Bỏ khoảng trống/translate do hiệu ứng hover mặc định của Flatsome. */
.gdf-sp-related .product-small .show-on-hover,
.gdf-sp-related .product-small .hide-for-small {
  transform: none;
}

@media (max-width: 849px) {
  .gdf-sp-benefit {
    border-right: 0;
    border-bottom: 1px solid #d7e3f1;
  }

  .gdf-sp-benefit:nth-child(odd) {
    border-right: 1px solid #d7e3f1;
  }

  .gdf-sp-benefit:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .gdf-sp-related .related .row,
  .gdf-sp-related .related-products-wrapper .row,
  .gdf-sp-related .related.products .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 549px) {
  .gdf-sp-benefit {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 78px;
    padding: 12px;
  }

  .gdf-sp-benefit__icon {
    width: 40px;
    height: 40px;
  }

  .gdf-sp-benefit__icon::before {
    width: 22px;
    height: 22px;
  }

  .gdf-sp-benefit strong {
    font-size: 11px;
  }

  .gdf-sp-benefit div > span {
    font-size: 9.5px;
  }

  .gdf-sp-related .related,
  .gdf-sp-related .related.products,
  .gdf-sp-related .related-products-wrapper {
    padding: 13px;
  }

  .gdf-sp-related .product-section-title,
  .gdf-sp-related .related > h2,
  .gdf-sp-related .related.products > h2 {
    font-size: 19px !important;
  }

  .gdf-sp-related .related .row,
  .gdf-sp-related .related-products-wrapper .row,
  .gdf-sp-related .related.products .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .gdf-sp-related .product-small .box-text {
    min-height: 132px;
    padding: 9px;
  }

  .gdf-sp-related .product-small .name {
    font-size: 11px;
  }

  .gdf-sp-related .product-small .price {
    font-size: 13px;
  }
}


/* ==================================================
   PATCH 1.4.2 — CĂN GIỮA ICON CAM KẾT
   ==================================================
   Rule ".gdf-sp-benefit span { display: block; }" của CSS cũ
   có độ ưu tiên cao hơn rule icon và làm mất display:flex.
   Bản vá ép icon dùng CSS Grid + pseudo-element tuyệt đối.
   ================================================== */

.gdf-sp-benefit > .gdf-sp-benefit__icon {
  display: grid !important;
  place-items: center !important;
  align-self: center;
  justify-self: center;
}

.gdf-sp-benefit > .gdf-sp-benefit__icon::before {
  top: 50% !important;
  left: 50% !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
}


/* ==================================================
   PATCH 1.4.3 — RELATED PRODUCTS KHÔNG DÙNG SLIDER
   ==================================================
   Flatsome thêm carousel, transform và width inline vào
   Related Products. Bản vá dùng HTML riêng để loại bỏ hoàn
   toàn xung đột đó.
   ================================================== */

.gdf-sp-related-custom {
  margin-top: 22px;
}

.gdf-sp-related-custom__panel {
  padding: 18px;
  border: 1px solid var(--gdf-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(13, 50, 96, .04);
}

.gdf-sp-related-custom__heading {
  margin-bottom: 15px;
}

.gdf-sp-related-custom__heading h2 {
  margin: 0;
  padding: 0;
  color: var(--gdf-blue);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.gdf-sp-related-custom__grid {
  display: grid;
  grid-template-columns:
    repeat(
      var(--gdf-related-columns, 5),
      minmax(0, 1fr)
    );
  gap: 12px;
}

.gdf-sp-related-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e4f1;
  border-radius: 9px;
  background: #fff;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.gdf-sp-related-card:hover {
  border-color: #a9c5e7;
  box-shadow: 0 9px 24px rgba(13, 50, 96, .09);
  transform: translateY(-2px);
}

.gdf-sp-related-card__badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gdf-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.gdf-sp-related-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.gdf-sp-related-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.gdf-sp-related-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  transition: transform .25s ease;
}

.gdf-sp-related-card:hover
.gdf-sp-related-card__image img {
  transform: scale(1.035);
}

.gdf-sp-related-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 145px;
  padding: 10px 11px 12px;
}

.gdf-sp-related-card__category {
  min-height: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  color: #8a96a7;
  font-size: 9.5px;
  line-height: 14px;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.gdf-sp-related-card h3 {
  display: -webkit-box;
  min-height: 38px;
  max-height: 38px;
  margin: 0 0 7px;
  overflow: hidden;
  color: var(--gdf-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 19px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gdf-sp-related-card__rating {
  display: flex;
  align-items: center;
  min-height: 18px;
  margin-bottom: 7px;
}

.gdf-sp-related-card__rating .star-rating,
.gdf-sp-related-card__rating .star-rating::before,
.gdf-sp-related-card__rating .star-rating span::before {
  color: var(--gdf-yellow) !important;
}

.gdf-sp-related-card__rating .star-rating {
  width: 5.4em;
  margin: 0;
  font-size: 10px;
}

.gdf-sp-related-card__rating > span {
  margin-left: 5px;
  color: #8995a7;
  font-size: 9px;
}

.gdf-sp-related-card__rating
.gdf-sp-related-card__no-rating {
  margin-left: 0;
  color: #a0a9b7;
  font-size: 9px;
}

.gdf-sp-related-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 34px;
  margin-top: auto;
  color: var(--gdf-red);
  font-size: 14px;
  font-weight: 800;
}

.gdf-sp-related-card__price ins,
.gdf-sp-related-card__price ins .amount,
.gdf-sp-related-card__price > .amount {
  color: var(--gdf-red) !important;
  font-weight: 800;
  text-decoration: none;
}

.gdf-sp-related-card__price del,
.gdf-sp-related-card__price del .amount {
  color: #9aa3b1 !important;
  font-size: 10.5px;
  font-weight: 400;
  opacity: 1;
}

@media (max-width: 1024px) {
  .gdf-sp-related-custom__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 849px) {
  .gdf-sp-related-custom__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 549px) {
  .gdf-sp-related-custom__panel {
    padding: 13px;
  }

  .gdf-sp-related-custom__heading h2 {
    font-size: 19px;
  }

  .gdf-sp-related-custom__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .gdf-sp-related-card__content {
    min-height: 139px;
    padding: 9px;
  }

  .gdf-sp-related-card h3 {
    font-size: 11px;
  }

  .gdf-sp-related-card__price {
    font-size: 13px;
  }
}
