﻿/* Default product card presentation for WooCommerce loops across the site. */
/* Subtract once at the text leaf, preserving each route's responsive scale. */
html body:is(.home, .dgp-shop-catalog, .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.product-small .name.product-title a,
html body:is(.home, .dgp-shop-catalog, .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.product-small .price .amount bdi {
  font-size: calc(1em - 1px) !important;
}

html body:is(.home, .dgp-shop-catalog, .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card.product-small .price .amount bdi .woocommerce-Price-currencySymbol {
  font-size: inherit !important;
}

body.dgp-product-cards {
  --dgp-card-border: #e5ded5;
  --dgp-card-border-hover: #cbbba8;
  --dgp-card-sale: #d51e35;
  --dgp-card-text: #202020;
  --dgp-card-muted: #777;
  --dgp-card-contact: #e5e5e5;
  --dgp-card-frame: #293992;
}

.dgp-product-card-component {
  --dgp-card-border: #e5ded5;
  --dgp-card-border-hover: #cbbba8;
  --dgp-card-sale: #d51e35;
  --dgp-card-text: #202020;
  --dgp-card-muted: #777;
  --dgp-card-contact: #e5e5e5;
  --dgp-card-frame: #293992;
  width: 100%;
  max-width: 320px;
  margin-right: auto;
  margin-left: auto;
}

.dgp-product-card-component--shelf {
  max-width: none;
}

.dgp-product-card-component .products.row {
  margin-right: 0;
  margin-left: 0;
}

.dgp-product-card-component .products.row > .dgp-product-card {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-right: 0;
  padding-left: 0;
}

.dgp-product-card-component__notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--dgp-card-border);
  color: var(--dgp-card-text);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px;
}

.dgp-shop-shelf .dgp-product-card-component--shelf .products.row > .dgp-product-card {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .col-inner {
  height: 100%;
  overflow: hidden;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 60, 87, .09);
  transition: transform .2s ease, box-shadow .2s ease;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .col-inner > .product-small.box {
  display: flex;
  height: 100%;
  flex-direction: column;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .box-image {
  position: relative;
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 0;
  background: #f7f5f0;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .box-image .image-cover {
  height: 100% !important;
  padding-top: 0 !important;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .box-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

/* Gallery previews stay inside the image frame and leave card geometry fixed. */
:is(body.dgp-product-cards, .dgp-product-card-component) .product-small.box .box-image > div > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .product-small.box .box-image img:not(.dgp-product-card__hover-image) {
  transform: scale(1);
  transform-origin: center;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .product-small.box .box-image img.dgp-product-card__hover-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  background: #f7f5f0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

@media (hover: hover) and (pointer: fine) {
  /* Both layers move together so reversing the hover never reveals a static image. */
  :is(body.dgp-product-cards, .dgp-product-card-component) .product-small.box:hover .box-image img:not(.dgp-product-card__hover-image),
  :is(body.dgp-product-cards, .dgp-product-card-component) .product-small.box:hover .box-image img.dgp-product-card__hover-image.is-loaded {
    transform: scale(1.035);
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .product-small.box:hover .box-image img.dgp-product-card__hover-image.is-loaded {
    opacity: 1;
  }
}

:is(body.dgp-product-cards, .dgp-product-card-component) .product-small.box:has(a:focus-visible) .box-image img.dgp-product-card__hover-image.is-loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  :is(body.dgp-product-cards, .dgp-product-card-component) .product-small.box .box-image img {
    transform: none !important;
    transition: none !important;
  }
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .image-tools {
  display: none !important;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .badge-container {
  display: block;
  top: 5px;
  left: 5px;
  margin: 0;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .badge,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .badge-circle {
  width: auto;
  height: auto;
  min-height: 0;
  border-radius: 0;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .onsale,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .badge-inner {
  width: auto;
  height: auto;
  min-height: 0;
  padding: 5px 9px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #e2283b 0%, var(--dgp-card-sale) 58%, #a9152b 100%) !important;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
  filter: drop-shadow(0 2px 3px rgba(36, 60, 87, .18));
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-promotion-savings-badge {
  display: inline-flex;
  width: auto !important;
  min-height: 22px !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 3px 12px 3px 8px !important;
  border: 0;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(110deg, #f12636, #dc1028) !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  filter: drop-shadow(0 2px 3px rgba(111, 22, 38, .24));
  white-space: nowrap;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-promotion-savings-badge strong {
  color: #fff;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .box-text {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title title"
    "price contact";
  align-content: start;
  align-items: stretch;
  column-gap: 8px;
  row-gap: 14px;
  padding: 16px !important;
  text-align: left;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .product-cat {
  display: none;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .title-wrapper {
  grid-area: title;
  height: 54px;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--dgp-card-text);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 19px !important;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .name a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: .18em;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .name a:hover {
  text-decoration: underline;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price-wrapper {
  grid-area: price;
  min-width: 0;
  margin: 0;
  align-self: center;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .box-text .star-rating {
  display: none !important;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price {
  display: flex;
  min-height: 50px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  margin: 0;
  color: #171717;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.3;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del .amount,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del .woocommerce-Price-amount {
  order: 1;
  color: var(--dgp-card-muted) !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.3;
  opacity: 1 !important;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins .amount,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins .woocommerce-Price-amount {
  order: 2;
  color: #e32626 !important;
  font-size: 21px !important;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo {
  grid-area: contact;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #d6d6d6;
  border-radius: 0;
  background: #ededed;
  color: #202020;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo:hover {
  border-color: #c7c7c7;
  background: #e2e2e2;
  color: #202020;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo:focus-visible,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .name a:focus-visible,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .box-image a:focus-visible {
  outline: 2px solid #243c57;
  outline-offset: 3px;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark img {
  display: block;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .col-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(36, 60, 87, .15);
  }

}

/* Homepage cards: square product imagery with a compact 120px information panel. */
@media (min-width: 850px) {
  body.home #main .dgp-product-card .box-image {
    aspect-ratio: 1 / 1 !important;
  }

  body.home #main .dgp-product-card .box-image img {
    object-fit: cover !important;
  }

  body.home #main .dgp-product-card .box-text {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    flex-basis: 120px !important;
    grid-template-rows: 42px 42px !important;
    padding: 10px 16px !important;
    row-gap: 0 !important;
    overflow: hidden;
  }

  body.home #main .dgp-product-card .title-wrapper {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }

  body.home #main .dgp-product-card .name,
  body.home #main .dgp-product-card .name a {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  body.home #main .dgp-product-card .price-wrapper,
  body.home #main .dgp-product-card .price {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }

  body.home #main .dgp-product-card .dgp-product-card__zalo {
    min-height: 38px !important;
  }
}

/* Keep the custom header Zalo link visually transparent on every viewport. */
:is(.mobile-nav, .header-nav) li.html.custom.html_topbar_left > a[href*="zalo.me"],
:is(.mobile-nav, .header-nav) li.html.custom.html_topbar_left > a[href*="zalo.me"]:hover,
:is(.mobile-nav, .header-nav) li.html.custom.html_topbar_left > a[href*="zalo.me"]:focus {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 1024px) {
  .html_topbar_left > a[href*="zalo.me"] {
    box-sizing: border-box;
    display: inline-flex !important;
    width: 40px;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    gap: 0 !important;
  }

  .html_topbar_left > a[href*="zalo.me"] img {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    object-fit: contain;
    background: transparent !important;
  }

  .html_topbar_left > a[href*="zalo.me"] > span {
    display: none !important;
  }
}

@media (max-width: 849px) {
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .box-text {
    column-gap: 6px;
    padding: 9px 7px 7px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .name {
    font-size: 18px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price {
    font-size: 18px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del,
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del .amount,
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del .woocommerce-Price-amount {
    font-size: 14px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins,
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins .amount,
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins .woocommerce-Price-amount {
    font-size: 18px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo {
    min-height: 38px;
    gap: 6px;
    padding: 5px 8px 5px 5px;
    font-size: 15px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark img {
    width: 16px;
    height: 16px;
  }

}

@media (max-width: 480px) {
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .col-inner {
    border-radius: 0;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .box-text {
    column-gap: 5px;
    row-gap: 10px;
    padding: 9px 6px 6px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .name {
    font-size: 18px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price {
    font-size: 18px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del,
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del .amount,
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del .woocommerce-Price-amount {
    font-size: 14px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins,
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins .amount,
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins .woocommerce-Price-amount {
    font-size: 18px !important;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .badge-container {
    top: 6px;
    left: 6px;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    min-height: 40px;
    justify-self: end;
    padding: 6px 10px;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark img {
    width: 18px;
    height: 18px;
  }

  body.dgp-product-cards .dgp-product-card.dgp-product-card .box-text,
  .dgp-product-card-component.dgp-product-card-component .dgp-product-card .box-text {
    display: flex !important;
    flex-direction: column !important;
    row-gap: 6px;
  }

  body.dgp-product-cards .dgp-product-card.dgp-product-card .dgp-product-card__zalo,
  .dgp-product-card-component.dgp-product-card-component .dgp-product-card .dgp-product-card__zalo {
    width: 100% !important;
    margin-top: auto;
  }

  .dgp-shop-shelf .dgp-product-card-component--shelf .dgp-product-card .dgp-product-card__zalo {
    grid-column: auto;
  }
}

/* Mobile product card: full width stacked rows */

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark img {
  width: 24px !important;
  height: 24px !important;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo-mark img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .col-inner {
    transition: none;
  }

  :is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .col-inner:hover {
    transform: none;
  }
}

body.dgp-product-cards .dgp-product-card .onsale,
body.dgp-product-cards .dgp-product-card .badge-inner { font-size: 13px !important; }
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .name {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 19px !important;
}

body.dgp-shop-catalog:not(.home) #main .dgp-product-card .col-inner,
body.dgp-new-arrivals-page #main .dgp-new-arrivals__main .dgp-product-card .col-inner,
body.page-id-814 #main .dgp-promotion-products .dgp-product-card .col-inner {
  box-shadow: 0 10px 26px rgba(36, 60, 87, .13), 0 2px 5px rgba(36, 60, 87, .07) !important;
}
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .name a {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: inherit !important;
}
body.dgp-product-cards .dgp-product-card.dgp-product-card .box-text .title-wrapper .name a,
.dgp-product-card-component.dgp-product-card-component .dgp-product-card.dgp-product-card .box-text .title-wrapper .name a {
  font: 700 20px/1.35 "Be Vietnam Pro", Arial, sans-serif !important;
  display: -webkit-box !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* Keep compact card titles easy to scan without making them heavy. */
: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 .name,
: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 .name a {
  font-weight: 500 !important;
}
body.dgp-product-cards .dgp-product-card.dgp-product-card .box-image img,
.dgp-product-card-component.dgp-product-card-component .dgp-product-card.dgp-product-card .box-image img {
  object-fit: contain !important;
}
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins .amount,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price ins .woocommerce-Price-amount {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 21px !important;
}
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del .amount,
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .price del .woocommerce-Price-amount { font-size: 16px !important; }
:is(body.dgp-product-cards, .dgp-product-card-component) .dgp-product-card .dgp-product-card__zalo {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 14px !important;
}

body.dgp-shop-catalog .dgp-shop-main .woocommerce-pagination :is(a.page-numbers:not(.dots), span.page-numbers:not(.dots)),
body.dgp-shop-catalog .dgp-shop-main .woocommerce-pagination :is(a.page-number:not(.dots), span.page-number:not(.dots)),
body.dgp-new-arrivals-page .dgp-new-arrivals__main .woocommerce-pagination :is(a.page-numbers:not(.dots), span.page-numbers:not(.dots)),
body.page-id-814 .dgp-promotion :is(.page-number:not(.dots), a.page-numbers:not(.dots), span.page-numbers:not(.dots)) {
  box-sizing: border-box;
  display: inline-flex;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
}

html body #main .price ins,
html body #main .price ins .amount,
html body #main .price ins .woocommerce-Price-amount,
html body #main .price ins bdi,
html body #main .dgp-price-main--sale,
html body #main .dgp-price-main--sale .amount,
html body #main .dgp-price-main--sale .woocommerce-Price-amount,
html body #main .dgp-price-main--sale bdi {
  font-weight: 800 !important;
}

html body #main .dgp-product-card .price ins,
html body #main .dgp-product-card .price ins .amount,
html body #main .dgp-product-card .price ins .woocommerce-Price-amount,
html body #main .dgp-product-card .price ins bdi,
html body #main .dgp-product-card .dgp-price-main--sale,
html body #main .dgp-product-card .dgp-price-main--sale .amount,
html body #main .dgp-product-card .dgp-price-main--sale .woocommerce-Price-amount,
html body #main .dgp-product-card .dgp-price-main--sale bdi {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
}

/* Trim mobile card padding on promotion and product-detail recommendation cards. */
@media (max-width: 767px) {
  body.page-id-814 #main .dgp-promotion-products .dgp-product-card .box-text,
  body.single-product #main .dgp-pdp-related .dgp-product-card .box-text {
    padding: 6px 5px !important;
  }
}

body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .name,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .name a {
  color: var(--dgp-card-text);
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.4;
}

body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price ins,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price ins .amount,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price ins .woocommerce-Price-amount,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price ins bdi,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .dgp-price-main--sale,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .dgp-price-main--sale .amount,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .dgp-price-main--sale .woocommerce-Price-amount,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .dgp-price-main--sale bdi {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 19px !important;
  line-height: 1.35;
}

body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price del,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price del .amount,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price del .woocommerce-Price-amount,
body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price del bdi {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35;
}

body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .dgp-product-card__zalo {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 13px !important;
}

@media (max-width: 600px) {
  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .box-text {
    column-gap: 0;
    row-gap: 7px;
    padding: 7px 5px 6px !important;
  }

  body:is(.dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .title-wrapper {
    height: 40px;
    min-height: 40px;
  }

  body.dgp-new-arrivals-page #main .dgp-new-arrivals__main .dgp-product-card .name.product-title,
  body.dgp-new-arrivals-page #main .dgp-new-arrivals__main .dgp-product-card .name a,
  body.page-id-814 #main .dgp-promotion-products .dgp-product-card .name.product-title,
  body.page-id-814 #main .dgp-promotion-products .dgp-product-card .name a {
    font-size: 13px !important;
    line-height: 1.35;
  }

  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price {
    min-height: 30px;
    min-width: 0;
    font-size: 10px !important;
    line-height: 1.2;
  }

  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price ins,
  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price ins .amount,
  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price ins .woocommerce-Price-amount,
  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price ins bdi,
  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price ins .woocommerce-Price-currencySymbol {
    font-size: 10px !important;
  }

  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price del,
  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price del .amount,
  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price del .woocommerce-Price-amount,
  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price del bdi,
  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .price del .woocommerce-Price-currencySymbol {
    font-size: 9px !important;
  }

  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .dgp-product-card__zalo {
    min-height: 32px;
    gap: 2px;
    padding: 2px 4px !important;
    font-size: 9px !important;
    align-self: center;
    transform: none;
  }

  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .dgp-product-card__zalo-mark {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  body:is(.dgp-shop-catalog:not(.home), .dgp-new-arrivals-page, .page-id-814) #main .dgp-product-card .dgp-product-card__zalo-mark img {
    width: 14px !important;
    height: 14px !important;
  }
}

  /* Final shared geometry wins over legacy route-specific card overrides. */
  :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 {
    height: 100% !important;
    min-width: 0;
  }

  :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 .box-image {
    display: block;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
  }

  :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 .box-image > div:not(.image-tools) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    padding: 0 !important;
  }

  :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 .box-image img {
    object-fit: contain !important;
  }

  :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 .box-text {
    box-sizing: border-box;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    flex: 0 0 150px !important;
    grid-template-rows: 54px 50px;
    align-content: space-between;
    row-gap: 0 !important;
    overflow: hidden;
  }

  :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 .title-wrapper {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
  }

  :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 .name,
  :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 .name a {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }

  :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 .price-wrapper,
  :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 .price {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }

  :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 .price-wrapper {
    display: flex;
    min-width: 0;
    align-items: center;
  }

  :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 .price {
    font-size: 18px !important;
    white-space: nowrap;
  }

  :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 .price ins,
  :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 .price ins .amount,
  :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 .price ins .woocommerce-Price-amount {
    font-size: 18px !important;
  }

  :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 .price del,
  :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 .price del .amount,
  :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 .price del .woocommerce-Price-amount {
    font-size: 13px !important;
  }

  :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 .dgp-product-card__zalo {
    min-height: 40px !important;
    transform: none !important;
  }

  @media (max-width: 849px) {
    :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 .box-text {
      height: 140px !important;
      min-height: 140px !important;
      max-height: 140px !important;
      flex-basis: 140px !important;
      grid-template-rows: 42px 48px;
      padding: 9px 8px !important;
    }

    :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 .title-wrapper {
      height: 42px !important;
      min-height: 42px !important;
      max-height: 42px !important;
    }

    :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 .name,
    :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 .name a {
      font-size: 15px !important;
    }

    :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 .price-wrapper,
    :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 .price {
      height: 48px !important;
      min-height: 48px !important;
      max-height: 48px !important;
    }

    :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 .price {
      font-size: 16px !important;
    }

    :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 .price ins,
    :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 .price ins .amount,
    :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 .price ins .woocommerce-Price-amount {
      font-size: 16px !important;
    }
  }

  @media (max-width: 767px) {
    :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 .box-text {
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      flex: 1 1 auto !important;
      display: flex !important;
      flex-direction: column !important;
      grid-template-columns: none !important;
      grid-template-rows: none !important;
      grid-template-areas: none !important;
      padding: 10px 8px 10px !important;
      gap: 0 !important;
    }

    :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 .title-wrapper {
      height: 38px !important;
      min-height: 38px !important;
      max-height: 38px !important;
      margin: 0 0 6px 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      width: 100% !important;
    }

    :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 .name,
    :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 .name a {
      font-size: 14px !important;
      line-height: 19px !important;
    }

    :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 .price-wrapper {
      grid-column: auto !important;
      grid-area: auto !important;
      width: 100% !important;
      min-width: 0 !important;
      height: auto !important;
      min-height: 42px !important;
      max-height: none !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
      align-items: flex-start !important;
      margin: 0 0 8px 0 !important;
      padding: 0 !important;
    }

    :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 .price {
      width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
      align-items: flex-start !important;
      gap: 1px !important;
      font-size: 16px !important;
      line-height: 1.25 !important;
    }

    :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 .price ins,
    :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 .price ins .amount,
    :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 .price ins .woocommerce-Price-amount {
      font-size: 16px !important;
      font-weight: 700 !important;
      color: #e32626 !important;
      white-space: nowrap !important;
    }

    :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 .price del,
    :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 .price del .amount,
    :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 .price del .woocommerce-Price-amount {
      font-size: 12px !important;
      color: #8c8c8c !important;
      white-space: nowrap !important;
    }

    :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 .dgp-product-card__zalo {
      grid-column: auto !important;
      grid-area: auto !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      min-height: 35px !important;
      height: 35px !important;
      box-sizing: border-box !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
      margin: auto 0 0 0 !important;
      padding: 5px 10px !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      background: #ededed !important;
      border: 1px solid #d6d6d6 !important;
      border-radius: 4px !important;
      color: #202020 !important;
      text-decoration: none !important;
      white-space: nowrap !important;
      transform: none !important;
    }

    :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 .dgp-product-card__zalo-mark {
      width: 18px !important;
      height: 18px !important;
      flex-basis: 18px !important;
    }

    :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 .dgp-product-card__zalo-mark img {
      width: 18px !important;
      height: 18px !important;
      object-fit: contain !important;
    }
  }

/* Keep the price and contact action readable on mobile — flex column so long prices never overlap the button. */
@media (max-width: 899px) {
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .products.row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Flex column: title → price → button, all at 100% width. */
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .box-text {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-template-areas: none !important;
    align-content: unset !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    padding: 10px 9px 10px !important;
    overflow: visible !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .title-wrapper {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    width: 100% !important;
    overflow: hidden !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price-wrapper {
    grid-column: auto !important;
    grid-area: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price ins,
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price ins .amount,
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price ins bdi {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #e32626 !important;
    white-space: nowrap !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price del,
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price del .amount,
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price del bdi {
    font-size: 12px !important;
    color: #8c8c8c !important;
    white-space: nowrap !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
  }

  /* Contact button: full width, own row at the bottom */
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .dgp-product-card__zalo {
    grid-column: auto !important;
    grid-area: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 34px !important;
    height: 34px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: auto 0 0 0 !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    transform: none !important;
    white-space: nowrap !important;
    background: #ededed !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 4px !important;
    color: #202020 !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .dgp-product-card__zalo-mark {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .dgp-product-card__zalo-mark img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
  }
}

@media (min-width: 900px) and (max-width: 949px) {
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price,
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price ins,
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price ins .amount,
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price ins bdi {
    font-size: 16px !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .price .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .dgp-product-card__zalo {
    min-height: 40px !important;
    gap: 4px !important;
    padding: 5px !important;
    font-size: 13px !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .dgp-product-card__zalo-mark,
  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main .dgp-product-card .dgp-product-card__zalo-mark img {
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px !important;
  }
}

/* Give contact buttons room around the Zalo mark and label. */
html body #main .dgp-product-card.dgp-product-card .dgp-product-card__zalo.dgp-product-card__zalo {
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding: 6px 12px;
  gap: 6px;
  font-size: 13px;
  line-height: 1.2;
  justify-self: end;
  align-self: center;
}

@media (max-width: 767px) {
  html body #main .dgp-product-card.dgp-product-card .dgp-product-card__zalo.dgp-product-card__zalo {
    width: 100% !important;
    min-height: 35px !important;
    height: 35px !important;
    padding: 5px 10px !important;
    gap: 6px !important;
    font-size: 13px !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    transform: none !important;
  }
}

html body #main .dgp-product-card.dgp-product-card .dgp-product-card__zalo-mark.dgp-product-card__zalo-mark,
html body #main .dgp-product-card.dgp-product-card .dgp-product-card__zalo-mark.dgp-product-card__zalo-mark img {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
}

/* Match the homepage card frame on related and recently viewed products. */
body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .col-inner {
  border: 1px solid #ddd8cf !important;
  box-shadow: 0 10px 26px rgba(36, 60, 87, .13), 0 2px 5px rgba(36, 60, 87, .07) !important;
}

/* Keep related and recently viewed cards consistent with homepage shelves on phones. */
@media (max-width: 600px) {
  body.single-product #main .dgp-pdp-viewed .dgp-product-card-component {
    padding-bottom: 0 !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .box-image {
    position: relative;
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .box-image > div:not(.image-tools) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    padding: 0 !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .box-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .box-text {
    display: grid !important;
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
    flex-basis: 88px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "title title" "price contact" !important;
    grid-template-rows: 36px 34px !important;
    column-gap: 4px !important;
    row-gap: 4px !important;
    padding: 7px 6px !important;
    overflow: hidden !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .title-wrapper {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .name,
  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .name a {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .price,
  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .price-wrapper {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .price del,
  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .price del .amount,
  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .price del .woocommerce-Price-amount {
    font-size: 9px !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .price ins,
  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .price ins .amount,
  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .price ins .woocommerce-Price-amount {
    font-size: 11px !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .dgp-product-card__zalo {
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    height: 30px !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 2px 4px !important;
    font-size: 10px !important;
    justify-self: end !important;
    align-self: center !important;
  }

  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .dgp-product-card__zalo-mark,
  body.single-product #main :is(.dgp-pdp-related, .dgp-pdp-viewed) .dgp-product-card .dgp-product-card__zalo-mark img {
    width: 16px !important;
    height: 16px !important;
    flex-basis: 16px !important;
  }
}

/* Align mobile product grids to a consistent 8px page inset. */
@media (max-width: 767px) {
  body.home #main .dgp-shop-shelf {
    box-sizing: border-box;
    padding-inline: 8px !important;
  }

  body.home #main .dgp-shop-shelf .products.row {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  body.dgp-shop-catalog:not(.home) #main .dgp-shop-main {
    width: calc(100% + 16px) !important;
    margin-inline: -8px !important;
  }

  body.dgp-new-arrivals-page #main .dgp-new-arrivals-shell {
    padding-inline: 8px !important;
  }

  body.dgp-new-arrivals-page #main .dgp-new-arrivals__main .products.row {
    margin-inline: 0 !important;
  }

  body.dgp-new-arrivals-page #main .dgp-new-arrivals__main .products.row > .dgp-product-card {
    padding-inline: 0 !important;
  }

  body.page-id-814 #main .dgp-promotion {
    padding-inline: 8px !important;
  }

  body.page-id-814 #main .dgp-promotion-catalog > .col,
  body.page-id-814 #main .dgp-promotion-products {
    padding-inline: 0 !important;
  }

  body.page-id-814 #main .dgp-promotion-products .products.row {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  body.page-id-814 #main .dgp-promotion-products .products.row > .dgp-product-card {
    padding-inline: 0 !important;
  }
}

@media (max-width: 600px) {
  body.home #main .dgp-shop-shelf {
    padding-inline: 0 !important;
  }

  body.home #main .dgp-shop-shelf .products.row {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  body.home #main .dgp-shop-shelf .products.row > .dgp-product-card {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 0 !important;
  }

  body.home #main .dgp-shop-shelf :is(.flickity-prev-next-button, .flickity-button, .slider-nav) {
    display: none !important;
  }
}

@media (max-width: 600px) {
  html body #main .dgp-product-card.dgp-product-card .name,
  html body #main .dgp-product-card.dgp-product-card .name a {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  html body #main .dgp-product-card.dgp-product-card .price ins,
  html body #main .dgp-product-card.dgp-product-card .price ins :is(.amount, bdi, .woocommerce-Price-amount) {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}
