/* UltraCar 030.1 — intrinsic image size must never determine grid track height. */
body.uc-site .uc-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.uc-site .uc-product-card > .uc-product-photo {
  box-sizing: border-box !important;
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 10 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f7f8f9;
}
body.uc-site .uc-product-card > .uc-product-photo > img {
  box-sizing: border-box !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 12px !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
body.uc-site .uc-product-card > .uc-card-body {
  position: relative;
  min-width: 0;
  margin-top: 0;
  background: #fff;
}
body.uc-site .uc-product-card .uc-card-body h2 {
  height: auto;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  body.uc-site .uc-product-card > .uc-product-photo { aspect-ratio: 1 / 1 !important; }
  body.uc-site .uc-product-card > .uc-card-body { padding: 16px; gap: 12px; }
  body.uc-site .uc-product-card .uc-card-body h2 { font-size: 18px; line-height: 1.4; margin: 0; }
  body.uc-site .uc-product-card .uc-product-description { font-size: 14px; line-height: 1.65; }
  body.uc-site .uc-product-card .uc-image-note { font-size: 12px; line-height: 1.5; }
  body.uc-site .uc-product-card .uc-price { font-size: 23px; line-height: 1.3; }
  body.uc-site .uc-product-card .button { box-sizing: border-box; min-height: 44px; height: auto; white-space: normal; line-height: 1.4; }
  body.uc-site .uc-card-grid { min-width: 0; }
  body.uc-site.uc-contact-dock-active {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.uc-site.uc-contact-dock-active #uc-floating-contacts {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    padding: 6px max(2px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(2px, env(safe-area-inset-left, 0px)) !important;
    border-radius: 0 !important;
    background: #fff;
  }
  body.uc-site #uc-floating-contacts .uc-contact-group { display: contents !important; }
  body.uc-site #uc-floating-contacts .uc-contact-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    min-height: 68px !important;
    width: auto !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 2px 0 !important;
  }
  body.uc-site #uc-floating-contacts .uc-contact-item .uc-contact-icon {
    box-sizing: border-box !important;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
  }
  body.uc-site #uc-floating-contacts .uc-contact-item .uc-contact-label {
    display: block !important;
    font-size: 10px !important;
    line-height: 13px !important;
    letter-spacing: -0.15px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    text-align: center !important;
  }
  body.uc-site #uc-floating-contacts .uc-contact-icon svg { width: 20px !important; height: 20px !important; }
  body.uc-site #uc-floating-contacts .uc-zalo-wordmark { font-size: 12px !important; }
  body.uc-site .uc-product-card .button { scroll-margin-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  body.uc-site .uc-card-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
