.pr-product-toast,
.pr-product-toast * {
  box-sizing: border-box;
}

.pr-product-toast {
  --pr-product-toast-bottom: 16px;
  --pr-product-toast-duration: 6000ms;
  --pr-product-toast-x: 0;
  --pr-product-toast-y: 28px;
  position: fixed;
  z-index: 99998;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  bottom: var(--pr-product-toast-bottom);
  direction: rtl;
  width: calc(100vw - 32px);
  max-width: 360px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .16);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--pr-product-toast-x), var(--pr-product-toast-y), 0) scale(.98);
  transition: opacity 400ms ease, transform 400ms ease, visibility 0s 400ms;
  visibility: hidden;
  will-change: transform, opacity;
}

.pr-product-toast[data-resolved-position="left"] {
  left: 16px;
  right: auto;
}

.pr-product-toast[data-resolved-position="right"] {
  left: auto;
  right: 16px;
}

.pr-product-toast[data-resolved-animation="corner"][data-resolved-position="left"] {
  --pr-product-toast-x: -24px;
  --pr-product-toast-y: 18px;
  transform-origin: bottom left;
}

.pr-product-toast[data-resolved-animation="corner"][data-resolved-position="right"] {
  --pr-product-toast-x: 24px;
  --pr-product-toast-y: 18px;
  transform-origin: bottom right;
}

.pr-product-toast[data-resolved-animation="bottom"] {
  --pr-product-toast-x: 0;
  --pr-product-toast-y: 28px;
  transform-origin: bottom center;
}

.pr-product-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 400ms ease, transform 400ms ease, visibility 0s;
  visibility: visible;
}

.pr-product-toast__content {
  min-height: 96px;
}

