/* Storefront-inspired Poostina mini cart */
.poostina-slide-cart {
  --pst-cart-btn-size: 44px;
  --pst-cart-btn-bg: #f7f7fa;
  --pst-cart-btn-color: #1f2937;
  --pst-cart-btn-border: transparent;
  --pst-cart-btn-hover-bg: #fff;
  --pst-cart-btn-hover-color: #2c8943;
  --pst-cart-btn-radius: 16px;
  --pst-cart-icon-size: 22px;
  --pst-cart-badge-size: 20px;
  --pst-cart-badge-bg: #2c8943;
  --pst-cart-badge-color: #fff;
  --pst-cart-badge-top: -6px;
  --pst-cart-badge-side: -6px;
  --pst-cart-panel-width: 430px;
  --pst-cart-panel-gap: 10px;
  --pst-cart-panel-bg: #fff;
  --pst-cart-panel-radius: 20px;
  --pst-cart-z: var(--pst-z-drawer, 1300);
  --pst-cart-font-family: inherit;
  --pst-cart-text: #111827;
  --pst-cart-muted: #6b7280;
  --pst-cart-accent: #2c8943;
  --pst-cart-border: #e5e7eb;
  --pst-cart-shipping-bg: #fff1e8;
  --pst-cart-shipping-color: #f36e10;
  --pst-cart-shipping-radius: 12px;
  --pst-cart-items-max-h: 32vh;
  --pst-cart-img-size: 80px;
  --pst-cart-img-radius: 10px;
  --pst-cart-remove-color: #e82e2e;
  --pst-cart-remove-bg: rgba(255,0,0,.09);
  --pst-cart-qty-bg: #f3f4f6;
  --pst-cart-qty-btn-bg: #fff;
  --pst-cart-qty-btn-color: #111827;
  --pst-cart-qty-btn-hover-bg: #2c8943;
  --pst-cart-qty-btn-hover-color: #fff;
  --pst-cart-qty-radius: 8px;
  --pst-cart-discount-bg: #f3f4f6;
  --pst-cart-primary-bg: #2c8943;
  --pst-cart-primary-color: #fff;
  --pst-cart-secondary-bg: rgba(44,137,67,.12);
  --pst-cart-secondary-color: #2c8943;
  --pst-cart-action-radius: 10px;
  --pst-cart-toast-width: 360px;
  --pst-cart-toast-bg: #ffffff;
  --pst-cart-toast-color: #111827;
  --pst-cart-toast-muted: #6b7280;
  --pst-cart-toast-accent: #2c8943;
  --pst-cart-toast-border: rgba(17,24,39,.08);
  --pst-cart-toast-radius: 18px;
  --pst-cart-toast-font-family: inherit;
  --pst-cart-toast-title-size: 13px;
  --pst-cart-toast-text-size: 12px;
  --pst-cart-toast-title-weight: 900;
  --pst-cart-toast-text-weight: 700;
  position: relative;
  display: inline-flex;
  direction: rtl;
  line-height: 1.4;
  z-index: var(--pst-z-drawer, 1300);
}

.poostina-slide-cart,
.poostina-slide-cart * { box-sizing: border-box; }

.poostina-slide-cart,
.poostina-slide-cart *,
.poostina-slide-cart-panel,
.poostina-slide-cart-panel *,
html body .poostina-slide-cart-toast,
html body .poostina-slide-cart-toast * {
  font-family: var(--pst-cart-font-family, var(--pst-cart-toast-font-family, inherit)) !important;
}

.poostina-slide-cart a { text-decoration: none; }

.poostina-slide-cart,
.poostina-slide-cart *,
.poostina-slide-cart-panel,
.poostina-slide-cart-panel * {
  box-sizing: border-box;
}


