/* Catálogos de Maestra 1; las superficies y acentos proceden de la tienda. */
body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
    align-items: end;
    gap: 14px;
    padding: clamp(14px, 1.5vw, 22px);
    border: 1px solid var(--store-custom-border);
    border-radius: min(var(--store-custom-radius), 22px);
    background: var(--store-custom-surface);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--store-custom-bg) 18%, transparent);
}
body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-filters > label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: var(--store-custom-text);
    font-size: .9rem;
    font-weight: 800;
}
body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-filters > label .select2-container { width: 100% !important; min-width: 0; margin: 0; }
body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-filters :is(select, input, .select2-selection--single) {
    min-height: 48px;
    border: 1px solid var(--store-custom-border);
    border-radius: min(var(--store-custom-radius), 12px);
    background: var(--store-custom-surface-alt);
    color: var(--store-custom-text);
}
body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-price-filters summary {
    min-height: 48px; padding-inline: 18px;
    border-color: color-mix(in srgb, var(--store-custom-button) 42%, var(--store-custom-border));
    border-radius: min(var(--store-custom-radius), 12px);
}
body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-navigation { margin: 16px 0 20px; }
body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-results { color: var(--store-custom-muted); font-size: .92rem; font-weight: 700; }
body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-pagination button { min-height: 44px; padding-inline: 16px; font-weight: 750; }
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) > .card {
    border: 1px solid var(--store-custom-border);
    border-radius: min(var(--store-custom-radius), 20px);
    background: var(--store-custom-surface);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--store-custom-bg) 18%, transparent);
}
body[data-storefront-template="master_01"][data-store-cards="planas"] :is(#storeProductGrid, #storeServiceGrid) > .card { box-shadow: none; border-color: transparent; }
body[data-storefront-template="master_01"][data-store-cards="borde"] :is(#storeProductGrid, #storeServiceGrid) > .card { box-shadow: none; border-width: 2px; }
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card .photo { margin: 10px 10px 0; border-radius: min(var(--store-custom-radius), 14px); }
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card .stock { color: var(--store-custom-text); background: var(--store-custom-surface); }
/* La fotografía queda libre; las etiquetas se distribuyen debajo y se ajustan al ancho. */
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card .photo:not(.service-placeholder) {
    display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start;
    gap: 6px; height: auto; aspect-ratio: auto; padding-bottom: 6px;
}
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card .photo:not(.service-placeholder) > :is(img, .product-placeholder) {
    position: static; flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: var(--store-custom-image-ratio);
}
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card .photo:not(.service-placeholder) > :is(.featured-badge, .stock, .zaida-visualizable-badge) {
    position: static; min-height: 26px; max-width: 100%; margin: 0; padding: 4px 8px;
    font-size: .68rem; line-height: 1.25; box-shadow: none;
}
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card .photo:not(.service-placeholder) > :is(.featured-badge, .stock, .zaida-visualizable-badge):nth-child(2) { margin-left: 6px; }
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card:is(.is-featured, .has-promotion) .photo:not(.service-placeholder)::before,
body[data-storefront-template="master_01"] #storeProductGrid .card.is-sold-out .photo::after { display: none; }
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card-body { gap: 5px; }
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card .tag { color: var(--store-custom-link); }
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card h3 { margin: 4px 0 12px; font-size: clamp(1rem, 1.2vw, 1.18rem); }
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card .price { color: var(--store-custom-link); font-size: clamp(1.1rem, 1.5vw, 1.45rem); }
body[data-storefront-template="master_01"] :is(#storeProductGrid, #storeServiceGrid) .card-actions { width: 100%; margin-top: 12px; }
@media (max-width: 600px) {
    body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-filters { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-filters > label { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    body[data-storefront-template="master_01"] :is(#productos, #servicios) .catalog-navigation { gap: 10px; margin-block: 14px; }
}
