/* =============================================================================
   bitmall-redesign.css — 26.11.2026
   Карточка товара в 2 колонки (галерея | buy-box), шрифт Inter по всему сайту,
   спокойные вкладки, плашка cookie с «Отказаться», карта Leaflet на «Контактах».
   Подключается в common/header.twig после стилей темы (?v= — версия для сброса кэша).
   ========================================================================== */

/* ---------- Шрифт Inter (локально, вариативный: 400–700 одним файлом) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
	src:url('../fonts/inter/inter-cyrillic-wght-normal.woff2') format('woff2-variations'),url('../fonts/inter/inter-cyrillic-wght-normal.woff2') format('woff2');
	unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
	src:url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2-variations'),url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
	unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{--body-font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;--bm-green:#1F8F4E;--bm-green-hover:#18753F}
body,button,input,select,textarea,.btn{font-family:var(--body-font)}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* ---------- Хлебные крошки ---------- */
.breadcrumb{font-size:13px;color:#6B7280}
.breadcrumb a{color:#6B7280}
.breadcrumb a:hover{color:#1F2937}

/* ---------- «Сравнение» убрано с сайта (страховка, если блок где-то остался) ---------- */
.product-thumb__compare,.product-page__compare-btn,.top-menu__compare,.header-block__item-compare,.fly-menu__compare,.fly-block__compare,.header-compare{display:none!important}

/* =============================================================================
   Карточка товара
   ========================================================================== */
.bm-pp h1{margin:0 0 18px;font-size:24px;font-weight:600;line-height:1.3;color:#1F2937;letter-spacing:-.01em}
.bm-pp__grid{display:grid;grid-template-columns:minmax(0,48fr) minmax(0,52fr);gap:28px;align-items:start;margin:0 0 10px}
.bm-pp__gallery,.bm-pp__side{min-width:0;float:none;width:auto;padding:0}
.bm-pp__gallery{margin:0;align-self:start}

/* фото: без лишних рамок, скругление 10px */
.bm-pp__gallery .product-page__image-main{margin:0;border:1px solid #EEF0F2;border-radius:10px;overflow:hidden;background:#fff}
.bm-pp__gallery .product-page__image-main-img{border-radius:10px}
.bm-pp__gallery .product-page__image-addit-img{padding:3px;border:1px solid #E5E7EB;border-radius:8px;background:#fff}
.bm-pp__gallery .product-page__image-addit-img.selected{padding:2px;border:2px solid #1F2937}

/* вертикальный столбец миниатюр слева от основного фото (от 768px).
   Карусель миниатюр (owl) остаётся — меняется только раскладка; в полноэкранном просмотре (.fixed) — как было. */
@media (min-width:768px){
	.bm-pp__gallery.has-additional:not(.fixed){position:-webkit-sticky;position:sticky;padding-left:88px}
	/* тема на ≥1345px поворачивает карусель миниатюр на 90° и сдвигает фото на 80px — отменяем */
	.bm-pp__gallery.has-additional:not(.fixed) .product-page__image-main{margin:0}
	.bm-pp__gallery.has-additional:not(.fixed) .product-page__image-addit{position:absolute;top:0;bottom:0;left:0;width:76px;margin:0;overflow:hidden;transform:none!important}
	.bm-pp__gallery.has-additional:not(.fixed) .product-page__image-addit .owl-item{transform:none!important}
	.bm-pp__gallery.has-additional:not(.fixed) .product-page__image-addit .owl-stage-outer{height:100%;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
	.bm-pp__gallery.has-additional:not(.fixed) .product-page__image-addit .owl-stage{display:flex;flex-direction:column;gap:10px;width:auto!important;transform:none!important;transition:none!important}
	.bm-pp__gallery.has-additional:not(.fixed) .product-page__image-addit .owl-item{width:76px!important;margin:0!important;padding:0}
	.bm-pp__gallery.has-additional:not(.fixed) .product-page__image-addit .owl-nav{display:none!important}
	.bm-pp__gallery.has-additional:not(.fixed) .product-page__image-addit:not(.owl-loaded){display:flex;flex-direction:column;gap:10px;overflow-y:auto}
	.bm-pp__gallery.has-additional:not(.fixed) .product-page__image-addit:not(.owl-loaded) .product-page__image-addit-img{width:76px}
}

/* ---------- buy-box ---------- */
.bm-buybox{padding:22px 24px;background:#F8F9FA;border:1px solid #E5E7EB;border-radius:12px;color:#374151;font-size:14px;font-weight:400;line-height:1.5}

/* мета-строка: код, производитель, наличие */
.bm-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;font-size:13px;line-height:1.4;color:#6B7280}
.bm-meta__item{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
.bm-meta__val{color:#374151}
.bm-meta__model .bm-meta__val{word-break:break-all}
.bm-meta a{color:#374151;text-decoration:none}
.bm-meta a:hover{color:#111827;text-decoration:underline}
.bm-meta__stock{font-weight:500}
.bm-meta__stock.is-in{color:var(--bm-green)}
.bm-meta__stock.is-out{color:#6B7280}
.bm-meta__dot{display:inline-block;flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:currentColor}
.bm-meta__rating,.bm-meta a.bm-meta__rating{color:#6B7280}
.bm-meta__rating .fa-star{color:#F59E0B;font-size:12px}

.bm-attrs{margin:12px 0 0;padding:0;font-size:13px;color:#6B7280}
.bm-attrs__item{margin:0 0 4px}
.bm-attrs__val{color:#374151}
.bm-attrs__more a{color:#374151;text-decoration:underline;cursor:pointer}

/* цена */
.bm-buybox .product-page__price{display:flex;flex-wrap:wrap;align-items:baseline;margin:12px 0 16px;font-size:28px;font-weight:700;line-height:1.15;color:#111827;letter-spacing:-.01em}
.bm-buybox .product-page__price .price-new{margin:0 12px 0 0;color:#111827}
.bm-buybox .product-page__price .price-old{font-size:.6em;font-weight:500;color:#9CA3AF}
.bm-buybox .product-page__discount{margin:-8px 0 14px;font-size:13px;color:#6B7280}
.bm-buybox .price-tax{margin:-10px 0 14px}

/* опции */
.bm-buybox .hpm-title{font-size:13px;font-weight:500;color:#374151}
.bm-buybox .product-page__option{margin-bottom:8px}
.bm-buybox .option__group{margin:0 0 6px}
.bm-buybox .option__group-name{margin:0 0 8px;font-size:13px;font-weight:500;color:#374151}
.bm-opt-val{font-weight:400;color:#6B7280}
.bm-buybox .option__item{margin:0 8px 8px 0}
.bm-buybox .option__img{width:56px;padding:2px;background:#fff;border:1px solid #D1D5DB;border-radius:8px}
.bm-buybox .option__img:hover,.bm-buybox .option input:hover + .option__img{border-color:#9CA3AF}
.bm-buybox .option input:checked + .option__img{padding:1px;border:2px solid var(--bm-green)}
.bm-buybox .option__name{height:36px;padding:0 14px;line-height:34px;font-size:13px;color:#374151;background:#fff;border:1px solid #D1D5DB;border-radius:8px}
.bm-buybox .option__item:not(.ended):hover .option__name{color:#111827;background:#F3F4F6}
.bm-buybox .option__item:not(.ended) input:checked + .option__name{padding:0 13px;line-height:32px;color:#111827;background:#fff;border:2px solid var(--bm-green)}
.bm-buybox .option__select{height:40px;padding:0 12px;line-height:38px;border:1px solid #D1D5DB;border-radius:8px;background-color:#fff;color:#374151}

/* строка покупки: количество | В корзину | закладки */
.bm-buyrow{display:flex;flex-wrap:nowrap;align-items:stretch;gap:10px;height:46px;margin:4px 0 0}
.bm-buyrow .product-qty-block{display:flex;flex:1 1 auto;align-items:stretch;gap:10px;min-width:0;height:100%}
.bm-buyrow .qty-switch{display:flex;flex:0 0 108px;align-items:stretch;width:108px;height:100%;margin:0;float:none;overflow:hidden;background:#fff;border:1px solid #D1D5DB;border-radius:8px}
.bm-buyrow .qty-switch > span{display:contents}
.bm-buyrow .qty-switch__input,.bm-buyrow .qty-switch__input:focus{order:2;flex:1 1 auto;min-width:0;width:auto;height:100%;margin:0;padding:0;text-align:center;font-size:15px;font-weight:500;color:#111827;background:transparent;border:0!important;border-radius:0;box-shadow:none;outline:none}
.bm-buyrow .qty-switch__btn.fa{order:1;display:flex;flex:0 0 34px;align-items:center;justify-content:center;width:34px;height:100%;margin:0;line-height:1;font-size:12px;color:#374151;background:transparent;border:0!important;border-radius:0!important;cursor:pointer;-webkit-user-select:none;user-select:none}
.bm-buyrow .qty-switch__btn.fa-plus{order:3}
.bm-buyrow .qty-switch__btn.fa:hover{background:#F3F4F6}
.bm-buyrow .product-page__add-to-cart.add_to_cart{display:flex;flex:1 1 auto;align-items:center;justify-content:center;gap:8px;min-width:0;height:100%;margin:0;padding:0 16px;font-size:15px;font-weight:600;line-height:1;text-transform:none;white-space:nowrap;color:#fff;background:var(--bm-green);border:0;border-radius:8px;box-shadow:none;transition:background-color .15s}
.bm-buyrow .product-page__add-to-cart.add_to_cart:hover,.bm-buyrow .product-page__add-to-cart.add_to_cart:focus,.bm-buyrow .product-page__add-to-cart.add_to_cart:active{color:#fff;background:var(--bm-green-hover)}
.bm-buyrow .product-page__add-to-cart.add_to_cart.in_cart{color:#fff;background:var(--bm-green-hover)}
.bm-buyrow .product-page__add-to-cart.add_to_cart.disabled,.bm-buyrow .product-page__add-to-cart.add_to_cart.qty-0{color:#6B7280;background:#E5E7EB;cursor:not-allowed}
.bm-buyrow .product-page__add-to-cart i:empty{display:none}
/* в теме у всех button стоит border:none !important — рамки здесь тоже с !important */
.bm-buybox button.bm-wish.product-page__wishlist-btn{position:static;display:flex;flex:0 0 46px;align-items:center;justify-content:center;width:46px;height:46px;margin:0;padding:0;font-size:18px;line-height:1;color:#374151;background:#fff;border:1px solid #D1D5DB!important;border-radius:8px;box-shadow:none;transition:border-color .15s,color .15s}
.bm-buybox button.bm-wish.product-page__wishlist-btn:hover,.bm-buybox button.bm-wish.product-page__wishlist-btn:focus{color:#111827;background:#fff;border-color:#9CA3AF!important}
.bm-buybox button.bm-wish.product-page__wishlist-btn.active{color:var(--bm-green);border-color:var(--bm-green)!important}
.bm-buybox button.bm-wish.product-page__wishlist-btn.active i{font-weight:900}
.bm-buybox button.bm-wish.product-page__wishlist-btn i{margin:0}
.bm-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.bm-buybox .product-page__minimum{margin:10px 0 0;font-size:13px;color:#6B7280}

/* разделитель и преимущества */
.bm-buybox__adv{margin:20px 0 0;padding:16px 0 0;border-top:1px solid #E5E7EB}
.bm-adv{margin:0;padding:0;list-style:none}
.bm-adv__item{position:relative;margin:0;padding:0 0 0 28px;font-size:14px;font-weight:400;line-height:1.45;color:#374151}
.bm-adv__item + .bm-adv__item{margin-top:10px}
.bm-adv__item:before{content:'';position:absolute;top:1px;left:0;width:18px;height:18px;background:no-repeat center/18px 18px}
.bm-adv__item--pack:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E")}
.bm-adv__item--ship:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.bm-adv__item--cdek:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.5' y='5' width='12.5' height='11' rx='1'/%3E%3Cpath d='M14 9h4l3.5 3.5V16H14z'/%3E%3Ccircle cx='5.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.8'/%3E%3C/svg%3E")}
.bm-adv__item--return:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3C/svg%3E")}
/* если в настройках темы остался старый текст блока — без жирности и лишних отступов */
.bm-buybox__adv .blockpp br{display:none}
.bm-buybox__adv .blockpp b,.bm-buybox__adv .jirno{font-weight:400}
.bm-buybox__adv .peviy{margin:0 0 10px}
.bm-buybox__adv .fa-spin{animation:none}

/* ---------- вкладки под карточкой: без красного акцента ---------- */
#product-product .product-page-tabs{gap:4px;margin:0 0 20px;padding:0;background:transparent;border-bottom:1px solid #E5E7EB;border-radius:0}
#product-product .product-page-tabs li{height:auto;padding:0}
#product-product .product-page-tabs li a{position:relative;padding:12px 16px;font-size:15px;font-weight:500;color:#6B7280}
#product-product .product-page-tabs li.active a,#product-product .product-page-tabs li a:hover,#product-product .product-page-tabs li a:focus{color:#111827;background:transparent}
#product-product .product-page-tabs li a:after{content:'';position:absolute;right:0;bottom:-1px;left:0;width:auto!important;height:2px!important;background:#1F2937!important;border:0!important;border-radius:0!important;transform:none!important;opacity:0;transition:opacity .15s}
#product-product .product-page-tabs li.active a:after{opacity:1}
#product-product .product-page-tabs li a:hover:after{opacity:.25}
#product-product .product-page-tabs .uni-badge{margin-left:6px;color:#374151;background:#E5E7EB}
#product-product .tab-content{font-size:14px;line-height:1.5;color:#374151}

/* ---------- мобильные ---------- */
@media (max-width:767px){
	.bm-pp h1{margin:0 0 14px;font-size:19px}
	.bm-pp__grid{grid-template-columns:minmax(0,1fr);gap:16px}
	.bm-pp__gallery{position:static}
	.bm-buybox{padding:18px 16px}
	.bm-buybox .product-page__price{font-size:26px}
	#product-product .product-page-tabs li a{padding:10px 12px;font-size:14px}
}
@media (max-width:374px){
	.bm-buyrow .qty-switch{flex-basis:96px;width:96px}
	.bm-buyrow .qty-switch__btn.fa{flex-basis:28px;width:28px}
	.bm-buyrow .product-page__add-to-cart.add_to_cart{padding:0 10px;font-size:14px}
}

/* =============================================================================
   Плашка cookie
   ========================================================================== */
.bm-cookie{position:fixed;z-index:1060;bottom:16px;left:16px;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;width:calc(100% - 32px);max-width:440px;padding:16px 18px;font-size:13px;line-height:1.5;color:#374151;background:#fff;border:1px solid #E5E7EB;border-radius:12px;box-shadow:0 10px 30px rgba(17,24,39,.14),0 2px 6px rgba(17,24,39,.06);transition:opacity .2s,transform .2s,bottom .2s}
.bm-cookie[hidden]{display:none!important}
.bm-cookie.is-hiding{opacity:0;transform:translateY(8px)}
.bm-cookie__text,.bm-cookie__text p{margin:0;overflow-wrap:anywhere}
.bm-cookie__text a{color:var(--bm-green);text-decoration:underline}
.bm-cookie__buttons{display:flex;flex-wrap:nowrap;gap:8px}
.bm-cookie__btn{flex:1 1 0;min-width:0;min-height:38px;margin:0;padding:8px 14px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.2;border-radius:8px;cursor:pointer;transition:background-color .15s,border-color .15s}
.bm-cookie__btn--accept{color:#fff;background:var(--bm-green);border:1px solid var(--bm-green)!important}
.bm-cookie__btn--accept:hover,.bm-cookie__btn--accept:focus{background:var(--bm-green-hover);border-color:var(--bm-green-hover)!important}
.bm-cookie__btn--reject{color:#374151;background:#F9FAFB;border:1px solid #D1D5DB!important}
.bm-cookie__btn--reject:hover,.bm-cookie__btn--reject:focus{background:#F3F4F6;border-color:#9CA3AF!important}
@media (max-width:767px){
	.bm-cookie{right:12px;bottom:12px;left:12px;width:auto;max-width:none;padding:14px}
}

/* =============================================================================
   «Контакты»: карта Leaflet + OpenStreetMap
   ========================================================================== */
.bm-map{position:relative;z-index:0;height:400px;overflow:hidden;background:#EEF0F2;border:1px solid #E5E7EB;border-radius:12px}
.bm-map__links{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 0}
.bm-map__link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 16px;font-size:14px;font-weight:500;color:#1F2937;text-decoration:none;background:#fff;border:1px solid #D1D5DB;border-radius:8px}
.bm-map__link:hover,.bm-map__link:focus{color:#111827;text-decoration:none;background:#F9FAFB;border-color:#9CA3AF}
.bm-map__pin{background:none;border:0}
.bm-map .leaflet-popup-content-wrapper{border-radius:10px}
.bm-map__popup{font-size:13px;line-height:1.45;color:#374151}
.bm-map__popup a{color:var(--bm-green)}
@media (max-width:767px){
	.bm-map{height:300px}
}