.poostina-slide-cart-trigger {
  min-width: var(--pst-cart-btn-size);
  height: var(--pst-cart-btn-size);
  min-height: var(--pst-cart-btn-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--pst-cart-btn-border);
  border-radius: var(--pst-cart-btn-radius);
  background: var(--pst-cart-btn-bg);
  color: var(--pst-cart-btn-color);
  cursor: pointer;
  padding: 0 12px;
  position: relative;
  white-space: nowrap;
  line-height: 1;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.poostina-slide-cart-trigger:hover,
.poostina-slide-cart.is-open .poostina-slide-cart-trigger {
  background: var(--pst-cart-btn-hover-bg);
  color: var(--pst-cart-btn-hover-color);
  transform: translateY(-1px);
}

.poostina-slide-cart-trigger-icon,
.poostina-slide-cart-trigger-icon svg,
.poostina-slide-cart-trigger-icon i {
  width: var(--pst-cart-icon-size);
  height: var(--pst-cart-icon-size);
  font-size: var(--pst-cart-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  line-height: 1;
}

.poostina-slide-cart-trigger-icon svg { fill: none; }
.poostina-slide-cart-trigger-label { color: inherit; font-weight: 800; }

.poostina-slide-cart-count {
  position: absolute;
  top: var(--pst-cart-badge-top);
  left: var(--pst-cart-badge-side);
  z-index: 2;
  min-width: var(--pst-cart-badge-size);
  height: var(--pst-cart-badge-size);
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pst-cart-badge-bg);
  color: var(--pst-cart-badge-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.poostina-slide-cart.is-hide-empty-badge .poostina-slide-cart-count.is-empty { display: none; }

.poostina-slide-cart-count.is-pending,
[data-poostina-cart-count].is-pending {
  opacity: .78;
  animation: poostina-cart-badge-pending .78s ease-in-out infinite alternate;
}

@keyframes poostina-cart-badge-pending {
  from { transform: scale(.92); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .poostina-slide-cart-count.is-pending,
  [data-poostina-cart-count].is-pending {
    animation: none;
  }
}

.poostina-slide-cart-panel {
  position: absolute;
  top: calc(100% + var(--pst-cart-panel-gap));
  width: min(var(--pst-cart-panel-width), calc(100vw - 24px));
  background: var(--pst-cart-panel-bg);
  color: var(--pst-cart-text);
  border: 1px solid var(--pst-cart-border);
  border-radius: var(--pst-cart-panel-radius);
  box-shadow: 0 12px 44px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s cubic-bezier(.4,0,.2,1);
  z-index: var(--pst-cart-z);
  max-height: min(720px, calc(100vh - 24px));
  overflow: hidden;
  isolation: isolate;
  text-align: right;
}

.poostina-slide-cart.is-align-left .poostina-slide-cart-panel { left: 0; right: auto; transform-origin: top left; }
.poostina-slide-cart.is-align-right .poostina-slide-cart-panel { right: 0; left: auto; transform-origin: top right; }
.poostina-slide-cart.is-align-center .poostina-slide-cart-panel { left: 50%; right: auto; transform: translate(-50%, -10px); transform-origin: top center; }
.poostina-slide-cart.is-open .poostina-slide-cart-panel,
.poostina-slide-cart[data-open-mode="hover"]:hover .poostina-slide-cart-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.poostina-slide-cart.is-align-center.is-open .poostina-slide-cart-panel,
.poostina-slide-cart.is-align-center[data-open-mode="hover"]:hover .poostina-slide-cart-panel { transform: translate(-50%, 0); }

.poostina-slide-cart-panel.is-detached {
  font-family: var(--pst-cart-font-family, inherit) !important;
  position: fixed;
  top: var(--pst-cart-fixed-top, 70px);
  left: var(--pst-cart-fixed-left, 16px);
  right: auto;
  transform: translateY(-10px);
  z-index: var(--pst-cart-z);
  max-height: min(720px, calc(100vh - 24px));
}
.poostina-slide-cart-panel.is-detached.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.poostina-slide-cart-portal-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: calc(var(--pst-z-drawer, 1300) - 10);
  direction: rtl;
}

.poostina-slide-cart-backdrop {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.00);
  z-index: calc(var(--pst-cart-z, var(--pst-z-drawer, 1300)) - 2);
  transition: opacity .2s ease, visibility .2s ease;
}

.poostina-slide-cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.poostina-slide-cart-open .poostina-slide-cart-panel.is-detached {
  pointer-events: auto;
}

.poostina-slide-cart-content {
  display: flex;
  flex-direction: column;
  max-height: min(720px, calc(100vh - 24px));
  overflow: hidden;
}
.poostina-slide-cart-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pst-cart-border);
  color: var(--pst-cart-text);
  font-size: 13px;
  font-weight: 700;
}
.poostina-slide-cart-header svg { color: var(--pst-cart-accent); flex: 0 0 auto; }

