/**
 * Typography baseline for the public site.
 * Loaded after every route-level stylesheet so editors and route templates
 * cannot accidentally reintroduce a different text family.
 */
body:not(.wp-admin):not(.login) {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
}

body:not(.wp-admin):not(.login) :not(svg):not(svg *):not(i):not(i *):not(.icon):not(.icon *):not([class^="icon-"]):not([class^="icon-"] *):not([class*=" icon-"]):not([class*=" icon-"] *):not(.fa):not(.fa *):not([class^="fa-"]):not([class^="fa-"] *):not([class*=" fa-"]):not([class*=" fa-"] *):not(.dashicons):not(.dashicons *):not(.material-icons):not(.material-icons *):not(.material-symbols-outlined):not(.material-symbols-outlined *) {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
}

/* Some route styles set a font directly on text emphasis and controls.  Make
 * the public font choice explicit for every normal text role without touching
 * icon glyphs or SVGs. */
body:not(.wp-admin):not(.login) :is(
  h1, h2, h3, h4, h5, h6, p, a, li, span, em, strong, b, small,
  button, label, input, select, textarea, blockquote, cite, figcaption,
  dt, dd, th, td
):not(.icon):not([class^="icon-"]):not([class*=" icon-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(.dashicons):not(.material-icons):not(.material-symbols-outlined) {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
}

/* Navigation uses Roboto while content keeps the site's baseline family. */
body #header .menu-item > a,
body #header .menu-item > a :is(span, strong, b, em),
body #main-menu .menu-item > a,
body #main-menu .menu-item > a :is(span, strong, b, em) {
  font-family: "Roboto", Arial, sans-serif !important;
}

/* Roboto's narrower, upright numerals keep prices from looking squat.
 * Match the original price and currency to the sale price on every template. */
html body #wrapper :is(#main, #header, #footer) :is(.price, .dgp-store-product__price, .dgp-price-main, .woocommerce-Price-amount),
html body #wrapper :is(#main, #header, #footer) :is(.price, .dgp-store-product__price, .dgp-price-main, .woocommerce-Price-amount) :is(ins, del, .amount, bdi, .woocommerce-Price-currencySymbol) {
  font-family: "Roboto", Arial, sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Use the real bold face rather than synthesizing an extra-heavy sale price. */
html body #wrapper :is(#main, #header, #footer) :is(.price, .dgp-store-product__price) ins,
html body #wrapper :is(#main, #header, #footer) :is(.price, .dgp-store-product__price) ins :is(.amount, bdi, .woocommerce-Price-currencySymbol),
html body #main .dgp-price-main--sale {
  font-weight: 700 !important;
}

body.home #main :is(
  .dgp-shop-featured-categories__header h2,
  .dgp-shop-featured-categories > h2,
  #dgp-shop-featured-categories-2,
  .dgp-shop-shelf__header h2,
  .dgp-shop-guides__header h2,
  .dgp-home-feedback__header h2,
  .dgp-shop-trust h2,
  #dgp-shop-partners-title,
  #dgp-shop-trust-title,
  .dgp-home-catalog-section .dgp-cat-title,
  .dgp-home-product-row .dgp-product-head-title,
  .dgp-store-section-head h2,
  #store-rooms-title,
  .dgp-home-section-heading h2,
  .dgp-home-service h2,
  .dgp-home-visit h2,
  .dgp-home-promo h2,
  .dgp-home-showcase h2,
  .dgp-home-reasons h2,
  .dgp-home-quality h2,
  .dgp-home-about h2
) {
  color: #293992 !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: var(--dgp-home-heading-size, clamp(23px, 1.9vw, 28px)) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.3px !important;
  text-transform: uppercase !important;
}

body.home #main :is(
  .dgp-shop-featured-categories__header h2,
  .dgp-shop-featured-categories > h2,
  #dgp-shop-featured-categories-2,
  .dgp-shop-shelf__header h2,
  .dgp-shop-guides__header h2,
  .dgp-home-feedback__header h2,
  .dgp-shop-trust h2,
  #dgp-shop-partners-title,
  #dgp-shop-trust-title,
  .dgp-home-catalog-section .dgp-cat-title,
  .dgp-home-product-row .dgp-product-head-title,
  .dgp-store-section-head h2,
  #store-rooms-title,
  .dgp-home-section-heading h2,
  .dgp-home-service h2,
  .dgp-home-visit h2,
  .dgp-home-promo h2,
  .dgp-home-showcase h2,
  .dgp-home-reasons h2,
  .dgp-home-quality h2,
  .dgp-home-about h2
) :not(svg):not(svg *):not(i):not(.icon):not([class*="icon-"]) {
  color: #293992 !important;
  font-size: inherit !important;
}

