.nm-vitrin-add-btn {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid #df0b0b;
  border-radius: 12px;
  background: #fff;
  color: #212121;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-align: right;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.nm-vitrin-add-btn:hover:not(:disabled):not(.is-added):not(.is-loading) {
  background: #ffe8ec;
  border-color: #f4a4ad;
  box-shadow: 0 2px 12px rgba(223, 11, 11, 0.1);
}

.nm-vitrin-add-btn:disabled {
  cursor: default;
  opacity: 1;
}

.nm-vitrin-add-btn__bag,
.nm-vitrin-add-btn__check,
.nm-vitrin-add-btn__spinner {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.nm-vitrin-add-btn__bag--added,
.nm-vitrin-add-btn__check,
.nm-vitrin-add-btn__spinner {
  display: none;
}

.nm-vitrin-add-btn__label {
  position: relative;
  z-index: 1;
  flex: 1;
}

.nm-vitrin-add-btn.is-loading {
  pointer-events: none;
  cursor: wait;
  background: #fff1f3;
  border-color: #f0b4bb;
  color: #9a3a45;
}

.nm-vitrin-add-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 0.7) 45%,
    rgba(255, 255, 255, 0) 75%
  );
  background-size: 200% 100%;
  animation: nm-vitrin-shimmer 1.15s ease-in-out infinite;
}

.nm-vitrin-add-btn.is-loading .nm-vitrin-add-btn__bag {
  display: none;
}

.nm-vitrin-add-btn.is-loading .nm-vitrin-add-btn__spinner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(223, 11, 11, 0.2);
  border-top-color: #df0b0b;
  border-radius: 50%;
  animation: nm-vitrin-spin 0.7s linear infinite;
}

.nm-vitrin-add-btn.is-loading .nm-vitrin-add-btn__label {
  opacity: 0.95;
}

.nm-vitrin-add-btn.is-added {
  cursor: default;
}

.nm-vitrin-add-btn.is-added:hover {
  background: #fff;
  box-shadow: none;
}

.nm-vitrin-add-btn.is-added .nm-vitrin-add-btn__bag--idle {
  display: none;
}

.nm-vitrin-add-btn.is-added .nm-vitrin-add-btn__bag--added,
.nm-vitrin-add-btn.is-added .nm-vitrin-add-btn__check {
  display: inline-flex;
}

@keyframes nm-vitrin-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

.nm-vitrin-request-modal {
  position: fixed;
  
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}

.nm-vitrin-request-modal[hidden] {
  display: none !important;
}

.nm-vitrin-request-modal__dialog {
  width: 100%;
  max-width: 770px;
  padding: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.nm-vitrin-request-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f5f5f5;
  border-radius: 8px;
}

.nm-vitrin-request-modal__header h3 {
  margin: 0;
  color: #374151;
  font-size: 16px !important;
  font-weight: 700;
}

.nm-vitrin-request-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nm-vitrin-request-modal__body {
  padding-top: 16px ;
  text-align: center;
}

.nm-vitrin-request-modal__body p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 2;
}

.nm-vitrin-request-modal__text-request {
  margin-bottom: 24px;
}

.nm-vitrin-request-modal__text-request p:last-child {
  margin-bottom: 0;
}

.nm-vitrin-request-modal__text-pending {
  margin-bottom: 24px;
}

.nm-vitrin-request-modal__text-pending p:last-child {
  margin-bottom: 0;
}

.nm-vitrin-request-modal__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.nm-vitrin-request-learn {
  display: inline-flex;
  min-width: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid #0031a2;
  border-radius: 12px;
  background: #fff;
  color: #0031a2;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.nm-vitrin-request-learn:hover {
  background: #f3f6ff;
  color: #0031a2;
  opacity: 0.95;
}

.nm-vitrin-request-submit {
  display: inline-flex;
  min-width: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 0;
  flex-direction: row-reverse;
  border-radius: 12px;
  background: #BE1115;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.nm-vitrin-request-submit:hover {
  opacity: 0.92;
  color: #fff;
  background: #9e0e11;
}

.nm-vitrin-request-submit.is-loading,
.nm-vitrin-request-submit:disabled.is-loading {
  cursor: wait;
  opacity: 0.9;
}

.nm-vitrin-request-submit.is-sent,
.nm-vitrin-request-submit:disabled.is-sent {
  min-width: auto;
  background: #fff4e5;
  color: #c2410c;
  border: 1px solid #fdba74;
  cursor: default;
  opacity: 1;
}

.nm-vitrin-request-status {
  display: inline-flex;
  min-width: 180px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  background: #fff4e5;
  color: #c2410c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.nm-vitrin-request-status__dot {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.nm-vitrin-request-status__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #f97316;
  opacity: 0.35;
  animation: nm-vitrin-status-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.nm-vitrin-request-status__dot::after {
  content: "";
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ea580c;
}

@keyframes nm-vitrin-status-ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.nm-vitrin-request-submit__check,
.nm-vitrin-request-submit__spinner {
  display: inline-flex;
  flex-shrink: 0;
}

.nm-vitrin-request-submit__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nm-vitrin-spin 0.7s linear infinite;
}

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

/* —— پنل افزودن به ویترین (drawer / modal) —— */

body.nm-vitrin-add-panel-open {
  overflow: hidden;
}