.poostina-slide-cart-close {
  margin-inline-start: auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, .06);
  color: var(--pst-cart-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.poostina-slide-cart-close:hover,
.poostina-slide-cart-close:focus {
  background: var(--pst-cart-remove-bg);
  color: var(--pst-cart-remove-color);
  transform: rotate(90deg);
}

.poostina-slide-cart-close svg {
  width: 15px;
  height: 15px;
  color: currentColor;
}

.poostina-slide-cart-shipping-note {
  width: calc(100% - 28px);
  margin: 7px auto 3px;
  padding: 8px 10px;
  border-radius: var(--pst-cart-shipping-radius);
  background: var(--pst-cart-shipping-bg);
  color: var(--pst-cart-shipping-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--pst-cart-toast-text-size, 12px);
  font-weight: var(--pst-cart-toast-text-weight, 700);
  line-height: 1.7;
}
.poostina-slide-cart-shipping-note svg { flex: 0 0 auto; }

.poostina-slide-cart-items {
  max-height: min(var(--pst-cart-items-max-h), 46vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--pst-cart-border) transparent;
}
.poostina-slide-cart-items::-webkit-scrollbar { width: 5px; }
.poostina-slide-cart-items::-webkit-scrollbar-track { background: transparent; }
.poostina-slide-cart-items::-webkit-scrollbar-thumb { background: var(--pst-cart-border); border-radius: 3px; }

.poostina-slide-cart-item {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--pst-cart-border);
  overflow: hidden;
}
.poostina-slide-cart-item:last-child { border-bottom: 0; }
.poostina-slide-cart-item.is-loading { pointer-events: none; }

.poostina-slide-cart-remove {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--pst-cart-remove-bg);
  color: var(--pst-cart-remove-color);
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: transform .18s ease, filter .18s ease;
}
.poostina-slide-cart-remove:hover { transform: scale(1.1); filter: saturate(1.2); }

.poostina-slide-cart-image {
  flex: 0 0 var(--pst-cart-img-size);
  width: var(--pst-cart-img-size);
  height: var(--pst-cart-img-size);
  border: 1px solid var(--pst-cart-border);
  border-radius: var(--pst-cart-img-radius);
  background: rgba(15,23,42,.035);
  overflow: hidden;
  display: block;
}
.poostina-slide-cart-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.poostina-slide-cart-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.poostina-slide-cart-title {
  color: var(--pst-cart-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.poostina-slide-cart-title:hover { color: var(--pst-cart-accent); }
.poostina-slide-cart-variation { color: var(--pst-cart-muted); font-size: 11px; line-height: 1.7; }
.poostina-slide-cart-variation dl, .poostina-slide-cart-variation p { margin: 0; }

.poostina-slide-cart-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.poostina-slide-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pst-cart-qty-bg);
  border-radius: var(--pst-cart-qty-radius);
  padding: 4px 6px;
  flex: 0 0 auto;
}
.poostina-slide-cart-qty-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: var(--pst-cart-qty-btn-bg);
  color: var(--pst-cart-qty-btn-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color .18s ease, background .18s ease, opacity .18s ease;
}
.poostina-slide-cart-qty-btn:hover { background: var(--pst-cart-qty-btn-hover-bg); color: var(--pst-cart-qty-btn-hover-color); }
.poostina-slide-cart-qty-btn:disabled { opacity: .45; cursor: not-allowed; }
.poostina-slide-cart-qty-value { min-width: 20px; text-align: center; color: var(--pst-cart-text); font-size: 13px; font-weight: 700; }
.poostina-slide-cart-static-qty { color: var(--pst-cart-muted); font-size: 13px; }

