/* ParitShop Checkout Boost • v1.1.6-c
   Цветове: #4b007b, #8a2a87, #ad04c7, #2f5f00
*/

/* --------- Контейнер начало --------- */
.pscb-upsell-box{
  position:relative;
  margin:40px 0 20px;
  padding:18px 14px 16px;
  background:#fff7ff;
  border:1px dashed #d59ce5;
  border-radius:18px;

  display:grid;
  grid-template-columns:280px 1fr;
  gap:18px;

  box-shadow:0 4px 18px rgba(0,0,0,.06);
}

/* лилав „балон“ над секцията – както в количката */
.pscb-upsell-box::before{
  content:"ПРОМО ПРЕДЛОЖЕНИЯ";
  position:absolute;
  top:-14px;
  left:50%;
  transform:translateX(-50%);
  background:#4b007b;
  color:#fff;
  font-weight:700;
  font-size:18px;
  line-height:1.2;
  padding:6px 12px 6px;
  border-radius:999px;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
  text-transform:uppercase;
  letter-spacing:.04em;
  white-space:nowrap;
  pointer-events:none;
  z-index:5;
}

@media (max-width:980px){
  .pscb-upsell-box{ grid-template-columns:1fr;}
}
/* --------- Контейнер край --------- */



/* --------- Лява колона: карта + таймер начало --------- */
.pscb-side .pscb-card{
  background:#fff;
  border:0;
  border-radius:16px;
  padding:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.07);
  text-align:center;
}

