/* The widget is scoped to its own root class so it never changes other page sections. */
.ab-products {
    box-sizing: border-box;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 34px 24px 40px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(rgba(247,252,255,.90), rgba(247,252,255,.95)),
        url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1800&q=85') center / cover;
}
.ab-products, .ab-products * { box-sizing: border-box; }
.ab-products::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(51,180,220,.12), transparent 24%),
                radial-gradient(circle at 90% 25%, rgba(51,180,220,.10), transparent 22%);
    pointer-events: none;
}
.ab-products-container { max-width: 1500px; width: 100%; margin: auto; position: relative; z-index: 1; }
.ab-products-heading { text-align: center; margin-bottom: 24px; }
.ab-products-small { color: #168ed2; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 4px; }
.ab-products-heading .ab-products-title { margin: 0; padding: 0; color: #10284d; font-size: clamp(28px, 2.4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -1px; }
.ab-products-description { margin: 10px auto 0; max-width: 750px; font-size: 15px; color: #47627a; line-height: 1.7; }
.ab-products-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.ab-product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #dcecf5;
    box-shadow: 0 8px 22px rgba(12,67,105,.08);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.ab-product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(12,67,105,.14); }
.ab-product-card:focus-visible { outline: 2px solid #168ed2; outline-offset: 3px; }
.ab-product-image { width: 100%; aspect-ratio: 1.45 / 1; overflow: hidden; background: #e9f1f5; display: flex; align-items: center; justify-content: center; }
.ab-product-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ab-product-card:hover .ab-product-image img { transform: scale(1.06); }
.ab-product-icon { color: #168ed2; font-size: 42px; line-height: 1; }
.ab-product-icon svg { width: 1em; height: 1em; fill: currentColor; }
.ab-product-body { width: 100%; flex: 1; }
.ab-product-name { margin: 0; padding: 10px 8px 12px; text-align: center; color: #10284d; font-size: 14px; font-weight: 700; line-height: 1.3; }
.ab-product-description { color: #47627a; font-size: 12px; line-height: 1.5; text-align: center; padding: 0 8px 12px; }
.ab-product-button { display: inline-block; text-align: center; margin: 0 8px 12px; padding: 7px 10px; border-radius: 6px; background: #168ed2; color: #fff; font-weight: 600; font-size: 12px; transition: background .3s ease, color .3s ease, transform .3s ease; }
.ab-product-button-wrap { text-align: center; margin-top: auto; }
.ab-product-card:hover .ab-product-button { background: #10284d; }
.ab-products-cta-wrap { margin-top: 24px; text-align: center; }
.ab-products-cta { display: inline-block; padding: 11px 22px; background: #168ed2; border: 1px solid transparent; border-radius: 7px; color: #fff; text-decoration: none !important; font-weight: 600; transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease; }
.ab-products-cta:hover { background: #10284d; color: #fff; transform: translateY(-2px); }
.ab-products-cta:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 1200px) {
    .ab-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ab-products { padding: 28px 15px 34px; }
    .ab-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ab-product-name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .ab-products *, .ab-products *::before, .ab-products *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
