/* ============================================================
   ADEPTDEV NEXUS EXPERIENCE V1
   Isolated, progressive enhancement layer for ADEPTDEV/OpenCart
   ============================================================ */

:root {
  --adpx-accent: var(--nx-accent, #d7363d);
  --adpx-accent-dark: #b51f2d;
  --adpx-success: #24a865;
  --adpx-ink: var(--nx-text, #1b1c21);
  --adpx-muted: var(--nx-text-soft, #6c6f78);
  --adpx-line: var(--nx-line, #e7e8ec);
  --adpx-surface: var(--nx-bg-elevated, #fff);
  --adpx-soft: var(--nx-bg-soft, #f5f6f8);
  --adpx-ease: cubic-bezier(.2,.8,.2,1);
}

.adpx-product-module {
  position: relative;
  isolation: isolate;
  margin-block: clamp(26px, 5vw, 64px);
  padding: clamp(18px, 2.5vw, 34px);
  border: 1px solid color-mix(in srgb, var(--adpx-line) 82%, transparent);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--adpx-accent) 10%, transparent), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--adpx-surface) 96%, transparent), var(--adpx-soft));
  box-shadow: 0 25px 80px rgba(17,20,28,.09);
  overflow: hidden;
}

.adpx-product-module::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--adpx-accent), #ff7b82, transparent 72%);
  pointer-events: none;
}

.adpx-product-module .module-head {
  position: relative;
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-right: 180px;
}

.adpx-product-module .module-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--adpx-ink);
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.adpx-product-module .module-title img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.adpx-product-module .module-head > span {
  display: block;
  margin-top: 9px;
  color: var(--adpx-muted);
  font-size: 13px;
}

.adpx-product-module .module-head::after {
  content: "ADEPTDEV EXPERIENCE";
  position: absolute;
  top: 4px;
  right: 0;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--adpx-accent) 24%, transparent);
  border-radius: 999px;
  background: var(--adpx-surface);
  color: var(--adpx-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.adpx-product-card {
  position: relative;
  transform: translateZ(0);
  border: 1px solid color-mix(in srgb, var(--adpx-line) 88%, transparent) !important;
  border-radius: 22px !important;
  background: var(--adpx-surface) !important;
  box-shadow: 0 12px 34px rgba(17,20,28,.075) !important;
  overflow: hidden;
  transition:
    transform .32s var(--adpx-ease),
    box-shadow .32s var(--adpx-ease),
    border-color .32s var(--adpx-ease) !important;
}

.adpx-product-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--adpx-accent) 27%, var(--adpx-line)) !important;
  box-shadow: 0 28px 60px rgba(17,20,28,.15) !important;
}

.adpx-product-card .image {
  position: relative;
  margin: 0 !important;
  border-radius: 17px !important;
  background:
    radial-gradient(circle at 50% 30%, #fff, #f1f3f6 72%) !important;
  overflow: hidden;
}

.adpx-product-card .image img {
  transition: transform .45s var(--adpx-ease), filter .45s var(--adpx-ease);
}

.adpx-product-card:hover .image img {
  transform: scale(1.055);
  filter: saturate(1.035) contrast(1.015);
}

.adpx-product-card .caption > a {
  color: var(--adpx-ink) !important;
  font-weight: 760 !important;
  letter-spacing: -.025em;
}

.adpx-product-card .model {
  color: var(--adpx-muted) !important;
  font-size: 10px !important;
  letter-spacing: .03em;
}

.adpx-product-card .price .new {
  color: var(--adpx-ink) !important;
  font-weight: 900 !important;
  letter-spacing: -.045em;
}

.adpx-product-card .price .new.sale {
  color: var(--adpx-accent) !important;
}

.adpx-product-card .cart-one,
.adpx-product-card .cart-two {
  position: relative;
  overflow: hidden;
  transition:
    transform .22s var(--adpx-ease),
    box-shadow .22s var(--adpx-ease),
    background-color .22s var(--adpx-ease) !important;
}

.adpx-product-card .cart-one:hover,
.adpx-product-card .cart-two:hover {
  transform: translateY(-2px);
}

.adpx-product-card .nx-cart-button.is-loading {
  pointer-events: none;
  opacity: .78;
}

.adpx-product-card .nx-cart-button.is-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: adpxSpin .72s linear infinite;
}