/* Catalog headings must fit beside their actions on narrow screens. */
@media (max-width: 767px) {
  body.home #main :is(
    .dgp-shop-featured-categories__header h2,
    .dgp-shop-featured-categories > h2,
    #dgp-shop-featured-categories-2,
    .dgp-shop-shelf__header h2,
    .dgp-shop-guides__header h2,
    .dgp-home-feedback__header h2,
    .dgp-shop-trust h2,
    #dgp-shop-partners-title,
    #dgp-shop-trust-title,
    .dgp-home-catalog-section .dgp-cat-title,
    .dgp-home-product-row .dgp-product-head-title,
    .dgp-store-section-head h2,
    #store-rooms-title,
    .dgp-home-section-heading h2
  ) {
    --dgp-home-heading-size: clamp(16px, calc(5vw - 2px), 22px);
  }
  body.home #main .dgp-home-product-row .dgp-product-head-bar {
    flex-wrap: wrap;
  }
  body.home #main .dgp-home-product-row .dgp-head-title-wrap {
    min-width: 0;
  }
}

/* Legacy card layouts only; the shared home-style card owns its typography. */
html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo {
  font-size: 14px !important;
  font-weight: 600 !important;
}

html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper .name,
html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper .name a {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-transform: none;
  color: #000 !important;
}
html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper .name {
  min-height: 3em;
}

/* Reserve both 24px text lines instead of clipping them in older fixed rows. */
html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 1 0 auto !important;
  grid-template-rows: minmax(48px, auto) auto !important;
  row-gap: 12px !important;
}
html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper {
  height: auto !important;
  min-height: 48px !important;
  max-height: none !important;
  overflow: visible;
}
html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper .name,
html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper .name a {
  height: auto !important;
  max-height: none !important;
}

/* Cover native category/search loops as well as the custom catalog layout. */
@media (max-width: 767px) {
  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) :is(.onsale, .badge-inner) {
    font-size: 10px !important;
    line-height: 1.2 !important;
    padding: 4px 7px !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
  }

  /* Let the footer wrap at its actual content width, including long prices. */
  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .box-text,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text,
  :is(body.dgp-product-cards, body.dgp-shop-catalog:not(.home), body.dgp-new-arrivals-page, body.page-id-814, .dgp-product-card-component) .dgp-product-card:not(.dgp-product-card--home) .box-text {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    align-content: space-between !important;
    height: auto !important;
    min-height: 90px !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
    padding: 6px !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-template-areas: none !important;
    gap: 6px 4px !important;
  }

  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    align-self: stretch !important;
    width: 100% !important;
  }

  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper .name,
  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper .name a,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper .name,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .box-text .title-wrapper .name a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 700 !important;
    color: #171717 !important;
  }

  /* Preserve the full amount instead of shrinking the price column under the action. */
  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .price-wrapper,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .price-wrapper {
    grid-area: auto !important;
    grid-column: auto !important;
    flex: 1 0 auto !important;
    width: max-content !important;
    min-width: min-content !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 33px !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .price,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .price {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 1px !important;
    line-height: 1.25 !important;
  }

  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .price del,
  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .price del :is(.amount, bdi),
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .price del,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .price del :is(.amount, bdi) {
    font-size: 11px !important;
    color: #8c8c8c !important;
    text-decoration: line-through !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
  }

  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .price ins,
  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .price ins :is(.amount, bdi),
  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .price > :is(.amount, bdi),
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .price ins,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .price ins :is(.amount, bdi),
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .price > :is(.amount, bdi) {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #e32626 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
  }

  /* Match the compact right-hand action; wrap to the next line when it cannot fit. */
  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo,
  :is(body.dgp-product-cards, body.dgp-shop-catalog:not(.home), body.dgp-new-arrivals-page, body.page-id-814, .dgp-product-card-component) .dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo {
    grid-area: auto !important;
    grid-column: auto !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 27px !important;
    height: 27px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    align-self: center !important;
    margin: 0 0 0 auto !important;
    padding: 4px 5px !important;
    background: #ededed !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 0 !important;
    color: #202020 !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo:hover,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo:hover {
    background: #e2e2e2 !important;
    border-color: #c7c7c7 !important;
    color: #202020 !important;
  }

  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo-mark,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo-mark {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo-mark img,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo-mark img {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    object-fit: contain !important;
  }

  html body #wrapper #main .dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo-label,
  html body #main .dgp-product-card:not(.dgp-product-card--home).dgp-product-card:not(.dgp-product-card--home) .dgp-product-card__zalo-label {
    font-size: 8px !important;
    font-weight: 400 !important;
    color: #202020 !important;
    line-height: 1 !important;
  }

  html body #main .products.row:not(.slider):not(:where(.dgp-product-card-component *)) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 16px 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }

  html body #main .products.row:not(.slider):not(:where(.dgp-product-card-component *)) > .product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    flex-basis: auto !important;
    padding: 0 !important;
  }
}