.pr-product-toast__image-link {
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.pr-product-toast__image {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: #f7f7f7;
}

.pr-product-toast__buyer {
  color: #62666d;
}

.pr-product-toast__title {
  display: block;
  color: #424750;
  text-decoration: none;
}

.pr-product-toast__title:hover {
  color: var(--prk-color-primary, #ef394e);
}

.pr-product-toast__meta {
  color: #8a8f98;
  row-gap: .25rem;
}

.pr-product-toast__verified {
  color: #6b7280;
}

.pr-product-toast__verified-icon {
  color: #22c55e;
}

.pr-product-toast__close,
.pr-product-toast__info {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #757575;
  cursor: pointer;
}

.pr-product-toast__close:hover,
.pr-product-toast__info:hover {
  background: #f4f4f4;
  color: #1f2937;
}

.pr-product-toast__close:focus,
.pr-product-toast__info:focus {
  box-shadow: 0 0 0 2px #d1d5db;
}

.pr-product-toast__info {
  color: #62666d;
}

.pr-product-toast__progress {
  height: 2px;
}

.pr-product-toast__progress-bar {
  background: linear-gradient(to right, var(--prk-color-gradient-start, #ff3a30), var(--prk-color-gradient-end, #ff6a00));
  transform: scaleX(1);
  transform-origin: left center;
}

.pr-product-toast.is-visible .pr-product-toast__progress-bar {
  animation: pr-product-toast-progress var(--pr-product-toast-duration) linear forwards;
}

.pr-product-toast.is-paused .pr-product-toast__progress-bar {
  animation-play-state: paused;
}

.pr-product-toast.is-hiding .pr-product-toast__progress-bar {
  animation: none;
  transform: scaleX(0);
}

@keyframes pr-product-toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (min-width: 1024px) {
  .pr-product-toast {
    --pr-product-toast-bottom: 30px;
    max-width: 390px;
  }

  .pr-product-toast[data-resolved-position="left"] {
    left: 30px;
  }

  .pr-product-toast[data-resolved-position="right"] {
    right: 30px;
  }
}

/* Modal */
.pr-product-toast-modal,
.pr-product-toast-modal * {
  box-sizing: border-box;
}

.pr-product-toast-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.pr-product-toast-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pr-product-toast-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(3px);
}

.pr-product-toast-modal__dialog {
  position: relative;
  width: min(820px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  transform: translateY(16px) scale(.985);
  transition: transform .22s ease;
}

.pr-product-toast-modal.is-open .pr-product-toast-modal__dialog {
  transform: translateY(0) scale(1);
}

.pr-product-toast-modal__close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
}

.pr-product-toast-modal__close svg {
  width: 20px;
  height: 20px;
}

.pr-product-toast-modal__body {
  min-height: 360px;
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pr-product-toast-info {
  display: grid;
  grid-template-columns: minmax(240px, 42%) 1fr;
  min-height: 360px;
  direction: rtl;
}

.pr-product-toast-info__image-wrap {
  background: #f5f5f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.pr-product-toast-info__image {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  display: block;
}

.pr-product-toast-info__content {
  padding: 42px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pr-product-toast-info__title {
  margin: 0;
  color: #232933;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 800;
}

.pr-product-toast-info__price {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.pr-product-toast-info__excerpt {
  margin: 0;
  color: #62666d;
  font-size: 13px;
  line-height: 2;
}

.pr-product-toast-info__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(to right, var(--prk-color-gradient-start, #ff3a30), var(--prk-color-gradient-end, #ff6a00));
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.pr-product-toast-error {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--prk-color-primary, #ef394e);
  font-size: 14px;
  font-weight: 700;
}

.pr-product-toast-loader {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-product-toast-loader--skeleton {
  display: grid;
  grid-template-columns: minmax(240px, 42%) 1fr;
  gap: 32px;
  width: 100%;
  padding: 32px;
  align-items: start;
}

.pr-product-toast-loader--skeleton .skel {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #f2f2f3 25%, #fafafa 37%, #f2f2f3 63%);
  background-size: 400% 100%;
  animation: prProductToastSkeleton 1.25s ease infinite;
}

.pr-product-toast-loader--skeleton .skel-image {
  grid-row: 1 / span 6;
  height: 318px;
  border-radius: 12px;
}

.pr-product-toast-loader--skeleton .skel-line {
  height: 18px;
  width: 70%;
}

.pr-product-toast-loader--skeleton .skel-wide { width: 92%; }
.pr-product-toast-loader--skeleton .skel-small { width: 42%; }
.pr-product-toast-loader--skeleton .skel-row {
  height: 42px;
  width: 100%;
  background: transparent;
  display: flex;
  gap: 10px;
  animation: none;
}

.pr-product-toast-loader--skeleton .skel-row span {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(90deg, #f2f2f3 25%, #fafafa 37%, #f2f2f3 63%);
  background-size: 400% 100%;
  animation: prProductToastSkeleton 1.25s ease infinite;
}

@keyframes prProductToastSkeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.pr-product-toast-loader--digi span {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 999px;
  background: var(--prk-color-primary, #ef394e);
}

@keyframes animationCircle1 {
  0%, 100% { opacity: .9; }
  33.3333% { opacity: .6; }
  66.6667% { opacity: .3; }
}
@keyframes animationCircle2 {
  0%, 100% { opacity: .6; }
  33.3333% { opacity: .3; }
  66.6667% { opacity: .9; }
}
@keyframes animationCircle3 {
  0%, 100% { opacity: .3; }
  33.3333% { opacity: .9; }
  66.6667% { opacity: .6; }
}
.dk-loading__circle1 { animation: animationCircle1 1.2s linear infinite normal forwards; }
.dk-loading__circle2 { animation: animationCircle2 1.2s linear infinite normal forwards; }
.dk-loading__circle3 { animation: animationCircle3 1.2s linear infinite normal forwards; }

.pr-product-toast-loader--dots span {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 999px;
  background: var(--prk-color-primary, #ff5b0e);
  animation: prToastDot 1s infinite ease-in-out;
}
.pr-product-toast-loader--dots span:nth-child(2) { animation-delay: .15s; }
.pr-product-toast-loader--dots span:nth-child(3) { animation-delay: .3s; }

@keyframes prToastDot {
  0%, 80%, 100% { transform: scale(.4); opacity: .35; }
  40% { transform: scale(1); opacity: 1; }
}

.pr-product-toast-loader--pulse span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--prk-color-primary, #ff5b0e);
  animation: prToastPulse 1s ease-in-out infinite;
}

@keyframes prToastPulse {
  0%, 100% { transform: scale(.72); opacity: .45; }
  50% { transform: scale(1); opacity: 1; }
}

.pr-product-toast-loader--spinner span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid #f1f1f1;
  border-top-color: var(--prk-color-primary, #ff5b0e);
  animation: prToastSpin .75s linear infinite;
}

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

@media (max-width: 767px) {
  .pr-product-toast-modal {
    align-items: flex-end;
    padding: 0;
  }

  .pr-product-toast-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 18px 18px 0 0;
  }

  .pr-product-toast-info,
  .pr-product-toast-loader--skeleton {
    grid-template-columns: 1fr;
  }

  .pr-product-toast-info__image-wrap {
    min-height: 220px;
  }

  .pr-product-toast-info__content {
    padding: 24px 20px 26px;
  }

  .pr-product-toast-loader--skeleton .skel-image {
    grid-row: auto;
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-product-toast,
  .pr-product-toast-modal,
  .pr-product-toast-modal__dialog {
    transition: none;
  }

  .pr-product-toast.is-visible .pr-product-toast__progress-bar,
  .pr-product-toast-loader span,
  .pr-product-toast-loader .skel,
  .pr-product-toast-loader--skeleton .skel-row span {
    animation: none !important;
  }
}

/* Stage 78: richer default product preview modal */
.pr-product-toast-info {
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  min-height: 420px;
  direction: rtl;
}

.pr-product-toast-info__media {
  min-width: 0;
  background: linear-gradient(180deg, #f7f7f8 0%, #fff 100%);
  border-left: 1px solid #f0f0f1;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.pr-product-toast-info__gallery,
.pr-product-toast-info__gallery-track,
.pr-product-toast-info__gallery-slide {
  width: 100%;
}

.pr-product-toast-info__gallery-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-product-toast-info__image {
  width: min(100%, 310px);
  height: 310px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.pr-product-toast-info__thumbs {
  width: 100%;
  max-width: 330px;
  overflow: hidden;
}

.pr-product-toast-info__thumb-track {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pr-product-toast-info__thumb {
  width: 54px !important;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.pr-product-toast-info__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.pr-product-toast-info__content {
  padding: 30px 32px 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pr-product-toast-info__breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #81858b;
  font-size: 12px;
  line-height: 1.9;
  white-space: nowrap;
  overflow: hidden;
}

.pr-product-toast-info__breadcrumb a {
  color: #81858b;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-product-toast-info__breadcrumb a:hover {
  color: var(--prk-color-primary, #ef394e);
}

.pr-product-toast-info__breadcrumb-sep {
  color: #c0c2c5;
}

.pr-product-toast-info__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pr-product-toast-info__feature,
.pr-product-toast-info__attr {
  border: 1px solid #f0f0f1;
  border-radius: 12px;
  background: #fafafa;
  padding: 10px 12px;
  min-width: 0;
}

.pr-product-toast-info__feature strong,
.pr-product-toast-info__attr span {
  display: block;
  color: #a1a3a8;
  font-size: 11px;
  line-height: 1.8;
  font-weight: 500;
}

.pr-product-toast-info__feature em,
.pr-product-toast-info__attr strong {
  display: block;
  color: #424750;
  font-size: 12px;
  line-height: 1.8;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-product-toast-info__attrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pr-product-toast-info__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #f0f0f1;
  padding-top: 18px;
}

.pr-product-toast-info__price {
  color: #232933;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.pr-product-toast-info__price del {
  color: #a1a3a8;
  font-size: 12px;
  margin-inline-end: 7px;
}

.pr-product-toast-info__price ins {
  color: #232933;
  text-decoration: none;
}

.pr-product-toast-info__link {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(to right, var(--prk-color-gradient-start, #ff3a30), var(--prk-color-gradient-end, #ff6a00));
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .pr-product-toast-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 32px);
  }

  .pr-product-toast-info {
    grid-template-columns: 1fr;
  }

  .pr-product-toast-info__media {
    border-left: 0;
    border-bottom: 1px solid #f0f0f1;
    padding: 22px 16px 12px;
  }

  .pr-product-toast-info__image {
    height: 220px;
  }

  .pr-product-toast-info__content {
    padding: 18px 16px 20px;
  }

  .pr-product-toast-info__features,
  .pr-product-toast-info__attrs {
    grid-template-columns: 1fr;
  }

  .pr-product-toast-info__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .pr-product-toast-info__price {
    text-align: left;
  }
}

.pr-product-toast-info__gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pr-product-toast-info__gallery-track::-webkit-scrollbar { display: none; }
.pr-product-toast-info__gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}
