/* iCell варианти — блокът на страницата на продукта. Изгледът (плочки / карти / списък) се избира отделно за компютър и телефон. */
.icv { --icv-ink: #172233; --icv-mut: #5a6577; --icv-line: #d9e0ec; --icv-blue: #0b62d0; --icv-blue-d: #0a52bd; --icv-tint: #eef4fd; --icv-ok: #1c7a3d; --icv-off: #68738a; --icv-red: #b3261e;
  --icv-fs: 14px; --icv-fs-s: 12.5px; --icv-pic: 52px; --icv-tile: 92px; --icv-pad: 8px; --icv-sel: #1a7f43; --icv-sel-tint: #e9f7ee;
  margin: 16px 0 18px; padding: 12px 14px 14px; border: 1px solid #dfe6f2; border-radius: 14px; background: #f8fafd; color: var(--icv-ink); letter-spacing: 0; clear: both; overflow: hidden; }
.icv--compact { --icv-fs: 13px; --icv-fs-s: 12px; --icv-pic: 40px; --icv-tile: 78px; --icv-pad: 6px; }
.icv, .icv * { box-sizing: border-box; }
.icv ul { list-style: none; margin: 0; padding: 0; }
.icv a { text-decoration: none; color: var(--icv-ink); position: relative; border: 1.5px solid var(--icv-line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.icv-testnote { margin: 0 0 6px; font-size: 12px; color: #8a5a00; }
.icv-head { margin: 0 0 10px; padding: 0 0 8px; border-bottom: 1px dashed #d5ddea; }
.icv-head p { margin: 0; }
.icv-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--icv-ink); }
.icv-title em { font-style: normal; font-weight: 400; margin-left: auto; padding: 1px 9px; border-radius: 999px; background: #e9eef7; color: #3d4a60; font-size: var(--icv-fs-s); white-space: nowrap; }
.icv-cur { margin-top: 2px !important; font-size: var(--icv-fs-s); line-height: 1.4; color: var(--icv-mut); overflow-wrap: break-word; }
.icv-cur b { font-weight: 600; color: #135c31; }
.icv-pic { position: relative; display: block; flex: none; line-height: 0; border-radius: 6px; background: #f6f8fb; }
.icv-pic > img:first-child { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.icv-txt { display: block; min-width: 0; }
.icv-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--icv-fs); line-height: 1.25; overflow-wrap: break-word; }
.icv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; font-size: var(--icv-fs-s); line-height: 1.4; }
.icv-price { font-weight: 700; color: var(--icv-blue-d); white-space: nowrap; }
.icv-stock { color: var(--icv-ok); white-space: nowrap; }
.icv-stock::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 4px; vertical-align: 1px; }

/* етикетите върху снимките */
.icv-st { position: absolute; z-index: 2; height: auto; max-width: none; min-width: 12px; pointer-events: none; }
.icv-st-xl { left: 0; } .icv-st-xr { right: 0; } .icv-st-xc { left: 50%; }
.icv-st-yt { top: 0; } .icv-st-yb { bottom: 0; } .icv-st-yc { top: 50%; }

/* състояния */
.icv a:hover { border-color: #9db9e6; box-shadow: 0 3px 12px rgba(11, 98, 208, .12); }
.icv a:focus-visible { outline: 3px solid #9cc2f5; outline-offset: 2px; }
.icv a.is-on { border-color: var(--icv-sel); background: var(--icv-sel-tint); box-shadow: 0 0 0 1.5px var(--icv-sel); }
.icv a.is-on .icv-name { font-weight: inherit; }
/* избран, но изчерпан: рамката остава зелена, вътре блокът е червеникав */
.icv a.is-on.is-off { background: #fdecea; }
.icv a.is-on.is-off .icv-name { color: var(--icv-ink); }
.icv a.is-on.is-off .icv-stock { color: var(--icv-red); font-weight: 500; }

/* изчерпани: приглушени (по подразбиране) */
.icv a.is-off .icv-pic > img { opacity: .5; filter: grayscale(.6); }
.icv a.is-off .icv-name, .icv a.is-off .icv-price, .icv a.is-off .icv-stock { color: var(--icv-off); }
.icv a.is-off:not(.is-on) { background: #fafbfc; }
/* изчерпани: червена рамка и надпис */
.icv--oos-red a.is-off:not(.is-on) { border-color: #e2a9a4; background: #fff; }
.icv--oos-red a.is-off .icv-pic > img { opacity: .8; filter: none; }
.icv--oos-red a.is-off .icv-name, .icv--oos-red a.is-off .icv-price { color: var(--icv-ink); }
.icv--oos-red a.is-off .icv-stock { color: var(--icv-red); font-weight: 500; }
/* изчерпани: червен хикс върху снимката */
.icv--oos-cross a.is-off .icv-pic::after { content: ''; position: absolute; inset: 8%; z-index: 3; background:
  linear-gradient(45deg, transparent calc(50% - 1.5px), var(--icv-red) calc(50% - 1.5px), var(--icv-red) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
  linear-gradient(-45deg, transparent calc(50% - 1.5px), var(--icv-red) calc(50% - 1.5px), var(--icv-red) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.icv--oos-cross a.is-off .icv-stock { color: var(--icv-red); }
@media (prefers-reduced-motion: reduce) { .icv a { transition: none; } }

@media (min-width: 768px) {
  /* плочки */
  .icv--d-tiles .icv-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .icv--d-tiles .icv-it { width: var(--icv-tile); }
  .icv--d-tiles a { display: block; height: 100%; padding: 5px 5px 6px; text-align: center; }
  .icv--d-tiles .icv-name { margin-top: 5px; font-size: var(--icv-fs-s); }
  .icv--d-tiles .icv-meta { justify-content: center; }
  .icv--d-tiles .icv-stock { display: none; }
  .icv--d-tiles a.is-off .icv-stock { display: inline; font-size: 11px; }
  .icv--d-tiles a.is-off .icv-stock::before { display: none; }
  .icv--d-tiles a.is-on::after { content: ''; position: absolute; top: 4px; right: 4px; z-index: 4; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: var(--icv-sel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px; }
  .icv--d-tiles a.is-on .icv-name { color: #135c31; }
  /* карти */
  .icv--d-cards .icv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); grid-auto-rows: 1fr; gap: 8px; }
  .icv--d-cards .icv-txt { flex: 1 1 auto; }
  .icv--d-cards a { display: flex; align-items: center; gap: 10px; height: 100%; padding: var(--icv-pad) 10px var(--icv-pad) var(--icv-pad); }
  .icv--d-cards .icv-pic { width: var(--icv-pic); }
  /* цената и наличността са винаги на един ред, без пренасяне — картите са еднакви, каквото и да пише */
  .icv--d-cards .icv-meta { margin-top: 2px; flex-wrap: nowrap; gap: 0 7px; white-space: nowrap; }
  .icv--d-cards .icv-stock { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .icv--d-cards .icv-price { font-size: 14px; }
  .icv--d-cards a.is-on::after { content: ''; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--icv-sel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px; }
  .icv--d-cards a.is-on .icv-name { padding-right: 16px; }
  /* списък */
  .icv--d-list .icv-list { border: 1.5px solid var(--icv-line); border-radius: 10px; overflow: hidden; background: #fff; }
  .icv--d-list .icv-it + .icv-it { border-top: 1px solid var(--icv-line); }
  .icv--d-list a { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; border: 0; border-radius: 0; box-shadow: none; }
  .icv--d-list a:hover { background: #f6f9fe; box-shadow: none; }
  .icv--d-list a.is-on { box-shadow: inset 4px 0 0 var(--icv-sel); background: var(--icv-sel-tint); }
  .icv--d-list a.is-on.is-off { background: #fdecea; }
  .icv--d-list a:focus-visible { outline-offset: -3px; }
  .icv--d-list .icv-pic { width: 30px; }
  .icv--d-list .icv-txt { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
  .icv--d-list .icv-name { flex: 1 1 auto; -webkit-line-clamp: 1; }
  .icv--d-list .icv-meta { flex: none; flex-wrap: nowrap; }
  .icv--d-list.icv--oos-red a.is-off:not(.is-on) { box-shadow: inset 3px 0 0 #d98f89; }
}
@media (max-width: 767.98px) {
  /* плочки */
  .icv--m-tiles .icv-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .icv--m-tiles .icv-it { width: var(--icv-tile); }
  .icv--m-tiles a { display: block; height: 100%; padding: 5px 5px 6px; text-align: center; }
  .icv--m-tiles .icv-name { margin-top: 5px; font-size: var(--icv-fs-s); }
  .icv--m-tiles .icv-meta { justify-content: center; }
  .icv--m-tiles .icv-stock { display: none; }
  .icv--m-tiles a.is-off .icv-stock { display: inline; font-size: 11px; }
  .icv--m-tiles a.is-off .icv-stock::before { display: none; }
  .icv--m-tiles a.is-on::after { content: ''; position: absolute; top: 4px; right: 4px; z-index: 4; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: var(--icv-sel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px; }
  .icv--m-tiles a.is-on .icv-name { color: #135c31; }
  /* карти */
  /* на телефон картите са винаги по две на ред — иначе не се различават от списъка */
  .icv--m-cards .icv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 7px; }
  .icv--m-cards a { gap: 6px !important; padding: 6px 5px 6px 5px !important; align-items: flex-start !important; }
  .icv--m-cards .icv-pic { width: 30px !important; }
  .icv--m-cards .icv-name { font-size: 12.5px; -webkit-line-clamp: 2; }
  .icv--m-cards .icv-meta { font-size: 12px; gap: 0 6px; }
  .icv { padding: 10px 10px 12px; }
  .icv--m-cards .icv-txt { flex: 1 1 auto; }
  .icv--m-cards a { display: flex; align-items: center; gap: 10px; height: 100%; padding: var(--icv-pad) 10px var(--icv-pad) var(--icv-pad); }
  .icv--m-cards .icv-pic { width: var(--icv-pic); }
  /* цената и наличността са винаги на един ред, без пренасяне — картите са еднакви, каквото и да пише */
  .icv--m-cards .icv-meta { margin-top: 2px; flex-wrap: nowrap; gap: 0 7px; white-space: nowrap; }
  .icv--m-cards .icv-stock { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .icv--m-cards a.is-on::after { content: ''; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--icv-sel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px; }
  .icv--m-cards a.is-on .icv-name { padding-right: 16px; }
  /* на телефон отметката е долу вдясно — горе взима място от името */
  .icv--m-cards a.is-on::after { top: auto; bottom: 5px; right: 5px; width: 15px; height: 15px; background-size: 15px; }
  .icv--m-cards a.is-on .icv-name { padding-right: 0; }
  .icv--m-cards a.is-on .icv-meta { padding-right: 18px; }
  /* списък */
  .icv--m-list .icv-list { border: 1.5px solid var(--icv-line); border-radius: 10px; overflow: hidden; background: #fff; }
  .icv--m-list .icv-it + .icv-it { border-top: 1px solid var(--icv-line); }
  .icv--m-list a { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; border: 0; border-radius: 0; box-shadow: none; }
  .icv--m-list a:hover { background: #f6f9fe; box-shadow: none; }
  .icv--m-list a.is-on { box-shadow: inset 4px 0 0 var(--icv-sel); background: var(--icv-sel-tint); }
  .icv--m-list a.is-on.is-off { background: #fdecea; }
  .icv--m-list a:focus-visible { outline-offset: -3px; }
  .icv--m-list .icv-pic { width: 30px; }
  .icv--m-list .icv-txt { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
  .icv--m-list .icv-name { flex: 1 1 auto; -webkit-line-clamp: 1; }
  .icv--m-list .icv-meta { flex: none; flex-wrap: nowrap; }
  .icv--m-list.icv--oos-red a.is-off:not(.is-on) { box-shadow: inset 3px 0 0 #d98f89; }
  /* тесни карти по две на ред: надписът за наличност е по-дребен, за да се събира до цената */
  .icv--m-cards .icv-meta { gap: 0 4px; }
  .icv--m-cards .icv-price { font-size: 12px; }
  .icv--m-cards .icv-stock { font-size: 11.5px; overflow: visible; }
  @media (max-width: 374.98px) { .icv--m-cards .icv-stock { font-size: 10.5px; } }
  .icv--m-cards .icv-stock::before { width: 5px; height: 5px; margin-right: 3px; }
  .icv--m-list .icv-stock { font-size: 0; }
  .icv--m-list .icv-stock::before { margin-right: 0; width: 8px; height: 8px; }
  .icv--m-list a.is-off .icv-stock { font-size: 11.5px; }
  .icv--m-list a.is-off .icv-stock::before { display: none; }
}

/* етикетът „вижте наличните варианти“ води до блока — да личи, че се натиска */
.icsp-lb--v { cursor: pointer; }