.poostina-slide-cart-price-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.5;
  text-align: left;
}
.poostina-slide-cart-price-info em {
  display: inline-flex;
  font-style: normal;
  font-size: 9px;
  line-height: 1;
  color: var(--pst-cart-muted);
  margin: 1px 5px;
}
.poostina-slide-cart-unit-price { color: var(--pst-cart-muted); font-size: 12px; }
.poostina-slide-cart-unit-price.is-regular { text-decoration: line-through; opacity: .8; }
.poostina-slide-cart-unit-price.is-sale { color: var(--pst-cart-text); }
.poostina-slide-cart-item-total { color: var(--pst-cart-text); font-size: 13px; font-weight: 800; }

.poostina-slide-cart-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--pst-cart-border);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.poostina-slide-cart-discount-row,
.poostina-slide-cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.poostina-slide-cart-discount-row {
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--pst-cart-discount-bg);
  color: var(--pst-cart-muted);
  font-size: 12px;
  font-weight: 600;
}
.poostina-slide-cart-discount-row strong { color: inherit; font-weight: 800; }
.poostina-slide-cart-subtotal-row { margin-bottom: 10px; font-size: 13px; color: var(--pst-cart-muted); }
.poostina-slide-cart-subtotal-row strong { color: var(--pst-cart-text); font-size: 15px; font-weight: 900; }

