/* iCell препоръки — блокът на страницата на продукта (в стила на началната страница) */
.icr {
  --icr-ac: var(--icb-accent, #0b62d0);
  --icr-deep: var(--icb-deep, #0a52bd);
  --icr-ink: var(--icb-ink, #172233);
  --icr-mut: var(--icb-muted, #5f6b7a);
  --icr-line: var(--icb-line-lt, #e3eaf3);
  --icr-line2: var(--icb-line, #cbd8ea);
  --icr-soft: var(--icb-soft, #ebf3fe);
  --icr-chip: rgba(11, 98, 208, .1);
  --icr-ring: var(--icb-ring, rgba(14, 109, 219, .35));
  --icr-r: 14px;
  --icr-g: 16px;
  clear: both;
  margin: 36px 0 18px;
  color: var(--icr-ink);
}
.icr *, .icr ::before, .icr ::after { box-sizing: border-box; }
.icr--test { outline: 2px dashed #f0ad4e; outline-offset: 10px; }
.icr-testnote { margin: 0 0 12px; font-size: 12px; color: #a66d00; }
.icr .icr-ic { display: block; width: 100%; height: 100%; }
.icr button:focus-visible { outline: 3px solid var(--icr-ring); outline-offset: 2px; }

.icr-hub { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--icr-g); align-items: stretch; }

/* картата вляво */
.icr-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; overflow: hidden;
  padding: 22px 20px 18px; border-radius: var(--icr-r);
  background: linear-gradient(150deg, #eef5ff 0%, #dceafe 100%); color: var(--icr-ink);
}
.icr-card::before { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--icr-chip); pointer-events: none; }
.icr-card__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.icr-card__hd { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.icr-card__k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3c4c63; }
.icr .icr-card__t { margin: 0; padding: 0; border: 0; font-size: 25px; font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-transform: none; color: var(--icr-ink); }
.icr-card__c { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--icr-chip); font-size: 12.5px; font-weight: 600; color: var(--icr-deep); }
.icr-card__pic { display: grid; place-items: center; width: 64px; height: 64px; flex: none; padding: 12px; border-radius: 18px; background: #fff; color: var(--icr-ac); box-shadow: 0 10px 24px -12px rgba(0, 20, 60, .45); }

/* разделите */
.icr-tabs { position: relative; display: flex; flex-direction: column; gap: 4px; }
.icr-tab {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 46px; margin: 0; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent; color: #33445c;
  font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.2; text-align: left; letter-spacing: 0; text-transform: none;
  cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.icr-tab__ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 9px; background: rgba(255, 255, 255, .7); color: var(--icr-ac); transition: background-color .2s, color .2s; }
.icr-tab__l { flex: 1 1 auto; min-width: 0; }
.icr-tab__n { flex: none; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 12.5px; font-weight: 700; text-align: center; color: var(--icr-mut); font-variant-numeric: tabular-nums; }
.icr-tab:hover { background: rgba(255, 255, 255, .55); color: var(--icr-ink); }
.icr-tab[aria-selected="true"] { background: #fff; color: var(--icr-ink); box-shadow: 0 1px 3px rgba(15, 42, 77, .16), 0 8px 18px -12px rgba(15, 42, 77, .35); }
.icr-tab[aria-selected="true"] .icr-tab__ic { background: var(--icr-ac); color: #fff; }
.icr-tab[aria-selected="true"] .icr-tab__n { background: var(--icr-soft); color: var(--icr-deep); }
.icr-card__note { position: relative; display: flex; align-items: center; gap: 8px; margin: auto 0 0; font-size: 13px; line-height: 1.35; color: #3c4c63; }
.icr-card__note .icr-ic { width: 18px; height: 18px; flex: none; color: #13804b; }

/* продуктите вдясно */
.icr-main { position: relative; min-width: 0; }
.icr-panel[hidden] { display: none !important; }
/* заглавието на раздела е за търсачките и екранните четци (видимото е в картата) */
.icr .icr-panel__t { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.icr .icr-products { float: none !important; width: auto !important; margin: 0 !important; position: relative; }
.icr .products .product_list.icr-track {
  display: flex !important; flex-wrap: nowrap !important; gap: var(--icr-g); width: auto !important; margin: 0 !important; padding: 6px 1px 8px !important;
  list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.icr .products .product_list.icr-track::-webkit-scrollbar { display: none; }
/* плъзгане с мишката */
@media (hover: hover) and (pointer: fine) {
  .icr .products .product_list.icr-track.icr-grab { cursor: grab; }
}
.icr .products .product_list.icr-track.icr-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.icr .products .product_list.icr-track.icr-dragging * { cursor: grabbing !important; user-select: none; }
.icr .products .product_list.icr-track > li.icr-item {
  flex: 0 0 calc((100% - 2 * var(--icr-g)) / 3) !important; width: auto !important; max-width: none !important; min-width: 0;
  float: none !important; margin: 0 !important; padding: 0 !important; scroll-snap-align: start; display: flex !important;
}
.icr .products .product_list.icr-track > li.icr-item > * { flex: 1 1 auto; width: 100% !important; max-width: none !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; }
@media (min-width: 1500px) { .icr .products .product_list.icr-track > li.icr-item { flex-basis: calc((100% - 3 * var(--icr-g)) / 4) !important; } }

/* стрелките — върху продуктите, само когато има още */
.icr-arrows { position: absolute; top: 34%; left: -10px; right: -10px; z-index: 5; display: flex; justify-content: space-between; pointer-events: none; }
.icr-arrows[hidden] { display: none; }
.icr-arr { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 1px solid var(--icr-line2); border-radius: 50%; background: #fff; color: var(--icr-ink); cursor: pointer; pointer-events: auto; box-shadow: 0 6px 18px -6px rgba(15, 42, 77, .35); transition: border-color .2s, color .2s, opacity .2s; }
.icr-arr:hover:not(:disabled) { border-color: var(--icr-ac); color: var(--icr-ac); }
.icr-arr:disabled { opacity: 0; pointer-events: none; }

/* компютър: заглавието в картата вляво — на цялата ширина (иконката е до броя продукти), по-дребно при по-дълъг текст */
@media (min-width: 992px) {
  .icr:not(.icr--top) .icr-card__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k k" "t t" "c p"; align-items: center; gap: 8px 12px; }
  .icr:not(.icr--top) .icr-card__hd { display: contents; }
  .icr:not(.icr--top) .icr-card__k { grid-area: k; }
  .icr:not(.icr--top) .icr-card__t { grid-area: t; text-wrap: balance; }
  .icr:not(.icr--top) .icr-card__c { grid-area: c; justify-self: start; }
  .icr:not(.icr--top) .icr-card__pic { grid-area: p; width: 56px; height: 56px; padding: 11px; border-radius: 16px; }
  .icr .icr-card__t--m { font-size: 23px; }
  .icr .icr-card__t--s { font-size: 21px; }
  .icr .icr-card__t--xs { font-size: 19px; }

  /* по избор: картата отгоре, над продуктите (като на телефона): моделът и „Съвместимостта е проверена“ на един ред, разделите — под тях */
  .icr--top .icr-hub { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .icr--top .icr-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 16px 20px; }
  .icr--top .icr-card::before { right: -30px; bottom: -120px; width: 200px; height: 200px; }
  .icr--top .icr-card__top { flex: 0 1 auto; flex-direction: row-reverse; align-items: center; gap: 14px; min-width: 0; }
  .icr--top .icr-card__hd { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .icr--top .icr-card__k { flex-basis: 100%; }
  .icr--top .icr-card__c { align-self: center; }
  .icr.icr--top .icr-card__t { font-size: 23px; }
  .icr--top .icr-card__pic { width: 54px; height: 54px; padding: 11px; border-radius: 15px; }
  .icr--top .icr-tabs { order: 2; flex: 1 1 100%; flex-direction: row; gap: 8px; margin: 0 -20px; padding: 0 20px 2px; overflow-x: auto; scrollbar-width: none; }
  .icr--top .icr-tabs::-webkit-scrollbar { display: none; }
  .icr--top .icr-tab { width: auto; flex: none; min-height: 42px; padding: 0 14px 0 6px; gap: 9px; border-radius: 999px; background: rgba(255, 255, 255, .6); white-space: nowrap; }
  .icr--top .icr-tab__ic { width: 30px; height: 30px; border-radius: 50%; }
  .icr--top .icr-card__note { order: 1; flex: none; margin: 0 0 0 auto; align-self: center; }
  .icr--top .products .product_list.icr-track > li.icr-item { flex-basis: calc((100% - 3 * var(--icr-g)) / 4) !important; }
}
@media (min-width: 1500px) {
  .icr--top .products .product_list.icr-track > li.icr-item { flex-basis: calc((100% - 4 * var(--icr-g)) / 5) !important; }
}

/* таблет и телефон: картата отгоре, разделите — хоризонтални бутони */
@media (max-width: 991.98px) {
  .icr-hub { grid-template-columns: minmax(0, 1fr); }
  .icr-card { gap: 14px; padding: 16px 16px 14px; }
  .icr-card::before, .icr-card__note { display: none; }
  .icr .icr-card__t { font-size: 21px; }
  .icr-card__pic { width: 52px; height: 52px; padding: 10px; border-radius: 14px; }
  .icr-tabs { flex-direction: row; gap: 8px; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
  .icr-tabs::-webkit-scrollbar { display: none; }
  .icr-tab { width: auto; flex: none; min-height: 40px; padding: 0 12px 0 6px; gap: 8px; border-radius: 999px; background: rgba(255, 255, 255, .6); white-space: nowrap; font-size: 13.5px; }
  .icr-tab__ic { width: 28px; height: 28px; border-radius: 50%; }
  .icr-tab__n { min-width: 22px; padding: 1px 7px; font-size: 12px; }
  /* стрелките и на таблет/телефон — отстрани върху снимките */
  .icr-arrows { top: 28%; left: -6px; right: -6px; }
  .icr-arr { width: 38px; height: 38px; padding: 9px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px -4px rgba(15, 42, 77, .45); }
}
@media (max-width: 767.98px) {
  .icr { margin-top: 26px; }
  .icr .products .product_list.icr-track { gap: 12px; margin: 0 -15px !important; padding: 6px 15px 10px !important; scroll-padding: 0 15px; }
  .icr .products .product_list.icr-track > li.icr-item { flex-basis: 46% !important; }
}

/* „Последно разгледани“ */
.icr-ask { display: flex; align-items: flex-start; gap: 16px; max-width: 620px; margin: 6px 0; padding: 22px 22px 20px; border: 1px solid var(--icr-line); border-radius: var(--icr-r); background: #fff; box-shadow: 0 1px 2px rgba(15, 42, 77, .04), 0 6px 16px -10px rgba(15, 42, 77, .18); }
.icr-ask__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 12px; background: var(--icr-soft); color: var(--icr-ac); }
.icr-ask__b { min-width: 0; }
.icr .icr-ask__t { margin: 2px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--icr-ink); }
.icr .icr-ask__d { margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--icr-mut); }
.icr-ask--ok .icr-ask__d { margin: 0; }
.icr-ask--ok .icr-ask__ic { background: #e8f6ee; color: #13804b; }
.icr-ask__y { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--icr-ac); color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background-color .2s; }
.icr-ask__y:hover { background: var(--icr-deep); }
.icr-rv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 6px 0 0; font-size: 12.5px; color: var(--icr-mut); }
.icr-rv-foot span { margin-right: auto; }
.icr-rv-foot button { padding: 0; border: 0; background: none; color: var(--icr-ac); font: inherit; font-weight: 600; cursor: pointer; }
.icr-rv-foot button:hover { color: var(--icr-deep); text-decoration: underline; }
.icr--solo .icr-card { gap: 14px; }
@media (max-width: 767.98px) {
  .icr-ask { padding: 16px; gap: 12px; }
  .icr-ask__ic { width: 38px; height: 38px; padding: 8px; }
}
.icr--solo .icr-tabs { display: none; }
.icr .icr-tab:focus:not(:focus-visible), .icr .icr-arr:focus:not(:focus-visible), .icr .icr-ask__y:focus:not(:focus-visible) { outline: 0; }
