/* Shared product-card contract used by the store and homepage. */
:is(#a2t-products, .a2t-featured-products) {
  --pm-surface: #fff;
  --pm-text: #070812;
  --pm-muted: #667085;
  --pm-line: #e6edf6;
  --pm-blue: #155dfc;
  --pm-blue-soft: #edf4ff;
  --pm-green: #0f7a3c;
  --pm-green-soft: #eaf8ef;
  --pm-amber: #946200;
  --pm-amber-soft: #fff7e6;
  --pm-red: #b4233a;
  --pm-red-soft: #fff0f2;
}

:is(#a2t-products, .a2t-featured-products) .pm-product {
  min-width: 0 !important;
  min-height: 342px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: 20px !important;
  background: var(--pm-surface) !important;
  color: var(--pm-text) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .055) !important;
  transform: none !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product:hover {
  border-color: #dbe5f4 !important;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .08) !important;
  transform: none !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-media {
  position: relative !important;
  width: 100% !important;
  height: 174px !important;
  overflow: hidden !important;
  display: block !important;
  flex: 0 0 174px !important;
  border-bottom: 1px solid var(--pm-line) !important;
  background: #f5f8fc !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-media img {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  transition: none !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product:hover .pm-product-media img {
  transform: none !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-fallback {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: grid !important;
  place-items: stretch !important;
  align-content: center !important;
  padding: 18px !important;
  background:
    linear-gradient(135deg, rgba(21, 93, 252, .08), rgba(255, 255, 255, .72) 42%, rgba(15, 23, 42, .05)),
    radial-gradient(circle at 88% 12%, rgba(21, 93, 252, .16), transparent 34%),
    #f6f9ff !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-media.is-missing .pm-product-fallback {
  z-index: 3 !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-fallback-brand,
:is(#a2t-products, .a2t-featured-products) .pm-fallback-title {
  position: absolute !important;
  left: 18px !important;
  z-index: 1 !important;
  font-weight: 950 !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-fallback-brand {
  top: 16px !important;
  color: var(--pm-blue) !important;
  font-size: 10px !important;
  letter-spacing: .06em !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-fallback-title {
  bottom: 16px !important;
  max-width: calc(100% - 78px) !important;
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 16px !important;
  line-height: 1.1 !important;
  letter-spacing: -.04em !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-mock-window {
  width: min(250px, 82%) !important;
  height: 104px !important;
  padding: 13px !important;
  justify-self: end !important;
  align-self: center !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .78) !important;
  box-shadow: 0 20px 45px rgba(30, 41, 59, .10) !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-mock-dots {
  display: flex !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-mock-dots span {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #c2cada !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-mock-grid {
  display: grid !important;
  grid-template-columns: 1.5fr .75fr .75fr !important;
  gap: 7px !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-mock-grid i,
:is(#a2t-products, .a2t-featured-products) .pm-mock-grid b {
  min-height: 13px !important;
  border: 1px solid rgba(21, 93, 252, .07) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .68) !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-mock-grid i { min-height: 38px !important; }
:is(#a2t-products, .a2t-featured-products) .pm-mock-grid i:nth-child(1) { background: linear-gradient(135deg, rgba(21, 93, 252, .18), rgba(21, 93, 252, .05)) !important; }
:is(#a2t-products, .a2t-featured-products) .pm-mock-grid i:nth-child(2) { background: rgba(16, 120, 62, .08) !important; }
:is(#a2t-products, .a2t-featured-products) .pm-mock-grid i:nth-child(3) { background: rgba(245, 158, 11, .09) !important; }

:is(#a2t-products, .a2t-featured-products) .pm-product-body {
  min-width: 0 !important;
  padding: 13px 14px 14px !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-meta,
:is(#a2t-products, .a2t-featured-products) .pm-product-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-meta {
  gap: 10px !important;
  margin-bottom: 7px !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-category,
:is(#a2t-products, .a2t-featured-products) .pm-product-status {
  min-height: 22px !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-category { max-width: 60% !important; overflow: hidden !important; background: var(--pm-blue-soft) !important; color: var(--pm-blue) !important; text-overflow: ellipsis !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-status.live { background: var(--pm-green-soft) !important; color: var(--pm-green) !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-status.custom { background: var(--pm-amber-soft) !important; color: var(--pm-amber) !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-status.off { background: var(--pm-red-soft) !important; color: var(--pm-red) !important; }

:is(#a2t-products, .a2t-featured-products) .pm-product h2 {
  margin: 0 !important;
  color: var(--pm-text) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
  letter-spacing: -.045em !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product h2 a {
  display: block !important;
  overflow: hidden !important;
  color: inherit !important;
  text-decoration: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product h2 a:hover { color: var(--pm-blue) !important; }

:is(#a2t-products, .a2t-featured-products) .pm-product p {
  min-height: 21px !important;
  margin: 7px 0 9px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  color: var(--pm-muted) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-stats {
  min-height: 34px !important;
  margin: 0 0 11px !important;
  padding: 7px 9px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: 12px !important;
  background: #f8fafd !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-product-stats span { min-width: 0 !important; display: inline-flex !important; align-items: center !important; gap: 4px !important; color: #5d687a !important; font-size: 11.5px !important; font-weight: 850 !important; white-space: nowrap !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-stats span + span { padding-left: 8px !important; border-left: 1px solid var(--pm-line) !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-stats i { color: #8a96aa !important; font-size: 11px !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-stats .pm-stat-rating i { color: #f59e0b !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-stats strong { color: var(--pm-text) !important; font-weight: 950 !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-stats small { min-width: 0 !important; overflow: hidden !important; color: var(--pm-muted) !important; font-size: 11.5px !important; font-weight: 800 !important; text-overflow: ellipsis !important; }

:is(#a2t-products, .a2t-featured-products) .pm-product-footer {
  margin-top: auto !important;
  padding-top: 11px !important;
  gap: 10px !important;
  border-top: 1px solid var(--pm-line) !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-price { min-width: 0 !important; display: flex !important; align-items: baseline !important; gap: 8px !important; }
:is(#a2t-products, .a2t-featured-products) .pm-price strong { color: var(--pm-text) !important; font-size: 20px !important; font-weight: 950 !important; line-height: 1 !important; letter-spacing: -.045em !important; white-space: nowrap !important; }
:is(#a2t-products, .a2t-featured-products) .pm-price small { color: #98a2b3 !important; font-size: 12px !important; font-weight: 800 !important; text-decoration: line-through !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-actions { display: flex !important; align-items: center !important; gap: 7px !important; flex: 0 0 auto !important; }
:is(#a2t-products, .a2t-featured-products) .pm-product-actions form { display: contents !important; }

:is(#a2t-products, .a2t-featured-products) .pm-card-action {
  min-width: 66px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: 10px !important;
  background: var(--pm-surface) !important;
  color: var(--pm-text) !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

:is(#a2t-products, .a2t-featured-products) .pm-card-action.primary {
  min-width: 58px !important;
  border-color: #050609 !important;
  background: #050609 !important;
  color: #fff !important;
}

html[data-theme="dark"] :is(#a2t-products, .a2t-featured-products) {
  --pm-surface: #0b1020;
  --pm-text: #f8fafc;
  --pm-muted: #a5b0c2;
  --pm-line: rgba(255, 255, 255, .10);
  --pm-blue-soft: rgba(21, 93, 252, .16);
  --pm-green-soft: rgba(16, 122, 60, .16);
  --pm-amber-soft: rgba(245, 158, 11, .16);
  --pm-red-soft: rgba(244, 63, 94, .16);
}

html[data-theme="dark"] :is(#a2t-products, .a2t-featured-products) .pm-product,
html[data-theme="dark"] :is(#a2t-products, .a2t-featured-products) .pm-product-stats,
html[data-theme="dark"] :is(#a2t-products, .a2t-featured-products) .pm-card-action {
  border-color: var(--pm-line) !important;
  background: rgba(11, 16, 32, .96) !important;
  color: var(--pm-text) !important;
}

html[data-theme="dark"] :is(#a2t-products, .a2t-featured-products) .pm-product:hover {
  border-color: rgba(96, 165, 250, .25) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .22) !important;
}

html[data-theme="dark"] :is(#a2t-products, .a2t-featured-products) .pm-card-action.primary {
  border-color: #fff !important;
  background: #fff !important;
  color: #05070d !important;
}

html[data-theme="dark"] :is(#a2t-products, .a2t-featured-products) .pm-product-fallback {
  background:
    linear-gradient(135deg, rgba(21, 93, 252, .20), rgba(15, 23, 42, .88) 46%, rgba(255, 255, 255, .05)),
    radial-gradient(circle at 88% 12%, rgba(21, 93, 252, .20), transparent 34%),
    #0f172a !important;
}

html[data-theme="dark"] :is(#a2t-products, .a2t-featured-products) .pm-fallback-title { color: #f8fafc !important; }

@media (max-width: 760px) {
  :is(#a2t-products, .a2t-featured-products) .pm-product { min-height: 326px !important; }
  :is(#a2t-products, .a2t-featured-products) .pm-product-media { height: 166px !important; flex-basis: 166px !important; }
  :is(#a2t-products, .a2t-featured-products) .pm-product-footer { align-items: stretch !important; flex-direction: column !important; }
  :is(#a2t-products, .a2t-featured-products) .pm-product-actions,
  :is(#a2t-products, .a2t-featured-products) .pm-card-action { width: 100% !important; }
}

