/* AdeptDEV × NANU Market — global product-card micro UI v7.38
   Internal signature: AdeptDEV — https://t.me/adeptdevs */

/* One visual language for product codes across every storefront card. */
.adev-global-code,
.adev-card-model,
.adev-card__model,
.adpx-product-card .model,
.product-thumb .model,
.ad-wishlist-model,
.ad-compare-model {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 24px !important;
  margin: 0 0 8px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(55,54,54,.10) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #373636 !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
}

/* Sale means sale: red everywhere, not brand orange. */
.adev-badge--sale,
.adev-card__badges .is-sale,
.product-thumb .pr-sale,
.adpx-product-card .pr-sale,
.ad-wishlist-badge,
.ad-compare-badge,
.labels .pr-sale,
.pr-sale-t + .pr-sale {
  background: linear-gradient(135deg,#ef5350,#d93a36) !important;
  background-image: linear-gradient(135deg,#ef5350,#d93a36) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 7px 18px rgba(217,58,54,.18) !important;
}

/* Unified stock indicator. */
.adev-stock.is-in,
.adev-global-stock.is-in {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: max-content !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(41,182,111,.16) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1f985b !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.adev-stock.is-in::before,
.adev-global-stock.is-in::before {
  content: "" !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  min-width: 7px !important;
  border-radius: 50% !important;
  background: #29b66f !important;
  box-shadow: 0 0 0 0 rgba(41,182,111,.40) !important;
  animation: adevGlobalStockPulse 1.8s ease-out infinite !important;
}

/* Existing legacy ratings: neutral empty state and orange only for actual rating. */
.adev-card-rating,
.adev-card__rating,
.adpx-rating,
.product-thumb .rating {
  color: rgba(55,54,54,.46) !important;
}
.adev-stars i,
.adev-global-rating-star { color: rgba(55,54,54,.24) !important; }
.adev-stars i.is-on,
.adev-global-rating-star.is-on { color: #ec6608 !important; }

body.nx-dark .adev-global-code,
body.nx-dark .adev-card-model,
body.nx-dark .adev-card__model,
body.nx-dark .adpx-product-card .model,
body.nx-dark .product-thumb .model,
body.nx-dark .ad-wishlist-model,
body.nx-dark .ad-compare-model {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.82) !important;
}
body.nx-dark .adev-stock.is-in,
body.nx-dark .adev-global-stock.is-in {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(95,215,143,.18) !important;
  color: #5fd78f !important;
}
body.nx-dark .adev-stock.is-in::before,
body.nx-dark .adev-global-stock.is-in::before { background:#5fd78f !important; }

@keyframes adevGlobalStockPulse {
  0% { box-shadow:0 0 0 0 rgba(41,182,111,.38); }
  70% { box-shadow:0 0 0 7px rgba(41,182,111,0); }
  100% { box-shadow:0 0 0 0 rgba(41,182,111,0); }
}
@media (prefers-reduced-motion:reduce) {
  .adev-stock.is-in::before,.adev-global-stock.is-in::before { animation:none !important; }
}


/* v7.36 — code + availability become one compact metadata row. */
.adev-card-meta-row {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 24px !important;
  margin: 0 0 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.adev-card-meta-row > .adev-global-code,
.adev-card-meta-row > .adev-card-model,
.adev-card-meta-row > .adev-card__model,
.adev-card-meta-row > .model,
.adev-card-meta-row > .ad-wishlist-model,
.adev-card-meta-row > .ad-compare-model,
.adev-card-meta-row > .adev-stock,
.adev-card-meta-row > .adev-global-stock {
  margin: 0 !important;
  flex: 0 1 auto !important;
}

.adev-card-meta-row > .adev-global-code,
.adev-card-meta-row > .adev-card-model,
.adev-card-meta-row > .adev-card__model,
.adev-card-meta-row > .model,
.adev-card-meta-row > .ad-wishlist-model,
.adev-card-meta-row > .ad-compare-model {
  min-width: 0 !important;
  max-width: 58% !important;
}

.adev-card-meta-row > .adev-stock,
.adev-card-meta-row > .adev-global-stock {
  margin-left: auto !important;
  justify-content: flex-end !important;
}

/* Once stock is moved to the metadata row, price area stays visually clean. */
#product-category .adev-card-bottom,
#product-search .adev-card-bottom {
  justify-content: flex-start !important;
}
#product-category .adev-card-bottom > .adev-price-wrap,
#product-search .adev-card-bottom > .adev-price-wrap {
  width: 100% !important;
}

@media (max-width: 480px) {
  .adev-card-meta-row { gap: 5px !important; }
  .adev-card-meta-row > .adev-global-code,
  .adev-card-meta-row > .adev-card-model,
  .adev-card-meta-row > .adev-card__model,
  .adev-card-meta-row > .model,
  .adev-card-meta-row > .ad-wishlist-model,
  .adev-card-meta-row > .ad-compare-model {
    max-width: 55% !important;
    padding-inline: 7px !important;
  }
  .adev-card-meta-row > .adev-stock,
  .adev-card-meta-row > .adev-global-stock {
    padding-inline: 7px !important;
    gap: 5px !important;
  }
}

/* v7.37 — one consistent product-view action; removes floating orange legacy eye. */
.adev-product-card .adpx-quick-view,
.adev-card .adpx-quick-view,
.adpx-product-card .adpx-quick-view,
.product-thumb .adpx-quick-view,
.ad-wishlist-card .adpx-quick-view,
.ad-compare-card .adpx-quick-view {
  display: none !important;
}

.adev-global-card-actions {
  position: absolute !important;
  z-index: 6 !important;
  top: 12px !important;
  right: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
}

.adev-global-view-action {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 40px !important;
  border: 1px solid rgba(55,54,54,.11) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.96) !important;
  color: #373636 !important;
  box-shadow: 0 7px 18px rgba(55,54,54,.075) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: transform .20s cubic-bezier(.2,.8,.2,1), background .20s ease, color .20s ease, border-color .20s ease, box-shadow .20s ease !important;
}

.adev-global-view-action svg {
  width: 19px !important;
  height: 19px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
}

.adev-global-view-action:hover,
.adev-global-view-action:focus-visible {
  transform: translateY(-1px) !important;
  background: #373636 !important;
  color: #ffffff !important;
  border-color: #373636 !important;
  box-shadow: 0 10px 24px rgba(55,54,54,.14) !important;
  outline: none !important;
}

/* In modern cards the eye lives in the exact same vertical action stack. */
.adev-card-actions > .adev-global-view-action,
.adev-card__actions > .adev-global-view-action {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
}

#product-category .adev-card-actions > .adev-global-view-action,
#product-search .adev-card-actions > .adev-global-view-action {
  width: 40px !important;
  height: 40px !important;
  border-radius: 13px !important;
}

.adev-card__actions > .adev-global-view-action {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  flex-basis: 38px !important;
}

body.nx-dark .adev-global-view-action {
  background: rgba(255,255,255,.07) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.13) !important;
  box-shadow: none !important;
}

