/* ENERGYBIKE / EBC BLUE CARD — canonical CSS for catalog.item/bim_redesign.
   No .snippet, .btn, or global swiper selectors. Old 'bim' is untouched. */
.ebc-card,.ebc-card *{box-sizing:border-box}
.ebc-card{position:relative;display:flex;width:100%;height:100%;min-width:0;margin:0!important;isolation:isolate}
.ebc-card .ebc-shell{
  position:relative;z-index:0;display:flex;flex-direction:column;min-width:0;width:100%;height:100%;
  padding:12px;border:1px solid #c9ddfb;border-radius:20px;overflow:hidden;
  background:linear-gradient(117deg,#edf3ff 0%,#f4f8ff 53%,#e7effe 100%);
  background-size:210% 210%;
  box-shadow:0 3px 11px rgba(37,89,156,.07);
  font-family:Manrope,Arial,sans-serif;color:#142744;
  transition:transform .28s ease,box-shadow .3s ease,border-color .3s ease,background-position .55s ease
}
.ebc-card .ebc-shell::before{
  content:"";position:absolute;inset:-40%;z-index:5;pointer-events:none;opacity:0;
  background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.50) 47%,rgba(180,216,255,.27) 53%,transparent 71%);
  transform:translateX(-48%) rotate(-9deg);
  transition:opacity .28s ease,transform .85s cubic-bezier(.2,.7,.2,1)
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .ebc-card .ebc-shell:hover{transform:translateY(-5px);border-color:#9bbff4;box-shadow:0 18px 34px rgba(31,83,158,.20);background-position:100% 100%}
  .ebc-card .ebc-shell:hover::before{opacity:1;transform:translateX(42%) rotate(-9deg)}
}
.ebc-card .ebc-media{
  position:relative;flex:0 0 auto;min-width:0;width:100%;aspect-ratio:1.28/1;
  overflow:hidden;border-radius:14px;background:#fff;border:1px solid rgba(198,218,244,.65)
}
.ebc-card .ebc-image-link{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;text-decoration:none}
.ebc-card .ebc-image{display:block;width:100%;height:100%;padding:12px 12px 46px;object-fit:contain;object-position:center;background:#fff;mix-blend-mode:normal;transition:transform .32s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.ebc-card .ebc-media:hover .ebc-image{transform:scale(1.035)}}
.ebc-card .ebc-no-image{padding:10px;color:#8596af;font:500 12px/1.5 Manrope,Arial,sans-serif;text-align:center}
/* Bitrix SKU photo target stays in the same position; overlay is click-through. */
.ebc-card .ebc-offer-pict{position:absolute;inset:0;z-index:1;pointer-events:none;background:transparent center/contain no-repeat}
.ebc-card .ebc-offer-pict:not([style*="background-image"]){display:none!important}
.ebc-card .ebc-badges{position:absolute;top:9px;left:9px;right:9px;z-index:3;display:flex;gap:5px;flex-wrap:wrap;pointer-events:none}
.ebc-card .ebc-badge{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #d5e6ff;border-radius:7px;background:#edf5ff;color:#3159ac;font:750 11px/1.3 Manrope,Arial,sans-serif}
.ebc-card .ebc-badge[data-eb-label*="NEW" i],.ebc-card .ebc-badge[data-eb-label*="нов" i]{background:#e5f7ec;border-color:#c4e8d2;color:#176b3e}
.ebc-card .ebc-badge[data-eb-label*="HIT" i],.ebc-card .ebc-badge[data-eb-label*="SALE" i]{background:#f0e9ff;border-color:#ded0fc;color:#6942be}
.ebc-card .ebc-discount{position:absolute;right:9px;top:9px;z-index:3;padding:5px 8px;border-radius:7px;background:#fff0f2;color:#be3650;font:750 11px/1.3 Manrope,Arial,sans-serif}
/* Specifications belong INSIDE photo at its lower edge, rather than outside it. */
.ebc-card .ebc-media .ebc-specs{position:absolute;left:9px;right:9px;bottom:9px;z-index:4;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:6px;max-width:calc(100% - 18px);margin:0;padding:0;pointer-events:none}
.ebc-card .ebc-media .ebc-spec{display:inline-flex;align-items:center;min-height:27px;padding:5px 9px;border:1px solid #bfd7fc;border-radius:8px;background:rgba(239,247,255,.97);color:#2451a6;box-shadow:0 2px 6px rgba(20,66,120,.05);font:750 11px/1.25 Manrope,Arial,sans-serif;backdrop-filter:blur(5px)}
.ebc-card .ebc-media .ebc-spec:nth-child(2){background:rgba(231,248,237,.97);border-color:#c0e8d0;color:#20734b}
.ebc-card [hidden]{display:none!important}
.ebc-card .ebc-information{display:flex;flex:0 0 auto;flex-direction:column;gap:7px;min-width:0;margin:12px 1px 0;padding:0}
.ebc-card .ebc-title{display:block;overflow:visible;height:auto;min-height:60px;margin:0;color:#172b4b;text-decoration:none;font:750 14px/21px Manrope,Arial,sans-serif}
.ebc-card .ebc-title:hover{color:#1e50bf}
.ebc-card .ebc-price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;min-height:29px;margin:0;padding:0}
.ebc-card .ebc-price{color:#122540;font:800 22px/1.25 Manrope,Arial,sans-serif;letter-spacing:-.4px;overflow-wrap:anywhere}
.ebc-card .ebc-old-price{color:#8393ad;font:500 12px/1.4 Manrope,Arial,sans-serif;text-decoration:line-through}
.ebc-card .ebc-bottom{display:flex;flex-direction:column;width:100%;min-width:0;margin-top:auto;padding-top:10px}
/* Existing SKU choice remains supported for any products that still need it. */
.ebc-card .ebc-options{display:flex;flex-direction:column;gap:7px;margin:0 0 8px}
.ebc-card .ebc-option-label{color:#587196;font:650 11px/1.35 Manrope,Arial,sans-serif}
.ebc-card .ebc-option-values{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.ebc-card .ebc-option-value{padding:6px 10px;border:1px solid #b6d2f3;border-radius:8px;background:rgba(255,255,255,.85);color:#395880;cursor:pointer;font:650 11px/1.25 Manrope,Arial,sans-serif}
.ebc-card .ebc-option-value.active{background:#e9f2ff;color:#2450d9;border-color:#2450d9}
.ebc-card .ebc-option-value.notallowed{opacity:.55}
.ebc-card .ebc-stock{min-height:32px;margin:0 0 8px;color:#627999;font:500 11px/1.45 Manrope,Arial,sans-serif}
.ebc-card .ebc-stock.is-empty{min-height:0;height:0;margin:0;visibility:hidden}
.ebc-card .ebc-actions,.ebc-card .ebc-buy-group{display:flex;flex-direction:column;gap:7px;width:100%;margin:0;padding:0}
.ebc-card .ebc-btn{display:flex;justify-content:center;align-items:center;width:100%;min-height:42px;padding:10px;border:1px solid transparent;border-radius:10px;text-align:center;text-decoration:none;white-space:normal;cursor:pointer;font:750 12px/1.3 Manrope,Arial,sans-serif;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
.ebc-card .ebc-btn--primary{background:#2450d9;border-color:#2450d9;color:#fff}
.ebc-card .ebc-btn--primary:hover{background:#1b42b9;border-color:#1b42b9;color:#fff;box-shadow:0 5px 14px rgba(36,80,217,.16)}
.ebc-card .ebc-btn--secondary{background:rgba(255,255,255,.92);border-color:#bdd2f4;color:#2450d9}
.ebc-card .ebc-btn--secondary:hover{background:#fff;border-color:#90b3ee;color:#1b42b9}
.ebc-card .ebc-actions [style*="display:none"],.ebc-card .ebc-actions [style*="display: none"]{display:none!important}
.ebc-card .ebc-btn:focus-visible,.ebc-card .ebc-title:focus-visible{outline:2px solid #1e50bf;outline-offset:3px}
/* Compatibility with existing Bitrix sliders without altering their widths. */
.eb-viewed-redesign-slide{height:auto;min-width:0}
.eb-viewed-redesign-slide>.ebc-card{height:100%}
@media(max-width:780px){
 .ebc-card .ebc-shell{padding:10px;border-radius:16px}
 .ebc-card .ebc-media{aspect-ratio:1.12/1}
 .ebc-card .ebc-image{padding:10px 10px 42px}
 .ebc-card .ebc-title{font-size:13px;line-height:19px;height:auto;min-height:57px}
 .ebc-card .ebc-price{font-size:20px}
}
@media(max-width:420px){
 .ebc-card .ebc-shell{padding:9px}
 .ebc-card .ebc-price{font-size:19px}
 .ebc-card .ebc-btn{min-height:40px}
 .ebc-card .ebc-media .ebc-spec{font-size:10px;padding:4px 6px;min-height:25px}
}
@media(prefers-reduced-motion:reduce){.ebc-card .ebc-shell,.ebc-card .ebc-shell::before,.ebc-card .ebc-image{transition:none!important}}





/* EBC PHOTO SPECS POSITION FIX */
.ebc-card .ebc-media .ebc-specs {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 4 !important;
}

.ebc-card .ebc-media .ebc-spec {
    border-radius: 999px;
}

/* ===== EBC IMAGE AND BADGES ===== */

.ebc-card .ebc-media {
    position: relative !important;
    height: 245px !important;
    min-height: 245px !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}

.ebc-card .ebc-image-link {
    position: absolute !important;
    inset: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
}

.ebc-card .ebc-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

.ebc-card .ebc-media .ebc-specs {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 4 !important;
}

.ebc-card .ebc-badges {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 5 !important;
}

.ebc-card .ebc-badge {
    padding: 7px 12px !important;
    min-height: 30px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
}

.ebc-card .ebc-badge[data-eb-label*="NEW" i],
.ebc-card .ebc-badge[data-eb-label*="нов" i] {
    background: #e7f7ec !important;
    color: #16834b !important;
    border: 1px solid #b7e6c6 !important;
}

.ebc-card .ebc-badge[data-eb-label*="HIT" i],
.ebc-card .ebc-badge[data-eb-label*="SALE" i] {
    background: #ffe9e9 !important;
    color: #cf2f2f !important;
    border: 1px solid #f4b7b7 !important;
}

@media (max-width: 768px) {
    .ebc-card .ebc-media {
        height: 215px !important;
        min-height: 215px !important;
    }

    .ebc-card .ebc-image-link {
        inset: 10px !important;
    }
}


/* ENERGYBIKE NEW BADGE GREEN FIX */
.ebc-card .ebc-badges .ebc-badge.ebc-badge--new {
    background: #e5f7ec !important;
    background-image: none !important;
    border-color: #b7e5c7 !important;
    color: #176b3e !important;
}

.ebc-card .ebc-badges .ebc-badge.ebc-badge--new:hover {
    background: #d7f2e1 !important;
    color: #176b3e !important;
}
/* END ENERGYBIKE NEW BADGE GREEN FIX */

/* EB UNIFIED PRODUCT CARD 20261201 */
.ebc-card .ebc-information { gap:10px; }
.ebc-card .ebc-title { display:block; min-width:0; width:100%; min-height:0; height:auto; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; line-height:21px; }
.ebc-card .ebc-price { font-size:26px; line-height:1.2; }
.ebc-card .ebc-stock:not(.is-empty) { font-size:13px; line-height:1.45; min-height:0; }
.ebc-card .ebc-media .ebc-spec { font-size:12px; line-height:1.3; min-height:30px; padding:6px 10px; }
.ebc-card .ebc-badges .ebc-badge.ebc-badge--hit:not(.ebc-badge--new) { background:#fff0f2 !important; border-color:#f4bcc3 !important; color:#b32036 !important; }
@media (max-width:767px) {
 body .eb-catalog-v2 .catalog__goods,
 body .ebg .ebg-products__native .catalog__goods,
 body .ebps-page .ebps-catalog .catalog__goods,
 body .catalog__goods.row--flex { display:grid !important; grid-template-columns:minmax(0,1fr) !important; }
 .ebc-card .ebc-price { font-size:24px; }
}

/* EB SPEC SVG ICONS */
.ebc-card .ebc-media .ebc-spec { display:inline-flex; align-items:center; gap:5px; }
.ebc-card .ebc-media .ebc-spec__icon { display:block; flex:0 0 16px; width:16px; height:16px; color:currentColor; }

/* EB PRODUCT PRICE COMPACT */
.ebc-card .ebc-price,
.ebg .ebg-products__native .ebc-card .ebc-price {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 8px;
  background: #e3edff;
  color: #173466;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
}

@media (max-width: 520px) {
  .ebc-card .ebc-price,
  .ebg .ebg-products__native .ebc-card .ebc-price {
    font-size: 20px;
  }
}





/* EB UNIFIED BLUE CARD 20261201 */
.ebc-card .ebc-shell {
 background:linear-gradient(145deg,#eef5ff 0%,#dceaff 48%,#c2d9ff 100%);
 background-size:210% 210%;
 border-color:#a9c8f7;
}
@media (max-width:767px) {
 .card-seen-slider.swiper { overflow:hidden; touch-action:pan-y; }
 .card-seen-slider .swiper-wrapper { display:flex; }
}

/* EB CARD SPECS SLIDER 20261202 */
.ebc-card .ebc-information .ebc-spec-slot { display:block; height:37px; min-height:37px; max-height:37px; min-width:0; width:100%; overflow:hidden; }
.ebc-card .ebc-information .ebc-specs { position:static; display:flex; flex-wrap:nowrap; align-items:center; justify-content:flex-start; gap:6px; width:100%; max-width:100%; height:37px; margin:0; padding:0 1px 5px; overflow-x:auto; overflow-y:hidden; pointer-events:auto; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#a9c1ef transparent; }
.ebc-card .ebc-information .ebc-specs[hidden] { display:none !important; }
.ebc-card .ebc-information .ebc-specs::-webkit-scrollbar { height:3px; }
.ebc-card .ebc-information .ebc-specs::-webkit-scrollbar-thumb { background:#a9c1ef; border-radius:4px; }
.ebc-card .ebc-information .ebc-spec { display:inline-flex; flex:0 0 auto; align-items:center; gap:5px; min-height:30px; padding:5px 9px; white-space:nowrap; border:1px solid #bfd7fc; border-radius:8px; background:#eff7ff; color:#2451a6; box-shadow:0 2px 6px rgba(20,66,120,.05); font:750 12px/1.3 Manrope,Arial,sans-serif; }
.ebc-card .ebc-information .ebc-spec:nth-child(2) { background:#e7f8ed; border-color:#c0e8d0; color:#20734b; }
.ebc-card .ebc-information .ebc-spec__icon { display:block; flex:0 0 16px; width:16px; height:16px; color:currentColor; }
.ebc-card .ebc-media .ebc-image { padding:12px; }
