/* AUJUNPEAK V59 — storefront card media and readable feature bullets.
   Intentionally loaded after the historical responsive bundles to settle their
   conflicting !important rules without touching purchasing/backend logic. */

/* Artwork occupies the image frame without dark side bars. Product artwork is
   typically widescreen; keep the frame at the same 16:9 ratio instead of a
   shorter panoramic frame which made object-fit:contain leave empty sides. */
html.site-pearl body.public-ui .sp-product-group .sp-card-banner {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #0c1828 !important;
  isolation: isolate;
}
html.site-pearl body.public-ui .sp-product-group .sp-card-banner-img {
  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: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
}
html.site-pearl body.public-ui .sp-product-group .sp-card-banner-overlay {
  display: none !important;
}

/* All list rows get real space for the checkmark. Older styles position the
   icon absolutely at left:0 and clamp each row to a single line; both are
   disabled here so a long Vietnamese feature wraps without overlapping. */
html.site-pearl body.public-ui .sp-product-group .sp-feature-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important;
  overflow: visible !important;
  list-style: none !important;
}
html.site-pearl body.public-ui .sp-product-group .sp-feature-list li,
html.site-pearl body.public-ui .sp-product-group .sp-feature-list li:nth-child(n+3) {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 9px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 21px !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 450 !important;
  text-align: left !important;
  letter-spacing: normal !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  line-clamp: unset !important;
  color: #52647d !important;
}
html.site-pearl body.public-ui .sp-product-group .sp-feature-list li::before {
  content: '✓' !important;
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 19px !important;
  width: 19px !important;
  min-width: 19px !important;
  max-width: 19px !important;
  height: 19px !important;
  min-height: 19px !important;
  max-height: 19px !important;
  margin: 1px 0 0 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #b4e7cd !important;
  background: #e7f8ee !important;
  box-shadow: none !important;
  color: #148653 !important;
  font-family: Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  text-shadow: none !important;
}
html.site-pearl body.public-ui .sp-product-group .sp-feature-list li::after {
  content: none !important;
  display: none !important;
}
html.site-pearl.site-dark body.public-ui .sp-product-group .sp-feature-list li {
  color: #cbd7e8 !important;
}
html.site-pearl.site-dark body.public-ui .sp-product-group .sp-feature-list li::before {
  border-color: #256d54 !important;
  background: #153e33 !important;
  color: #9df0c5 !important;
}

@media (max-width: 700px) {
  /* Phone: one full-width banner above details; no 32vw artwork strip. */
  html.site-pearl body.public-ui .sp-product-group .sp-main-grid,
  html.site-pearl body.public-ui .sp-product-group .sp-random-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 14px !important;
    width: 100% !important;
    align-items: start !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-card[data-store-product] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 17px !important;
    contain: none !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-card[data-store-product] > .sp-card-banner {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-right: 0 !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-card[data-store-product] > .sp-card-body {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 15px 16px 17px !important;
    gap: 10px !important;
    overflow: visible !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-card-plat {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 7px !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-card-name {
    font-size: clamp(16px, 4.1vw, 21px) !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
    display: block !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-feature-list li {
    font-size: clamp(13px, 3.55vw, 15px) !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-card-stats {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 6px !important;
    padding: 9px 7px !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-stat-lbl {
    display: inline !important;
    font-size: 11px !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-stat-val {
    font-size: 12px !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-card-footer {
    margin-top: 2px !important;
    padding-top: 8px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-price-range,
  html.site-pearl body.public-ui .sp-product-group .sp-price-free {
    font-size: clamp(17px, 4.7vw, 21px) !important;
    line-height: 1.2 !important;
  }
  html.site-pearl body.public-ui .sp-product-group .sp-buy-btn {
    min-height: 43px !important;
    height: 43px !important;
    min-width: 116px !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.site-pearl body.public-ui .sp-product-group .sp-card-banner-img {
    animation: none !important;
    transition: none !important;
  }
}