.poostina-slide-cart-actions { display: grid; gap: 10px; width: 100%; min-width: 0; }
.poostina-slide-cart-action {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: var(--pst-cart-action-radius);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.poostina-slide-cart-action > span {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.poostina-slide-cart-action:hover { transform: translateY(-1px); }
.poostina-slide-cart-action.is-primary { background: var(--pst-cart-primary-bg); color: var(--pst-cart-primary-color); }
.poostina-slide-cart-action.is-secondary { background: var(--pst-cart-secondary-bg); color: var(--pst-cart-secondary-color); }
.poostina-slide-cart-actions.is-mode-two { grid-template-columns: 1fr; }

.poostina-slide-cart-empty {
  min-height: 130px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px 18px;
  text-align: center;
  color: var(--pst-cart-muted);
  font-size: 13px;
  font-weight: 700;
}
.poostina-slide-cart-empty-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 999px; background: rgba(15,23,42,.04); color: var(--pst-cart-accent); }

.poostina-slide-cart-error {
  margin: 8px 16px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(239,68,68,.09);
  color: #dc2626;
  font-size: var(--pst-cart-toast-text-size, 12px);
  font-weight: var(--pst-cart-toast-text-weight, 700);
}

@media (max-width: 767px) {
  .poostina-slide-cart-panel,
  .poostina-slide-cart.is-align-left .poostina-slide-cart-panel,
  .poostina-slide-cart.is-align-right .poostina-slide-cart-panel,
  .poostina-slide-cart.is-align-center .poostina-slide-cart-panel {
    left: 50%;
    right: auto;
    width: min(94vw, var(--pst-cart-panel-width));
    transform: translate(-50%, -10px);
  }
  .poostina-slide-cart.is-open .poostina-slide-cart-panel,
  .poostina-slide-cart[data-open-mode="hover"]:hover .poostina-slide-cart-panel { transform: translate(-50%, 0); }
  .poostina-slide-cart-item { gap: 8px; }
  .poostina-slide-cart-price-row { align-items: flex-start; flex-direction: column; }
  .poostina-slide-cart-price-info { align-items: flex-start; text-align: right; }
}


@media (max-width: 767px) {
  .poostina-slide-cart-panel.is-detached,
  .poostina-slide-cart.is-align-left .poostina-slide-cart-panel.is-detached,
  .poostina-slide-cart.is-align-right .poostina-slide-cart-panel.is-detached,
  .poostina-slide-cart.is-align-center .poostina-slide-cart-panel.is-detached {
    position: fixed;
    left: max(10px, var(--pst-cart-fixed-left, 10px));
    right: auto;
    top: var(--pst-cart-fixed-top, 64px);
    width: min(94vw, var(--pst-cart-panel-width));
    transform: translateY(-10px);
  }

  .poostina-slide-cart-panel.is-detached.is-open,
  .poostina-slide-cart.is-align-left .poostina-slide-cart-panel.is-detached.is-open,
  .poostina-slide-cart.is-align-right .poostina-slide-cart-panel.is-detached.is-open,
  .poostina-slide-cart.is-align-center .poostina-slide-cart-panel.is-detached.is-open {
    transform: translateY(0);
  }

  .poostina-slide-cart-content {
    max-height: min(690px, calc(100vh - 20px));
  }

  .poostina-slide-cart-items {
    max-height: 42vh;
  }
}


/* v0.11.2 final layering and visual polish */
html body .poostina-slide-cart-portal-root {
  z-index: calc(var(--pst-z-drawer, 1300) + 20) !important;
  overflow: visible !important;
}

html body .poostina-slide-cart-panel.is-detached {
  z-index: calc(var(--pst-z-drawer, 1300) + 30) !important;
  position: fixed !important;
  pointer-events: auto;
  contain: layout paint;
}

html body .poostina-slide-cart-backdrop {
  z-index: calc(var(--pst-z-drawer, 1300) + 10) !important;
  background: transparent !important;
}

.poostina-slide-cart-panel,
.poostina-slide-cart-panel * {
  font-family: inherit !important;
}

.poostina-slide-cart-panel a,
.poostina-slide-cart-panel a:hover,
.poostina-slide-cart-panel a:focus {
  text-decoration: none !important;
}

.poostina-slide-cart-panel {
  box-shadow: 0 18px 60px rgba(15, 23, 42, .16);
}

.poostina-slide-cart-panel.is-detached {
  max-height: min(680px, calc(100svh - 22px));
}

.poostina-slide-cart-content {
  max-height: min(680px, calc(100svh - 22px));
}

.poostina-slide-cart-header {
  min-height: 48px;
  justify-content: flex-start;
}

.poostina-slide-cart-item {
  padding: 18px 0;
  isolation: isolate;
}

.poostina-slide-cart-remove {
  top: 8px;
  left: 4px;
}

.poostina-slide-cart-title {
  padding-inline-end: 2px;
  padding-inline-start: 28px;
}

.poostina-slide-cart-price-row {
  min-width: 0;
}

.poostina-slide-cart-price-info {
  min-width: 0;
}

.poostina-slide-cart-subtotal-row strong,
.poostina-slide-cart-discount-row strong,
.poostina-slide-cart-item-total,
.poostina-slide-cart-unit-price {
  white-space: nowrap;
}

.poostina-slide-cart-action,
.poostina-slide-cart-action:hover,
.poostina-slide-cart-action:focus {
  text-decoration: none !important;
}

@supports not (height: 100svh) {
  .poostina-slide-cart-panel.is-detached,
  .poostina-slide-cart-content {
    max-height: min(680px, calc(100vh - 22px));
  }
}

@media (max-width: 767px) {
  html body .poostina-slide-cart-panel.is-detached,
  html body .poostina-slide-cart.is-align-left .poostina-slide-cart-panel.is-detached,
  html body .poostina-slide-cart.is-align-right .poostina-slide-cart-panel.is-detached,
  html body .poostina-slide-cart.is-align-center .poostina-slide-cart-panel.is-detached {
    width: calc(100% - 20px) !important;
    left: 10px !important;
    right: auto !important;
    max-height: calc(100svh - 20px);
  }

  .poostina-slide-cart-header {
    padding: 12px 14px;
  }

  .poostina-slide-cart-items {
    padding-inline: 14px;
    max-height: 44svh;
  }

  .poostina-slide-cart-item {
    gap: 10px;
    padding: 16px 0;
  }

  .poostina-slide-cart-title {
    padding-inline-start: 24px;
  }
}


/* Beautiful add-to-cart toast */
html body .poostina-slide-cart-toast-root {
  position: fixed;
  z-index: var(--pst-z-toast, 1500);
  pointer-events: none;
  display: grid;
  gap: 10px;
  width: min(var(--pst-cart-toast-width, 360px), calc(100% - 24px));
  max-width: calc(100% - 24px);
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  direction: rtl;
}

html body .poostina-slide-cart-toast-root.is-top-left { top: var(--pst-toast-offset-top, 78px); left: 14px; }
html body .poostina-slide-cart-toast-root.is-top-right { top: var(--pst-toast-offset-top, 78px); right: 14px; }
html body .poostina-slide-cart-toast-root.is-bottom-left { bottom: max(16px, env(safe-area-inset-bottom)); left: 14px; }
html body .poostina-slide-cart-toast-root.is-bottom-right { bottom: max(16px, env(safe-area-inset-bottom)); right: 14px; }
html body .poostina-slide-cart-toast-root.is-bottom-center { bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); justify-items: center; }

