/* Catalogue reference adapted to real Magento products and native cart forms. */
.categorypath-catalogo-general .page-main { max-width: 1265px; padding: 24px 38px 40px; box-sizing: border-box; }
.categorypath-catalogo-general .page-title-wrapper { margin-left: 232px; min-height: 42px; margin-bottom: 20px; }
.categorypath-catalogo-general .page-title { font-size: 26px; line-height: 1.25; }
.categorypath-catalogo-general .columns { display: grid; grid-template-columns: 214px minmax(0,1fr); gap: 18px; align-items: start; }
.categorypath-catalogo-general .columns::before, .categorypath-catalogo-general .columns::after { display: none; }
.categorypath-catalogo-general .columns > .column.main { grid-column: 2; grid-row: 1; float: none; width: auto; min-width: 0; padding: 0; }
.categorypath-catalogo-general .columns > .sidebar-main { grid-column: 1; grid-row: 1; float: none; width: auto; min-width: 0; padding: 0; margin-top: -62px; }
.categorypath-catalogo-general .sidebar-additional { display: none; }
.smx-reference-filter { box-sizing: border-box; padding: 14px; border: 1px solid #e4dff2; border-radius: 15px; background: #fff; margin-bottom: 16px; color: #161438; }
.smx-reference-filter summary { color: #1f12a8; font-size: 20px; font-weight: 700; cursor: pointer; }
.smx-reference-filter__body { margin-top: 10px; }
.smx-reference-filter label { display: block; padding-top: 10px; border-top: 1px solid #e4dff2; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.smx-reference-filter select { width: 100%; min-height: 36px; border: 1px solid #c6bfd8; border-radius: 6px; color: #161438; font-size: 12px; }
a.smx-reference-category-go { display: inline-block; padding-top: 9px; color: #1f12a8; font-size: 12px; text-decoration: underline; }
.categorypath-catalogo-general .supermix-catalog .supermix-product-card { min-height: 315px; padding: 14px; border-radius: 17px; }
.categorypath-catalogo-general .supermix-catalog .supermix-product-card__sku, .categorypath-catalogo-general .supermix-catalog .supermix-compare-action { display: none; }
.categorypath-catalogo-general .supermix-catalog .supermix-product-card__image-link { height: 138px; padding: 0; }
.categorypath-catalogo-general .supermix-catalog .supermix-product-card__body { flex: 1; padding-top: 5px; display: flex; flex-direction: column; }
.categorypath-catalogo-general .supermix-catalog .supermix-product-card__name { min-height: 54px; line-height: 18px; font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.categorypath-catalogo-general .supermix-catalog .supermix-product-card__bottom { flex: 1; justify-content: space-between; gap: 8px; }
.categorypath-catalogo-general .supermix-catalog .supermix-product-card__price { font-size: 18px; line-height: 24px; margin-top: 4px; }
.categorypath-catalogo-general .supermix-catalog .supermix-product-card__actions { top: 0; right: 0; }
.categorypath-catalogo-general .supermix-catalog .supermix-wishlist-action { width: 32px; height: 32px; }
.smx-reference-cart { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px; padding-top: 8px; margin-top: auto; border-top: 1px solid #e4dff2; }
.smx-reference-quantity { display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-rows: minmax(0,1fr); width: 92px; min-width: 0; height: 30px; border: 1px solid #d0c9e1; border-radius: 6px; overflow: hidden; }
.smx-reference-quantity > button, .smx-reference-quantity > input { box-sizing: border-box; min-height: 0; min-width: 0; width: 100%; height: 100%; border: 0; border-radius: 0; padding: 0; margin: 0; background: #fff; box-shadow: none; text-align: center; font-size: 13px; color: #161438; }
.smx-reference-quantity > input { border-inline: 1px solid #e4dff2; appearance: textfield; }
.smx-reference-quantity input::-webkit-inner-spin-button, .smx-reference-quantity input::-webkit-outer-spin-button { appearance: none; }
.smx-reference-quantity button:disabled { opacity: .45; }
.categorypath-catalogo-general .supermix-catalog .smx-reference-cart .supermix-cart-action { flex: 0 0 39px; width: 39px; height: 39px; padding: 0; }
.categorypath-catalogo-general .supermix-catalog .smx-reference-cart .smx-reference-in-cart { background: #ffb057; color: #161438; }
.categorypath-catalogo-general .toolbar-products { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; min-height: 48px; padding: 7px 10px; margin-bottom: 18px; }
.categorypath-catalogo-general .toolbar-products::before, .categorypath-catalogo-general .toolbar-products::after { display: none; }
.categorypath-catalogo-general .toolbar-products .toolbar-amount { order: 0; float: none; margin: 0 auto 0 0; padding: 0; font-size: 13px; }
.categorypath-catalogo-general .toolbar-products .sorter { order: 1; float: none; padding: 0; font-size: 13px; }
.categorypath-catalogo-general .toolbar-products .sorter select { max-width: 170px; }
.categorypath-catalogo-general .toolbar-products .modes { order: 2; float: none; margin: 0; }
.categorypath-catalogo-general .supermix-catalog--list .supermix-product-card { min-height: 0; }
.categorypath-catalogo-general .supermix-catalog--list .smx-reference-cart { max-width: 150px; }
.smx-reference-filter :focus-visible, .smx-reference-cart :focus-visible { outline: 2px solid #1f12a8; outline-offset: -2px; }
@media(max-width:1080px) and (min-width:771px) {
 .categorypath-catalogo-general .page-main { padding-inline: 20px; }
 .categorypath-catalogo-general .columns { grid-template-columns: 174px minmax(0,1fr); gap: 16px; }
 .categorypath-catalogo-general .page-title-wrapper { margin-left: 190px; }
}
@media(max-width:770px) {
 .categorypath-catalogo-general .page-main { padding: 18px 16px 26px; }
 .categorypath-catalogo-general .page-title-wrapper { margin-left: 0; }
 .categorypath-catalogo-general .columns { display: block; }
 .categorypath-catalogo-general .columns > .sidebar-main { margin-top: 0; }
 .smx-reference-filter { padding: 0 12px; margin-bottom: 12px; }
 .smx-reference-filter[open] { padding-bottom: 12px; }
 .smx-reference-filter summary { min-height: 44px; line-height: 44px; font-size: 16px; }
 .smx-reference-filter select { min-height: 44px; font-size: 16px; }
}
@media(max-width:620px) {
 .categorypath-catalogo-general .page-main { padding: 14px 12px 26px; }
 .categorypath-catalogo-general .page-title { font-size: 22px; }
 .categorypath-catalogo-general .supermix-catalog .supermix-product-card { min-height: 0; padding: 9px; border-radius: 13px; }
 .categorypath-catalogo-general .supermix-catalog .supermix-product-card__image-link { height: clamp(96px,30vw,125px); }
 .categorypath-catalogo-general .supermix-catalog .supermix-product-card__name { font-size: 13px; }
 .categorypath-catalogo-general .supermix-catalog .supermix-product-card__price { font-size: 16px; }
 .categorypath-catalogo-general .toolbar-products .modes { display: block; }
 .categorypath-catalogo-general .toolbar-products .sorter { display: flex; align-items: center; width: 100%; }
 .categorypath-catalogo-general .toolbar-products .sorter select { flex: 1; max-width: none; }
 .smx-reference-cart { gap: 4px; }
 .smx-reference-quantity { flex: 0 1 105px; height: 36px; }
 .smx-reference-quantity > input { font-size: 16px; }
 .categorypath-catalogo-general .supermix-catalog .smx-reference-cart .supermix-cart-action { flex-basis: 36px; width: 36px; height: 36px; }
}
@media(max-width:355px) {
 .categorypath-catalogo-general .supermix-catalog .supermix-product-card { padding: 7px; }
 .smx-reference-quantity { flex-basis: 85px; }
}

/* Keep native mobile sorting inside its toolbar rather than Luma's absolute slot. */
.categorypath-catalogo-general .toolbar-products .sorter { position: static; }
@media(max-width:620px) {
 .categorypath-catalogo-general .toolbar-products .modes { display: flex; gap: 4px; }
 .categorypath-catalogo-general .toolbar-products .modes-label { display: none; }
 .categorypath-catalogo-general .toolbar-products .modes-mode { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 4px 10px; box-sizing: border-box; border: 1px solid #e4dff2; border-radius: 6px; font-size: 12px; text-decoration: none; }
}