.nm-vitrin-add-panel {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.nm-vitrin-add-panel[hidden] {
  display: none !important;
}

.nm-vitrin-add-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.nm-vitrin-add-panel__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.16);
  animation: nm-vitrin-drawer-up 0.28s ease-out;
}

@keyframes nm-vitrin-drawer-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.nm-vitrin-add-panel__grab {
  flex-shrink: 0;
  width: 40px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #d1d5db;
}

.nm-vitrin-add-panel__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
}

.nm-vitrin-add-panel__header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.6;
}

.nm-vitrin-add-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nm-vitrin-add-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 24px;
  -webkit-overflow-scrolling: touch;
}

.nm-vitrin-slide {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin: 0;
  transition:
    grid-template-rows 0.32s ease,
    opacity 0.28s ease,
    margin 0.32s ease;
}

.nm-vitrin-slide.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 18px;
}

.nm-vitrin-slide__inner {
  overflow: hidden;
  min-height: 0;
}

.nm-vitrin-add-form__field {
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  min-width: 0;
}

.nm-vitrin-add-form__field legend,
.nm-vitrin-add-form__field > label,
.nm-vitrin-add-form__label {
  display: block;
  margin: 0 0 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.nm-vitrin-req {
  color: #ef4444;
}

.nm-vitrin-add-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.nm-vitrin-add-form__radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.nm-vitrin-add-form__radio input {
  width: 18px;
  height: 18px;
  accent-color: #0031a2;
}

.nm-vitrin-add-form__buy-fields {
  padding: 16px 0;
  border-top: 1px dashed #d1d5db;
  border-bottom: 1px dashed #d1d5db;
}

.nm-vitrin-add-form__hint {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.8;
  text-align: right;
}

.nm-vitrin-add-form__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nm-vitrin-add-form__field--grow {
  flex: 2;
  margin-bottom: 0;
}

.nm-vitrin-add-form__field--postal {
  flex: 1;
  margin-bottom: 0;
}

.nm-vitrin-add-form input[type="text"],
.nm-vitrin-add-form input[type="url"],
.nm-vitrin-add-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  line-height: 1.7;
  outline: none;
  transition: border-color 0.15s ease;
}

.nm-vitrin-add-form input[type="text"]:focus,
.nm-vitrin-add-form textarea:focus {
  border-color: #0031a2;
}

.nm-vitrin-add-form input:disabled,
.nm-vitrin-add-form input[readonly] {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.nm-vitrin-add-form textarea {
  min-height: 110px;
  resize: vertical;
}

.nm-vitrin-rate {
  padding: 4px 2px 2px;
  direction: rtl;
}

.nm-vitrin-rate__labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 8px;
}

.nm-vitrin-rate__label {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c0c6d0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, font-weight 0.15s ease;
}

.nm-vitrin-rate__label.is-on {
  color: #6b7280;
}

.nm-vitrin-rate__label.is-active {
  color: #1f2937;
  font-weight: 700;
}

.nm-vitrin-rate__track-wrap {
  position: relative;
  height: 44px;
  margin: 0 8px;
  direction: rtl;
}

.nm-vitrin-rate__track {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
  transform: translateY(-50%);
}

.nm-vitrin-rate__fill {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  border-radius: 999px;
  background: linear-gradient(to left, #f3c4c4 0%, #df0b0b 100%);
  transition: width 0.22s ease;
}

.nm-vitrin-rate__thumb {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 3px solid #df0b0b;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(223, 11, 11, 0.22);
  transform: translate(50%, -50%);
  transition: right 0.22s ease;
  pointer-events: none;
}

.nm-vitrin-rate__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  direction: rtl;
}

.nm-vitrin-add-form__qty-wrap {
  margin-bottom: 0;
  padding-top: 2px;
}

.nm-vitrin-qty {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.nm-vitrin-qty__btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 18px;
  cursor: pointer;
}

.nm-vitrin-qty__btn:hover {
  background: #f8fafc;
}

.nm-vitrin-qty__value {
  display: inline-flex;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
}

.nm-vitrin-add-form__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.7;
}

.nm-vitrin-add-form__submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 4px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #0031a2;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nm-vitrin-add-form__submit:hover {
  opacity: 0.92;
}

.nm-vitrin-add-form__submit.is-loading,
.nm-vitrin-add-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .nm-vitrin-add-panel {
    align-items: center;
    padding: 24px;
  }

  .nm-vitrin-add-panel__sheet {
    width: 100%;
    max-width: 540px;
    max-height: min(88vh, 820px);
    border-radius: 16px;
    animation: nm-vitrin-modal-in 0.22s ease-out;
  }

  @keyframes nm-vitrin-modal-in {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nm-vitrin-add-panel__grab {
    display: none;
  }

  .nm-vitrin-add-panel__header {
    padding: 18px 22px 8px;
  }

  .nm-vitrin-add-panel__body {
    padding: 8px 22px 24px;
  }

  .nm-vitrin-add-form__row {
    flex-direction: row;
    align-items: flex-start;
  }

  .nm-vitrin-add-form__field--postal {
    width: 34%;
    flex: 0 0 34%;
  }
}

@media (min-width: 640px) {
  .nm-vitrin-request-modal__actions {
    flex-direction: row;
    align-items: stretch;
  }

  .nm-vitrin-request-learn,
  .nm-vitrin-request-submit {
    width: auto;
    min-width: 200px;
    flex: 1 1 0;
  }
}

