.abzarwp-cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.abzarwp-cart-link__icon { display: inline-flex; align-items: center; justify-content: center; }
.abzarwp-cart-link b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 99px; background: #6754e9; color: #fff; font-size: 12px; }
.abzarwp-header-cart .abzarwp-cart-link { min-width: 44px; min-height: 44px; justify-content: center; color: #424750; text-decoration: none; }
.abzarwp-header-cart .abzarwp-cart-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.abzarwp-header-cart .abzarwp-cart-link b { position: absolute; inset: -2px auto auto -5px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; line-height: 1; }
.abzarwp-header-cart .elementor-shortcode { display: flex; align-items: center; justify-content: center; }

/* Shared-cache-safe purchase card. Price stays SSR; quantity is a local input. */
.abzarwp-purchase-panel,
.abzarwp-purchase-panel * { box-sizing: border-box; }

.abzarwp-purchase-panel {
  --abzarwp-buy-accent: #e41456;
  --abzarwp-buy-accent-deep: #bd0d43;
  --abzarwp-buy-ink: #15213d;
  --abzarwp-buy-focus: rgba(228, 20, 86, 0.22);
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% -20%, rgba(255, 76, 129, 0.13), transparent 34%),
    linear-gradient(150deg, #fff 0%, #fbfcff 62%, #f7f9fd 100%);
  color: var(--abzarwp-buy-ink);
  direction: rtl;
  text-align: right;
  box-shadow: 0 20px 48px rgba(25, 38, 70, 0.11), 0 4px 13px rgba(25, 38, 70, 0.045), inset 0 1px #fff;
}

.abzarwp-purchase-panel::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #ff6a91 20%, var(--abzarwp-buy-accent) 52%, #6d28d9 86%, transparent);
  content: "";
}

.abzarwp-purchase-panel .atomic-buy-btn[data-abzarwp-role="purchase-price"] {
  display: block !important;
  width: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: default;
  transform: none !important;
}

.abzarwp-purchase-panel .atomic-buy-btn[data-abzarwp-role="purchase-price"] > .e-svg-base,
.abzarwp-purchase-panel .atomic-buy-btn[data-abzarwp-role="purchase-price"] > p:last-of-type { display: none !important; }

.abzarwp-purchase-panel .atomic-buy-btn[data-abzarwp-role="purchase-price"] > p:first-of-type {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 !important;
  padding: 4px 2px 15px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--abzarwp-buy-ink) !important;
  font-size: 0 !important;
  line-height: 1.25 !important;
}

.abzarwp-purchase-panel .atomic-buy-btn[data-abzarwp-role="purchase-price"] > p:first-of-type::before {
  display: block;
  margin-bottom: 6px;
  color: #778197;
  content: "قیمت نهایی محصول";
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.abzarwp-purchase-panel .abzarwp-product-price {
  display: flex !important;
  width: 100%;
  min-width: 0;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px 9px;
  color: var(--abzarwp-buy-ink);
}

.abzarwp-purchase-panel .abzarwp-product-price__current {
  order: 0;
  color: #111a31;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.abzarwp-purchase-panel .abzarwp-product-price::after {
  order: 1;
  align-self: flex-end;
  margin: 0 -4px 4px 6px;
  color: #5e6980;
  content: "تومان";
  font-size: 13px;
  font-weight: 750;
}

.abzarwp-purchase-panel .abzarwp-product-price__regular {
  order: 2;
  color: #9aa3b4;
  font-size: 13px;
  font-weight: 650;
  text-decoration-thickness: 1.5px;
}

.abzarwp-purchase-panel .abzarwp-product-price__badge {
  order: 3;
  padding: 4px 9px;
  border: 1px solid #a7efc6;
  border-radius: 999px;
  background: #eafbf1;
  color: #087a4d;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.5;
}

.abzarwp-purchase-panel .abzarwp-product-status {
  color: #475467;
  font-size: 23px;
  font-weight: 900;
}

.abzarwp-purchase-panel__license {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px !important;
  padding: 10px 12px !important;
  border: 1px solid #e8ebf2;
  border-radius: 12px;
  background: rgba(247, 249, 252, 0.82);
  color: #5d677b;
  font-size: 11.5px !important;
  font-weight: 650;
  line-height: 1.7 !important;
}

.abzarwp-purchase-panel__license > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #087a4d;
  font-size: 12px;
  font-weight: 900;
}

