/* Shared cards match the Cửa hàng 1 promotion reference.
   The modifier wins over older route-specific card styles; grids keep their sizing. */
html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small {
  color: #18233a;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.65;
  text-transform: none;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .col-inner {
  height: 100%;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid #fff !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: 0 4px 14px rgba(24, 35, 58, .1) !important;
  transition: transform .25s, box-shadow .25s;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .product-small.box {
  display: flex;
  height: 100%;
  flex-direction: column;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .box-image {
  flex: 0 0 auto;
  width: 100%;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 1 !important;
  border: 0;
  border-radius: 0;
  background: #f7f8fa;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .box-image > div:not(.image-tools) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  padding: 0 !important;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .box-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: contain !important;
  object-position: center;
  background: #f7f8fa;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .box-text {
  box-sizing: border-box;
  display: grid !important;
  flex: 0 0 90px !important;
  height: 90px !important;
  min-height: 90px !important;
  max-height: 90px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "title" "price" !important;
  grid-template-rows: 34px 37px !important;
  align-content: start;
  align-items: stretch;
  gap: 3px !important;
  padding: 8px 10px !important;
  overflow: hidden;
  background: #fff;
  text-align: left;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .title-wrapper {
  grid-area: title;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0;
  overflow: hidden;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small :is(.name, .name a) {
  margin: 0 !important;
  color: #18233a !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 12px !important;
  font-style: normal;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  line-height: 1.42 !important;
  text-transform: none !important;
  text-decoration: none;
  white-space: normal !important;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .name {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small :is(.price-wrapper, .price) {
  grid-area: price;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  align-self: stretch;
  height: 37px !important;
  min-height: 37px !important;
  max-height: 37px !important;
  gap: 0;
  margin: 0 !important;
  padding: 0;
  color: #c9213d !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 21px !important;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .price :is(ins, .amount, bdi, .woocommerce-Price-currencySymbol) {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: normal;
  font-weight: inherit !important;
  letter-spacing: normal !important;
  line-height: inherit !important;
  text-decoration: none;
  white-space: nowrap;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .price del {
  color: #7d8494 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 17px !important;
  opacity: 1 !important;
}

html body #main .dgp-product-card .dgp-product-card__cart {
  display: none !important;
}

html body #main .dgp-store-product__link {
  display: none !important;
}

/* WooCommerce's success link is already available in the cart drawer/toast. */
html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .added_to_cart {
  display: none;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .badge-container {
  top: 12px !important;
  left: 12px !important;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small :is(.onsale:not(.dgp-promotion-savings-badge), .badge-inner) {
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 8px 10px !important;
  border: 0;
  border-radius: 5px;
  background: #c9213d !important;
  box-shadow: 0 3px 8px #65142520;
  color: #fff;
  clip-path: none;
  filter: none;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
}

html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .onsale:not(.dgp-promotion-savings-badge) strong {
  font: inherit;
}

@media (hover: hover) and (pointer: fine) {
  html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .col-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(41, 57, 146, .14) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .col-inner {
    transform: none !important;
    transition: none;
  }
}

@media (min-width: 601px) {
  html body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.dgp-product-card--home.product-small .box-text {
    flex-basis: 115px !important;
    height: 115px !important;
    min-height: 115px !important;
    max-height: 115px !important;
    grid-template-rows: 52px 44px !important;
  }
}

html body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.dgp-product-card--home.product-small .title-wrapper {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
}

html body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.dgp-product-card--home.product-small :is(.name, .name a) {
  margin: 1.6px 0 !important;
  color: #000 !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
}

html body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.dgp-product-card--home.product-small :is(.price-wrapper, .price) {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 25px !important;
}

html body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.dgp-product-card--home.product-small .price del,
html body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.dgp-product-card--home.product-small .price del :is(.amount, bdi, .woocommerce-Price-currencySymbol) {
  font-size: 15px !important;
  line-height: 18px !important;
}

@media (max-width: 600px) {
  html body.home #main .dgp-product-card.dgp-product-card--home.product-small .box-text {
    gap: 1px !important;
  }

  html body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.dgp-product-card--home.product-small .title-wrapper {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .box-text .title-wrapper .name,
  html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .box-text .title-wrapper .name a {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  html body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.dgp-product-card--home.product-small :is(.name, .name a) {
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
  }

  html body.dgp-product-cards #main .dgp-product-card.dgp-product-card--home.product-small .price :is(ins, .amount, bdi, .woocommerce-Price-currencySymbol) {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
}
