/* IdroSemplice - categorie | indipendente da scheda prodotto V4 */
.catalog-category-view {
    --ic-navy:#0B3B5C;
    --ic-cyan:#00A4D8;
    --ic-border:#e1eaf0;
    --ic-muted:#61798a;
}

/* Due colonne reali: filtri a sinistra, catalogo a destra */
.catalog-category-view .main-container .main { max-width:1320px; }
.catalog-category-view .main .col-main { min-width:0; }
.catalog-category-view .page-title.category-title { margin:12px 0 24px; padding:0; border:0; }
.catalog-category-view .page-title.category-title h1 {
    color:var(--ic-navy); font-size:clamp(26px,2.8vw,38px);
    font-weight:750; line-height:1.2; letter-spacing:-.6px;
}
.catalog-category-view .category-description { color:#486477; line-height:1.7; }

/* Navigazione a filtri senza il vecchio stile a riquadri */
.catalog-category-view .col-left .block-layered-nav { border:0; background:transparent; box-shadow:none; }
.catalog-category-view .col-left .block-layered-nav .block-title {
    border:0; padding:0 0 14px; margin:0 0 8px; background:none;
}
.catalog-category-view .col-left .block-layered-nav .block-title strong,
.catalog-category-view .col-left .block-layered-nav .block-title span {
    color:var(--ic-navy); font-size:15px; font-weight:750;
}
.catalog-category-view .col-left .block-layered-nav .block-content { padding:0; border:0; background:none; }
.catalog-category-view .col-left .block-layered-nav dt {
    background:none; border:0; border-top:1px solid var(--ic-border);
    padding:15px 0 9px; margin:0; color:var(--ic-navy);
    font-size:12px; font-weight:750; letter-spacing:.5px; text-transform:uppercase;
}
.catalog-category-view .col-left .block-layered-nav dd { border:0; padding:0 0 14px; margin:0; }
.catalog-category-view .col-left .block-layered-nav dd li { margin:0; padding:0; }
.catalog-category-view .col-left .block-layered-nav dd a {
    display:inline-block; padding:6px 0; color:#37566a; font-size:13px;
    line-height:1.45; text-decoration:none;
}
.catalog-category-view .col-left .block-layered-nav dd a:hover { color:var(--ic-cyan); }
.catalog-category-view .col-left .block-layered-nav .count { color:#8799a5; }

/* Griglia moderna, indipendente dal numero di colonne impostato da Magento */
.catalog-category-view .category-products .products-grid {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px; margin:0; padding:0; list-style:none;
}
.catalog-category-view .category-products .products-grid:before,
.catalog-category-view .category-products .products-grid:after { display:none; }
.catalog-category-view .category-products .products-grid > li.item,
.catalog-category-view .category-products .products-grid > li.item.first,
.catalog-category-view .category-products .products-grid > li.item.last {
    box-sizing:border-box; float:none; clear:none; width:auto; max-width:none;
    min-width:0; margin:0; padding:0; border:1px solid var(--ic-border);
    border-radius:8px; background:#fff; box-shadow:none;
    display:flex; flex-direction:column; overflow:hidden;
    text-align:left; position:relative;
}
.catalog-category-view .category-products .products-grid > li.item:hover {
    border-color:#bdd7e4; box-shadow:0 7px 24px rgba(11,59,92,.06);
}
.catalog-category-view .category-products .products-grid .product-image {
    float:none; display:flex; justify-content:center; align-items:center;
    width:100%; height:245px; padding:18px; margin:0;
    border:0; background:#f6f9fb; box-sizing:border-box;
}
.catalog-category-view .category-products .products-grid .product-image img {
    display:block; width:auto; max-width:100%; height:auto; max-height:210px;
    margin:auto; object-fit:contain; border:0;
}
.catalog-category-view .category-products .products-grid .product-info {
    box-sizing:border-box; display:flex; flex-direction:column; flex:1;
    width:100%; min-height:0; padding:20px 22px 24px;
    text-align:left; background:#fff;
}
.catalog-category-view .category-products .products-grid .product-name {
    float:none; width:100%; min-height:0; height:auto; margin:0 0 16px;
    padding:0; line-height:1.45; text-align:left;
}
.catalog-category-view .category-products .products-grid .product-name a {
    font-size:16px; line-height:1.45; font-weight:700; color:var(--ic-navy);
    text-transform:none; text-decoration:none; letter-spacing:0;
}
.catalog-category-view .category-products .products-grid .product-name a:hover { color:#007fae; }
.catalog-category-view .category-products .products-grid .price-box {
    float:none; width:100%; margin:0 0 15px; padding:0; text-align:left;
}
.catalog-category-view .category-products .products-grid .price-box .price {
    font-size:24px; line-height:1.25; font-weight:800; color:var(--ic-navy);
}
.catalog-category-view .category-products .products-grid .actions {
    position:static; display:block; width:100%; margin:auto 0 0; padding:0;
    min-height:0; text-align:left; background:transparent;
}
.catalog-category-view .category-products .products-grid .actions .button,
.catalog-category-view .category-products .products-grid .actions .btn-cart {
    display:inline-flex; align-items:center; justify-content:center;
    width:auto; max-width:100%; min-height:42px; padding:11px 18px;
    border:0; border-radius:5px; background:var(--ic-cyan);
    box-shadow:none; color:#fff; text-align:center;
}
.catalog-category-view .category-products .products-grid .actions .button:hover,
.catalog-category-view .category-products .products-grid .actions .btn-cart:hover { background:var(--ic-navy); }
.catalog-category-view .category-products .products-grid .actions .button span,
.catalog-category-view .category-products .products-grid .actions .button span span {
    background:transparent; border:0; color:#fff; font-size:12px;
    font-weight:700; line-height:1.35; text-transform:uppercase;
}
.catalog-category-view .category-products .products-grid .actions .add-to-links { display:none; }

/* Barra ordinamento / paginazione */
.catalog-category-view .category-products .toolbar {
    padding:12px 0; margin:0 0 20px; border-top:1px solid var(--ic-border);
    border-bottom:1px solid var(--ic-border); background:none; box-shadow:none;
}
.catalog-category-view .category-products .toolbar-bottom .toolbar {
    margin:24px 0 0; border-top:1px solid var(--ic-border);
}
.catalog-category-view .category-products .toolbar .sorter,
.catalog-category-view .category-products .toolbar .pager { background:none; }

/* Anche la vista lista, se selezionata, rimane coerente */
.catalog-category-view .category-products .products-list .product-name a { color:var(--ic-navy); text-transform:none; }
.catalog-category-view .category-products .products-list .price-box .price { color:var(--ic-navy); }
.catalog-category-view .category-products .products-list .btn-cart { background:var(--ic-cyan); border:0; }
.catalog-category-view .category-products .products-list .btn-cart:hover { background:var(--ic-navy); }

@media(max-width:900px) {
    .catalog-category-view .category-products .products-grid { gap:14px; }
    .catalog-category-view .category-products .products-grid .product-image { height:195px; }
    .catalog-category-view .category-products .products-grid .product-image img { max-height:165px; }
    .catalog-category-view .category-products .products-grid .product-info { padding:16px; }
}
@media(max-width:600px) {
    .catalog-category-view .category-products .products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .catalog-category-view .category-products .products-grid .product-image { height:155px; padding:10px; }
    .catalog-category-view .category-products .products-grid .product-image img { max-height:135px; }
    .catalog-category-view .category-products .products-grid .product-info { padding:12px; }
    .catalog-category-view .category-products .products-grid .product-name a { font-size:13px; }
    .catalog-category-view .category-products .products-grid .price-box .price { font-size:19px; }
    .catalog-category-view .category-products .products-grid .actions .button,
    .catalog-category-view .category-products .products-grid .actions .btn-cart {
        width:100%; min-height:40px; padding:8px 6px;
    }
    .catalog-category-view .category-products .products-grid .actions .button span,
    .catalog-category-view .category-products .products-grid .actions .button span span { font-size:10px; }
}
@media(max-width:380px) {
    .catalog-category-view .category-products .products-grid { grid-template-columns:1fr; }
    .catalog-category-view .category-products .products-grid .product-image { height:210px; }
    .catalog-category-view .category-products .products-grid .product-image img { max-height:185px; }
}