/**
 * iCell — карти за продукти (модул icellcards)
 * Мрежа: бутонът „Добави“ става брояч. Списък (.product_list.list): количество + „Добави“, след добавяне — същият брояч като в мрежата.
 * Цветове с контраст ≥ 4.5:1 спрямо фона им. Бутоните не се маркират като текст.
 */

/* ---------- li около картата: без рамката/отстъпа от предишния дизайн (картата има своя) ---------- */
body .products .product_list li:has(> .icc),
body .products .product_list li.icc-li,
body .product_list li:has(> .icc),
body .product_list li.icc-li {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
body .products .product_list:not(.list) > li:has(> .icc),
body .products .product_list:not(.list) > li.icc-li { display: flex !important; flex-direction: column; }
/* колоните в „Мрежа“ според мястото, а не според екрана: при по-малко от ~880 px (таблет, хоризонтален телефон,
   лаптоп със странична колона) — 3 вместо 4, за да не стават картите по-тесни от ~200 px */
#js-product-list .product_list:has(> li > .icc) { container: iccl / inline-size; }
@media (min-width: 768px) {
  @container iccl (max-width: 879.98px) {
    body #js-product-list .products .product_list:not(.list) > li:has(> .icc),
    body #js-product-list .products .product_list:not(.list) > li.icc-li { flex: 0 1 calc(33.333% - 20px) !important; margin: 10px !important; }
  }
}
@media (hover: hover) and (pointer: fine) {
  body .products .product_list li:has(> .icc):hover,
  body .products .product_list li.icc-li:hover { transform: none !important; box-shadow: none !important; }
}

/* ---------- картата ---------- */
.product-miniature.icc {
  --icc-ink: #172233;
  --icc-muted: #5f6b7a;
  --icc-line: #e3eaf3;
  --icc-step: #c3d1e4;
  --icc-accent: #0b62d0;
  --icc-accent-h: #0a52bd;
  --icc-price: #0a52bd;
  --icc-r: 14px;
  --icc-h: 42px;
  position: relative;
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  background: #fff !important;
  border: 1px solid var(--icc-line) !important;
  border-radius: var(--icc-r) !important;
  overflow: hidden !important; /* модулът за стикери (FMM) слага overflow:visible в style="" — без това ъглите се губят */
  box-shadow: 0 1px 2px rgba(15, 42, 77, .04);
  color: var(--icc-ink);
  text-align: left !important;
  transition: border-color .2s ease, box-shadow .2s ease;
  container: icc / inline-size;
}
.icc *, .icc *::before, .icc *::after { box-sizing: border-box; }

/* снимката: до ръба на картата, стикерите остават на 6 px от ръба */
.icc .icc-media {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  border-radius: 0 !important;
  background: #fff !important;
  aspect-ratio: 1 / 1;
}
/* малко въздух около снимката, за да не я режат заоблените ъгли на картата */
.icc .icc-img { display: block; position: relative; width: 100%; height: 100%; margin: 0 !important; padding: 5px !important; }
.icc .icc-img img { display: block; width: 100% !important; height: 100% !important; max-width: none; margin: 0 !important; object-fit: contain; }
.icc .product-flags .product-flag.out_of_stock,
.icc .product-flags .product-flag.discount,
.icc .product-flags .product-flag.on-sale { display: none !important; }

/* „Любими“, „Сравни“, „Бърз преглед“ излизат при посочване с мишката — и при обхождане с клавиатурата */
.icc .icc-media:focus-within .outer-functional { opacity: 1 !important; transform: none !important; }

/* изчерпан: избледняла снимка и надпис по средата */
.icc--out .icc-img img { opacity: .45; filter: grayscale(1); }
/* втората снимка при посочване (темата я показва с opacity:1) — по настройка също избледняла, иначе в цвят */
body .products .product_list li .icc--out .icc-img img.fliper_image { filter: none; }
body .products .product_list li .icc--out.icc-fh:hover .icc-img img.fliper_image { opacity: .45 !important; filter: grayscale(1); }
body .products .product_list li .icc--out.icc-fh:hover .icc-img:has(img.fliper_image) img:not(.fliper_image) { opacity: 0; }
/* стикерите-картинки (USB C и т.н.) по настройка също избледнели; надписите („Нов“, „USB-A ➤ …“) остават */
.icc--out.icc-fs .fmm_sticker_base_span { opacity: .45; filter: grayscale(1); }
.icc .icc-outlabel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(23, 34, 51, .86);
  color: #fff;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------- текст ---------- */
.icc .icc-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 8px; min-width: 0; padding: 10px 14px 14px; }
.icc .icc-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.icc .icc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; min-width: 0; }
.icc .icc-brand {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--icc-muted) !important;
  text-decoration: none !important;
}
.icc a.icc-brand:hover { color: var(--icc-ink) !important; }
.icc .icc-st {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.icc .icc-st--in { background: #e8f6ee; color: #137a3c; }
.icc .icc-st--low { background: #ffe9c2; color: #6e4300; }
.icc .icc-st--out { background: #fdecec; color: #b42318; }

.icc .icc-title {
  height: auto !important;
  min-height: 60px;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  text-transform: none !important;
  text-align: left !important;
}
.icc .icc-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: inherit !important;
  color: var(--icc-ink) !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere; /* дълга дума („Мултифункционален“) в тясна карта — пренася се, вместо да се реже */
}

/* ---------- цена ---------- */
.icc .icc-buy { display: flex; flex-direction: column; gap: 8px; margin-top: auto; min-width: 0; }
.icc .icc-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-height: 26px; margin: 0 !important; }
.icc .icc-price {
  font-size: 20px !important;
  line-height: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -.2px;
  color: var(--icc-price) !important;
  white-space: nowrap;
}
.icc--out .icc-price { color: var(--icc-muted) !important; }
.icc .icc-old { font-size: 13px; line-height: 16px; color: var(--icc-muted); text-decoration: line-through; white-space: nowrap; }
.icc .icc-off {
  align-self: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: #b42318;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
}
/* колко бройки има в количката — вдясно на реда с цената */
.icc .icc-badge {
  display: none;
  align-items: center;
  align-self: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  background: #0a52bd;
  color: #fff;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.icc--in .icc-badge { display: inline-flex; }
.icc .icc-badge .icc-i { width: 14px; height: 14px; }
.product_list.list .icc .icc-badge { align-self: flex-end; margin: 3px 0 0; }
/* темата оцветява всички <b> в тъмносиво — числата взимат цвета на своя ред */
.icc .icc-n,
.icc .icc-ic-n,
.icc .icc-badge-n { color: inherit !important; }
.icc .icc-incart { display: none; }

/* ---------- бутони ---------- */
.icc .icc-act { position: relative; min-width: 0; }
.icc button { font-family: inherit; }
.icc .icc-add,
.icc .icc-padd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: var(--icc-h);
  margin: 0;
  padding: 0 10px;
  border: 0 !important;
  border-radius: 10px;
  background: var(--icc-accent) !important;
  color: #fff !important;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease;
}
.icc .icc-ctr {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: var(--icc-h);
  border: 2px solid var(--icc-accent);
  border-radius: 10px;
  background: #ebf3fe;
  user-select: none;
  -webkit-user-select: none;
}
.icc--in .icc-ctr { display: flex; }
.icc--in .icc-add { display: none; }
.icc .icc-cb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: calc(var(--icc-h) - 4px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--icc-price);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.icc .icc-cb:disabled,
.icc .icc-cb.is-off { color: #8d9aab; cursor: not-allowed; }
.icc .icc-cn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1; font-weight: 700; color: #0a3f93; }
.icc .icc-n { font-weight: 800; }
.icc .icc-dec .icc-i--del,
.icc--one .icc-dec .icc-i--minus { display: none; }
.icc--one .icc-dec .icc-i--del { display: inline-block; }

/* достигната наличност: етикет върху горната рамка на брояча */
.icc .icc-ctr,
.icc .icc-step { position: relative; }
.icc .icc-max {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  display: none;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 999px;
  background: #ffe9c2;
  color: #6e4300;
  box-shadow: 0 0 0 2px #fff;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.icc--max .icc-ctr .icc-max { display: block; }
.icc .icc-max-l { display: none; }
@container icc (min-width: 214px) {
  .icc .icc-max-l { display: inline; }
  .icc .icc-max-s { display: none; }
}
.product_list.list .icc .icc-max-l { display: none !important; }
.product_list.list .icc .icc-max-s { display: inline !important; }

.icc .icc-pick { display: none; }
.icc .icc-step {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: var(--icc-h);
  border: 1px solid var(--icc-step);
  border-radius: 10px;
  background: #fff;
}
.icc .icc-sb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: calc(var(--icc-h) - 2px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--icc-ink);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.icc .icc-sb:disabled,
.icc .icc-sb.is-off { color: #8d9aab; cursor: not-allowed; }
.icc .icc-padd.is-off { opacity: .55; cursor: not-allowed; }
.icc input.icc-q {
  width: 38px !important;
  min-width: 0;
  height: calc(var(--icc-h) - 2px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--icc-ink) !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.icc input.icc-q::-webkit-inner-spin-button,
.icc input.icc-q::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.icc .icc-padd { flex: 0 0 120px; width: 120px; }
.icc .icc-padd .icc-i--ok,
.icc .icc-padd.is-done .icc-i--cart { display: none; }
.icc .icc-padd.is-done .icc-i--ok { display: inline-block; }

.icc .icc-btn2,
.icc .icc-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: var(--icc-h);
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px !important;
  line-height: 1;
  font-weight: 700 !important;
  white-space: nowrap;
  text-decoration: none !important;
  user-select: none;
  -webkit-user-select: none;
}
.icc .icc-btn2 { border: 1px solid var(--icc-step); background: #fff; color: var(--icc-price) !important; }
.icc .icc-bar { border: 0; background: #eef1f5; color: #4b5563; }

.icc .icc-i {
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  background-color: currentColor;
  -webkit-mask: var(--icc-i) center / contain no-repeat;
  mask: var(--icc-i) center / contain no-repeat;
}
.icc .icc-cb .icc-i, .icc .icc-sb .icc-i { width: 15px; height: 15px; }
.icc .icc-i--bell, .icc .icc-i--ban { width: 16px; height: 16px; }

/* кратък/дълъг текст според ширината на картата (без container queries — краткият) */
.icc .icc-lg,
.icc .icc-xl { display: none; }
/* тясна карта (телефон, 2 в ред): наличността без главни букви, за да се събере до марката */
@container icc (max-width: 200px) {
  .icc .icc-st { flex-shrink: 0; max-width: none; padding: 2px 6px; letter-spacing: 0; text-transform: none; }
  .icc .icc-brand { flex: 0 1 auto; }
}
@container icc (min-width: 214px) {
  .icc .icc-lg { display: inline; }
  .icc .icc-sm { display: none; }
}

/* съобщение (няма повече бройки, грешка): над бутона, не размества картата */
.icc .icc-msg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 5;
  padding: 7px 9px;
  border: 1px solid #f1c4bf;
  border-radius: 8px;
  background: #fff6f5;
  color: #b42318;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 16px -8px rgba(15, 42, 77, .3);
  pointer-events: none;
}
.icc .icc-msg:empty,
.icc .icc-msg.is-sr {
  padding: 0;
  border: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  box-shadow: none;
  white-space: nowrap;
}

.icc a:focus-visible,
.icc button:focus-visible,
.icc input:focus-visible { outline: 2px solid #0a3f93 !important; outline-offset: 2px; }
.icc .icc-ctr button:focus-visible { outline-offset: -2px; }
.icc .icc-step input:focus-visible { outline-offset: -2px; }
.icc .is-busy { cursor: progress; }

@media (hover: hover) and (pointer: fine) {
  .product-miniature.icc:hover { border-color: #cfdff3 !important; box-shadow: 0 2px 4px rgba(15, 42, 77, .05), 0 14px 28px -16px rgba(15, 42, 77, .28); }
  .icc .icc-title a:hover { color: var(--icc-accent-h) !important; }
  .icc .icc-add:hover, .icc .icc-padd:not(.is-off):hover { background: #0a4fb0 !important; }
  .icc .icc-cb:not(.is-off):hover { background: rgba(11, 98, 208, .12); }
  .icc .icc-sb:not(.is-off):hover { background: #f0f4fa; }
  .icc .icc-btn2:hover { border-color: var(--icc-accent); background: #f5f9ff; }
}

/* ---------- телефон: мрежа ---------- */
@media (max-width: 767px) {
  .product-miniature.icc { --icc-r: 12px; --icc-h: 40px; }
  .icc .icc-body { gap: 7px; padding: 8px 10px 10px; }
  .icc .icc-info { gap: 7px; }
  .icc .icc-meta { gap: 6px; min-height: 20px; }
  .icc .icc-brand { font-size: 10.5px !important; letter-spacing: .5px; }
  .icc .icc-st { padding: 2px 6px; letter-spacing: .3px; }
  .icc .icc-title { min-height: 54px; font-size: 13px !important; line-height: 18px !important; }
  .icc .icc-price { font-size: 17px !important; line-height: 22px !important; }
  .icc .icc-prices { min-height: 22px; gap: 2px 6px; }
  .icc .icc-old { font-size: 12px; }
  .icc .icc-off { font-size: 11px; padding: 1px 5px; }
  .icc .icc-add, .icc .icc-btn2, .icc .icc-bar { font-size: 13px !important; gap: 6px; }
  .icc .icc-cb { flex-basis: 36px; width: 36px; }
  .icc .icc-cn { font-size: 13px; }
  .icc .icc-outlabel { padding: 6px 11px; font-size: 12px; line-height: 15px; letter-spacing: .7px; }
  .icc .icc-img { padding: 4px !important; }
  .icc .icc-badge { padding: 2px 8px 2px 7px; font-size: 12px; line-height: 16px; }
  .icc .icc-badge .icc-i { width: 13px; height: 13px; }
}

/* ---------- изглед „Списък“ ---------- */
body .products .product_list.list > li:has(> .icc),
body .products .product_list.list > li.icc-li {
  display: block !important;
  flex: 0 0 100% !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  text-align: left !important;
}
body .products .product_list.list > li:has(> .icc)::after,
body .products .product_list.list > li.icc-li::after { display: none !important; }

.product_list.list .product-miniature.icc { --icc-r: 12px; flex-direction: row; align-items: center; gap: 18px; padding: 10px 16px 10px 10px !important; }
.product_list.list .icc .icc-media { flex: 0 0 112px; width: 112px !important; height: 112px; border-radius: 8px !important; overflow: hidden; }
.product_list.list .icc .icc-outlabel { padding: 4px 8px; border-radius: 6px; font-size: 10.5px; line-height: 13px; letter-spacing: .5px; }
.product_list.list .icc .icc-img { padding: 3px !important; }
.product_list.list .icc .icc-body { flex-direction: row; align-items: center; gap: 18px; padding: 0; }
.product_list.list .icc .icc-info { flex: 1 1 auto; gap: 5px; }
.product_list.list .icc .icc-meta { justify-content: flex-start; gap: 10px; min-height: 0; }
.product_list.list .icc .icc-title { min-height: 0; font-size: 15px !important; line-height: 21px !important; }
.product_list.list .icc .icc-buy { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 18px; margin: 0; }
.product_list.list .icc .icc-prices { flex-direction: column; flex-wrap: nowrap; align-items: flex-end; gap: 1px; min-width: 104px; min-height: 0; }
.product_list.list .icc .icc-old { order: -1; font-size: 12.5px; }
.product_list.list .icc .icc-act { flex: 0 0 236px; width: 236px; }
.product_list.list .icc .icc-add { display: none !important; }
.product_list.list .icc .icc-ctr { display: none; }
.product_list.list .icc .icc-pick { display: flex; justify-content: flex-end; gap: 8px; }
/* след добавяне — същият брояч като в мрежата (−/кошче, бройка, +, „Макс. наличност“) */
.product_list.list .icc--in .icc-ctr { display: flex; }
.product_list.list .icc--in .icc-pick { display: none; }
/* съобщенията — вляво от бутоните, за да не ги реже горният ръб на реда */
.product_list.list .icc .icc-msg {
  top: calc(100% + 6px);
  right: 0;
  bottom: auto;
  left: auto;
  width: max-content;
  max-width: 280px;
}
.product_list.list .icc .icc-msg:empty,
.product_list.list .icc .icc-msg.is-sr { width: 1px; }
.product_list.list .icc .icc-incart { display: none !important; }
.product_list.list .icc--in .icc-incart {
  display: inline-flex;
  align-items: center;
  color: #137a3c;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.product_list.list .icc--in .icc-incart::before { content: "✓"; margin-right: 4px; }
.icc .icc-ic-n { font-weight: 800; }
.icc .icc-ic-s { display: none; }
.product_list.list .icc .icc-lg,
.product_list.list .icc .icc-xl { display: inline; }

/* „Списък“ в по-тясно място (таблет, хоризонтален телефон, лаптоп със странична колона):
   името на цял ред, под него — цената вляво и бутоните вдясно */
@media (min-width: 768px) {
  @container icc (max-width: 859.98px) {
    .product_list.list .icc .icc-body { flex-direction: column; align-items: stretch; gap: 10px; }
    .product_list.list .icc .icc-info { flex: 0 0 auto; }
    .product_list.list .icc .icc-buy { justify-content: space-between; gap: 16px; }
    .product_list.list .icc .icc-prices { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
    .product_list.list .icc .icc-old { order: 0; }
    .product_list.list .icc .icc-badge { align-self: center; margin: 0; }
    .product_list.list .icc .icc-msg { top: auto; bottom: calc(100% + 12px); } /* над бутона, над „Макс. наличност“ */
  }
}

@media (max-width: 767px) {
  .product_list.list .product-miniature.icc { align-items: stretch; gap: 10px; padding: 10px !important; }
  .product_list.list .icc .icc-media { flex-basis: 96px; width: 96px !important; height: 96px; align-self: flex-start; }
  .product_list.list .icc .icc-body { flex-direction: column; align-items: stretch; gap: 5px; }
  .product_list.list .icc .icc-meta { justify-content: space-between; gap: 6px; }
  .product_list.list .icc .icc-title { font-size: 13.5px !important; line-height: 19px !important; }
  .product_list.list .icc .icc-buy { justify-content: space-between; align-items: flex-end; gap: 6px; margin-top: auto; }
  .product_list.list .icc .icc-prices { align-items: flex-start; min-width: 0; }
  .product_list.list .icc .icc-badge { align-self: flex-start; }
  .product_list.list .icc .icc-ctr { min-width: 136px; gap: 4px; }
  .product_list.list .icc .icc-msg { top: auto; bottom: calc(100% + 6px); max-width: 190px; white-space: normal; }
  .product_list.list .icc .icc-act { flex: 0 0 auto; width: auto; }
  .product_list.list .product-miniature.icc { --icc-h: 38px; }
  .product_list.list .icc .icc-pick { gap: 6px; }
  .product_list.list .icc .icc-sb { width: 28px; }
  .product_list.list .icc input.icc-q { width: 28px !important; font-size: 14px !important; }
  .product_list.list .icc .icc-padd { flex: 0 0 42px; width: 42px; padding: 0; }
  .product_list.list .icc .icc-padd-t { display: none; }
  .product_list.list .icc .icc-btn2,
  .product_list.list .icc .icc-bar { width: auto; padding: 0 12px; font-size: 13px !important; }
  .product_list.list .icc .icc-lg,
  .product_list.list .icc .icc-xl,
  .product_list.list .icc .icc-ic-t { display: none; }
  .product_list.list .icc .icc-ic-s { display: inline; }
  .product_list.list .icc .icc-sm { display: inline; }
}

/* ---------- „Любими“, „Сравни“, „Бърз преглед“ — по настройките за „Мрежа“ (icc-gf-*, icc-gq-act) и „Списък“ (icc-lf-*, icc-qv-act) ---------- */
/* окото до бутоните: скрито, освен в изгледа, за който е включено (темата показва всеки .quick-view в li) */
.icc .icc-qv.quick-view { display: none !important; }

/* „Мрежа“ (и слайдерите) */
.product_list:not(.list) .icc.icc-gf-none .outer-functional,
.product_list:not(.list) .icc.icc-gf-quick.icc-gq-act .outer-functional { display: none !important; }
.product_list:not(.list) .icc.icc-gf-quick .outer-functional .wishlist,
.product_list:not(.list) .icc.icc-gf-quick .outer-functional .compare { display: none !important; }

/* „Списък“ */
.product_list.list .icc.icc-lf-none .outer-functional,
.product_list.list .icc.icc-lf-quick.icc-qv-act .outer-functional { display: none !important; }
.product_list.list .icc.icc-lf-quick .outer-functional .wishlist,
.product_list.list .icc.icc-lf-quick .outer-functional .compare { display: none !important; }

@media (min-width: 768px) {
  /* „Списък“ — върху снимката: малки бутони в бяла лента горе вдясно (при посочване, както в мрежата) */
  .product_list.list .icc .outer-functional {
    top: 4px !important;
    right: 4px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 5;
    padding: 3px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(15, 42, 77, .16);
  }
  .product_list.list .icc .outer-functional .functional-buttons { display: flex; flex-direction: column; gap: 2px; width: auto !important; height: auto !important; }
  .product_list.list .icc .outer-functional .functional-buttons a {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    -webkit-mask-size: 16px auto !important;
    mask-size: 16px auto !important;
  }

  /* „Мрежа“ — по настройка бутоните върху снимката в същата бяла обвивка като в „Списък“ */
  .product_list:not(.list) .icc.icc-gbox .outer-functional {
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    z-index: 5;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(15, 42, 77, .16);
  }
  .product_list:not(.list) .icc.icc-gbox .outer-functional .functional-buttons { display: flex; flex-direction: column; gap: 2px; width: auto !important; height: auto !important; }
  .product_list:not(.list) .icc.icc-gbox .outer-functional .functional-buttons a {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    -webkit-mask-size: 18px auto !important;
    mask-size: 18px auto !important;
  }

  /* „Бърз преглед“ до бутоните — „Мрежа“: окото вляво, „Добави“/броячът взимат останалото място */
  .product_list:not(.list) .icc.icc-gq-act .outer-functional .quick-view { display: none !important; }
  .product_list:not(.list) .icc.icc-gq-act .icc-act { display: flex; align-items: center; gap: 8px; }
  .product_list:not(.list) .icc.icc-gq-act .icc-act > .icc-add,
  .product_list:not(.list) .icc.icc-gq-act .icc-act > .icc-ctr,
  .product_list:not(.list) .icc.icc-gq-act .icc-act > .icc-btn2,
  .product_list:not(.list) .icc.icc-gq-act .icc-act > .icc-bar { flex: 1 1 auto; width: auto; min-width: 0; }
  .product_list:not(.list) .icc.icc-gq-act .icc-btn2,
  .product_list:not(.list) .icc.icc-gq-act .icc-bar { padding: 0 8px; }
  /* по-малко място: краткият текст („3 бр.“, „Макс. наличност“), докато картата не е достатъчно широка */
  @container icc (max-width: 279.98px) {
    .product_list:not(.list) .icc.icc-gq-act .icc-lg,
    .product_list:not(.list) .icc.icc-gq-act .icc-max-l { display: none; }
    .product_list:not(.list) .icc.icc-gq-act .icc-sm,
    .product_list:not(.list) .icc.icc-gq-act .icc-max-s { display: inline; }
  }
  @container icc (max-width: 213.98px) {
    .product_list:not(.list) .icc.icc-gq-act .icc-bar .icc-i,
    .product_list:not(.list) .icc.icc-gq-act .icc-btn2 .icc-i { display: none; }
  }

  /* „Бърз преглед“ до бутоните — „Списък“: вляво от количеството и „Добави“ */
  .product_list.list .icc.icc-qv-act .outer-functional .quick-view { display: none !important; }
  .product_list.list .icc.icc-qv-act .icc-act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-basis: 286px; width: 286px; }
  .product_list.list .icc.icc-qv-act .icc-ctr,
  .product_list.list .icc.icc-qv-act .icc-bar,
  .product_list.list .icc.icc-qv-act .icc-btn2 { flex: 1 1 auto; width: auto; }

  /* самото око */
  body .product_list:not(.list) .icc.icc-gq-act .icc-qv.quick-view,
  body .product_list.list .icc.icc-qv-act .icc-qv.quick-view {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--icc-h);
    position: static !important;
    width: var(--icc-h) !important;
    height: var(--icc-h) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--icc-step) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--icc-ink) !important;
    font-size: 0;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-mask: none !important;
    mask: none !important;
    transform: none !important;
  }
  body .product_list:not(.list) .icc.icc-gq-act .icc-qv.quick-view:hover,
  body .product_list.list .icc.icc-qv-act .icc-qv.quick-view:hover { background: #f0f4fa !important; border-color: var(--icc-accent) !important; }
  .icc .icc-qv .icc-i { width: 18px; height: 18px; }
}

/* ---------- „Бърз преглед“: точките на слайдера с малките снимки — центрирани под тях ----------
   Темата ги оправя само на продуктовата страница (#product …); в прозореца „Бърз преглед“ излизаха вдясно до снимките. */
.quickview .images-container .additional_slider .owl-carousel { display: block !important; }
.quickview .images-container .additional_slider .owl-wrapper-outer { float: none !important; width: 100% !important; }
.quickview .images-container .additional_slider .owl-controls {
  z-index: 2;
  position: relative !important;
  inset: auto !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  transform: none !important;
  text-align: center !important;
  white-space: normal !important;
}
.quickview .images-container .additional_slider .owl-pagination {
  position: static !important;
  float: none !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  transform: none !important;
  text-align: center !important;
}
.quickview .images-container .additional_slider .owl-page { float: none !important; display: inline-block !important; }

/* ---------- продуктова страница: всички налични бройки са в количката (бутонът остава изключен) ---------- */
body#product .product-add-to-cart.icc-pp-held button.add-to-cart,
body#product .product-add-to-cart.icc-pp-held button.add-to-cart:disabled {
  position: relative;
  overflow: visible !important;
  background: #ebf3fe !important;
  border: 2px solid #0b62d0 !important;
  color: #0a3f93 !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: default;
}
body#product .product-add-to-cart.icc-pp-held button.add-to-cart::before { display: none !important; }
body#product .icc-pp-ok { margin-right: 2px; font-weight: 800; }
body#product .icc-pp-max {
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 999px;
  background: #ffe9c2;
  color: #6e4300;
  box-shadow: 0 0 0 2px #fff;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}
body#product .icc-pp-av { color: #6e4300; font-weight: 600; }
body#product .icc-pp-c { display: inline-block; white-space: nowrap; }
body#product .icc-pp-c .icc-pp-ok { margin-right: 3px; }
body#product .icc-pp-max-s { display: none; }
/* без „Бърза поръчка“ (продуктът не може да се добави) — бутонът заема и нейната колона */
@media (min-width: 1200px) {
  body#product .product-add-to-cart.icc-pp-solo .product-quantity .add .btn.btn-primary.add-to-cart { grid-column: 2 / -1 !important; }
}
/* тесен бутон: „✓ 22 бр.“ и „Макс. наличност“ (пълният текст остава за екранните четци) */
body#product .product-add-to-cart.icc-pp-tight .icc-pp-l {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
body#product .product-add-to-cart.icc-pp-tight .icc-pp-max-l { display: none; }
body#product .product-add-to-cart.icc-pp-tight .icc-pp-max-s { display: inline; }

/* част от бройките вече са в количката: балонче в ъгъла на „Купи“ */
body#product .product-add-to-cart.icc-pp-in button.add-to-cart { position: relative; overflow: visible !important; }
body#product .icc-pp-qty {
  position: absolute;
  top: -11px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 7px;
  border: 1.5px solid #0a52bd;
  border-radius: 999px;
  background: #fff;
  color: #0a52bd !important;
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}
body#product .icc-pp-qty::before {
  content: "";
  width: 13px;
  height: 13px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h2.6l2.4 11.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 8H6.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h2.6l2.4 11.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 8H6.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
body#product .icc-pp-qty b { color: inherit !important; font-weight: 800; }
body#product .icc-pp-qty.icc-pp-qc { right: 50%; transform: translateX(50%); }
body#product .icc-pp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .product-miniature.icc, .icc .icc-add, .icc .icc-padd { transition: none; }
}
@media print {
  .icc .icc-act, .icc .outer-functional { display: none !important; }
}

/* ---------- икони ---------- */
.icc .icc-i--cart { --icc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h2.6l2.4 11.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 8H6.2'/%3E%3C/svg%3E"); }
.icc .icc-i--minus { --icc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.icc .icc-i--plus { --icc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.icc .icc-i--del { --icc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M9 7V4h6v3'/%3E%3Cpath d='M6 7l1 13h10l1-13'/%3E%3C/svg%3E"); }
.icc .icc-i--bell { --icc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E"); }
.icc .icc-i--ban { --icc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M5.6 5.6l12.8 12.8'/%3E%3C/svg%3E"); }
.icc .icc-i--ok { --icc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }
.icc .icc-i--eye { --icc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