body.nx-dark .adev-global-view-action:hover,
body.nx-dark .adev-global-view-action:focus-visible {
  background: #ffffff !important;
  color: #373636 !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .adev-global-card-actions {
    top: 9px !important;
    right: 9px !important;
    gap: 6px !important;
  }
  .adev-global-view-action {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex-basis: 36px !important;
    border-radius: 12px !important;
  }
  .adev-global-view-action svg {
    width: 18px !important;
    height: 18px !important;
  }
}


/* v7.38 — Special/Promotional products use their native action stack too.
   The eye must never float in a second absolute column. */
.adpx-special-module .adpx-card-actions > .adev-global-view-action {
  position: static !important;
  inset: auto !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  flex: 0 0 38px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  order: 3 !important;
}

.adpx-special-module .adpx-card-actions {
  align-items: center !important;
}

/* If an older run already injected a detached host, neutralize it after the
   action is migrated into .adpx-card-actions on the next enhancer pass. */
.adpx-special-module .adpx-special-image > .adev-global-card-actions:empty,
.adpx-special-module .image > .adev-global-card-actions:empty {
  display: none !important;
}

body.nx-dark .adpx-special-module .adpx-card-actions > .adev-global-view-action {
  background: rgba(255,255,255,.07) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.13) !important;
}

@media (max-width: 767px) {
  .adpx-special-module .adpx-card-actions > .adev-global-view-action {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    flex-basis: 34px !important;
    border-radius: 11px !important;
  }
}