html body.admin-bar .poostina-slide-cart-toast-root.is-top-left,
html body.admin-bar .poostina-slide-cart-toast-root.is-top-right { --pst-toast-offset-top: 110px; }

html body .poostina-slide-cart-toast {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 10px;
  border: 1px solid var(--pst-cart-toast-border, rgba(17,24,39,.08));
  border-radius: var(--pst-cart-toast-radius, 18px);
  background: var(--pst-cart-toast-bg, #fff);
  color: var(--pst-cart-toast-color, #111827);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
  overflow: hidden;
  transform: translateY(-10px) scale(.98);
  opacity: 0;
  animation: poostinaCartToastIn .28s cubic-bezier(.22, .8, .26, 1) forwards;
  font-family: var(--pst-cart-toast-font-family, var(--pst-cart-font-family, inherit)) !important;
}

html body .poostina-slide-cart-toast,
html body .poostina-slide-cart-toast * {
  font-family: var(--pst-cart-toast-font-family, var(--pst-cart-font-family, inherit)) !important;
}

html body .poostina-slide-cart-toast.is-leaving {
  animation: poostinaCartToastOut .22s ease forwards;
}

.poostina-slide-cart-toast__image,
.poostina-slide-cart-toast__success {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(44,137,67,.10);
  color: var(--pst-cart-toast-accent, #2c8943);
  flex: 0 0 auto;
}

.poostina-slide-cart-toast__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.poostina-slide-cart-toast__success svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poostina-slide-cart-toast__body {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  gap: 3px;
  text-align: right;
}

.poostina-slide-cart-toast__title {
  font-size: var(--pst-cart-toast-title-size, 13px);
  font-weight: var(--pst-cart-toast-title-weight, 900);
  line-height: 1.45;
  color: var(--pst-cart-toast-color, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poostina-slide-cart-toast__text {
  font-size: var(--pst-cart-toast-text-size, 12px);
  font-weight: var(--pst-cart-toast-text-weight, 700);
  line-height: 1.45;
  color: var(--pst-cart-toast-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poostina-slide-cart-toast__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(17,24,39,.06);
  color: var(--pst-cart-toast-muted, #6b7280);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.poostina-slide-cart-toast__close:hover {
  background: rgba(232,46,46,.10);
  color: #e82e2e;
  transform: rotate(90deg);
}

.poostina-slide-cart-toast__close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

@keyframes poostinaCartToastIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes poostinaCartToastOut {
  to { opacity: 0; transform: translateY(-8px) scale(.98); }
}

@media (max-width: 767px) {
  html body .poostina-slide-cart-toast-root,
  html body .poostina-slide-cart-toast-root.is-top-left,
  html body .poostina-slide-cart-toast-root.is-top-right,
  html body .poostina-slide-cart-toast-root.is-bottom-left,
  html body .poostina-slide-cart-toast-root.is-bottom-right,
  html body .poostina-slide-cart-toast-root.is-bottom-center {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
    justify-items: stretch !important;
    box-sizing: border-box !important;
  }

  html body .poostina-slide-cart-toast-root.is-bottom-left,
  html body .poostina-slide-cart-toast-root.is-bottom-right,
  html body .poostina-slide-cart-toast-root.is-bottom-center {
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  html body .poostina-slide-cart-toast-root.is-top-left,
  html body .poostina-slide-cart-toast-root.is-top-right { top: 74px !important; }
  html body.admin-bar .poostina-slide-cart-toast-root.is-top-left,
  html body.admin-bar .poostina-slide-cart-toast-root.is-top-right { top: 104px !important; }

  html body .poostina-slide-cart-toast {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    gap: 8px;
    padding: 10px 9px;
    border-radius: min(var(--pst-cart-toast-radius, 18px), 16px);
  }

  .poostina-slide-cart-toast__image,
  .poostina-slide-cart-toast__success { width: 40px; height: 40px; border-radius: 12px; }

  .poostina-slide-cart-toast__title,
  .poostina-slide-cart-toast__text {
    min-width: 0;
    max-width: 100%;
  }

  .poostina-slide-cart-toast__close {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }
}

@media (max-width: 380px) {
  html body .poostina-slide-cart-toast {
    grid-template-columns: 36px minmax(0, 1fr) 26px;
    gap: 7px;
    padding: 9px 8px;
  }

  .poostina-slide-cart-toast__image,
  .poostina-slide-cart-toast__success { width: 36px; height: 36px; border-radius: 11px; }

  .poostina-slide-cart-toast__success svg { width: 19px; height: 19px; }

  .poostina-slide-cart-toast__close {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}

/* 0.14.3: actionable, clearer add-to-cart notification. */
html body .poostina-slide-cart-toast {
  grid-template-columns: 46px minmax(0, 1fr) auto 30px;
  border-color: rgba(132, 83, 255, .14);
  box-shadow: 0 22px 58px rgba(35, 27, 65, .18);
}

html body .poostina-slide-cart-toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #8453ff, #f43d78);
}

.poostina-slide-cart-toast__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8453ff, #f43d78);
  color: #fff !important;
  font-family: "peyda-bold", var(--pst-cart-toast-font-family, inherit) !important;
  font-size: 12px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.poostina-slide-cart-toast__action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(132, 83, 255, .22);
}

@media (max-width: 767px) {
  html body .poostina-slide-cart-toast {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
  }

  .poostina-slide-cart-toast__action {
    grid-column: 2 / 4;
    width: 100%;
    min-height: 36px;
  }
}

/* =========================================================
   0.14.5 — minimal mobile toast + automatic bottom stacking
========================================================= */
.poostina-slide-cart-toast__action {
  border: 1px solid #f43d78 !important;
  background: #f43d78 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.poostina-slide-cart-toast__action:hover {
  background: #dd2f68 !important;
  box-shadow: none !important;
  transform: none !important;
}

html body .poostina-slide-cart-toast::before {
  background: #f43d78 !important;
}

@media (max-width: 767px) {
  html body .poostina-slide-cart-toast-root.is-bottom-left,
  html body .poostina-slide-cart-toast-root.is-bottom-right,
  html body .poostina-slide-cart-toast-root.is-bottom-center {
    bottom: calc(var(--poostina-mobile-toast-clearance, 0px) + 8px + env(safe-area-inset-bottom)) !important;
  }

  html body .poostina-slide-cart-toast {
    position: relative;
    grid-template-columns: 36px minmax(0, 1fr) auto 24px !important;
    gap: 8px !important;
    min-height: 58px;
    padding: 8px !important;
    border-radius: 15px !important;
    box-shadow: 0 12px 32px rgba(35, 27, 65, .14) !important;
  }

  .poostina-slide-cart-toast__image,
  .poostina-slide-cart-toast__success {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  .poostina-slide-cart-toast__body {
    gap: 0 !important;
  }

  .poostina-slide-cart-toast__title {
    font-size: 12px !important;
  }

  .poostina-slide-cart-toast__text {
    display: none !important;
  }

  .poostina-slide-cart-toast__action {
    grid-column: auto !important;
    width: auto !important;
    min-width: 76px !important;
    min-height: 34px !important;
    padding: 6px 9px !important;
    border-radius: 10px !important;
    font-size: 10.5px !important;
  }

  .poostina-slide-cart-toast__close {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
  }
}

/* 0.14.8 — یکسان‌سازی فونت نوتیف مینی‌کارت */
html body .poostina-slide-cart-toast,
html body .poostina-slide-cart-toast * {
  font-family: "peyda-reg", Tahoma, Arial, sans-serif !important;
}


/* 0.19.2 — Android-safe add-to-cart toast containment. */
.poostina-slide-cart-toast-root,
.poostina-slide-cart-toast,
.poostina-slide-cart-toast * {
  box-sizing: border-box;
}

.poostina-slide-cart-toast,
.poostina-slide-cart-toast__body,
.poostina-slide-cart-toast__title,
.poostina-slide-cart-toast__text,
.poostina-slide-cart-toast__action {
  min-width: 0;
  max-width: 100%;
}

.poostina-slide-cart-toast__action {
  box-sizing: border-box;
}

@media (max-width: 767px) {
  html body .poostina-slide-cart-toast-root,
  html body .poostina-slide-cart-toast-root.is-top-left,
  html body .poostina-slide-cart-toast-root.is-top-right,
  html body .poostina-slide-cart-toast-root.is-bottom-left,
  html body .poostina-slide-cart-toast-root.is-bottom-right,
  html body .poostina-slide-cart-toast-root.is-bottom-center {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  html body .poostina-slide-cart-toast {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   0.19.3 — immediate Android containment + native single-product toast
========================================================= */
.poostina-slide-cart-toast > *,
.poostina-slide-cart-toast__image,
.poostina-slide-cart-toast__success,
.poostina-slide-cart-toast__close {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.poostina-slide-cart-toast__close {
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 767px) {
  html body .poostina-slide-cart-toast-root,
  html body .poostina-slide-cart-toast-root.is-top-left,
  html body .poostina-slide-cart-toast-root.is-top-right,
  html body .poostina-slide-cart-toast-root.is-bottom-left,
  html body .poostina-slide-cart-toast-root.is-bottom-right,
  html body .poostina-slide-cart-toast-root.is-bottom-center {
    contain: layout style;
    overflow: visible;
  }

  html body .poostina-slide-cart-toast {
    grid-template-columns: 36px minmax(0, 1fr) minmax(0, 76px) 24px !important;
    overflow: hidden;
  }

  html body .poostina-slide-cart-toast__action {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 96px !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html body .poostina-slide-cart-toast__close {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
  }
}


/* =========================================================
   0.19.4 — remove persistent hidden cart layers from visual overflow
========================================================= */
.poostina-slide-cart-panel.is-detached[aria-hidden="true"]:not(.is-open) {
  display: none !important;
}

.poostina-slide-cart-panel.is-detached.is-open,
.poostina-slide-cart-panel.is-detached[aria-hidden="false"] {
  display: block !important;
}

.poostina-slide-cart-portal-root {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: clip !important;
}

@media (max-width: 767px) {
  html body .poostina-slide-cart-panel.is-detached,
  html body .poostina-slide-cart.is-align-left .poostina-slide-cart-panel.is-detached,
  html body .poostina-slide-cart.is-align-right .poostina-slide-cart-panel.is-detached,
  html body .poostina-slide-cart.is-align-center .poostina-slide-cart-panel.is-detached {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    min-width: 0 !important;
    left: 10px !important;
    right: auto !important;
    box-sizing: border-box !important;
  }

  html body .poostina-slide-cart-toast-root,
  html body .poostina-slide-cart-toast-root.is-top-left,
  html body .poostina-slide-cart-toast-root.is-top-right,
  html body .poostina-slide-cart-toast-root.is-bottom-left,
  html body .poostina-slide-cart-toast-root.is-bottom-right,
  html body .poostina-slide-cart-toast-root.is-bottom-center {
    inline-size: auto !important;
    max-inline-size: none !important;
    min-inline-size: 0 !important;
    inset-inline: 10px !important;
    transform: none !important;
  }
}

.poostina-slide-cart :is(button,a,input):focus-visible, .poostina-slide-cart-panel :is(button,a,input):focus-visible { outline: 2px solid currentColor !important; outline-offset: 3px !important; }
