/* Categories and promotions share one photo-led listing and native product/filter markup. */
:is(.page-category,.page-prices-drop) {--mgm-category-edge:12px;}
:is(.page-category,.page-prices-drop) #wrapper > .container, :is(.page-category,.page-prices-drop) #wrapper > .container-fluid {
  width:100%;max-width:none;padding-inline:var(--mgm-category-edge);
}
:is(.page-category,.page-prices-drop) #header .header-bottom__container,
:is(.page-category,.page-prices-drop) #header .magmara-topbar__inner,
:is(.page-category,.page-prices-drop) .container:has(> .breadcrumb) {width:100%;max-width:none;padding-inline:var(--mgm-category-edge);}
:is(.page-category,.page-prices-drop) #wrapper > .container > .row, :is(.page-category,.page-prices-drop) #wrapper > .container-fluid > .row {
  --bs-gutter-x:0;display:grid;grid-template-columns:168px minmax(0,1fr);gap:16px;
}
:is(.page-category,.page-prices-drop) #left-column,:is(.page-category,.page-prices-drop) #center-column {width:auto;max-width:none;min-width:0;padding:0;}
:is(.page-category,.page-prices-drop) #center-column {margin:0;}
:is(.page-category,.page-prices-drop) #left-column {padding-top:4px;}
:is(.page-category,.page-prices-drop) .mgm-category-header {margin-bottom:14px;padding:0;border:0;}
:is(.page-category,.page-prices-drop) .mgm-category-header h1 {font-size:26px;line-height:1.25;margin:0 0 8px;}
:is(.page-category,.page-prices-drop) .mgm-lastpieces-intro{max-width:800px;font-size:12px;line-height:1.65;color:#666;margin:0 0 10px}
:is(.page-category,.page-prices-drop) .mgm-lastpieces-intro p{margin:0}
:is(.page-category,.page-prices-drop) .mgm-category-header:after,:is(.page-category,.page-prices-drop) .mgm-category-header h1:after {display:none;}
:is(.page-category,.page-prices-drop) .mgm-demo-note {font-size:11px;margin:0 0 10px;color:#777;}
:is(.page-category,.page-prices-drop) .mgm-subcategories {gap:4px 18px;margin-top:12px;}
:is(.page-category,.page-prices-drop) .mgm-subcategories a {font-size:12px;padding-block:4px;}
:is(.page-category,.page-prices-drop) .products__selection {display:flex;justify-content:space-between;padding:8px 0 12px;margin:0 0 16px;border-top:0;gap:12px;}
:is(.page-category,.page-prices-drop) .products__count,:is(.page-category,.page-prices-drop) .products__sort-label {font-size:12px;}
:is(.page-category,.page-prices-drop) .products__sort {display:flex;align-items:center;gap:16px;flex:0 1 auto;width:auto;}
:is(.page-category,.page-prices-drop) .products__sort-dropdown-button {font-size:12px;min-height:38px;padding:6px 10px;}
:is(.page-category,.page-prices-drop) #js-product-list > .products {grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:22px 6px;}
:is(.page-category,.page-prices-drop) .product-miniature {min-width:0;margin:0;padding:0;}
:is(.page-category,.page-prices-drop) .product-miniature__image-link {background:#f5f5f5;}
/* Native CROP thumbnails have no generated white canvas. Use their exact
   portrait ratio for both density sources, including the one-pixel 2x rounding. */
:is(.page-category,.page-prices-drop) .product-miniature__image {width:100%;height:auto;aspect-ratio:278/400;object-fit:cover;}
:is(.page-category,.page-prices-drop) .product-miniature__image-link:hover .product-miniature__image {transform:none;}
:is(.page-category,.page-prices-drop) .product-miniature__bottom {padding-top:9px;gap:0;}
:is(.page-category,.page-prices-drop) .product-miniature__infos,
:is(.page-category,.page-prices-drop) .product-miniature__infos:has(.mgm-card-sizes,.mgm-card-colors) {
  display:flex;flex-direction:column;gap:6px;align-items:stretch;
}
:is(.page-category,.page-prices-drop) .product-miniature__title {font-size:13px;line-height:1.4;font-weight:400;min-height:2.8em;order:1;}
:is(.page-category,.page-prices-drop) .product-miniature__prices {order:2;margin:0;gap:6px;}
:is(.page-category,.page-prices-drop) .product-miniature__price {font-size:14px;font-weight:500;}
:is(.page-category,.page-prices-drop) .product-miniature__regular-price {font-size:12px;}
:is(.page-category,.page-prices-drop) .product-miniature__variants {order:3;margin:0;min-height:0;}
:is(.page-category,.page-prices-drop) .mgm-card-colors {order:3;min-height:0!important;margin:0;gap:5px;}
:is(.page-category,.page-prices-drop) .mgm-card-colors__item {min-width:26px;min-height:34px;padding:1px;}
:is(.page-category,.page-prices-drop) .mgm-card-colors__item img {width:24px;height:32px;}
:is(.page-category,.page-prices-drop) .mgm-card-sizes {order:4;margin:0;}
:is(.page-category,.page-prices-drop) .mgm-card-sizes__title {font-size:10px;margin:0 0 3px;}
:is(.page-category,.page-prices-drop) .mgm-card-sizes__list {gap:3px;}
:is(.page-category,.page-prices-drop) .mgm-card-sizes__list a {min-width:27px;min-height:26px;padding:3px 5px;font-size:11px;border-color:#eee;}
:is(.page-category,.page-prices-drop) .mgm-product-card-action {display:none;}
:is(.page-category,.page-prices-drop) .product-miniature__quickview-button {font-size:11px;}
:is(.page-category,.page-prices-drop) .mgm-catalog-categories {border-top:0;margin:0 0 14px;}
:is(.page-category,.page-prices-drop) .mgm-catalog-categories > summary {padding:8px 0 12px;font-size:13px;}
:is(.page-category,.page-prices-drop) .search-filters .left-block__title {font-size:13px;margin-bottom:10px;}
:is(.page-category,.page-prices-drop) .search-filters .accordion-button {font-size:12px;padding:13px 0;}
:is(.page-category,.page-prices-drop) .products__pagination {margin-top:30px;}
:is(.page-category,.page-prices-drop) .mgm-category-footer-intro {max-width:900px;margin:40px auto 0;font-size:13px;line-height:1.8;color:#666;}
.mgm-gallery-view {display:flex;align-items:center;gap:4px;font-size:11px;}
.mgm-gallery-view span {margin-right:5px;color:#777;}
.mgm-gallery-view button {padding:4px;min-width:30px;min-height:30px;border:0;border-bottom:1px solid transparent;background:white;color:#777;font-size:12px;}
.mgm-gallery-view button[aria-pressed=true] {border-bottom-color:#222;color:#222;font-weight:700;}
.mgm-gallery-view button:focus-visible {outline:2px solid var(--magmara-action);outline-offset:2px;}
:is(.page-category,.page-prices-drop).mgm-infinite-ready .products__pagination {display:none;}
:is(.page-category,.page-prices-drop).mgm-infinite-ready .mgm-pagination-fallback {display:none;}
.mgm-pagination-fallback {display:flex;flex-wrap:wrap;justify-content:center;gap:16px;padding:20px 0;font-size:13px;}
.mgm-gallery-loader {padding:28px 0;text-align:center;min-height:95px;}
.mgm-gallery-loader p {font-size:12px;color:#666;margin:0 0 12px;}
.mgm-gallery-loader button {font-size:13px;min-height:42px;padding:10px 22px;}
@media(min-width:1440px){:is(.page-category,.page-prices-drop) #js-product-list > .products {grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(min-width:992px){:is(.page-category,.page-prices-drop)[data-mgm-columns='3'] #js-product-list > .products {grid-template-columns:repeat(3,minmax(0,1fr));}:is(.page-category,.page-prices-drop)[data-mgm-columns='4'] #js-product-list > .products {grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:991px){
  :is(.page-category,.page-prices-drop) {--mgm-category-edge:8px;}
  :is(.page-category,.page-prices-drop) #wrapper > .container > .row,:is(.page-category,.page-prices-drop) #wrapper > .container-fluid > .row {display:block;}
  /* The native mobile offcanvas lives inside this column: keep its ancestor visible. */
  :is(.page-category,.page-prices-drop) #left-column {display:block;width:0;max-width:0;height:0;margin:0;padding:0;overflow:visible;}
  :is(.page-category,.page-prices-drop) #left-column > :not(#offcanvas-faceted):not(.offcanvas-backdrop) {display:none;}
  :is(.page-category,.page-prices-drop) .mgm-gallery-view {display:none;}
  :is(.page-category,.page-prices-drop) .products__selection {flex-direction:column;align-items:stretch;gap:8px;}
  :is(.page-category,.page-prices-drop) .products__count {order:0;width:100%;font-size:11px;}
  :is(.page-category,.page-prices-drop) .products__sort {order:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;}
  :is(.page-category,.page-prices-drop) .products__sort-label {display:none;}
  :is(.page-category,.page-prices-drop) .products__sort-dropdown {min-width:0;width:100%;}
  :is(.page-category,.page-prices-drop) .products__filter-button {margin:0;min-height:38px;font-size:12px;padding:6px;}
  :is(.page-category,.page-prices-drop) #js-product-list > .products {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 6px;}
  :is(.page-category,.page-prices-drop) .mgm-category-header h1 {font-size:24px;}
}
@media(max-width:575px){
  :is(.page-category,.page-prices-drop) {--mgm-category-edge:6px;}
  :is(.page-category,.page-prices-drop) #js-product-list > .products {column-gap:4px;}
  :is(.page-category,.page-prices-drop) .products__selection {gap:8px;}
  :is(.page-category,.page-prices-drop) .product-miniature__title {font-size:12px;}
  :is(.page-category,.page-prices-drop) .product-miniature__price {font-size:13px;}
  :is(.page-category,.page-prices-drop) .mgm-card-sizes__list a {min-height:30px;min-width:28px;}
}