/* v7.39 — one premium interaction language for wishlist / compare / view.
   No full orange fill and no black eye on hover. */
#product-category .adev-card-actions .adev-card-icon,
#product-search .adev-card-actions .adev-card-icon,
.adev-card .adev-card__actions .adev-icon-btn,
.adpx-special-module .adpx-card-actions .adpx-action-btn,
.adpx-special-module .adpx-card-actions .adev-global-view-action,
.adev-global-card-actions .adev-global-view-action,
.product-thumb .btns > .btn-wishlist,
.product-thumb .btns > .btn-compare {
  background: rgba(255,255,255,.97) !important;
  background-image: none !important;
  color: #373636 !important;
  border-color: rgba(55,54,54,.11) !important;
  box-shadow: 0 7px 18px rgba(55,54,54,.075) !important;
  transition:
    transform .20s cubic-bezier(.2,.8,.2,1),
    background-color .20s ease,
    color .20s ease,
    border-color .20s ease,
    box-shadow .20s ease !important;
}

#product-category .adev-card-actions .adev-card-icon svg,
#product-search .adev-card-actions .adev-card-icon svg,
.adev-card .adev-card__actions .adev-icon-btn svg,
.adpx-special-module .adpx-card-actions .adpx-action-btn svg,
.adpx-special-module .adpx-card-actions .adev-global-view-action svg,
.adev-global-card-actions .adev-global-view-action svg,
.product-thumb .btns > .btn-wishlist svg,
.product-thumb .btns > .btn-compare svg {
  color: inherit !important;
  stroke: currentColor !important;
}

#product-category .adev-card-actions .adev-card-icon:hover,
#product-category .adev-card-actions .adev-card-icon:focus-visible,
#product-search .adev-card-actions .adev-card-icon:hover,
#product-search .adev-card-actions .adev-card-icon:focus-visible,
.adev-card .adev-card__actions .adev-icon-btn:hover,
.adev-card .adev-card__actions .adev-icon-btn:focus-visible,
.adpx-special-module .adpx-card-actions .adpx-action-btn:hover,
.adpx-special-module .adpx-card-actions .adpx-action-btn:focus-visible,
.adpx-special-module .adpx-card-actions .adev-global-view-action:hover,
.adpx-special-module .adpx-card-actions .adev-global-view-action:focus-visible,
.adev-global-card-actions .adev-global-view-action:hover,
.adev-global-card-actions .adev-global-view-action:focus-visible,
.product-thumb .btns > .btn-wishlist:hover,
.product-thumb .btns > .btn-wishlist:focus-visible,
.product-thumb .btns > .btn-compare:hover,
.product-thumb .btns > .btn-compare:focus-visible {
  transform: translateY(-2px) !important;
  background: #f7f7f7 !important;
  background-image: none !important;
  color: #ec6608 !important;
  border-color: rgba(236,102,8,.28) !important;
  box-shadow: 0 10px 24px rgba(55,54,54,.11) !important;
  outline: none !important;
}

/* Active wishlist / compare: restrained orange tint, never a solid orange tile. */
#product-category .adev-card-actions .adev-card-icon.is-active,
#product-search .adev-card-actions .adev-card-icon.is-active,
.adev-card .adev-card__actions .adev-icon-btn.is-active,
.adpx-special-module .adpx-card-actions .adpx-action-btn.is-active,
.adpx-special-module .adpx-card-actions .adpx-action-btn.checked,
.product-thumb .btns.wished > .btn-wishlist,
.product-thumb .btns.compared > .btn-compare,
.product-thumb .btns > .btn-wishlist.checked,
.product-thumb .btns > .btn-compare.checked,
.product-thumb .wished .btn-wishlist,
.product-thumb .compared .btn-compare {
  background: rgba(236,102,8,.075) !important;
  background-image: none !important;
  color: #ec6608 !important;
  border-color: rgba(236,102,8,.28) !important;
  box-shadow: 0 7px 18px rgba(55,54,54,.075) !important;
}

.product-thumb .btns.wished > .btn-wishlist svg,
.product-thumb .btns > .btn-wishlist.checked svg,
.product-thumb .wished .btn-wishlist svg,
.adev-card .adev-card__actions .adev-icon-btn.is-active[aria-label*="avor"] svg,
.adpx-special-module .adpx-card-actions .btn-wishlist.is-active svg,
.adpx-special-module .adpx-card-actions .btn-wishlist.checked svg {
  fill: rgba(236,102,8,.13) !important;
  stroke: #ec6608 !important;
}

