/* DSA Product Showcase Elementor Widget */
.dsa-product-showcase {
    --dsa-showcase-gap: 24px;
    --dsa-showcase-items: 4;
    width: 100%;
    min-width: 0;
}

.dsa-product-showcase__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.dsa-product-showcase__heading-copy { min-width: 0; }

.dsa-product-showcase__eyebrow {
    margin-bottom: 6px;
    color: var(--dsa-accent, #06AABB);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dsa-product-showcase__title {
    margin: 0;
    color: var(--dsa-gray-900, #212529);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.dsa-product-showcase__description {
    max-width: 760px;
    margin-top: 10px;
    color: var(--dsa-gray-600, #868e96);
    line-height: 1.65;
}

.dsa-product-showcase__description > *:last-child { margin-bottom: 0; }

.dsa-product-showcase__section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 0;
    color: var(--dsa-accent, #06AABB);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dsa-product-showcase__section-link:hover {
    color: var(--dsa-accent-hover, #059DAD);
    text-decoration: none;
}

.dsa-product-showcase__section-link i {
    font-size: .75rem;
    transition: transform .2s ease;
}

.dsa-product-showcase__section-link:hover i { transform: translateX(3px); }

/* Grid layout */
.dsa-product-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--dsa-showcase-gap);
    align-items: stretch;
}

/* Shared cards */
.dsa-product-showcase__card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--dsa-gray-200, #e9ecef);
    border-radius: var(--dsa-radius, 8px);
    box-shadow: var(--dsa-shadow-sm, 0 1px 3px rgba(0,0,0,.06));
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

@media (hover:hover) and (pointer:fine) {
    .dsa-product-showcase__card:hover {
        transform: translateY(-4px);
        border-color: var(--dsa-accent-border, rgba(6,170,187,.25));
        box-shadow: var(--dsa-shadow, 0 4px 16px rgba(0,0,0,.08));
    }
}

.dsa-product-showcase__image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.dsa-product-showcase__image-link:hover {
    color: inherit;
    text-decoration: none;
}

.dsa-product-showcase__image-link--static { cursor: default; }

.dsa-product-showcase__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--dsa-gray-50, #f8f9fa);
}

.dsa-product-showcase__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

@media (hover:hover) and (pointer:fine) {
    .dsa-product-showcase__card:hover .dsa-product-showcase__image { transform: scale(1.035); }
}

.dsa-product-showcase__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--dsa-gray-400, #ced4da);
    font-size: 2.5rem;
}

.dsa-product-showcase__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}

.dsa-product-showcase__meta {
    margin-bottom: 7px;
    color: var(--dsa-accent, #06AABB);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.dsa-product-showcase__product-title {
    height: 100%;
    margin: 0;
    color: var(--dsa-gray-900, #212529);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
}

.dsa-product-showcase__product-title a {
    color: inherit !important;
    text-decoration: none;
}

.dsa-product-showcase__product-title a:hover {
    color: var(--dsa-accent, #06AABB);
    text-decoration: none;
}

.dsa-product-showcase__excerpt {
    margin: 10px 0 0;
    color: var(--dsa-gray-600, #868e96);
    font-size: .875rem;
    line-height: 1.55;
}

.dsa-product-showcase__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 10px 14px;
    border-radius: var(--dsa-radius-sm, 4px);
    background: var(--dsa-gray-900, #212529);
    color: #fff !important;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.dsa-product-showcase__product-title + .dsa-product-showcase__button,
.dsa-product-showcase__excerpt + .dsa-product-showcase__button { margin-top: 18px; }

.dsa-product-showcase__button:hover {
    background: var(--dsa-accent, #06AABB);
    color: #fff !important;
    text-decoration: none;
}

.dsa-product-showcase__button i { font-size: .72rem; }

.dsa-product-showcase__empty {
    padding: 26px;
    border: 1px dashed var(--dsa-gray-300, #dee2e6);
    border-radius: var(--dsa-radius, 8px);
    background: var(--dsa-gray-50, #f8f9fa);
    color: var(--dsa-gray-600, #868e96);
    text-align: center;
}

/* Horizontal slider / carousel */
.dsa-product-showcase__carousel {
    position: relative;
    min-width: 0;
}

.dsa-product-showcase__viewport {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px 2px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
}

.dsa-product-showcase__viewport::-webkit-scrollbar { display: none; }

.dsa-product-showcase__viewport:focus-visible {
    outline: 3px solid var(--dsa-accent, #06AABB);
    outline-offset: 4px;
    border-radius: var(--dsa-radius, 8px);
}

.dsa-product-showcase__track {
    display: flex;
    align-items: stretch;
    gap: var(--dsa-showcase-gap);
    min-width: 100%;
}

.dsa-product-showcase--carousel .dsa-product-showcase__card {
    flex: 0 0 calc(
        (100% - ((var(--dsa-showcase-items) - 1) * var(--dsa-showcase-gap)))
        / var(--dsa-showcase-items)
    );
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.dsa-product-showcase__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--dsa-gray-200, #e9ecef);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background: rgba(255,255,255,.96);
    color: var(--dsa-gray-900, #212529);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.dsa-product-showcase__nav--prev { left: 12px; }
.dsa-product-showcase__nav--next { right: 12px; }

.dsa-product-showcase__nav:hover:not(:disabled) {
    background: var(--dsa-accent, #06AABB);
    border-color: var(--dsa-accent, #06AABB);
    color: #fff;
    transform: translateY(-50%) scale(1.04);
}

.dsa-product-showcase__nav:focus-visible {
    outline: 3px solid var(--dsa-accent, #06AABB);
    outline-offset: 3px;
}

.dsa-product-showcase__nav:disabled {
    opacity: .35;
    cursor: default;
}

.dsa-product-showcase__nav[hidden] { display: none !important; }

.dsa-product-showcase__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 12px;
    margin-top: 13px;
}

.dsa-product-showcase__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: var(--dsa-gray-300, #dee2e6);
    cursor: pointer;
    transition: width .2s ease, background .2s ease, transform .2s ease;
}

.dsa-product-showcase__dot:hover { transform: scale(1.12); }

.dsa-product-showcase__dot.is-active {
    width: 24px;
    background: var(--dsa-accent, #06AABB);
}

.dsa-product-showcase__dot:focus-visible {
    outline: 3px solid var(--dsa-accent, #06AABB);
    outline-offset: 3px;
}

.dsa-product-showcase__dots[hidden] { display: none !important; }

@media (max-width: 1024px) {
    .dsa-product-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsa-product-showcase--carousel { --dsa-showcase-items: 2; }
}

@media (max-width: 600px) {
    .dsa-product-showcase__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .dsa-product-showcase__grid { grid-template-columns: 1fr; }
    .dsa-product-showcase__section-link { white-space: normal; }
    .dsa-product-showcase--carousel { --dsa-showcase-items: 1; }

    .dsa-product-showcase__nav {
        width: 38px;
        height: 38px;
        font-size: .8rem;
    }

    .dsa-product-showcase__nav--prev { left: 8px; }
    .dsa-product-showcase__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .dsa-product-showcase__card,
    .dsa-product-showcase__image,
    .dsa-product-showcase__section-link i,
    .dsa-product-showcase__nav,
    .dsa-product-showcase__dot {
        transition: none !important;
    }

    .dsa-product-showcase__viewport { scroll-behavior: auto; }
}