/* заглавие „Специални оферти“ – 1:1 стил като голямото, но с +специфичност */
.pscb-side .pscb-card .pscb-card-head{
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.pscb-side .pscb-card .pscb-card-head,
.pscb-side .pscb-card .pscb-card-head > *,
.pscb-side .pscb-card .pscb-card-head b,
.pscb-side .pscb-card .pscb-card-head strong{
  color:#720167;
  font-weight:800;
  font-size:clamp(16px, 2.2vw, 16px);
  line-height:1.3;
  font-family:inherit;
}

.pscb-ic.sand{ filter:drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
/* --------- Лява колона: бележка под заглавието --------- */

.pscb-note{
  margin:.35rem auto .10rem;
  color:#6e6d6e;
  font-weight:700;
  font-size:14px;
  line-height:1.28;
  max-width: clamp(26ch, 92%, 34ch);
  padding:0 6px;
  text-align:center;
  text-wrap: balance;
}
@supports not (text-wrap: balance){
  .pscb-note{ word-break:keep-all; hyphens:auto; }
}

/* мобилен override */
@media (max-width:520px){
  .pscb-note{ max-width:34ch; }
}

/* фина адаптация за ~2 реда */
@media (max-width:980px){ .pscb-note{ --note-ch: 28ch; } }
@media (max-width:640px){ .pscb-note{ --note-ch: 24ch; font-size:13px; } }

/* отстояние между бележката и таймера */
#pscb-timer-card .pscb-digits{ margin-top: clamp(10px, 1.2vw, 16px) !important; }

/* Таймер – анимирани пръстени */
.pscb-digits{ display:flex; justify-content:center; gap:12px; align-items:flex-start; }
.pscb-digits .d{
  --ring: 2px;
  --deg: 0deg;
  position:relative; background:#ffffff; border:0; border-radius:14px;
  padding:12px 12px 10px; min-width:72px; text-align:center;
  box-shadow:0 4px 12px rgba(138,42,135,.12); isolation:isolate;
}
.pscb-digits .d > *{ position:relative; z-index:2; }
.pscb-digits .d span.num, .pscb-digits .d span, #pscb-dd, #pscb-mm, #pscb-ss{
  display:block; font-weight:900; font-size:24px; line-height:1;
}
.pscb-digits .d em{ display:block; font-style:normal; opacity:.8; font-size:11px; margin-top:4px; letter-spacing:.02em; }
.pscb-digits .d::before{
  content:""; position:absolute; inset: calc(-1 * var(--ring));
  border-radius:16px; background: conic-gradient(from -90deg, #8a2a87 var(--deg), #e9e0ed 0);
  filter: drop-shadow(0 3px 10px rgba(138,42,135,.18));
}
.pscb-digits .d::after{ content:""; position:absolute; inset: var(--ring); border-radius:12px; background:#fff; }
.pscb-digits .d.pscb-tick{ animation: pscb-bounce .35s ease; }
@keyframes pscb-bounce{ 0%{transform:scale(1);} 35%{transform:scale(1.08); box-shadow:0 6px 16px rgba(138,42,135,.22);} 100%{transform:scale(1);} }
.pscb-expired{ font-weight:800; color:#8a2a87; font-size:15px; text-align:center; padding:10px 6px; }
/* --------- Лява колона: карта + таймер край --------- */

/* по желание - да не стават фокусируеми/кликаеми */
.pscb-digits .d{ pointer-events: none; }


/* --------- Бонус бутон (пулс без сянка) начало --------- */
.pscb-bonus{ margin-top:18px; display:flex; justify-content:center; }
.pscb-bonus-btn{
  appearance:none; border:0; cursor:pointer;
  background:#8a2a87; color:#fff; font-weight:900;
  padding:12px 18px; border-radius:14px;
  width:100%; max-width:360px; text-align:center;
  animation: pscbSoftPulse 1.8s ease-in-out infinite;
  will-change: transform;
}
.pscb-bonus-btn:hover{ animation:none; transform:translateY(-1px) scale(1.06); filter:brightness(1.05); }
@keyframes pscbSoftPulse{ 0%,100%{transform:scale(1);} 50%{transform:scale(1.045);} }
/* --------- Бонус бутон (пулс без сянка) край --------- */

/* --------- Дясна колона: продукти – базов стил начало --------- */
.pscb-gridwrap .pscb-grid-title{
  margin:-4px 0 10px;
}

/* общ grid за продуктите (checkout) */
.pscb-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

/* малко по-ниска стъпка по екрани, за да не става прекалено високо */
@media (max-width:1180px){
  .pscb-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:980px){
  .pscb-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px){
  .pscb-grid{ grid-template-columns:1fr; }
}

/* карта на продукт */
.pscb-card.pscb-prod{
  background:#fff;
  border:2px solid #e8d3ee;
  border-radius:16px;
  padding:12px;
  text-align:center;
  transition:transform .12s ease, box-shadow .12s ease;
}
.pscb-card.pscb-prod:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

/* линкът около снимка + заглавие */
.pscb-thumb-title{
  display:block;
  text-decoration:none;
  color:inherit;
}
.pscb-thumb-title:hover{
  text-decoration:none;
}

/* картинката вътре в картата */
.pscb-card.pscb-prod img{
  width:100%;
  height:auto;
  border-radius:12px;
}

.pscb-title{
  margin:8px 0 4px;
  font-weight:700;
}
.pscb-price{
  margin-bottom:10px;
  color:#5b6470;
  font-weight:700;
}

/* Бутони в картите */
.pscb-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:10px;
  background:#720167;
  color:#fff;
  border:0;
  cursor:pointer;
  text-decoration:none;
  font-weight:800;
  position:relative;
}
.pscb-btn:before{ content:none !important; }
.pscb-btn-ic{ filter:drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
/* --------- Дясна колона: продукти – базов стил край --------- */


/* --------- Лоудър на бутоните начало --------- */
.pscb-btn.pscb-loading{ opacity:.7; pointer-events:none; padding-right:34px; }
.pscb-btn.pscb-loading::after{
  content:""; position:absolute; right:10px; top:50%; width:14px; height:14px;
  border:2px solid rgba(255,255,255,.9); border-top-color:transparent; border-radius:50%;
  transform:translateY(-50%); animation: pscb-spin .8s linear infinite;
}
@keyframes pscb-spin{ to{ transform:translateY(-50%) rotate(360deg); } }
/* --------- Лоудър на бутоните край --------- */


/* --------- Side Cart съвместимост начало --------- */
body.pscb-active .xoo-wsc-pname img{ display:none !important; }
/* --------- Side Cart съвместимост край --------- */

/* --------- Пазаруваш без риск начало --------- */
.pscb-safe{
  margin-top:12px;
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  box-shadow:0 10px 20px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:8px;
}

/* заглавие – консистентно със заглавието над грида */
.pscb-safe-text strong{
  display:block; text-align:center;
  color:#720167; font-weight:800;
  font-size:clamp(16px, 2.2vw, 16px);
  line-height:1.3; margin-bottom:2px; font-family:inherit;
}
.pscb-safe-text strong::before{
  content:"🛡️";
  margin-right:6px;
  display:inline-block;
  transform:translateY(1px);
}


/* описание – пълна ширина и стил като .pscb-note */
.pscb-safe-text span{
  display:block;
  width:100%;
  max-width:none;
  margin:.35rem 0 .10rem;
  color:#6e6d6e;
  font-weight:700;
  font-size:14px;
  line-height:1.28;
  padding:0 6px;
  text-align:center;
  text-wrap:balance;
}
@supports not (text-wrap: balance){
  .pscb-safe-text span{ word-break:normal; hyphens:auto; }
}

.pscb-safe-icon{ width:100%; border-radius:10px; overflow:hidden; position:relative; }
.pscb-safe-icon img{
  display:block; width:100%; height:auto;
  object-fit:contain; background:#fff;
  --bob: 6px;
  animation: pscbSafeBob 4s ease-in-out infinite !important;
  transform: translateZ(0);
  will-change: transform;
}
.pscb-safe:hover .pscb-safe-icon img{ animation-play-state: paused; }
@keyframes pscbSafeBob{
  0%,100% { transform: translateY(0); }
  25%     { transform: translateY(calc(var(--bob) * -1)); }
  50%     { transform: translateY(0); }
  75%     { transform: translateY(calc(var(--bob) * .5)); }
}
/* --------- Пазаруваш без риск край --------- */


/* --------- Заглавие над грида начало --------- */
.pscb-upsell-box .pscb-gridwrap > .pscb-grid-title{
  display:block;
  text-align:center;
  color:#720167;
  font-weight:800;
  font-size:clamp(15px, 1.9vw, 15px); 
  line-height:1.3;
  margin:6px 0 12px;
  font-family:inherit;
}
/* --------- Заглавие над грида край --------- */



/* --------- Продуктови карти - асинхронно потрепване начало --------- */
.pscb-grid .pscb-card.pscb-prod{
  --card-delay: .0s;
  --card-dur: 8s;
  animation: pscbCardTwitch var(--card-dur) ease-in-out infinite both;
  animation-delay: var(--card-delay);
  transform-origin:center;
  backface-visibility:hidden;
  will-change: transform;
  transition: transform .6s ease, box-shadow .6s ease;
}
.pscb-grid .pscb-card.pscb-prod:hover{
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+1){ --card-delay:.3s;  --card-dur: 9.2s; }
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+2){ --card-delay:1.1s;  --card-dur:10.4s; }
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+3){ --card-delay:.6s;  --card-dur: 8.6s; }
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+4){ --card-delay:2.0s;  --card-dur:11.0s; }
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+5){ --card-delay:1.5s;  --card-dur: 9.8s; }
@keyframes pscbCardTwitch{
  0%, 9%   { transform:none; }
  10%      { transform:translateY(-1px); }
  11%      { transform:none; }
  12%      { transform:translateY(-1px); }
  13%, 59% { transform:none; }
  60%      { transform:translateY(-1px); }
  61%      { transform:none; }
  62%      { transform:translateY(-1px); }
  63%,100% { transform:none; }
}
/* --------- Продуктови карти - асинхронно потрепване край --------- */