/* Dark theme keeps the same interaction hierarchy instead of inverting to white/black. */
body.nx-dark #product-category .adev-card-actions .adev-card-icon,
body.nx-dark #product-search .adev-card-actions .adev-card-icon,
body.nx-dark .adev-card .adev-card__actions .adev-icon-btn,
body.nx-dark .adpx-special-module .adpx-card-actions .adpx-action-btn,
body.nx-dark .adpx-special-module .adpx-card-actions .adev-global-view-action,
body.nx-dark .adev-global-card-actions .adev-global-view-action,
body.nx-dark .product-thumb .btns > .btn-wishlist,
body.nx-dark .product-thumb .btns > .btn-compare {
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.92) !important;
  border-color: rgba(255,255,255,.13) !important;
  box-shadow: none !important;
}

body.nx-dark #product-category .adev-card-actions .adev-card-icon:hover,
body.nx-dark #product-category .adev-card-actions .adev-card-icon:focus-visible,
body.nx-dark #product-search .adev-card-actions .adev-card-icon:hover,
body.nx-dark #product-search .adev-card-actions .adev-card-icon:focus-visible,
body.nx-dark .adev-card .adev-card__actions .adev-icon-btn:hover,
body.nx-dark .adev-card .adev-card__actions .adev-icon-btn:focus-visible,
body.nx-dark .adpx-special-module .adpx-card-actions .adpx-action-btn:hover,
body.nx-dark .adpx-special-module .adpx-card-actions .adpx-action-btn:focus-visible,
body.nx-dark .adpx-special-module .adpx-card-actions .adev-global-view-action:hover,
body.nx-dark .adpx-special-module .adpx-card-actions .adev-global-view-action:focus-visible,
body.nx-dark .adev-global-card-actions .adev-global-view-action:hover,
body.nx-dark .adev-global-card-actions .adev-global-view-action:focus-visible,
body.nx-dark .product-thumb .btns > .btn-wishlist:hover,
body.nx-dark .product-thumb .btns > .btn-compare:hover {
  background: rgba(255,255,255,.11) !important;
  color: #ff8a33 !important;
  border-color: rgba(236,102,8,.38) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}

body.nx-dark #product-category .adev-card-actions .adev-card-icon.is-active,
body.nx-dark #product-search .adev-card-actions .adev-card-icon.is-active,
body.nx-dark .adev-card .adev-card__actions .adev-icon-btn.is-active,
body.nx-dark .adpx-special-module .adpx-card-actions .adpx-action-btn.is-active,
body.nx-dark .adpx-special-module .adpx-card-actions .adpx-action-btn.checked,
body.nx-dark .product-thumb .btns.wished > .btn-wishlist,
body.nx-dark .product-thumb .btns.compared > .btn-compare,
body.nx-dark .product-thumb .btns > .btn-wishlist.checked,
body.nx-dark .product-thumb .btns > .btn-compare.checked {
  background: rgba(236,102,8,.13) !important;
  color: #ff8a33 !important;
  border-color: rgba(236,102,8,.38) !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #product-category .adev-card-actions .adev-card-icon,
  #product-search .adev-card-actions .adev-card-icon,
  .adev-card .adev-card__actions .adev-icon-btn,
  .adpx-special-module .adpx-card-actions .adpx-action-btn,
  .adev-global-view-action,
  .product-thumb .btns > .btn-wishlist,
  .product-thumb .btns > .btn-compare {
    transition: none !important;
  }
}

/* v7.40 — promotional cards: tighter native action stack only.
   AdeptDEV internal integration — https://t.me/adeptdevs */
.adpx-special-module .adpx-card-actions {
  top: 12px !important;
  right: 12px !important;
  gap: 4px !important;
  row-gap: 4px !important;
}

.adpx-special-module .adpx-card-actions > .adpx-action-btn,
.adpx-special-module .adpx-card-actions > .adev-global-view-action {
  margin: 0 !important;
}

@media (max-width: 767px) {
  .adpx-special-module .adpx-card-actions {
    top: 10px !important;
    right: 10px !important;
    gap: 3px !important;
    row-gap: 3px !important;
  }
}
