/*
 * PROSHOW kits block + slide-in card.
 * Everything is scoped under .psk-root, .psk, .psk-pop, .psk-tab — nothing touches theme elements.
 * Colors come from CSS variables set by the module settings (inline style on the root).
 */
.psk-root, .psk-pop, .psk-tab, .psk-drawer {
  --psk-brand: #4a1a7a;
  --psk-buy: #f39a3c;
  --psk-save: #12805c;
  --psk-text: #1f1f24;
  --psk-muted: #6b6b76;
  --psk-line: #e7e5ec;
  --psk-bg: #f6f5f8;
  --psk-red: #e0473a;
  --psk-radius: 10px;
}
.psk-root { display: block; clear: both; max-width: 100%; min-width: 0; }
.psk { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.psk, .psk *, .psk *::before, .psk *::after,
.psk-pop, .psk-pop *, .psk-pop *::before, .psk-pop *::after,
.psk-drawer, .psk-drawer *, .psk-drawer *::before, .psk-drawer *::after,
.psk-tab { box-sizing: border-box; }

/* ---------- block frame ---------- */
.psk { margin: 20px 0; color: var(--psk-text); font-size: 14px; line-height: 1.4; }
.psk--frame-filled { padding: 16px; background: var(--psk-bg); border-radius: 12px; }
.psk--frame-bordered { padding: 16px; background: #fff; border: 1px solid var(--psk-line); border-radius: 12px; }
.psk--frame-plain { padding: 0; }

.psk__head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.psk__icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--psk-brand); color: #fff;
}
.psk__title { margin: 0; padding: 0; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--psk-text); text-transform: none; letter-spacing: 0; }

.psk__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.psk-kit, .psk-row, .psk-kit__details, .psk-kit__summary, .psk-kit__body, .psk-kit__foot, .psk-cards { min-width: 0; max-width: 100%; }
.psk [hidden] { display: none !important; }