/* --------- Изображения в карти - фин „bob“ + пауза при hover начало --------- */
.pscb-grid .pscb-card.pscb-prod img{
  --img-delay: 0s;
  --img-dur: 11s;
  animation: pscbImgBob var(--img-dur) ease-in-out infinite both;
  animation-delay: var(--img-delay);
  transform-origin:50% 100%;
  will-change: transform;
  transition: transform .2s ease;
}
.pscb-grid .pscb-card.pscb-prod:hover img{
  animation-play-state: paused;
  transform: scale(1.01);
}
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+1) img{ --img-delay:.4s; --img-dur:12.2s; }
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+2) img{ --img-delay:1.0s; --img-dur:10.8s; }
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+3) img{ --img-delay:1.6s; --img-dur:11.6s; }
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+4) img{ --img-delay:.7s; --img-dur:13.0s; }
.pscb-grid .pscb-card.pscb-prod:nth-child(5n+5) img{ --img-delay:2.1s; --img-dur:10.4s; }
@keyframes pscbImgBob{
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(-2px); }
  50%      { transform: translateY(0); }
  75%      { transform: translateY(1px); }
}
/* --------- Изображения в карти - фин „bob“ + пауза при hover край --------- */


/* --------- Free shipping прогрес бар – постоянна анимация начало --------- */
#pscb-freebar-wrap { margin:12px 0 18px; }