.adpx-product-card .nx-cart-button.is-added {
  border-color: var(--adpx-success) !important;
  background: var(--adpx-success) !important;
  color: #fff !important;
}

@keyframes adpxSpin { to { transform: rotate(360deg); } }

.adpx-quick-view {
  position: absolute;
  z-index: 8;
  right: 12px;
  bottom: 12px;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 12px;
  background: rgba(20,22,28,.82);
  color: #fff;
  font: 800 11px/1 "Onest", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(0,0,0,.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .24s ease, transform .24s var(--adpx-ease), background .24s ease;
}

.adpx-product-card:hover .adpx-quick-view,
.adpx-quick-view:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.adpx-quick-view:hover {
  background: var(--adpx-accent);
}

.adpx-reveal {
  opacity: 0;
  transform: translateY(18px) scale(.985);
}

.adpx-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .55s var(--adpx-ease);
}

/* Quick-view sheet */
.adpx-sheet {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: none;
}

.adpx-sheet.is-open { display: block; }

.adpx-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,11,15,.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .28s ease;
}

.adpx-sheet.is-visible .adpx-sheet__backdrop { opacity: 1; }

.adpx-sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 100%);
  height: 100%;
  padding: 24px;
  background: var(--adpx-surface);
  color: var(--adpx-ink);
  box-shadow: -30px 0 90px rgba(0,0,0,.25);
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform .38s var(--adpx-ease);
}

.adpx-sheet.is-visible .adpx-sheet__panel { transform: translateX(0); }

.adpx-sheet__close {
  position: sticky;
  z-index: 4;
  top: 0;
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--adpx-line);
  border-radius: 14px;
  background: var(--adpx-surface);
  color: var(--adpx-ink);
  font-size: 24px;
  cursor: pointer;
}

.adpx-sheet__media {
  min-height: 330px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 30%, #fff, #eef1f5);
}

.adpx-sheet__media img {
  max-width: 90%;
  max-height: 310px;
  object-fit: contain;
}

.adpx-sheet__model {
  margin-top: 22px;
  color: var(--adpx-muted);
  font-size: 11px;
}

