/* Scoped to the new shortcode only. Emmet and WooCommerce legacy float reset. */
.xsp100-catalog {
    --xsp-ink: #182b42;
    --xsp-muted: #52647a;
    --xsp-blue: #165dbe;
    --xsp-line: #dbe4ef;
    width: 100%;
    min-width: 0;
    margin: 24px 0 32px;
    text-align: left;
}
.xsp100-catalog *, .xsp100-catalog *::before, .xsp100-catalog *::after { box-sizing: border-box; }
.xsp100-catalog .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr));
    gap: 20px;
    align-items: stretch;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    list-style: none !important;
}
.xsp100-catalog .woocommerce ul.products::before,
.xsp100-catalog .woocommerce ul.products::after { display: none !important; content: none !important; }
.xsp100-catalog .woocommerce ul.products li.product,
.xsp100-catalog .woocommerce ul.products li.product.first,
.xsp100-catalog .woocommerce ul.products li.product.last {
    display: flex !important;
    flex-direction: column;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    height: auto;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid var(--xsp-line);
    border-radius: 15px;
    background: #fff;
    color: var(--xsp-ink);
    box-shadow: 0 4px 16px rgba(24,43,66,.06);
    position: relative;
    list-style: none;
    overflow: visible;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.xsp100-catalog .woocommerce ul.products li.product:hover {
    border-color: #a7c6ed;
    box-shadow: 0 8px 24px rgba(24,43,66,.10);
}
.xsp100-catalog .woocommerce ul.products li.product > a:first-child,
.xsp100-catalog .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
.xsp100-catalog .woocommerce ul.products li.product > a.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    color: var(--xsp-ink);
    text-decoration: none;
    margin: 0;
}
.xsp100-catalog .woocommerce ul.products li.product a img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    margin: 0 0 14px !important;
    padding: 8px;
    border: 0 !important;
    border-radius: 10px;
    background: #f0f4f9;
    box-shadow: none;
}
.xsp100-catalog .woocommerce ul.products li.product .woocommerce-loop-product__title,
.xsp100-catalog .woocommerce ul.products li.product h2,
.xsp100-catalog .woocommerce ul.products li.product h3 {
    font-family: inherit;
    color: var(--xsp-ink);
    font-size: 16px !important;
    font-weight: 650;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal;
    text-align: left;
    padding: 0 !important;
    margin: 0 0 12px !important;
    min-height: 2.8em;
    overflow-wrap: anywhere;
}
.xsp100-catalog .woocommerce ul.products li.product .price {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    position: static !important;
    margin: auto 0 0 !important;
    padding: 8px 0 0 !important;
    min-height: 60px;
    line-height: 1.25;
    color: var(--xsp-ink) !important;
    font-size: 23px !important;
    font-weight: 700;
    text-align: left;
}
.xsp100-catalog .woocommerce ul.products li.product .price del,
.xsp100-catalog .woocommerce ul.products li.product .price ins {
    display: block !important;
    position: static !important;
    bottom: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none;
    opacity: 1;
    color: inherit;
}
.xsp100-catalog .woocommerce ul.products li.product .price del,
.xsp100-catalog .woocommerce ul.products li.product .price del .amount {
    font-size: 14px !important;
    font-weight: 400;
    color: var(--xsp-muted) !important;
    text-decoration: line-through;
}
.xsp100-catalog .woocommerce ul.products li.product .price ins,
.xsp100-catalog .woocommerce ul.products li.product .price ins .amount {
    font-size: 23px !important;
    font-weight: 700;
    color: var(--xsp-ink) !important;
    text-decoration: none;
}
.xsp100-catalog .woocommerce ul.products li.product .price .amount { white-space: nowrap; }
.xsp100-catalog .woocommerce ul.products li.product .onsale {
    position: absolute !important;
    z-index: 2;
    left: 22px !important;
    top: 22px !important;
    right: auto !important;
    bottom: auto !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 5px 9px !important;
    border: 0;
    border-radius: 7px;
    background: #b63b36 !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1.35;
    font-weight: 700;
    text-transform: none;
    transform: none !important;
    text-shadow: none;
}
.xsp100-catalog .woocommerce ul.products li.product .onsale::before,
.xsp100-catalog .woocommerce ul.products li.product .onsale::after { display: none !important; content: none !important; }
.xsp100-catalog .woocommerce ul.products li.product .button,
.xsp100-catalog .woocommerce ul.products li.product .added_to_cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 12px 0 0 !important;
    padding: 10px 12px !important;
    border: 1px solid var(--xsp-blue) !important;
    border-radius: 9px;
    background: var(--xsp-blue) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.35 !important;
    text-transform: none !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none;
    white-space: normal;
}
.xsp100-catalog .woocommerce ul.products li.product .added_to_cart {
    background: #fff !important;
    color: var(--xsp-blue) !important;
}
.xsp100-catalog .woocommerce ul.products li.product .button:hover { background: #104a9d !important; }
.xsp100-catalog a:focus-visible { outline: 3px solid #0b65cb; outline-offset: 3px; }
@media (max-width: 540px) {
    .xsp100-catalog .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .xsp100-catalog .woocommerce ul.products li.product { transition: none; }
}

/* Version 1.1.0: local header, search and optional editable product excerpt. */
.xsp100-catalog .xsp110-header { margin: 0 0 20px; padding: 22px 24px; color: #fff; border-radius: 15px; background: linear-gradient(120deg,#162d4c,#245fa8); }
.xsp100-catalog .xsp110-header h2 { margin: 0 !important; padding: 0 !important; color: #fff !important; font-size: clamp(22px,3vw,32px); line-height: 1.3; font-weight: 700; text-transform: none; }
.xsp100-catalog .xsp110-search:not([hidden]) { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; }
.xsp100-catalog .xsp110-search label { display: block; flex: 1 1 280px; margin: 0; color: var(--xsp-ink); font-size: 14px; font-weight: 600; }
.xsp100-catalog .xsp110-search input { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 6px 0 0; padding: 10px 12px; border: 1px solid var(--xsp-line); border-radius: 9px; background: #fff; color: var(--xsp-ink); font: inherit; }
.xsp100-catalog .xsp110-count { color: var(--xsp-muted); font-size: 14px; padding-bottom: 10px; }
.xsp100-catalog .woocommerce ul.products li.product .xsp110-description { color: var(--xsp-muted); font-size: 14px; line-height: 1.5; font-weight: 400; margin: 0 0 10px !important; padding: 0 !important; overflow-wrap: anywhere; text-align: left; white-space: pre-line; }
.xsp100-catalog [hidden], .xsp100-catalog .woocommerce ul.products li.product[hidden] { display: none !important; }
.xsp100-catalog .xsp110-no-results { padding: 16px; color: var(--xsp-muted); background: #f0f4f9; border-radius: 9px; }
.xsp100-catalog input:focus-visible { outline: 3px solid #0b65cb; outline-offset: 2px; }

/* 1.2.0: optional catalogue filters, consistent cover frames, two pilot illustrations. */
.xsp100-catalog .xsp110-search:not([hidden]) { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(150px, 1fr) minmax(145px, .9fr); gap: 12px; align-items: end; }
.xsp100-catalog .xsp110-search label { min-width: 0; }
.xsp100-catalog .xsp120-select { display:block; width:100%; min-width:0; min-height:44px; margin:6px 0 0; padding:9px 10px; border:1px solid var(--xsp-line); border-radius:9px; background:#fff; color:var(--xsp-ink); font:inherit; }
.xsp100-catalog .xsp120-tools { display:flex; align-items:center; gap:12px; justify-content:space-between; grid-column:1/-1; }
.xsp100-catalog .xsp120-tools .xsp110-count { padding:0; }
.xsp100-catalog button.xsp120-reset { color:var(--xsp-blue); background:#fff; border:1px solid var(--xsp-line); border-radius:8px; padding:8px 12px; min-height:36px; font-size:13px; line-height:1.3; text-transform:none; box-shadow:none; }
.xsp100-catalog button.xsp120-reset:disabled { opacity:.55; cursor:default; }
.xsp100-catalog .xsp120-select:focus-visible, .xsp100-catalog .xsp120-reset:focus-visible { outline:3px solid #0b65cb; outline-offset:2px; }
.xsp100-catalog .woocommerce ul.products li.product a img.xsp120-cover { aspect-ratio:4 / 3; object-fit:cover; object-position:center; padding:0; }
.xsp100-catalog .woocommerce ul.products li.product .xsp120-meta { display:none !important; }
@media(max-width:800px) { .xsp100-catalog .xsp110-search:not([hidden]) { grid-template-columns: repeat(2,minmax(0,1fr)); } .xsp100-catalog .xsp110-search label:has(.xsp110-search-input) { grid-column:1/-1; } }
@media(max-width:480px) { .xsp100-catalog .xsp110-search:not([hidden]) { grid-template-columns:minmax(0,1fr); } }

/* 1.4: simpler default catalogue; optional legacy filters are still supported. */
.xsp100-catalog .xsp110-search.xsp140-search-only:not([hidden]) { grid-template-columns: minmax(0,1fr); }
