/* Sản Phẩm Bán Chạy — tự viết CSS tại đây. Bọc nội dung trong .hcd-best-sellers để không đè khung khác. */
/* Sản phẩm nổi bật — tự viết CSS tại đây (khung trống, không có class chuẩn). */
/* =========================================================
   HCD REAL PRODUCTS
   ========================================================= */
.hcd-real-products {
  width: 100%;
  overflow: hidden;
  color: var(--hcd-color-text, #111827);
  background: var(--hcd-color-surface, #ffffff);
}
.hcd-real-products .hcd-real-products__section {
  width: 100%;
  padding: 64px 0 48px;
}
.hcd-real-products .hcd-real-products__container {
  width: min(100% - 32px, var(--hcd-container, 1200px));
  margin-inline: auto;
}
/* =========================
   HEADER
   ========================= */
.hcd-real-products .hcd-real-products__header {
  text-align: center;
  margin-bottom: 32px;
}
.hcd-real-products .hcd-real-products__heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.hcd-real-products .hcd-real-products__heading-line {
  display: block;
  width: 52px;
  height: 2px;
  background: var(--hcd-color-primary, #16a34a);
}
.hcd-real-products .hcd-real-products__heading {
  margin: 0;
  color: var(--hcd-color-text, #111827);
  font-size: var(--hcd-fs-h1, 36px);
  line-height: var(--hcd-lh-tight, 1.2);
  font-weight: var(--hcd-fw-bold, 700);
  text-transform: uppercase;
}
.hcd-real-products .hcd-real-products__heading span {
  color: var(--hcd-color-primary, #16a34a);
}
.hcd-real-products .hcd-real-products__subtitle {
  margin: 8px 0 0;
  color: var(--hcd-color-muted, #6b7280);
  font-size: var(--hcd-fs-sm, 14px);
  line-height: var(--hcd-lh-normal, 1.5);
  font-weight: var(--hcd-fw-medium, 500);
}
/* =========================
   PRODUCT GRID
   ========================= */
.hcd-real-products .hcd-real-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
/* =========================
   CARD
   ========================= */
.hcd-real-products .hcd-real-products__card {
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--hcd-color-surface, #ffffff);
  border: 1px solid var(--hcd-color-border, #d1d5db);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hcd-real-products .hcd-real-products__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.10);
}
/* =========================
   IMAGE PLACEHOLDER
   ========================= */
.hcd-real-products .hcd-real-products__image-placeholder {
  position: relative;
  width: calc(100% - 16px);
  aspect-ratio: 4 / 5;
  margin: 8px 8px 0;
  border-radius: 12px;
  background: var(--hcd-color-bg, #f3f4f6);
  color: var(--hcd-color-muted, #6b7280);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}
.hcd-real-products .hcd-real-products__image-placeholder::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--hcd-color-border, #d1d5db);
  border-radius: 8px;
  pointer-events: none;
}
.hcd-real-products .hcd-real-products__placeholder-icon {
  width: 44px;
  height: 44px;
  display: block;
}
.hcd-real-products .hcd-real-products__placeholder-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hcd-real-products .hcd-real-products__image-placeholder strong {
  position: relative;
  z-index: 1;
  color: var(--hcd-color-text, #111827);
  font-size: var(--hcd-fs-md, 15px);
  line-height: var(--hcd-lh-snug, 1.35);
  font-weight: var(--hcd-fw-bold, 700);
}
.hcd-real-products .hcd-real-products__image-placeholder span:not(.hcd-real-products__placeholder-icon) {
  position: relative;
  z-index: 1;
  font-size: var(--hcd-fs-sm, 14px);
  line-height: var(--hcd-lh-snug, 1.35);
}
.hcd-real-products .hcd-real-products__image-placeholder small {
  position: relative;
  z-index: 1;
  font-size: var(--hcd-fs-caption, 12px);
  line-height: var(--hcd-lh-normal, 1.5);
}
/* =========================
   REAL IMAGE
   ========================= */
.hcd-real-products .hcd-real-products__image-link {
  display: block;
  width: calc(100% - 16px);
  aspect-ratio: 4 / 5;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: 12px;
}
.hcd-real-products .hcd-real-products__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.hcd-real-products .hcd-real-products__image-link:hover .hcd-real-products__image {
  transform: scale(1.025);
}
/* =========================
   CONTENT
   ========================= */
.hcd-real-products .hcd-real-products__content {
  flex: 1;
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.hcd-real-products .hcd-real-products__title {
  min-height: 2.7em;
  margin: 0 0 8px;
  font-size: var(--hcd-fs-md, 15px);
  line-height: var(--hcd-lh-snug, 1.35);
  font-weight: var(--hcd-fw-bold, 700);
}
.hcd-real-products .hcd-real-products__title a {
  color: var(--hcd-color-text, #111827);
  text-decoration: none;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hcd-real-products .hcd-real-products__title a:hover {
  color: var(--hcd-color-link-hover, #15803d);
}
/* =========================
   PRICE
   ========================= */
.hcd-real-products .hcd-real-products__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.hcd-real-products .hcd-real-products__sale-price {
  color: var(--hcd-color-sale, #dc2626);
  font-size: var(--hcd-fs-xl, 22px);
  line-height: var(--hcd-lh-tight, 1.2);
  font-weight: var(--hcd-fw-bold, 700);
}
.hcd-real-products .hcd-real-products__old-price {
  color: var(--hcd-color-muted, #6b7280);
  font-size: var(--hcd-fs-sm, 14px);
  line-height: var(--hcd-lh-normal, 1.5);
}
/* =========================
   RATING
   ========================= */
.hcd-real-products .hcd-real-products__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.hcd-real-products .hcd-real-products__stars {
  color: var(--hcd-color-accent, #f59e0b);
  font-size: var(--hcd-fs-md, 15px);
  line-height: 1;
  letter-spacing: 1px;
}
.hcd-real-products .hcd-real-products__reviews {
  color: var(--hcd-color-muted, #6b7280);
  font-size: var(--hcd-fs-xs, 13px);
  line-height: var(--hcd-lh-normal, 1.5);
}
/* =========================
   SOLD + DESIGN
   ========================= */
.hcd-real-products .hcd-real-products__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.hcd-real-products .hcd-real-products__sold, .hcd-real-products .hcd-real-products__design {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--hcd-fs-xs, 13px);
  line-height: var(--hcd-lh-snug, 1.35);
}
.hcd-real-products .hcd-real-products__sold {
  color: var(--hcd-color-muted, #6b7280);
}
.hcd-real-products .hcd-real-products__design {
  color: var(--hcd-color-primary, #16a34a);
}
.hcd-real-products .hcd-real-products__sold svg, .hcd-real-products .hcd-real-products__design svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* =========================
   FREE PRINT / SHIPPING
   ========================= */
.hcd-real-products .hcd-real-products__free {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--hcd-color-text, #111827);
  font-size: var(--hcd-fs-sm, 14px);
  line-height: var(--hcd-lh-snug, 1.35);
}
.hcd-real-products .hcd-real-products__free svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* =========================
   OFFER
   ========================= */
.hcd-real-products .hcd-real-products__offer {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--hcd-color-primary, #16a34a);
  color: var(--hcd-color-on-primary, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: var(--hcd-fs-md, 15px);
  line-height: var(--hcd-lh-snug, 1.35);
}
.hcd-real-products .hcd-real-products__offer svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* =========================
   BUTTON
   ========================= */
.hcd-real-products .hcd-real-products__button {
  min-height: 42px;
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--hcd-color-primary, #16a34a);
  border-radius: 8px;
  color: var(--hcd-color-primary, #16a34a);
  background: var(--hcd-color-surface, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  font-size: var(--hcd-fs-sm, 14px);
  line-height: var(--hcd-lh-snug, 1.35);
  font-weight: var(--hcd-fw-bold, 700);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.hcd-real-products .hcd-real-products__button:hover {
  background: var(--hcd-color-primary, #16a34a);
  color: var(--hcd-color-on-primary, #ffffff);
}
/* =========================
   FOCUS
   ========================= */
.hcd-real-products a:focus-visible {
  outline: 3px solid var(--hcd-color-accent, #f59e0b);
  outline-offset: 3px;
}
/* =========================
   TRUST BAR
   ========================= */
.hcd-real-products .hcd-real-products__trust {
  margin-top: 32px;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.hcd-real-products .hcd-real-products__trust-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hcd-real-products .hcd-real-products__trust-item + .hcd-real-products__trust-item {
  border-left: 1px solid var(--hcd-color-border, #d1d5db);
}
.hcd-real-products .hcd-real-products__trust-item > svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--hcd-color-text, #111827);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hcd-real-products .hcd-real-products__trust-item div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hcd-real-products .hcd-real-products__trust-item strong {
  color: var(--hcd-color-text, #111827);
  font-size: var(--hcd-fs-sm, 14px);
  line-height: var(--hcd-lh-snug, 1.35);
  font-weight: var(--hcd-fw-bold, 700);
}
.hcd-real-products .hcd-real-products__trust-item span {
  color: var(--hcd-color-muted, #6b7280);
  font-size: var(--hcd-fs-caption, 12px);
  line-height: var(--hcd-lh-normal, 1.5);
}
/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 849px) {
  .hcd-real-products .hcd-real-products__section {
    padding: 48px 0 40px;
  }
  .hcd-real-products .hcd-real-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .hcd-real-products .hcd-real-products__trust {
    gap: 16px;
  }
  .hcd-real-products .hcd-real-products__trust-item {
    justify-content: flex-start;
  }
  .hcd-real-products .hcd-real-products__trust-item > svg {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}
/* =========================================================
   MOBILE 375–390px
   ========================================================= */
@media (max-width: 549px) {
  .hcd-real-products .hcd-real-products__section {
    padding: 40px 0;
  }
  .hcd-real-products .hcd-real-products__container {
    width: min(100% - 24px, var(--hcd-container, 1200px));
  }
  .hcd-real-products .hcd-real-products__header {
    margin-bottom: 24px;
  }
  .hcd-real-products .hcd-real-products__heading-row {
    gap: 8px;
  }
  .hcd-real-products .hcd-real-products__heading-line {
    width: 24px;
  }
  .hcd-real-products .hcd-real-products__heading {
    font-size: var(--hcd-fs-h2, 28px);
  }
  .hcd-real-products .hcd-real-products__subtitle {
    font-size: var(--hcd-fs-caption, 12px);
  }
  .hcd-real-products .hcd-real-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hcd-real-products .hcd-real-products__card {
    border-radius: 12px;
  }
  .hcd-real-products .hcd-real-products__image-placeholder, .hcd-real-products .hcd-real-products__image-link {
    width: calc(100% - 8px);
    margin: 4px 4px 0;
    border-radius: 8px;
  }
  .hcd-real-products .hcd-real-products__placeholder-icon {
    width: 32px;
    height: 32px;
  }
  .hcd-real-products .hcd-real-products__image-placeholder {
    gap: 4px;
  }
  .hcd-real-products .hcd-real-products__image-placeholder strong {
    font-size: var(--hcd-fs-xs, 13px);
  }
  .hcd-real-products .hcd-real-products__image-placeholder span:not(.hcd-real-products__placeholder-icon) {
    font-size: var(--hcd-fs-caption, 12px);
  }
  .hcd-real-products .hcd-real-products__content {
    padding: 8px;
  }
  .hcd-real-products .hcd-real-products__title {
    margin-bottom: 6px;
    font-size: var(--hcd-fs-xs, 13px);
  }
  .hcd-real-products .hcd-real-products__price {
    gap: 4px;
    margin-bottom: 6px;
  }
  .hcd-real-products .hcd-real-products__sale-price {
    font-size: var(--hcd-fs-lg, 18px);
  }
  .hcd-real-products .hcd-real-products__old-price {
    font-size: var(--hcd-fs-caption, 12px);
  }
  .hcd-real-products .hcd-real-products__rating {
    gap: 4px;
    margin-bottom: 8px;
  }
  .hcd-real-products .hcd-real-products__stars {
    font-size: var(--hcd-fs-xs, 13px);
    letter-spacing: 0;
  }
  .hcd-real-products .hcd-real-products__reviews {
    font-size: var(--hcd-fs-caption, 12px);
  }
  .hcd-real-products .hcd-real-products__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
  }
  .hcd-real-products .hcd-real-products__sold, .hcd-real-products .hcd-real-products__design {
    font-size: var(--hcd-fs-caption, 12px);
  }
  .hcd-real-products .hcd-real-products__sold svg, .hcd-real-products .hcd-real-products__design svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
  .hcd-real-products .hcd-real-products__free {
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 8px;
    font-size: var(--hcd-fs-caption, 12px);
  }
  .hcd-real-products .hcd-real-products__free svg {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .hcd-real-products .hcd-real-products__offer {
    min-height: 44px;
    padding: 6px 5px;
    gap: 5px;
    font-size: var(--hcd-fs-caption, 12px);
  }
  .hcd-real-products .hcd-real-products__offer svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .hcd-real-products .hcd-real-products__button {
    min-height: 38px;
    padding: 6px;
    border-width: 1px;
    font-size: var(--hcd-fs-caption, 12px);
  }
  .hcd-real-products .hcd-real-products__trust {
    margin-top: 24px;
    padding-top: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hcd-real-products .hcd-real-products__trust-item + .hcd-real-products__trust-item {
    border-left: 0;
  }
  .hcd-real-products .hcd-real-products__trust-item {
    justify-content: flex-start;
  }
}
/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hcd-real-products .hcd-real-products__card, .hcd-real-products .hcd-real-products__image, .hcd-real-products .hcd-real-products__button {
    transition: none;
  }
  .hcd-real-products .hcd-real-products__card:hover, .hcd-real-products .hcd-real-products__image-link:hover .hcd-real-products__image {
    transform: none;
  }
}