.pscb-freebar{
  background:#fff;
  border:2px solid #8a2a87;
  border-radius:14px;
  padding:10px 12px;
  box-shadow:0 6px 18px rgba(0,0,0,.07);
}

.pscb-freebar-text{
  text-align:center; font-weight:800; letter-spacing:.2px; color:#4b007b; margin-bottom:10px;
}

.pscb-freebar-track{
  position:relative;
  height:14px;
  border-radius:999px;
  background:linear-gradient(180deg,#f6edf9,#ffffff);
  border:1px solid #ead6f1;
  overflow:hidden;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.10);
}

.pscb-freebar-fill{
  position:relative;
  height:100%;
  width:0;
  border-radius:999px;
  overflow:hidden;
  background-image:
    linear-gradient(90deg,#ad04c7 0%, #8a2a87 50%, #4b007b 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 9px, rgba(255,255,255,0) 9px 18px);
  background-size: 100% 100%, 18px 18px;
  background-position: 0 0, 0 0;
  animation: pscbStripeMove 1.1s linear infinite,
             pscbGlow 2.4s ease-in-out infinite alternate;
  transition: width .5s cubic-bezier(.2,.7,.2,1);
  will-change: background-position, width, filter;
  box-shadow:0 0 10px rgba(173,4,199,.28);
}

.pscb-freebar-fill::after{
  content:"";
  position:absolute; inset:-1px;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.32) 45%, transparent 90%);
  mix-blend-mode:screen;
  transform:translateX(-120%);
  animation: pscbSheen 2.3s ease-in-out infinite;
  pointer-events:none;
}