/* ---------- shared pieces ---------- */
.psk-kit__name { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--psk-text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.psk-kit__sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.psk-kit__mini-price { font-weight: 700; color: var(--psk-brand); white-space: nowrap; }
.psk-badge {
  display: inline-block; padding: 2px 7px; border-radius: 999px;
  background: #e5f5ee; color: var(--psk-save); font-size: 12px; font-weight: 700; white-space: nowrap;
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  .psk-badge { background: color-mix(in srgb, var(--psk-save) 12%, #fff); }
}

.psk-kit__thumbs { flex: 0 0 auto; display: flex; align-items: center; padding-left: 10px; }
.psk-thumb {
  width: 44px; height: 44px; margin-left: -10px; border-radius: 50%;
  background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--psk-line);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.psk--thumb-square .psk-thumb { border-radius: 8px; margin-left: -6px; }
.psk-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.psk-thumb--more { background: #f3eefa; color: var(--psk-brand); font-size: 12px; font-weight: 700; }

.psk-parts { list-style: none; margin: 0; padding: 6px 0; }
.psk-part { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--psk-line); }
.psk-part:last-child { border-bottom: 0; }
.psk-part__img {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; background: #fff; border: 1px solid var(--psk-line);
  overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
}
.psk--thumb-round .psk-part__img { border-radius: 50%; }
.psk-part__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.psk-part__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.psk-part__name { color: var(--psk-text); font-size: 13px; line-height: 1.35; text-decoration: none; }
a.psk-part__name:hover { color: var(--psk-brand); text-decoration: underline; }
.psk-part__tag { align-self: flex-start; padding: 1px 6px; border-radius: 4px; background: #f3eefa; color: var(--psk-brand); font-size: 11px; font-weight: 600; }
.psk-part--current .psk-part__name { font-weight: 600; }
.psk-part__price { flex: 0 0 auto; color: var(--psk-muted); font-size: 13px; white-space: nowrap; }
.psk-part__qty { color: var(--psk-text); font-weight: 600; margin-right: 4px; }

.psk-kit__prices { display: flex; flex-direction: column; gap: 2px; }
.psk-kit__prices > span { display: block; }
.psk-kit__old { color: var(--psk-muted); font-size: 13px; }
.psk-kit__prices > .psk-kit__new { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.psk-kit__label { color: var(--psk-muted); font-size: 13px; }
.psk-kit__new strong { font-size: 22px; line-height: 1.1; color: var(--psk-text); white-space: nowrap; }
.psk-pct { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--psk-red); color: var(--psk-red); font-size: 12px; font-weight: 700; }
.psk-kit__save { color: var(--psk-save); font-size: 13px; }
.psk-kit__prices > .psk-stock { display: flex; }
.psk-stock { margin-top: 2px; font-size: 12px; color: var(--psk-save); align-items: center; gap: 5px; }
.psk-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.psk-stock--order { color: #b7791f; }

.psk-kit__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.psk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; max-width: 100%; padding: 8px 16px; margin: 0; border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: normal; text-align: center; text-transform: none;
  cursor: pointer; text-decoration: none; box-shadow: none;
  transition: background-color .15s, color .15s, border-color .15s, filter .15s, transform .1s;
}
.psk-btn:active { transform: translateY(1px); }
.psk-btn--ghost { background: #fff; color: var(--psk-brand); border: 1.5px solid var(--psk-brand); }
.psk-btn--ghost:hover, .psk-btn--ghost:focus { background: var(--psk-brand); color: #fff; text-decoration: none; }
.psk-btn--buy { background: var(--psk-buy); color: #fff; border: 1.5px solid var(--psk-buy); }
.psk-btn--buy:hover, .psk-btn--buy:focus { filter: brightness(.93); color: #fff; text-decoration: none; }
.psk-btn[disabled] { opacity: .6; cursor: progress; }
.psk-btn.is-done, .psk-row__buy.is-done { background: var(--psk-save); border-color: var(--psk-save); color: #fff; }
.psk-btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.psk-btn:focus-visible, .psk-row__link:focus-visible, .psk-row__buy:focus-visible, .psk__more:focus-visible,
.psk-pop__close:focus-visible, .psk-tab:focus-visible, .psk-cards__nav:focus-visible {
  outline: 2px solid var(--psk-brand); outline-offset: 2px;
}

.psk__more {
  display: block; width: 100%; margin-top: 8px; padding: 10px;
  background: transparent; border: 1px dashed #cfc6dd; border-radius: var(--psk-radius);
  color: var(--psk-brand); font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.psk__more:hover { background: #fff; }

.psk-kit.is-flash, .psk-row.is-flash, .psk-card.is-flash { animation: psk-flash 1.8s ease-out; border-radius: var(--psk-radius); }
@keyframes psk-flash { 0%, 35% { box-shadow: 0 0 0 3px var(--psk-buy); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- style 1: accordion ---------- */
.psk-kit__details { background: #fff; border: 1px solid var(--psk-line); border-radius: var(--psk-radius); transition: border-color .2s, box-shadow .2s; }
.psk-kit__details:hover, .psk-kit__details[open] { border-color: #d6cfe3; }
.psk-kit__details[open] { box-shadow: 0 4px 16px rgba(40, 20, 70, .08); }
.psk-kit__summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 64px; cursor: pointer; list-style: none; user-select: none; }
.psk-kit__summary::-webkit-details-marker { display: none; }
.psk-kit__summary::marker { content: ''; }
.psk-kit__summary:focus-visible { outline: 2px solid var(--psk-brand); outline-offset: 2px; border-radius: var(--psk-radius); }
.psk-kit__chev { flex: 0 0 auto; color: var(--psk-brand); display: inline-flex; transition: transform .2s; }
.psk-kit__details[open] .psk-kit__chev { transform: rotate(180deg); }
.psk-kit__heading { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.psk-kit__details[open] .psk-kit__sub { display: none; }
.psk-kit__body { padding: 0 14px 14px; border-top: 1px solid var(--psk-line); animation: psk-in .2s ease-out; }
@keyframes psk-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.psk-kit__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--psk-line); }

/* ---------- style 2: cards ---------- */
.psk-cards { position: relative; }
.psk-cards__track {
  list-style: none; margin: 0 -4px; padding: 4px 4px 10px; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.psk-card {
  flex: 0 0 260px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px;
  padding: 12px; background: #fff; border: 1px solid var(--psk-line); border-radius: 12px;
  transition: box-shadow .2s, border-color .2s;
}
.psk-card:hover { border-color: #d6cfe3; box-shadow: 0 6px 20px rgba(40, 20, 70, .08); }
.psk-card__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #fff; }
.psk-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s; }
.psk-card:hover .psk-card__media img { transform: scale(1.03); }
.psk-card__pct { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--psk-red); color: #fff; font-size: 13px; font-weight: 800; }
.psk-card__name { font-weight: 700; color: var(--psk-text); text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.psk-card__name:hover { color: var(--psk-brand); }
.psk-card__count { color: var(--psk-muted); font-size: 12px; margin-top: -4px; }
.psk-card .psk-kit__thumbs { padding-left: 10px; }
.psk-card .psk-kit__actions { margin-top: auto; flex-direction: column; }
.psk-card .psk-btn { width: 100%; }
.psk-card .psk-kit__new strong { font-size: 20px; }
.psk-cards__nav {
  position: absolute; top: 110px; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--psk-brand); border: 1px solid var(--psk-line); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); cursor: pointer;
}
.psk-cards__nav--prev { left: -8px; }
.psk-cards__nav--next { right: -8px; }

/* ---------- style 3: compact rows ---------- */
.psk-row { display: flex; align-items: stretch; gap: 6px; }
.psk-row__link {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--psk-line); border-radius: var(--psk-radius); color: inherit; text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.psk-row__link:hover { border-color: #d6cfe3; box-shadow: 0 4px 14px rgba(40, 20, 70, .07); text-decoration: none; color: inherit; }
.psk-row .psk-kit__thumbs { order: -1; }
.psk-row .psk-thumb { width: 38px; height: 38px; margin-left: -12px; }
.psk-row__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.psk-row__old { color: var(--psk-muted); font-size: 12px; }
.psk-row__arrow { flex: 0 0 auto; color: var(--psk-brand); display: inline-flex; }
.psk-row__buy {
  flex: 0 0 44px; width: 44px; height: 44px; align-self: center; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: var(--psk-buy); color: #fff; border: 0; border-radius: var(--psk-radius); cursor: pointer; transition: filter .15s;
}
.psk-row__buy:hover { filter: brightness(.93); }

/* ---------- slide-in card ---------- */
.psk-pop {
  --psk-pop-w: 360px; --psk-pop-img: 96px;
  --psk-pop-bg: #fff; --psk-pop-fg: var(--psk-text); --psk-pop-muted: var(--psk-muted); --psk-pop-line: #ece8f2;
  position: fixed; z-index: 1030; bottom: var(--psk-pop-offset, 20px); right: var(--psk-pop-offset, 20px);
  width: var(--psk-pop-w); max-width: calc(100vw - 32px);
  display: flex; gap: 14px; padding: 16px 16px 16px 18px; margin: 0;
  background: var(--psk-pop-bg); color: var(--psk-pop-fg); border: 1px solid var(--psk-pop-line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(30, 10, 60, .22);
  font-size: 14px; line-height: 1.4; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility 0s linear .45s;
}
.psk-pop[hidden] { display: none; }
.psk-pop.is-in { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility 0s; }
.psk-pop::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--psk-brand); }

/* position */
.psk-pop--bottom-left { right: auto; left: var(--psk-pop-offset, 20px); }
.psk-pop--middle-right { bottom: auto; top: 50%; margin-top: -80px; }
/* size */
.psk-pop--compact { --psk-pop-w: 300px; --psk-pop-img: 72px; }
.psk-pop--large { --psk-pop-w: 420px; --psk-pop-img: 128px; }
/* theme */
.psk-pop--brand { --psk-pop-bg: var(--psk-brand); --psk-pop-fg: #fff; --psk-pop-muted: rgba(255, 255, 255, .82); --psk-pop-line: transparent; }
.psk-pop--brand::before { background: var(--psk-buy); }
.psk-pop--dark { --psk-pop-bg: #1d1b22; --psk-pop-fg: #fff; --psk-pop-muted: #b9b6c2; --psk-pop-line: #2e2b36; }
.psk-pop--dark::before { background: var(--psk-buy); }
.psk-pop--brand .psk-pop__eyebrow, .psk-pop--dark .psk-pop__eyebrow { color: var(--psk-buy); }
.psk-pop--brand .psk-btn--ghost, .psk-pop--dark .psk-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.psk-pop--brand .psk-btn--ghost:hover, .psk-pop--dark .psk-btn--ghost:hover { background: #fff; color: var(--psk-text); }
.psk-pop--brand .psk-pop__close, .psk-pop--dark .psk-pop__close { color: rgba(255, 255, 255, .8); }
.psk-pop--brand .psk-pop__close:hover, .psk-pop--dark .psk-pop__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* entrance effects (start state; .is-in resets transform) */
.psk-pop--anim-slide, .psk-pop--anim-bounce { transform: translateX(calc(100% + 40px)); }
.psk-pop--anim-slide.psk-pop--bottom-left, .psk-pop--anim-bounce.psk-pop--bottom-left { transform: translateX(calc(-100% - 40px)); }
.psk-pop--anim-fade { transform: translateY(12px); }
.psk-pop--anim-zoom { transform: scale(.85); transform-origin: bottom right; }
.psk-pop--anim-zoom.psk-pop--bottom-left { transform-origin: bottom left; }
.psk-pop[class].is-in { transform: none; }
.psk-pop--anim-bounce.is-in { transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .3s, visibility 0s; }

.psk-pop__close {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--psk-pop-muted); cursor: pointer;
}
.psk-pop__close:hover { background: #f3f1f6; color: var(--psk-text); }
.psk-pop__media { position: relative; flex: 0 0 var(--psk-pop-img); width: var(--psk-pop-img); height: var(--psk-pop-img); display: block; }
.psk-pop__img, .psk-pop__collage { width: 100%; height: 100%; border-radius: 10px; background: #fff; border: 1px solid #ece8f2; display: block; }
.psk-pop__img { object-fit: contain; }
.psk-pop__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; overflow: hidden; }
.psk-pop__collage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.psk--thumb-round .psk-pop__collage img { border-radius: 50%; }
.psk-pop__pct {
  position: absolute; left: -8px; top: -8px; padding: 3px 8px; border-radius: 999px;
  background: var(--psk-red); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 10px rgba(224, 71, 58, .35);
}
.psk-pop--pulse.is-in .psk-pop__pct { animation: psk-pulse 2.4s ease-in-out .8s 3; }
@keyframes psk-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.psk-pop__content { flex: 1 1 auto; min-width: 0; padding-right: 22px; }
.psk-pop__eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 2px; color: var(--psk-brand); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.psk-pop__title { margin: 0 0 4px; padding: 0; font-size: 17px; line-height: 1.25; font-weight: 800; color: var(--psk-pop-fg); }
.psk-pop--compact .psk-pop__title { font-size: 15px; }
.psk-pop--large .psk-pop__title { font-size: 19px; }
.psk-pop__text { margin: 0 0 10px; color: var(--psk-pop-muted); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.psk-pop__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.psk-pop__actions .psk-btn { flex: 1 1 130px; min-width: 0; padding: 8px 12px; }

/* minimized tab */
.psk-tab {
  position: fixed; z-index: 1029; right: 0; bottom: 180px;
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px 9px 14px; margin: 0;
  background: var(--psk-brand); color: #fff; border: 0; border-radius: 10px 0 0 10px;
  font-family: inherit; font-size: 13px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(30, 10, 60, .25); transform: translateX(110%); transition: transform .35s ease;
}
.psk-tab[hidden] { display: none; }
.psk-tab.is-in { transform: none; }
.psk-tab b { color: var(--psk-buy); font-weight: 800; }
.psk-tab--bottom-left { right: auto; left: 0; border-radius: 0 10px 10px 0; transform: translateX(-110%); }
.psk-tab--middle-right { bottom: auto; top: 50%; }

/* ---------- phones ---------- */
@media (max-width: 575px) {
  .psk { margin: 16px 0; }
  .psk--frame-filled, .psk--frame-bordered { padding: 12px; }
  .psk-kit__summary { padding: 10px 12px; }
  .psk-kit__body { padding: 0 12px 12px; }
  .psk-part { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; }
  .psk-part__img { grid-row: span 2; width: 48px; height: 48px; }
  .psk-part__price { grid-column: 2; white-space: normal; }
  .psk-kit__new strong { font-size: 20px; }
  .psk-thumb { width: 36px; height: 36px; margin-left: -12px; }
  .psk-kit__thumbs .psk-thumb:nth-child(n+4):not(.psk-thumb--more) { display: none; }
  .psk-kit__foot { flex-direction: column; align-items: stretch; }
  .psk-kit__actions { flex-direction: column-reverse; }
  .psk .psk-btn { width: 100%; min-height: 46px; }
  .psk-card { flex-basis: 78%; }
  .psk-cards__nav { display: none !important; }
  .psk-row__link { padding: 10px; gap: 10px; }
  .psk-row .psk-kit__thumbs { display: none; }

  .psk-pop, .psk-pop--bottom-left, .psk-pop--middle-right {
    left: 8px; right: 8px; top: auto; bottom: var(--psk-pop-offset-m, 8px); margin: 0; width: auto; max-width: none;
    --psk-pop-img: 72px; padding: 12px 12px 12px 14px; gap: 12px;
  }
  .psk-pop, .psk-pop--anim-slide, .psk-pop--anim-bounce,
  .psk-pop--anim-slide.psk-pop--bottom-left, .psk-pop--anim-bounce.psk-pop--bottom-left { transform: translateY(calc(100% + 24px)); }
  .psk-pop--anim-fade { transform: translateY(12px); }
  .psk-pop--anim-zoom { transform: scale(.9); transform-origin: bottom center; }
  .psk-pop[class].is-in { transform: none; }
  .psk-pop__title { font-size: 15px; }
  .psk-pop__text { -webkit-line-clamp: 2; margin-bottom: 8px; }
  .psk-pop--m-off { display: none !important; }
  /* thin bar */
  .psk-pop--m-bar { align-items: center; padding: 8px 44px 8px 12px; border-radius: 12px; }
  .psk-pop--m-bar::before { display: none; }
  .psk-pop--m-bar .psk-pop__media { --psk-pop-img: 44px; }
  .psk-pop--m-bar .psk-pop__pct { font-size: 11px; padding: 2px 6px; left: -4px; top: -6px; }
  .psk-pop--m-bar .psk-pop__eyebrow, .psk-pop--m-bar .psk-pop__text { display: none; }
  .psk-pop--m-bar .psk-pop__content { display: flex; align-items: center; gap: 8px; padding-right: 0; }
  .psk-pop--m-bar .psk-pop__title { flex: 1 1 auto; margin: 0; font-size: 14px; }
  .psk-pop--m-bar .psk-pop__actions .psk-btn--ghost { display: none; }
  .psk-pop--m-bar .psk-pop__close { top: 50%; margin-top: -16px; }
  .psk-tab, .psk-tab--middle-right { bottom: 150px; top: auto; }
}

@media print { .psk-pop, .psk-tab { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .psk-pop, .psk-pop.is-in, .psk-tab { transition: opacity .2s, visibility 0s; transform: none !important; }
  .psk-pop__pct, .psk-kit__body, .psk-kit.is-flash, .psk-row.is-flash, .psk-card.is-flash { animation: none !important; }
  .psk-kit__chev, .psk-card__media img { transition: none; }
  .psk-cards__track { scroll-behavior: auto; }
}

/* =====================================================================
   1.3 — tabs "Комплекти / Аксесуари" and the accessories block
   ===================================================================== */
.psk-switch {
  display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 10px;
  background: #ece8f2;
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  .psk-switch { background: color-mix(in srgb, var(--psk-brand) 9%, #f3f2f5); }
}
.psk--frame-plain .psk-switch, .psk--frame-bordered .psk-switch { background: var(--psk-bg); }
.psk-switch__btn {
  flex: 1 1 0; min-width: 0; min-height: 40px; margin: 0; padding: 8px 10px; border: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--psk-muted); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
  cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.psk-switch__btn:hover { color: var(--psk-text); }
.psk-switch__btn[aria-selected="true"] { background: #fff; color: var(--psk-brand); box-shadow: 0 1px 4px rgba(30, 10, 60, .1); }
.psk-switch__btn:focus:not(:focus-visible) { outline: none; }
.psk-switch__btn:focus-visible { outline: 2px solid var(--psk-brand); outline-offset: 1px; }
.psk-switch__label--short { display: none; }
.psk__more:focus:not(:focus-visible), .psk-acc-toggle:focus:not(:focus-visible), .psk-acc-plus:focus:not(:focus-visible) { outline: none; }
.psk-switch__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psk-switch__n {
  flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .07); color: inherit; font-size: 12px; font-weight: 700;
}
.psk-switch__btn[aria-selected="true"] .psk-switch__n { background: #f3eefa; }
.psk-switch__pct {
  flex: 0 0 auto; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--psk-red); color: var(--psk-red); font-size: 12px; font-weight: 800;
}
.psk-panel { min-width: 0; animation: psk-in .2s ease-out; }

.psk-acc { min-width: 0; }
.psk-acc__hint { margin: -4px 0 10px; padding: 0; color: var(--psk-muted); font-size: 13px; line-height: 1.4; }
.psk-switch + .psk-panel .psk-acc__hint { margin-top: 0; }
.psk-acc__view--m { display: none; }

/* list with ticks */
.psk-acc-list { background: #fff; border: 1px solid var(--psk-line); border-radius: var(--psk-radius); overflow: hidden; }
.psk-acc-list__grp {
  padding: 9px 12px 3px; background: #fbfafc; border-top: 1px solid var(--psk-line);
  color: var(--psk-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.psk-acc-list > .psk-acc-list__grp:first-child { border-top: 0; }
.psk-acc-row {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; min-height: 60px;
  border-top: 1px dashed var(--psk-line); cursor: pointer; font-weight: 400; color: var(--psk-text);
  text-align: left; font-size: 14px; line-height: 1.4; transition: background-color .15s;
}
.psk-acc-list__grp + .psk-acc-row { border-top: 0; }
.psk-acc-row:hover { background: #fcfbfe; }
.psk-acc-row.is-on { background: #faf7fe; }
.psk-acc-row__cb { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.psk-acc-row__box {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #b9b6c2; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, border-color .15s;
}
.psk-acc-row.is-on .psk-acc-row__box { background: var(--psk-brand); border-color: var(--psk-brand); }
.psk-acc-row.is-on .psk-acc-row__box::after {
  content: ''; width: 11px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translate(0, -1px) rotate(-45deg);
}
.psk-acc-row__cb:focus-visible + .psk-acc-row__box { outline: 2px solid var(--psk-brand); outline-offset: 2px; }
.psk-acc-row__img {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--psk-line); background: #fff;
  overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
}
.psk-acc-row__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.psk-acc-row__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.psk-acc-row__name {
  color: var(--psk-text); font-size: 13px; line-height: 1.3; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
a.psk-acc-row__name:hover { color: var(--psk-brand); text-decoration: underline; }
.psk-acc-row .psk-stock { display: flex; margin: 0; }
.psk-acc-row__price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.25; }
.psk-acc-row__price s, .psk-acc-card__price s, .psk-acc-sum__line s { color: var(--psk-muted); font-size: 12px; font-weight: 400; }
.psk-acc-row__price strong { color: var(--psk-text); font-size: 14px; white-space: nowrap; }
.psk-acc__more { margin-top: 8px; }

/* total + "Купити разом" */
.psk-acc-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.psk-acc-sum__txt { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.psk-acc-sum__line { color: var(--psk-muted); font-size: 13px; }
.psk-acc-sum__total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.psk-acc-sum__total strong { color: var(--psk-text); font-size: 22px; line-height: 1.15; white-space: nowrap; }
.psk-acc-sum__total small { color: var(--psk-muted); font-size: 13px; }
.psk-acc-sum__buy { flex: 0 0 auto; min-width: 190px; }
.psk-acc-sum__buy[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.3); }
.psk-acc-sum__buy.is-busy { cursor: progress; opacity: .7; }
.psk-acc-sum__buy.is-done[disabled] { opacity: 1; filter: none; background: var(--psk-save); border-color: var(--psk-save); }

/* cards */
.psk-acc-cards { position: relative; }
.psk-acc-cards__track {
  margin: 0 -4px; padding: 4px 4px 10px; display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.psk-acc-card {
  position: relative; flex: 0 0 172px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px;
  padding: 10px; background: #fff; border: 1px solid var(--psk-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.psk-acc-card.is-on { border-color: var(--psk-brand); box-shadow: 0 0 0 1px var(--psk-brand), 0 4px 14px rgba(74, 26, 122, .12); }
.psk-acc-card__cat { color: var(--psk-muted); font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psk-acc-card__img { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #fff; margin: 2px 0 4px; }
.psk-acc-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.psk-acc-card__name {
  color: var(--psk-text); font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.psk-acc-card__name:hover { color: var(--psk-brand); }
.psk-acc-card__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.psk-acc-card__price strong { font-size: 15px; white-space: nowrap; }
.psk-acc-card__save { color: var(--psk-muted); font-size: 12px; }
.psk-acc-card__save b { color: var(--psk-save); }
.psk-acc-card .psk-stock { display: flex; }
.psk-acc-toggle {
  margin: auto 0 0; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--psk-brand);
  background: #fff; color: var(--psk-brand); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.psk-acc-card .psk-acc-toggle { margin-top: 8px; }
.psk-acc-toggle__on { display: none; }
.psk-acc-toggle[aria-pressed="true"] { background: var(--psk-brand); color: #fff; }
.psk-acc-toggle[aria-pressed="true"] .psk-acc-toggle__on { display: inline; }
.psk-acc-toggle[aria-pressed="true"] .psk-acc-toggle__off { display: none; }
.psk-acc-toggle:focus-visible, .psk-acc-plus:focus-visible, .psk-drawer__close:focus-visible { outline: 2px solid var(--psk-brand); outline-offset: 2px; }
.psk-acc-cards .psk-cards__nav { top: 90px; }

/* compact: 3 tiles + drawer */
.psk-acc-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.psk-acc-tile {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 40px 8px 8px; min-width: 0;
  background: #fff; border: 1px solid var(--psk-line); border-radius: var(--psk-radius); transition: border-color .15s, background-color .15s;
}
.psk-acc-tile.is-on { border-color: var(--psk-brand); background: #faf7fe; }
.psk-acc-tile__img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.psk-acc-tile__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.psk-acc-tile__info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.psk-acc-tile__info strong { color: var(--psk-brand); font-size: 13.5px; white-space: nowrap; }
.psk-acc-tile__info a {
  color: var(--psk-text); font-size: 12px; line-height: 1.25; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.psk-acc-tile__info a:hover { color: var(--psk-brand); }
.psk-acc-plus {
  position: absolute; top: 50%; right: 8px; width: 28px; height: 28px; margin: -14px 0 0; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--psk-brand); background: #fff; color: var(--psk-brand); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.psk-acc-plus::before { content: '+'; font-size: 18px; font-weight: 700; line-height: 1; }
.psk-acc-plus[aria-pressed="true"] { background: var(--psk-brand); color: #fff; }
.psk-acc-plus[aria-pressed="true"]::before { content: ''; width: 10px; height: 5px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translate(0, -1px) rotate(-45deg); }
.psk-acc__all { margin-top: 8px; }

.psk-drawer { position: fixed; inset: 0; z-index: 2147483000; color: var(--psk-text); font-size: 14px; line-height: 1.4; }
.psk-drawer[hidden], .psk-drawer [hidden] { display: none !important; }
.psk-drawer__shade { position: absolute; inset: 0; background: rgba(20, 16, 30, .4); opacity: 0; transition: opacity .25s; }
.psk-drawer__box {
  position: absolute; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%; background: #fff;
  display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0, 0, 0, .2);
  transform: translateX(100%); transition: transform .25s ease-out;
}
.psk-drawer.is-in .psk-drawer__shade { opacity: 1; }
.psk-drawer.is-in .psk-drawer__box { transform: none; }
.psk-drawer__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--psk-line); }
.psk-drawer__head strong { flex: 1 1 auto; font-size: 16px; }
.psk-drawer__grab { display: none; }
.psk-drawer__close {
  flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--psk-bg); color: var(--psk-text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.psk-drawer__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 16px; }
.psk-drawer__foot { padding: 0 16px 14px; border-top: 1px solid var(--psk-line); background: #fff; }
.psk-drawer__foot .psk-acc-sum { margin-top: 10px; }
.psk-drawer .psk-acc-sum__buy { width: 100%; }
html.psk-noscroll, html.psk-noscroll body { overflow: hidden; }

/* computer and phone views can differ */
@media (min-width: 576px) {
  .psk-acc--d-compact .psk-acc__view--d .psk-acc-sum, .psk-acc--d-compact.psk-acc .psk-acc-sum { margin-top: 10px; }
}
@media (max-width: 575px) {
  .psk-acc__view--d { display: none; }
  .psk-acc__view--m { display: block; }
  .psk-switch__btn { font-size: 13px; padding: 8px 6px; gap: 4px; }
  .psk-switch__label--full { display: none; }
  .psk-switch__label--short { display: inline; }
  .psk-acc-row { padding: 8px 10px; gap: 8px; min-height: 64px; }
  .psk-acc-row__img { flex-basis: 44px; width: 44px; height: 44px; }
  .psk-acc-sum { gap: 10px; }
  .psk-acc-sum__buy { width: 100%; min-width: 0; }
  .psk-acc-card { flex-basis: 46%; }
  .psk-acc-mini { grid-template-columns: minmax(0, 1fr); }
  .psk-drawer__box {
    top: auto; left: 0; width: 100%; height: 85vh; max-height: 85vh; border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); transform: translateY(100%);
  }
  .psk-drawer__head { position: relative; padding: 18px 14px 10px; }
  .psk-drawer__grab { display: block; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #d6cfe3; }
  .psk-drawer__body { padding: 10px 12px; }
  .psk-drawer__foot { padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .psk-panel { animation: none; }
  .psk-drawer__box, .psk-drawer__shade { transition: none; }
  .psk-acc-cards__track { scroll-behavior: auto; }
}
@media print { .psk-drawer { display: none !important; } }