.adpx-sheet__title {
  margin: 7px 0 14px;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.adpx-sheet__price {
  margin-bottom: 20px;
  font-size: 25px;
  font-weight: 900;
  color: var(--adpx-accent);
}

.adpx-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adpx-sheet__action {
  min-height: 52px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-weight: 850;
  text-decoration: none !important;
}

.adpx-sheet__action--primary {
  border: 0;
  background: linear-gradient(135deg, var(--adpx-accent), var(--adpx-accent-dark));
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 15px 30px color-mix(in srgb, var(--adpx-accent) 28%, transparent);
}

.adpx-sheet__action--secondary {
  border: 1px solid var(--adpx-line);
  background: var(--adpx-soft);
  color: var(--adpx-ink) !important;
}

/* Toast */
.adpx-toast-stack {
  position: fixed;
  z-index: 100100;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.adpx-toast {
  min-width: min(350px, calc(100vw - 36px));
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(20,22,28,.92);
  color: #fff;
  box-shadow: 0 22px 55px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
  transform: translateY(14px);
  opacity: 0;
  transition: opacity .24s ease, transform .28s var(--adpx-ease);
}

.adpx-toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .adpx-product-module {
    padding: 16px 12px;
    border-radius: 23px;
  }
  .adpx-product-module .module-head { padding-right: 0; }
  .adpx-product-module .module-head::after { display: none; }
  .adpx-quick-view {
    opacity: 1;
    transform: none;
    min-width: 40px;
    padding: 0 10px;
  }
  .adpx-sheet__panel { padding: 16px; }
  .adpx-sheet__media { min-height: 260px; }
  .adpx-sheet__media img { max-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .adpx-product-card,
  .adpx-product-card *,
  .adpx-sheet *,
  .adpx-toast {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   ADEPTDEV NEXUS EXPERIENCE V1.1 — VISUAL FIX PACK
   ============================================================ */

.adpx-product-module .module-head::after {
  content: "ADEPTDEV EXPERIENCE" !important;
}

.adpx-product-module .module-title img {
  flex: 0 0 38px;
  overflow: hidden;
  font-size: 0;
}
.adpx-product-module .module-title img.adpx-image-error {
  display: none !important;
}

.adpx-product-module .swiper-wrapper {
  align-items: stretch;
}
.adpx-product-module .swiper-slide {
  height: auto !important;
}
.adpx-product-module .swiper-slide > .adpx-product-card {
  height: 100%;
}
.adpx-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.adpx-product-card .caption {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.adpx-product-card .caption .price {
  margin-top: auto !important;
}
.adpx-product-card .caption > .cart-one,
.adpx-product-card .caption > .cart-two,
.adpx-product-card .caption > .wild {
  flex: 0 0 auto;
}

.adpx-product-card .image {
  min-height: 205px;
  display: grid;
  place-items: center;
}
.adpx-product-card .image > a {
  width: 100%;
  height: 100%;
  min-height: 205px;
  display: grid;
  place-items: center;
}
.adpx-product-card .image img {
  display: block;
  max-width: 100%;
  width: 190px !important;
  height: 190px !important;
  margin: 8px auto !important;
  object-fit: contain !important;
  color: transparent;
}
.adpx-product-card .image img.adpx-image-error {
  opacity: 0;
}
.adpx-product-card .image.adpx-has-image-error::before {
  content: "";
  width: 62px;
  height: 62px;
  border: 2px solid color-mix(in srgb, var(--adpx-line) 80%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 46%, var(--adpx-line) 47% 53%, transparent 54%),
    radial-gradient(circle at 32% 33%, var(--adpx-line) 0 7px, transparent 8px);
  opacity: .72;
}
.adpx-product-card .image.adpx-has-image-error::after {
  content: "Изображение недоступно";
  margin-top: -48px;
  color: var(--adpx-muted);
  font-size: 11px;
  font-weight: 700;
}

.adpx-quick-view {
  right: 12px !important;
  bottom: 12px !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--adpx-ink) !important;
  box-shadow: 0 12px 28px rgba(17,20,28,.16) !important;
}
.adpx-quick-view span:last-child {
  display: none !important;
}
.adpx-quick-view span:first-child {
  font-size: 17px;
  line-height: 1;
}
.adpx-quick-view:hover {
  background: var(--adpx-accent) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

.adpx-product-card .nx-cart-button.is-added {
  border-color: var(--adpx-accent) !important;
  background: color-mix(in srgb, var(--adpx-accent) 8%, var(--adpx-surface)) !important;
  color: var(--adpx-accent) !important;
  box-shadow: none !important;
}
.adpx-product-card .nx-cart-button.is-added svg path:first-child {
  fill: color-mix(in srgb, var(--adpx-accent) 8%, white) !important;
  stroke: var(--adpx-accent) !important;
}
.adpx-product-card .nx-cart-button.is-added svg path:not(:first-child) {
  stroke: var(--adpx-accent) !important;
}

.adpx-product-card .labels {
  max-width: calc(100% - 58px);
}
.adpx-product-card .btns {
  right: 12px !important;
  top: 12px !important;
}
.adpx-product-card .btns button {
  margin-bottom: 8px !important;
}
.adpx-product-card .caption > a {
  height: auto !important;
  min-height: 42px;
  max-height: 44px;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.15 !important;
}

.adpx-product-module .featured-list .product-layout.big .adpx-product-card {
  padding: 16px !important;
}
.adpx-product-module .featured-list-list .adpx-product-card {
  padding: 12px !important;
}
.adpx-product-module .featured-list-list .adpx-product-card .image,
.adpx-product-module .featured-list-list .adpx-product-card .image > a {
  min-height: 150px;
}
.adpx-product-module .featured-list-list .adpx-product-card .image img {
  width: 145px !important;
  height: 145px !important;
}

@media (max-width: 820px) {
  .adpx-quick-view {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
  .adpx-product-card .image,
  .adpx-product-card .image > a {
    min-height: 180px;
  }
  .adpx-product-card .image img {
    width: 165px !important;
    height: 165px !important;
  }
}


/* ============================================================
   ADEPTDEV NEXUS EXPERIENCE V1.2
   Layout + Cart CTA + Quick View redesign
   ============================================================ */

.adpx-product-card .adpx-legacy-cart-two { display: none !important; }

/* Fix giant empty area in the first large product card */
.adpx-product-module .product-layout.big .adpx-product-card {
  display: block !important;
  min-height: 0 !important;
}
.adpx-product-module .product-layout.big .caption {
  display: block !important;
  min-height: 0 !important;
}
.adpx-product-module .product-layout.big .caption .price {
  margin-top: 26px !important;
  padding-top: 0 !important;
}
.adpx-product-module .product-layout.big .rating {
  margin: 18px 0 0 !important;
}
.adpx-product-module .product-layout.big .nx-cart-button {
  margin-top: 18px !important;
}

/* Consistent card structure elsewhere */
.adpx-product-module .featured-list-list .adpx-product-card,
.adpx-product-module .swiper-slide .adpx-product-card {
  display: flex;
  flex-direction: column;
}
.adpx-product-module .featured-list-list .caption,
.adpx-product-module .swiper-slide .caption {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.adpx-product-module .featured-list-list .caption .price,
.adpx-product-module .swiper-slide .caption .price {
  margin-top: auto !important;
  padding-top: 14px;
}

/* New AdeptDEV cart button */
.adpx-product-card .nx-cart-button {
  position: relative !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 5px 6px 5px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border: 1px solid var(--adpx-accent) !important;
  border-radius: 15px !important;
  background: #fff !important;
  color: var(--adpx-accent) !important;
  font: 850 12px/1 "Onest", Arial, sans-serif !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transform: translateZ(0);
  transition:
    color .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .25s var(--adpx-ease),
    transform .22s var(--adpx-ease) !important;
}
.adpx-product-card .nx-cart-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--adpx-accent), #ef5961);
  transform: translateX(-102%);
  transition: transform .34s var(--adpx-ease);
  z-index: 0;
}
.adpx-product-card .nx-cart-button:hover {
  color: #fff !important;
  border-color: var(--adpx-accent) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 28px rgba(215,54,61,.22) !important;
}
.adpx-product-card .nx-cart-button:hover::before {
  transform: translateX(0);
}
.adpx-product-card .nx-cart-button__label,
.adpx-product-card .nx-cart-button__icon {
  position: relative;
  z-index: 1;
}
.adpx-product-card .nx-cart-button__label {
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
}
.adpx-product-card .nx-cart-button__text {
  display: block;
  white-space: nowrap;
}
.adpx-product-card .nx-cart-button__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: var(--adpx-accent);
  transition: transform .25s var(--adpx-ease), background-color .22s ease, color .22s ease;
}
.adpx-product-card .nx-cart-button__icon svg {
  width: 20px;
  height: 20px;
}
.adpx-product-card .nx-cart-button__icon path {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.adpx-product-card .nx-cart-button__check { opacity: 0; }
.adpx-product-card .nx-cart-button:hover .nx-cart-button__icon {
  transform: rotate(-4deg) scale(1.04);
  background: #fff;
}

/* Added state: full green text + check, exactly readable */
.adpx-product-card .nx-cart-button.is-added,
.adpx-product-card .nx-cart-button.is-added:hover {
  border-color: #23a865 !important;
  background: #23a865 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(35,168,101,.22) !important;
}
.adpx-product-card .nx-cart-button.is-added::before { display: none; }
.adpx-product-card .nx-cart-button.is-added .nx-cart-button__icon {
  color: #23a865;
  background: #fff;
  border-color: #fff;
}
.adpx-product-card .nx-cart-button.is-added .nx-cart-button__plus { opacity: 0; }
.adpx-product-card .nx-cart-button.is-added .nx-cart-button__check { opacity: 1; }
.adpx-product-card .nx-cart-button.is-loading .nx-cart-button__icon {
  animation: adpxSpin .72s linear infinite;
}

/* Quick View: eye icon, not a dot */
.adpx-quick-view {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.94) !important;
  color: #24262c !important;
}
.adpx-quick-view__icon {
  width: 22px;
  height: 22px;
}
.adpx-quick-view__icon path,
.adpx-quick-view__icon circle {
  stroke: currentColor;
  stroke-width: 1.7;
}
.adpx-quick-view__label { display: none !important; }
.adpx-quick-view:hover {
  background: var(--adpx-accent) !important;
  color: #fff !important;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 16px 30px rgba(215,54,61,.26) !important;
}

/* Quick View price clarity */
.adpx-sheet__pricebox {
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid var(--adpx-line);
  border-radius: 18px;
  background: var(--adpx-soft);
}
.adpx-sheet__price-label {
  margin-bottom: 7px;
  color: var(--adpx-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.adpx-sheet__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.adpx-sheet__price-current {
  color: var(--adpx-accent);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 950;
  letter-spacing: -.05em;
}
.adpx-sheet__price-old {
  color: var(--adpx-muted);
  font-size: 15px;
  text-decoration: line-through;
}
.adpx-sheet__saving {
  margin-top: 8px;
  color: var(--adpx-muted);
  font-size: 11px;
}

/* Ensure hover never hides button text */
.adpx-product-card .nx-cart-button:hover .nx-cart-button__text,
.adpx-product-card .nx-cart-button:focus .nx-cart-button__text {
  opacity: 1 !important;
  visibility: visible !important;
  color: inherit !important;
}


/* ============================================================
   ADEPTDEV NEXUS EXPERIENCE V1.3 — FINAL POLISH
   ============================================================ */

/* 1. Reliable cart state in every card type, including the large first card */
.adpx-product-card.carted .nx-cart-button,
.adpx-product-card .nx-cart-button.is-added,
.adpx-product-card.carted .nx-cart-button:hover,
.adpx-product-card .nx-cart-button.is-added:hover {
  border-color: #23a865 !important;
  background: linear-gradient(135deg, #28b66f, #1fa45f) !important;
  color: #fff !important;
  box-shadow: 0 13px 28px rgba(35,168,101,.23) !important;
}
.adpx-product-card.carted .nx-cart-button::before,
.adpx-product-card .nx-cart-button.is-added::before {
  display: none !important;
}
.adpx-product-card.carted .nx-cart-button__text,
.adpx-product-card .nx-cart-button.is-added .nx-cart-button__text {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
}
.adpx-product-card.carted .nx-cart-button__icon,
.adpx-product-card .nx-cart-button.is-added .nx-cart-button__icon {
  color: #23a865 !important;
  background: #fff !important;
  border-color: #fff !important;
}
.adpx-product-card.carted .nx-cart-button__plus,
.adpx-product-card .nx-cart-button.is-added .nx-cart-button__plus {
  opacity: 0 !important;
}
.adpx-product-card.carted .nx-cart-button__check,
.adpx-product-card .nx-cart-button.is-added .nx-cart-button__check {
  opacity: 1 !important;
}

/* 2. "Show more" opens a separate, breathing grid instead of gluing rows */
.adpx-product-module .featured-list-list.rest-list {
  clear: both !important;
  width: 100% !important;
  margin-top: 26px !important;
  padding-top: 26px !important;
  border-top: 1px solid color-mix(in srgb, var(--adpx-line) 86%, transparent);
  align-items: stretch;
  row-gap: 24px !important;
}
.adpx-product-module .featured-list-list.rest-list.nope {
  display: none !important;
}
.adpx-product-module .featured-list-list.rest-list.adpx-rest-opening {
  display: grid !important;
  opacity: 0;
  transform: translateY(-10px);
}
.adpx-product-module .featured-list-list.rest-list.adpx-rest-opening.is-visible,
.adpx-product-module .featured-list-list.rest-list.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .42s ease, transform .5s var(--adpx-ease);
}
.adpx-product-module .featured-list-list.rest-list .product-layout {
  margin-bottom: 0 !important;
}
.adpx-product-module .btn-moree {
  transition: opacity .22s ease, transform .25s var(--adpx-ease);
}
.adpx-product-module .btn-moree.is-leaving {
  opacity: 0;
  transform: translateY(8px) scale(.97);
  pointer-events: none;
}

/* 3. Slider controls always visible and clickable inside module bounds */
.adpx-product-module {
  overflow: visible !important;
}
.adpx-product-module .adpx-swiper-controls {
  position: absolute !important;
  inset: 50% 12px auto 12px !important;
  z-index: 35 !important;
  height: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%);
}
.adpx-product-module .adpx-swiper-controls .swiper-button-prevv,
.adpx-product-module .adpx-swiper-controls .swiper-button-nextt {
  position: absolute !important;
  top: 0 !important;
  width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(215,54,61,.30) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 12px 28px rgba(17,20,28,.14) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transform: translateY(-50%) !important;
  transition: transform .22s var(--adpx-ease), box-shadow .22s ease, background-color .22s ease !important;
}
.adpx-product-module .adpx-swiper-controls .swiper-button-prevv {
  left: -4px !important;
}
.adpx-product-module .adpx-swiper-controls .swiper-button-nextt {
  right: -4px !important;
}
.adpx-product-module .adpx-swiper-controls .swiper-button-prevv:hover,
.adpx-product-module .adpx-swiper-controls .swiper-button-nextt:hover {
  background: var(--adpx-accent) !important;
  box-shadow: 0 16px 32px rgba(215,54,61,.24) !important;
  transform: translateY(-50%) scale(1.06) !important;
}
.adpx-product-module .adpx-swiper-controls .swiper-button-prevv:hover svg path,
.adpx-product-module .adpx-swiper-controls .swiper-button-nextt:hover svg path {
  stroke: #fff !important;
}
.adpx-product-module .swiper-wrapper {
  transition-timing-function: var(--adpx-ease) !important;
}

/* 4. Quick View is now a compact centered overlay, never a giant side panel */
.adpx-sheet {
  padding: 24px;
  place-items: center;
}
.adpx-sheet.is-open {
  display: grid !important;
}
.adpx-sheet__backdrop {
  background: rgba(14,16,22,.48) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
}
.adpx-sheet__panel {
  position: relative !important;
  inset: auto !important;
  width: min(720px, calc(100vw - 32px)) !important;
  height: auto !important;
  max-height: min(620px, calc(100vh - 40px)) !important;
  padding: 18px !important;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 26px !important;
  box-shadow: 0 35px 100px rgba(0,0,0,.30) !important;
  overflow-y: auto !important;
  transform: translateY(18px) scale(.96) !important;
  opacity: 0;
  transition: transform .32s var(--adpx-ease), opacity .24s ease !important;
}
.adpx-sheet.is-visible .adpx-sheet__panel {
  transform: none !important;
  opacity: 1;
}
.adpx-sheet__content {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.1fr);
  column-gap: 22px;
  align-items: center;
}
.adpx-sheet__media {
  grid-row: 1 / span 5;
  min-height: 280px !important;
  margin: 0 !important;
  border-radius: 20px !important;
}
.adpx-sheet__media img {
  max-height: 250px !important;
}
.adpx-sheet__model {
  margin-top: 8px !important;
}
.adpx-sheet__title {
  margin: 6px 0 12px !important;
  font-size: clamp(22px, 3vw, 32px) !important;
}
.adpx-sheet__pricebox {
  margin: 8px 0 16px !important;
  padding: 14px !important;
}
.adpx-sheet__price-current {
  font-size: clamp(25px, 3vw, 34px) !important;
}
.adpx-sheet__actions {
  grid-template-columns: 1fr 1fr !important;
}
.adpx-sheet__close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 8 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
}

/* Quick View trigger stays tiny and floats over the image */
.adpx-quick-view {
  right: 10px !important;
  bottom: 10px !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 11px !important;
}
.adpx-quick-view__icon {
  width: 18px !important;
  height: 18px !important;
}

@media (max-width: 820px) {
  .adpx-product-module .adpx-swiper-controls {
    inset-inline: 4px !important;
  }
  .adpx-product-module .adpx-swiper-controls .swiper-button-prevv,
  .adpx-product-module .adpx-swiper-controls .swiper-button-nextt {
    width: 38px !important;
    height: 38px !important;
  }
  .adpx-sheet {
    padding: 12px;
  }
  .adpx-sheet__panel {
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    padding: 14px !important;
  }
  .adpx-sheet__content {
    grid-template-columns: 1fr;
  }
  .adpx-sheet__media {
    grid-row: auto;
    min-height: 210px !important;
    margin-bottom: 12px !important;
  }
  .adpx-sheet__media img {
    max-height: 190px !important;
  }
  .adpx-sheet__actions {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   ADEPTDEV NEXUS EXPERIENCE V1.4
   Persistent "Товар в корзине" state
   ============================================================ */

/* Keep added-state label permanently visible, not only on hover */
.adpx-product-card .nx-cart-button.is-added .nx-cart-button__label,
.adpx-product-card.carted .nx-cart-button .nx-cart-button__label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.adpx-product-card .nx-cart-button.is-added .nx-cart-button__text,
.adpx-product-card.carted .nx-cart-button .nx-cart-button__text {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  transform: none !important;
}

/* Prevent old theme rules from replacing/hiding the label outside hover */
.adpx-product-card .nx-cart-button.is-added:not(:hover) .nx-cart-button__text,
.adpx-product-card.carted .nx-cart-button:not(:hover) .nx-cart-button__text {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
}

/* Added button always uses the full green visual state */
.adpx-product-card .nx-cart-button.is-added,
.adpx-product-card.carted .nx-cart-button {
  justify-content: space-between !important;
  background: linear-gradient(135deg, #28b66f, #1fa45f) !important;
  border-color: #23a865 !important;
  color: #fff !important;
}

/* On compact cards keep enough room for the full text */
.adpx-product-module .featured-list-list .nx-cart-button.is-added,
.adpx-product-module .swiper-slide .nx-cart-button.is-added,
.adpx-product-module .featured-list-list .carted .nx-cart-button,
.adpx-product-module .swiper-slide .carted .nx-cart-button {
  padding-left: 14px !important;
}

@media (max-width: 420px) {
  .adpx-product-card .nx-cart-button.is-added .nx-cart-button__text,
  .adpx-product-card.carted .nx-cart-button .nx-cart-button__text {
    font-size: 11px !important;
  }
}


/* ============================================================
   ADEPTDEV NEXUS V1.7 — REAL COMPACT BUTTON FIX
   Fixes the exact ADEPTDEV selector that collapsed the button:
   .featured-list-list .product-thumb .caption > button
   ============================================================ */

/* Restore the full CTA geometry in compact Featured cards */
.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  margin-top: 14px !important;
  padding: 5px 6px 5px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border: 1px solid var(--adpx-accent) !important;
  border-radius: 15px !important;
  background: #fff !important;
  color: var(--adpx-accent) !important;
  transform: none !important;
}

/* Disable the old 90-degree icon-only hover effect */
.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button:hover {
  transform: translateY(-2px) !important;
}

/* Added state: full green button with permanent text */
.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button.is-added,

.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card.carted
.caption
> button.nx-cart-button {
  width: 100% !important;
  background: linear-gradient(135deg, #28b66f, #1fa45f) !important;
  border-color: #23a865 !important;
  color: #fff !important;
  box-shadow: 0 13px 28px rgba(35,168,101,.23) !important;
}

.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button.is-added
.nx-cart-button__label,

.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card.carted
.caption
> button.nx-cart-button
.nx-cart-button__label {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button.is-added
.nx-cart-button__text,

.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card.carted
.caption
> button.nx-cart-button
.nx-cart-button__text {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
  white-space: nowrap !important;
  transform: none !important;
}

.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button.is-added::before,

.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card.carted
.caption
> button.nx-cart-button::before {
  display: none !important;
}

/* Keep icon aligned at the right edge */
.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button
.nx-cart-button__icon {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
}

/* Preserve the same result on hover */
.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button.is-added:hover,

.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card.carted
.caption
> button.nx-cart-button:hover {
  background: linear-gradient(135deg, #28b66f, #1fa45f) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}


/* ============================================================
   ADEPTDEV NEXUS V1.8
   Hover contrast fix + premium solid heading marks
   ============================================================ */

/* 1. Cart hover: text must stay solid white on red background */
.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button:not(.is-added):hover,

.adpx-product-module
.featured-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button:not(.is-added):hover,

.adpx-product-module
.swiper-slide
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button:not(.is-added):hover {
  color: #fff !important;
  background: linear-gradient(135deg, #e23b46, #c92735) !important;
  border-color: #d7363d !important;
  box-shadow: 0 14px 30px rgba(215,54,61,.24) !important;
}

.adpx-product-module
.featured-list-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button:not(.is-added):hover
.nx-cart-button__text,

.adpx-product-module
.featured-list
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button:not(.is-added):hover
.nx-cart-button__text,

.adpx-product-module
.swiper-slide
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button:not(.is-added):hover
.nx-cart-button__text {
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
  filter: none !important;
}

.adpx-product-module
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button:not(.is-added):hover
.nx-cart-button__icon {
  background: #fff !important;
  color: #d7363d !important;
  border-color: #fff !important;
}

/* Prevent shimmer/overlay from crossing the text */
.adpx-product-module
.product-thumb.adpx-product-card
.caption
> button.nx-cart-button:not(.is-added):hover::before {
  opacity: 0 !important;
  transform: none !important;
}

/* 2. Premium title signs */
.adpx-product-module .module-title {
  position: relative !important;
  min-height: 50px;
  padding-left: 64px !important;
  display: flex !important;
  align-items: center !important;
}

.adpx-product-module .module-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(215,54,61,.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.96), rgba(255,255,255,.62) 38%, transparent 39%),
    linear-gradient(145deg, rgba(215,54,61,.15), rgba(215,54,61,.045));
  box-shadow:
    0 14px 34px rgba(215,54,61,.14),
    inset 0 1px 0 rgba(255,255,255,.92);
}

.adpx-product-module .module-title::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ADEPTDEV рекомендует — premium shield/star */
.adpx-product-module.adpx-title-recommend .module-title::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 2.75 19 5.5v5.25c0 4.3-2.9 8.2-7 10.5-4.1-2.3-7-6.2-7-10.5V5.5L12 2.75Z' stroke='%23d7363d' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='m12 7.2 1.27 2.58 2.85.41-2.06 2.01.49 2.84L12 13.7l-2.55 1.34.49-2.84-2.06-2.01 2.85-.41L12 7.2Z' fill='%23d7363d'/%3E%3C/svg%3E");
}

/* Предложение месяца — premium calendar/spark */
.adpx-product-module.adpx-title-month .module-title::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='3.5' stroke='%23d7363d' stroke-width='1.7'/%3E%3Cpath d='M8 3.5v3M16 3.5v3M3.5 9h17' stroke='%23d7363d' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='m12 11 1 2.03 2.24.32-1.62 1.58.38 2.23L12 16.1l-2 1.06.38-2.23-1.62-1.58 2.24-.32L12 11Z' fill='%23d7363d'/%3E%3C/svg%3E");
}

/* Hide old title image only for the two classified sections */
.adpx-product-module.adpx-title-recommend .module-title > img,
.adpx-product-module.adpx-title-month .module-title > img {
  display: none !important;
}

@media (max-width: 620px) {
  .adpx-product-module .module-title {
    min-height: 44px;
    padding-left: 54px !important;
  }

  .adpx-product-module .module-title::before {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .adpx-product-module .module-title::after {
    left: 10px;
    width: 22px;
    height: 22px;
  }
}
