/* boutique-1120b.css — магазин M67 (20.11.2026): плитка листинга с крупным фото, кнопка Ajouter au panier, цвета бренда.
   Заменяет blogmode.css. Имя файла с датой: nginx отдаёт CSS с кешем 30 дней, при правке — новое имя в layout/yellow_journal.xml. */
:root { --m67-blue: #2F5BFF; --m67-blue-d: #1E46E6; --m67-lime: #C7F23D; --m67-ink: #191c20; --m67-line: #e4e7ee; }

/* На m67 не работает и остаётся скрытым: кредит, предзаказ, сравнение, списки желаний, мини-корзина, оплата частями. */
.btn-cart--credit, .block-buyincreditlist, .add-preorder, .add-to-links, .link-wishlist, .link-compare, .block-compare, .block-wishlist,
.block-cart, .header-cart, .mini-cart, .cart-link, .btn-checkout, .checkout-types, .buy-in-credit, .payparts, .block-payparts,
.paypal-wrapper, .m67-shop .product-image-block-info-left, .m67-shop .product-image-block-info-right { display: none !important; }

/* ---------- Листинг: 3 плитки в ряд, фото во всю ширину плитки ---------- */
.m67-shop.category-products .products-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; padding: 0 !important; margin: 0 !important; }
.m67-shop.category-products .products-grid > .item { display: flex !important; width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }
.m67-shop.category-products .products-grid .item-inner { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; width: 100% !important; height: auto !important; box-sizing: border-box !important; padding: 14px 16px 18px !important;
  border: 1px solid var(--m67-line) !important; border-radius: 18px !important; background: #fff !important; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.m67-shop.category-products .products-grid .item-inner:hover { border-color: rgba(47, 91, 255, .5) !important; box-shadow: 0 12px 32px rgba(47, 91, 255, .14) !important; transform: translateY(-2px) !important; }
.m67-shop.category-products .products-grid .item .product-image-block { display: block !important; flex: 0 0 auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important; width: 100% !important; }
.m67-shop.category-products .products-grid .item .product-image-block > a { display: block !important; width: 100% !important; height: auto !important; max-width: none !important; margin: 0 !important; aspect-ratio: 3 / 2 !important; }
.m67-shop.category-products .products-grid .item .m67-card-img { display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: contain !important; }

.m67-shop.category-products .products-grid .item .info-block { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "name name" "price stock" "btn btn" !important; grid-template-rows: 1fr auto auto !important; gap: 12px 10px !important; align-items: center !important; flex: 1 1 auto !important; width: 100% !important; margin: 14px 0 0 !important; padding: 0 !important; }
.m67-shop.category-products .products-grid .item .price-actions-wrapper { display: contents !important; }
.m67-shop.category-products .products-grid .item .product-name { grid-area: name !important; align-self: start !important; min-height: 0 !important; height: auto !important; margin: 0 !important; }
.m67-shop.category-products .products-grid .item .product-name a { display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; font-size: 15px !important; line-height: 1.35 !important; font-weight: 500 !important; color: var(--m67-ink) !important; }
.m67-shop.category-products .products-grid .item .product-name a:hover { color: var(--m67-blue) !important; }
.m67-shop.category-products .products-grid .item .price-holder { grid-area: price !important; align-self: end !important; margin: 0 !important; }
.m67-shop.category-products .products-grid .item .price-box { margin: 0 !important; padding: 0 !important; }
.m67-shop.category-products .products-grid .item .price-box .price { font-size: 26px !important; font-weight: 700 !important; color: var(--m67-ink) !important; }
.m67-shop.category-products .products-grid .item .product-item-extra-info { grid-area: stock !important; align-self: end !important; display: block !important; margin: 0 0 4px !important; padding: 0 !important; }
.m67-shop.category-products .products-grid .item .actions { grid-area: btn !important; display: block !important; margin: 0 !important; padding: 0 !important; width: 100% !important; }
.m67-shop.category-products .products-grid .item .actions .btn-wrap { display: block !important; margin: 0 !important; }

/* ---------- Метка наличия ---------- */
.m67-stock { display: inline-flex !important; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 12px/1.2 Montserrat, sans-serif; white-space: nowrap; }
.m67-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.m67-stock--in { background: #EEFBC8; color: #3A5200; }
.m67-stock--in::before { background: #86C400; }
.m67-stock--out { background: #F1F2F5; color: #7A808A; }
.m67-stock--out::before { background: #B4B9C2; }

/* ---------- Кнопка корзины (листинг и карточка товара) ---------- */
.m67-shop .btn-cart, .m67-shop.category-products .products-grid .item .info-block .actions .btn-wrap .btn-cart {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 9px !important; box-sizing: border-box !important; width: 100% !important; min-height: 46px !important; height: auto !important; padding: 0 18px !important; margin: 0 !important;
  border: 0 !important; border-radius: 999px !important; background: var(--m67-blue) !important; color: #fff !important; cursor: pointer !important; text-decoration: none !important;
  font: 700 14px/1 Montserrat, sans-serif !important; letter-spacing: .01em !important; text-transform: none !important;
  box-shadow: 0 6px 18px rgba(47, 91, 255, .30) !important; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.m67-shop .btn-cart span, .m67-shop.category-products .products-grid .item .info-block .actions .btn-wrap .btn-cart span {
  display: inline !important; float: none !important; height: auto !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important;
  color: inherit !important; font: inherit !important; line-height: 1 !important; text-transform: none !important; }
.m67-shop .btn-cart .m67-ico { order: -1; flex: 0 0 auto; display: block !important; }
.m67-shop .btn-cart:hover { background: var(--m67-blue-d) !important; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47, 91, 255, .38); }
.m67-shop .btn-cart:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(47, 91, 255, .30); }
.m67-shop .btn-cart:focus-visible { outline: 3px solid var(--m67-lime); outline-offset: 2px; }
.m67-shop .btn-cart.btn-cart--out, .m67-shop.category-products .products-grid .item .info-block .actions .btn-wrap .btn-cart.btn-cart--out { background: #EEF0F4 !important; color: #8A9099 !important; box-shadow: none !important; cursor: default !important; transform: none !important; }

/* ---------- Сообщение: корзина скоро ---------- */
.m67-toast { position: fixed; left: 50%; bottom: 28px; z-index: 99999; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; background: var(--m67-ink); color: #fff; font: 600 14px/1.3 Montserrat, sans-serif; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); transition: opacity .2s ease, transform .2s ease; }
.m67-toast::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--m67-lime); }
.m67-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1199px) { .m67-shop.category-products .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 767px) {
  .m67-shop.category-products .products-grid { gap: 10px !important; }
  .m67-shop.category-products .products-grid .item-inner { padding: 10px 10px 14px !important; border-radius: 14px !important; }
  .m67-shop.category-products .products-grid .item .info-block { grid-template-areas: "name name" "price price" "stock stock" "btn btn" !important; grid-template-rows: 1fr auto auto auto !important; gap: 8px !important; }
  .m67-shop.category-products .products-grid .item .product-name a { font-size: 13px !important; }
  .m67-shop.category-products .products-grid .item .price-box .price { font-size: 22px !important; }
  .m67-shop.category-products .products-grid .item .btn-cart { min-height: 42px !important; padding: 0 8px !important; font-size: 13px !important; gap: 6px !important; }
}
@media (max-width: 480px) { .m67-shop.category-products .products-grid .item .btn-cart .m67-ico { display: none !important; } .m67-shop.category-products .products-grid .item .btn-cart span { white-space: nowrap !important; } }
@media (max-width: 380px) { .m67-shop.category-products .products-grid .item .btn-cart { font-size: 12px !important; padding: 0 4px !important; } }

/* ---------- Фильтры: фирменный синий вместо жёлтого yellow.ua ---------- */
div.block-layered-nav div.layerednavigation-slider div.handle, div.block-layered-nav div.layerednavigation-slider div.handle.selected { border-color: var(--m67-blue) !important; }
.block-layered-nav .layerednavigation-slider-bar { background: var(--m67-blue) !important; }
.block-layered-nav a.layerednavigation-more { color: var(--m67-blue) !important; }
/* Нет в наличии: в плитке хватает неактивной кнопки, вторая метка не нужна. */
.m67-shop.category-products .products-grid .item .m67-stock--out { display: none !important; }