.abzarwp-purchase-panel__controls {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.abzarwp-purchase-panel.has-no-quantity .abzarwp-purchase-panel__controls { grid-template-columns: 1fr; }
.abzarwp-purchase-quantity[hidden] { display: none !important; }

.abzarwp-purchase-quantity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.abzarwp-purchase-quantity__label {
  padding-inline: 3px;
  color: #707a8f;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.4;
}

.abzarwp-purchase-quantity__stepper {
  display: grid;
  height: 66px;
  grid-template-columns: 43px 56px 43px;
  overflow: hidden;
  border: 1px solid #dce2ec;
  border-radius: 17px;
  background: #fff;
  direction: ltr;
  box-shadow: 0 6px 17px rgba(20, 34, 63, 0.07), inset 0 1px #fff;
}

.abzarwp-purchase-quantity__stepper button {
  display: grid !important;
  width: 43px !important;
  min-width: 43px !important;
  height: 64px !important;
  min-height: 64px !important;
  place-items: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f4f6fa !important;
  background-image: none !important;
  color: #26324c !important;
  font: inherit !important;
  font-size: 22px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 160ms ease, color 160ms ease;
}

.abzarwp-purchase-quantity__stepper button:hover:not(:disabled) { background: #e9edf5 !important; color: var(--abzarwp-buy-accent) !important; }
.abzarwp-purchase-quantity__stepper button:disabled { color: #bdc4d0 !important; cursor: not-allowed; }

.abzarwp-purchase-quantity__stepper input {
  width: 56px !important;
  min-width: 0 !important;
  height: 64px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-right: 1px solid #edf0f5 !important;
  border-left: 1px solid #edf0f5 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: #fff !important;
  color: #17213a !important;
  font: inherit !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: none !important;
  appearance: textfield;
  -moz-appearance: textfield;
}

.abzarwp-purchase-quantity__stepper input::-webkit-inner-spin-button,
.abzarwp-purchase-quantity__stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }

.abzarwp-purchase-action {
  position: relative;
  display: grid !important;
  min-width: 0;
  min-height: 66px;
  grid-template-columns: 46px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 8px 13px 8px 12px !important;
  overflow: hidden;
  border: 1px solid rgba(150, 0, 50, 0.2) !important;
  border-radius: 17px !important;
  background: linear-gradient(118deg, #f21d61 0%, var(--abzarwp-buy-accent) 47%, var(--abzarwp-buy-accent-deep) 100%) !important;
  color: #fff !important;
  text-align: right;
  text-decoration: none !important;
  box-shadow: 0 14px 27px rgba(189, 13, 67, 0.24), inset 0 1px rgba(255, 255, 255, 0.24);
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.abzarwp-purchase-action::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, 0.14) 50%, transparent 83%);
  content: "";
  opacity: 0;
  transform: translateX(35%);
  transition: opacity 180ms ease, transform 360ms ease;
}

.abzarwp-purchase-action:hover { color: #fff !important; filter: saturate(1.06) brightness(1.025); transform: translateY(-2px); box-shadow: 0 18px 33px rgba(189, 13, 67, 0.31), inset 0 1px rgba(255, 255, 255, 0.25); }
.abzarwp-purchase-action:hover::before { opacity: 1; transform: translateX(-25%); }
.abzarwp-purchase-action:active { transform: translateY(0) scale(0.992); }
.abzarwp-purchase-action:focus-visible,
.abzarwp-purchase-quantity__stepper :is(button, input):focus-visible { outline: 4px solid var(--abzarwp-buy-focus) !important; outline-offset: 3px; }

.abzarwp-purchase-action__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(76, 0, 27, 0.2);
  color: #fff;
}

.abzarwp-purchase-action__copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.abzarwp-purchase-action__copy strong { color: #fff; font-size: 18px; font-weight: 950; line-height: 1.45; }
.abzarwp-purchase-action__copy small { overflow: hidden; max-width: 100%; color: rgba(255, 255, 255, 0.8); font-size: 10.5px; font-weight: 550; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.abzarwp-purchase-action__arrow { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.9); font-size: 23px; font-weight: 700; transition: transform 180ms ease; }
.abzarwp-purchase-action:hover .abzarwp-purchase-action__arrow { transform: translateX(-3px); }

.abzarwp-purchase-action[aria-busy="true"] { cursor: wait; pointer-events: none; }
.abzarwp-purchase-action[aria-busy="true"] .abzarwp-purchase-action__icon svg { opacity: 0; }
.abzarwp-purchase-action[aria-busy="true"] .abzarwp-purchase-action__icon::after {
  position: absolute;
  width: 21px;
  height: 21px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: abzarwp-spin 700ms linear infinite;
}

.abzarwp-purchase-panel__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  color: #7b8496;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.5;
}

.abzarwp-purchase-panel__trust i { width: 3px; height: 3px; border-radius: 50%; background: #c5cad3; }
.abzarwp-purchase-panel.is-variable { --abzarwp-buy-accent: #5b47e8; --abzarwp-buy-accent-deep: #3e2dad; --abzarwp-buy-focus: rgba(91, 71, 232, 0.22); }
.abzarwp-purchase-panel.is-custom-purchase { --abzarwp-buy-accent: #7c3aed; --abzarwp-buy-accent-deep: #5b21b6; --abzarwp-buy-focus: rgba(124, 58, 237, 0.22); }
.abzarwp-purchase-panel.is-unavailable { --abzarwp-buy-accent: #667085; --abzarwp-buy-accent-deep: #475467; --abzarwp-buy-focus: rgba(102, 112, 133, 0.22); }
.abzarwp-purchase-panel.is-unavailable .abzarwp-purchase-action { cursor: not-allowed; filter: grayscale(0.12); box-shadow: 0 10px 22px rgba(71, 84, 103, 0.18); }
.abzarwp-purchase-panel.is-unavailable .abzarwp-purchase-action:hover { transform: none; }

.abzarwp-cart-layer,
.abzarwp-cart-layer * { box-sizing: border-box; }
.abzarwp-cart-layer[hidden] { display: none !important; }
.abzarwp-cart-is-open { overflow: hidden; }

.abzarwp-cart-backdrop {
  position: fixed;
  z-index: 999998;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: rgba(8, 15, 34, 0.58) !important;
  background-color: rgba(8, 15, 34, 0.58) !important;
  background-image: none !important;
  opacity: 0;
  cursor: default;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity 220ms ease;
}

.abzarwp-cart-drawer {
  position: fixed;
  z-index: 999999;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(430px, 94vw);
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
  color: #172033;
  direction: rtl;
  text-align: right;
  box-shadow: -28px 0 70px rgba(2, 6, 23, 0.24);
  transform: translateX(105%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.abzarwp-cart-layer.is-open .abzarwp-cart-backdrop { opacity: 1; }
.abzarwp-cart-layer.is-open .abzarwp-cart-drawer { transform: translateX(0); }
.abzarwp-cart-drawer:focus { outline: none; }

.abzarwp-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid #edf0f5;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.abzarwp-cart-drawer__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #e11d48;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.1px;
}

.abzarwp-cart-drawer__header h2 {
  margin: 0;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.4;
}

.abzarwp-cart-drawer__close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e7eaf0 !important;
  border-radius: 13px;
  background: #f7f8fb !important;
  background-image: none !important;
  color: #566075 !important;
  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.abzarwp-cart-drawer__close:hover { border-color: #fecdd3 !important; background: #fff1f2 !important; color: #be123c !important; }
.abzarwp-cart-drawer__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px; overscroll-behavior: contain; }

.abzarwp-cart-drawer__status {
  padding: 13px 14px;
  border-radius: 12px;
  background: #f3f6fb;
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.abzarwp-cart-drawer__status[data-type="error"] { background: #fff1f2; color: #9f1239; }
.abzarwp-cart-items { display: grid; gap: 12px; }

.abzarwp-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid #e9edf3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.abzarwp-cart-item:hover { border-color: #dbe2ec; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.075); transform: translateY(-1px); }
.abzarwp-cart-item__media { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border-radius: 14px; background: #f3f5f9; text-decoration: none; }
.abzarwp-cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.abzarwp-cart-item__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #e0f2fe, #dcfce7); color: #087f5b; font-size: 24px; font-weight: 900; }
.abzarwp-cart-item__content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.abzarwp-cart-item__title { max-width: 100%; overflow: hidden; color: #182033; font-size: 13.5px; font-weight: 850; line-height: 1.65; text-decoration: none; text-overflow: ellipsis; }
.abzarwp-cart-item__title:hover { color: #be123c; }
.abzarwp-cart-item__variation,
.abzarwp-cart-item__quantity { color: #7b8495; font-size: 11.5px; }
.abzarwp-cart-item__price { display: flex; flex-flow: row wrap; align-items: center; gap: 5px 7px; margin-top: 3px; }
.abzarwp-cart-item__price strong { color: #047857; font-size: 13px; font-weight: 900; }
.abzarwp-cart-item__price del { color: #9aa1af; font-size: 10.5px; }
.abzarwp-cart-item__price span { padding: 2px 6px; border-radius: 999px; background: #fff1f2; color: #be123c; font-size: 9.5px; font-weight: 800; }

.abzarwp-cart-item__remove {
  align-self: start;
  padding: 5px 7px;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  background-image: none !important;
  color: #9a5b68 !important;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
}

.abzarwp-cart-item__remove:hover { background: #fff1f2 !important; color: #be123c !important; }
.abzarwp-cart-item__remove[aria-busy="true"] { opacity: 0.55; cursor: wait; }

.abzarwp-cart-empty {
  display: grid;
  min-height: 330px;
  place-content: center;
  justify-items: center;
  padding: 34px;
  color: #667085;
  text-align: center;
}

.abzarwp-cart-empty[hidden] { display: none; }
.abzarwp-cart-empty__icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 17px; border-radius: 50%; background: linear-gradient(145deg, #fff1f2, #fdf2f8); color: #e11d48; font-size: 34px; }
.abzarwp-cart-empty strong { margin-bottom: 7px; color: #263044; font-size: 17px; }
.abzarwp-cart-empty p { max-width: 260px; margin: 0; font-size: 12.5px; line-height: 1.9; }

.abzarwp-cart-drawer__footer {
  flex: 0 0 auto;
  padding: 17px 20px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid #e9edf3;
  background: #fff;
  box-shadow: 0 -10px 34px rgba(15, 23, 42, 0.055);
}

.abzarwp-cart-drawer__footer[hidden] { display: none; }
.abzarwp-cart-total { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; color: #5d6678; font-size: 13px; }
.abzarwp-cart-total strong { color: #111827; font-size: 17px; font-weight: 900; }
.abzarwp-cart-checkout { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; border-radius: 14px; background: linear-gradient(105deg, #e11d48, #be123c); color: #fff !important; font-size: 14px; font-weight: 900; text-decoration: none !important; box-shadow: 0 12px 25px rgba(190, 18, 60, 0.22); transition: transform 160ms ease, box-shadow 160ms ease; }
.abzarwp-cart-checkout:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 15px 30px rgba(190, 18, 60, 0.29); }
.abzarwp-cart-drawer__footer small { display: block; margin-top: 10px; color: #8a92a2; font-size: 10.5px; line-height: 1.7; text-align: center; }

.abzarwp-cart-fab {
  position: fixed;
  z-index: 99990;
  top: 120px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 54px;
  height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(136, 19, 55, 0.28);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.abzarwp-cart-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(136, 19, 55, 0.34); }
.abzarwp-cart-fab__icon { display: grid; place-items: center; }
.abzarwp-cart-fab__label { white-space: nowrap; }
.abzarwp-cart-fab__count { position: absolute; top: -7px; right: -5px; display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #172033; color: #fff; font-size: 10px; font-weight: 900; line-height: 1; }
.abzarwp-cart-noscript { position: fixed; z-index: 99990; bottom: 15px; left: 15px; padding: 10px 14px; border-radius: 10px; background: #be123c; color: #fff !important; }
.abzarwp-cart-drawer :is(a, button):focus-visible,
.abzarwp-cart-fab:focus-visible { outline: 3px solid rgba(225, 29, 72, 0.3); outline-offset: 3px; }

@keyframes abzarwp-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .abzarwp-cart-backdrop,
  .abzarwp-cart-drawer,
  .abzarwp-cart-fab,
  .abzarwp-purchase-action,
  .abzarwp-purchase-action::before,
  .abzarwp-purchase-action__arrow,
  .abzarwp-purchase-quantity__stepper button { transition: none; }
  .abzarwp-purchase-action[aria-busy="true"] .abzarwp-purchase-action__icon::after { animation-duration: 1.5s; }
}

@media (max-width: 700px) {
  .abzarwp-purchase-panel { padding: 18px; border-radius: 21px; }
  .abzarwp-purchase-panel .abzarwp-product-price__current { font-size: clamp(28px, 9vw, 35px); }
  .abzarwp-purchase-panel__controls { grid-template-columns: 1fr; gap: 11px; }
  .abzarwp-purchase-quantity { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .abzarwp-purchase-quantity__label { font-size: 11px; }
  .abzarwp-purchase-quantity__stepper { width: 142px; }
  .abzarwp-purchase-action { min-height: 68px; }
  .abzarwp-purchase-panel__license { align-items: flex-start; }
  .abzarwp-cart-fab { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); left: 16px; width: 54px; padding: 0 14px; }
  .abzarwp-cart-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .abzarwp-cart-drawer { width: min(410px, 100vw); }
  .abzarwp-cart-drawer__header { padding: 18px; }
  .abzarwp-cart-drawer__body { padding: 14px; }
  .abzarwp-cart-item { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .abzarwp-cart-item__media { width: 62px; height: 62px; }
}

@media (max-width: 380px) {
  .abzarwp-purchase-panel { padding: 16px; }
  .abzarwp-purchase-panel .abzarwp-product-price__current { font-size: 27px; }
  .abzarwp-purchase-action__copy strong { font-size: 17px; }
  .abzarwp-purchase-panel__trust { gap: 6px; font-size: 9.5px; }
}

@media not all {
/* Retired compact offer-box skin retained only for release archaeology. */
.abzarwp-purchase-panel {
  --abzarwp-buy-accent: #4caf50;
  --abzarwp-buy-accent-deep: #3f9f43;
  --abzarwp-buy-focus: rgba(76, 175, 80, 0.24);
  min-height: 175px;
  padding: 16px;
  overflow: visible;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #f5f5f5;
  color: #1f2937;
  box-shadow: none;
}

.abzarwp-purchase-panel::before { display: none; content: none; }
.abzarwp-purchase-panel__offer { margin-bottom: 14px; }

.abzarwp-purchase-panel__price {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: flex-start;
  font-variant-numeric: tabular-nums;
}

.abzarwp-purchase-panel__price > .abzarwp-product-status {
  margin-right: auto;
  margin-left: 0;
  line-height: 1.5;
}

.abzarwp-purchase-panel .atomic-buy-btn[data-abzarwp-role="purchase-price"] {
  width: min(100%, 290px);
  margin-right: auto !important;
  margin-left: 0 !important;
}

.abzarwp-purchase-panel .atomic-buy-btn[data-abzarwp-role="purchase-price"] > p:first-of-type {
  align-items: stretch;
  padding: 0 !important;
}

.abzarwp-purchase-panel .atomic-buy-btn[data-abzarwp-role="purchase-price"] > p:first-of-type::before {
  display: none;
  content: none;
}

.abzarwp-purchase-panel .abzarwp-product-price {
  display: grid !important;
  width: max-content;
  max-width: 100%;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: end;
  gap: 2px 10px;
  margin-right: auto;
  margin-left: 0;
  color: #ff003c;
  direction: rtl;
}

.abzarwp-purchase-panel .abzarwp-product-price__current {
  grid-row: 1;
  grid-column: 1;
  color: #ff003c;
  font-size: clamp(40px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.abzarwp-purchase-panel .abzarwp-product-price::after {
  grid-row: 1;
  grid-column: 2;
  align-self: end;
  margin: 0 0 10px;
  color: #ff003c;
  content: "تومان";
  font-size: 13px;
  font-weight: 500;
}

.abzarwp-purchase-panel .abzarwp-product-price.is-on-sale .abzarwp-product-price__current,
.abzarwp-purchase-panel .abzarwp-product-price.is-on-sale::after { grid-row: 2; }

.abzarwp-purchase-panel .abzarwp-product-price__regular {
  grid-row: 1;
  grid-column: 1;
  color: rgba(0, 0, 0, 0.3);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration-thickness: 1px;
}

.abzarwp-purchase-panel .abzarwp-product-price__badge {
  grid-row: 1;
  grid-column: 2;
  padding: 3px 10px 2px;
  border: 0;
  border-radius: 999px;
  background: #ff003c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.45);
}

.abzarwp-purchase-panel .abzarwp-product-price__badge::after { content: " تخفیف"; }
.abzarwp-purchase-panel .abzarwp-product-status { color: #ff003c; font-size: 24px; }

.abzarwp-purchase-panel__license {
  display: block;
  margin: 0 0 9px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5224d;
  font-size: 12.5px !important;
  font-weight: 500;
  line-height: 1.8 !important;
}

.abzarwp-purchase-panel__license a {
  color: #333 !important;
  text-decoration: none;
}

.abzarwp-purchase-panel__license a:hover { text-decoration: underline; text-underline-offset: 2px; }

.abzarwp-purchase-panel__controls,
.abzarwp-purchase-panel.has-quantity .abzarwp-purchase-panel__controls {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  direction: rtl;
}

.abzarwp-purchase-panel.has-no-quantity .abzarwp-purchase-panel__controls { grid-template-columns: 1fr; }

.abzarwp-purchase-quantity {
  position: relative;
  display: block;
  min-width: 0;
}

.abzarwp-purchase-quantity__stepper {
  display: grid;
  width: 142px;
  height: 56px;
  grid-template-columns: 44px 52px 44px;
  overflow: hidden;
  border: 2px solid #e5e9ee;
  border-radius: 14px;
  background: #fff;
  direction: ltr;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.abzarwp-purchase-quantity__stepper button {
  width: 44px !important;
  min-width: 44px !important;
  height: 52px !important;
  min-height: 52px !important;
  background: #f3f5f7 !important;
  color: #16a34a !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

.abzarwp-purchase-quantity__stepper button:hover:not(:disabled) { background: #16a34a !important; color: #fff !important; }
.abzarwp-purchase-quantity__stepper button:active:not(:disabled) { background: #128a3e !important; color: #fff !important; }
.abzarwp-purchase-quantity__stepper button:disabled { color: #aab7ad !important; background: #f3f5f7 !important; }

.abzarwp-purchase-quantity__stepper input {
  width: 52px !important;
  height: 52px !important;
  border-right: 0 !important;
  border-left: 0 !important;
  color: #1f2937 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.abzarwp-purchase-quantity[data-abzarwp-quantity-tip]::after {
  position: absolute;
  z-index: 50;
  right: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #1f2937;
  color: #fff;
  content: attr(data-abzarwp-quantity-tip);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.18);
  transform: translateX(50%) translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.abzarwp-purchase-quantity[data-abzarwp-quantity-tip]:hover::after,
.abzarwp-purchase-quantity[data-abzarwp-quantity-tip]:focus-within::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

.abzarwp-purchase-action {
  position: relative;
  display: flex !important;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 14px 18px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 8px !important;
  background: #4caf50 !important;
  color: #fff !important;
  text-align: center;
  box-shadow: none;
  transition: background 150ms ease, transform 150ms ease;
}

.abzarwp-purchase-action::before { display: none; content: none; }
.abzarwp-purchase-action:hover { background: #43a047 !important; color: #fff !important; filter: none; transform: none; box-shadow: none; }
.abzarwp-purchase-action:active { background: #388e3c !important; transform: translateY(1px); }
.abzarwp-purchase-action > strong { color: #fff; font-size: 18px; font-weight: 500; line-height: 1.4; }

.abzarwp-purchase-action[aria-busy="true"] > strong { opacity: 0; }
.abzarwp-purchase-action[aria-busy="true"]::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: abzarwp-spin 700ms linear infinite;
}

.abzarwp-purchase-panel.is-variable,
.abzarwp-purchase-panel.is-custom-purchase { --abzarwp-buy-accent: #4caf50; --abzarwp-buy-accent-deep: #3f9f43; --abzarwp-buy-focus: rgba(76, 175, 80, 0.24); }
.abzarwp-purchase-panel.is-unavailable { --abzarwp-buy-accent: #7b8492; --abzarwp-buy-accent-deep: #626b78; --abzarwp-buy-focus: rgba(98, 107, 120, 0.22); }
.abzarwp-purchase-panel.is-unavailable .abzarwp-purchase-action { background: #7b8492 !important; box-shadow: none; }
}

/* First-class widget adapter for the original premium purchase surface. */
.abzarwp-purchase-panel__price {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 2px 15px;
  color: var(--abzarwp-buy-ink);
}

.abzarwp-purchase-panel__price::before {
  display: block;
  margin-bottom: 6px;
  color: #778197;
  content: "قیمت نهایی محصول";
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.abzarwp-purchase-panel__price > .abzarwp-product-status { line-height: 1.35; }

.abzarwp-purchase-box-placeholder {
  padding: 18px;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
  background: #f7f8fa;
  color: #344054;
  direction: rtl;
  font-size: 13px;
  line-height: 1.8;
  text-align: right;
}

.abzarwp-purchase-box-placeholder strong { display: block; color: #1d2939; font-size: 15px; }

@media (max-width: 480px) {
  .abzarwp-purchase-panel { min-height: 0; padding: 16px; border-radius: 8px; }
  .abzarwp-purchase-panel__offer { margin-bottom: 12px; }
  .abzarwp-purchase-panel .atomic-buy-btn[data-abzarwp-role="purchase-price"] { width: min(100%, 270px); }
  .abzarwp-purchase-panel .abzarwp-product-price__current { font-size: 40px; }
  .abzarwp-purchase-panel .abzarwp-product-price__regular { font-size: 17px; }
  .abzarwp-purchase-panel__controls,
  .abzarwp-purchase-panel.has-quantity .abzarwp-purchase-panel__controls { grid-template-columns: 124px minmax(0, 1fr); gap: 10px; }
  .abzarwp-purchase-quantity { display: block; }
  .abzarwp-purchase-quantity__stepper { width: 124px; grid-template-columns: 38px 44px 38px; }
  .abzarwp-purchase-quantity__stepper button { width: 38px !important; min-width: 38px !important; }
  .abzarwp-purchase-quantity__stepper input { width: 44px !important; }
  .abzarwp-purchase-action { min-height: 56px; padding: 12px 10px !important; }
  .abzarwp-purchase-action > strong { font-size: 16px; }
  .abzarwp-purchase-panel__license { font-size: 12px !important; }
}

/* Exact visual contract of the former Atomic purchase CTA, now backed by Core. */
.abzarwp-purchase-panel.is-luxe {
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: YekanBakhProPlus, sans-serif;
  box-shadow: none;
}

.abzarwp-purchase-panel.is-luxe::before { display: none; content: none; }

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action {
  display: flex !important;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 !important;
  padding: 0 2rem !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0.5rem !important;
  background: linear-gradient(270deg, rgba(0, 173, 255, 1) 29%, #00ff47 100%) !important;
  color: #fff !important;
  direction: rtl;
  font-family: YekanBakhProPlus, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0, 255, 140, 0.15);
  transition: none;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action::before { display: none; content: none; }
.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action:hover,
.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action:active {
  background: linear-gradient(270deg, rgba(0, 173, 255, 1) 29%, #00ff47 100%) !important;
  color: #fff !important;
  filter: none;
  transform: none;
  box-shadow: 0 10px 20px rgba(0, 255, 140, 0.15);
}

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action:focus-visible {
  outline: 4px solid rgba(0, 173, 255, 0.26) !important;
  outline-offset: 3px;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-panel__price {
  display: inline-flex;
  width: auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: inherit;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-product-price {
  display: inline-flex !important;
  width: auto;
  max-width: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  color: #fff;
  direction: rtl;
  font: inherit;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-product-price__current,
.abzarwp-purchase-panel.is-luxe .abzarwp-product-price.is-on-sale .abzarwp-product-price__current {
  display: inline;
  color: #fff;
  font: inherit;
  letter-spacing: 0;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-product-price::after,
.abzarwp-purchase-panel.is-luxe .abzarwp-product-price.is-on-sale::after {
  display: inline;
  margin: 0;
  color: #fff;
  content: " تومان - ";
  font: inherit;
  white-space: pre;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-product-price__regular,
.abzarwp-purchase-panel.is-luxe .abzarwp-product-price__badge,
.abzarwp-purchase-panel.is-luxe .price_currency--symbol { display: none; }

.abzarwp-purchase-panel.is-luxe .abzarwp-product-status {
  color: #fff;
  font: inherit;
  line-height: 1;
}

.abzarwp-purchase-panel.is-luxe.is-custom-purchase .abzarwp-purchase-panel__price,
.abzarwp-purchase-panel.is-luxe.is-unavailable .abzarwp-purchase-panel__price { display: none; }

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action__icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-inline: 0.375rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action > strong {
  color: #fff;
  font: inherit;
  line-height: 1;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-panel__license,
.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-panel__extras {
  margin-top: 10px !important;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-panel__extras {
  display: flex;
  justify-content: flex-start;
  color: #1f2937;
}

.abzarwp-purchase-panel.is-luxe.is-unavailable .abzarwp-purchase-action {
  cursor: not-allowed;
  opacity: 0.72;
}

.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action[aria-busy="true"] > :not(.screen-reader-text) { opacity: 0; }
.abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action[aria-busy="true"]::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: abzarwp-spin 700ms linear infinite;
}

@media (max-width: 1024px) {
  .abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action {
    min-height: 56px;
    padding-inline: 2.25rem !important;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .abzarwp-purchase-panel.is-luxe { padding: 0; border-radius: 0; }
  .abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action {
    min-height: 52px;
    padding-inline: 1.5rem !important;
    box-shadow: 0 8px 12px rgba(0, 255, 140, 0.12);
  }
  .abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action:hover,
  .abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action:active { box-shadow: 0 8px 12px rgba(0, 255, 140, 0.12); }
  .abzarwp-purchase-panel.is-luxe .abzarwp-purchase-action__icon { width: 17px; height: 17px; }
}