.pscb-freebar-reached .pscb-freebar-text{ color:#2f5f00; }
.pscb-freebar-reached .pscb-freebar-fill{
  background-image:
    linear-gradient(90deg,#54b200 0%, #2f5f00 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.26) 0 9px, rgba(255,255,255,0) 9px 18px);
  animation: pscbStripeMove 1.0s linear infinite,
             pscbGlow 2.0s ease-in-out infinite alternate,
             pscbPulse 1.2s ease-out 1;
  box-shadow:0 0 12px rgba(47,95,0,.30);
}

@keyframes pscbStripeMove{ to { background-position: 0 0, 18px 18px; } }
@keyframes pscbSheen{ 0%{transform:translateX(-120%);} 50%{transform:translateX(0%);} 100%{transform:translateX(120%);} }
@keyframes pscbGlow{ from{ filter:brightness(1); } to{ filter:brightness(1.08); } }
@keyframes pscbPulse{ 0%{ box-shadow:0 0 0 0 rgba(47,95,0,.38); } 100%{ box-shadow:0 0 0 16px rgba(47,95,0,0); } }

/* Намалено движение */
@media (prefers-reduced-motion: reduce){
  .pscb-freebar-fill,
  .pscb-freebar-reached .pscb-freebar-fill{ animation:none !important; transition:none !important; }
  .pscb-freebar-fill::after{ display:none; }
}
/* --------- Free shipping прогрес бар – постоянна анимация край --------- */


/* --------- Намалено движение (достъпност) начало --------- */
@media (prefers-reduced-motion: reduce){
  .pscb-bonus-btn,
  .pscb-grid .pscb-card.pscb-prod,
  .pscb-grid .pscb-card.pscb-prod img,
  .pscb-freebar-fill,
  .pscb-freebar-reached .pscb-freebar-fill{
    animation: none !important; transition: none !important;
  }
  .pscb-freebar-fill::after{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .pscb-safe-icon img{ animation:none !important; }
}
/* --------- Намалено движение (достъпност) край --------- */


/* --------- Защита от overrides начало --------- */
.pscb-grid .pscb-card.pscb-prod img{ animation-name: pscbImgBob !important; }
.pscb-grid .pscb-card.pscb-prod{ animation-name: pscbCardTwitch !important; }
/* --------- Защита от overrides край --------- */

/* --------- Cart upsell (страница Количка) начало --------- */
.pscb-cart-upsell{
  margin:16px 0 18px;
  padding:16px 12px 14px;
  background:#fff7ff;
  border:1px dashed #d59ce5;
  border-radius:18px;
  position:relative;
}

/* лилав „балон“ над секцията */
.pscb-cart-upsell::before{
  content:"ТОП ПРЕДЛОЖЕНИЯ";
  position:absolute;
  top:-14px;
  left:50%;
  transform:translateX(-50%);
  background:#4b007b;
  color:#fff;
  font-weight:700;
  font-size:18px;
  line-height:1.2;
  padding:5px 12px 6px;
  border-radius:999px;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
  text-transform:uppercase;
  letter-spacing:.04em;
  white-space:nowrap;
  pointer-events:none;
  z-index:2;
}

.pscb-cart-upsell .pscb-gridwrap{
  margin-top:15px;
}

.pscb-cart-upsell .pscb-grid-title{
  text-align:center;
  margin:4px 0 10px;
  color:#720167;
  font-weight:800;
}

/* grid за продуктите – 4 на ред на десктоп */
.pscb-cart-upsell .pscb-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

/* до 980px – 2 колони */
@media (max-width:980px){
  .pscb-cart-upsell .pscb-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* до 420px – пак 2 колони, по-сбит gap */
@media (max-width:420px){
  .pscb-cart-upsell{
    padding:14px 10px 12px;
  }
  .pscb-cart-upsell .pscb-grid{
    gap:8px;
  }
}

.pscb-cart-upsell .pscb-card.pscb-prod{
  background:#fff;
  border:2px solid #e8d3ee;
  border-radius:16px;
  padding:12px;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}

.pscb-cart-upsell .pscb-card.pscb-prod img{
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:12px;
}

.pscb-cart-upsell .pscb-title{
  margin:8px 0 4px;
  font-weight:700;
}

.pscb-cart-upsell .pscb-price{
  margin-bottom:10px;
  color:#5b6470;
  font-weight:700;
}

.pscb-cart-upsell .pscb-btn.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  max-width:220px;
  margin:0 auto;
}
/* --------- Cart upsell (страница Количка) край --------- */


/* --------- Mobile override: 2 продукта на ред в upsell грида начало --------- */
@media (max-width:640px){
  .pscb-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
/* --------- Mobile override: 2 продукта на ред в upsell грида край --------- */

