.szs-products-carousel-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Forcefully remove underline from all links inside the widget, override theme/Elementor */
.szs-products-carousel-wrapper a,
.szs-products-carousel-wrapper a:visited,
.szs-products-carousel-wrapper a:hover,
.szs-products-carousel-wrapper a:focus,
.szs-products-carousel-wrapper a:active {
    text-decoration: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Header with title on the left and nav arrows on the right */
.szs-products-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;  /* center-align heading + arrows vertically */
    margin-bottom: 14px;  /* slightly reduced gap before products */
    gap: 1rem;
}

.szs-products-carousel-header-left {
    flex: 1 1 auto;
}

.szs-products-carousel-header-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Heading style */
.szs-carousel-heading {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    display: flex;
    align-items: center;
    transform: translateY(3px); /* nudged down globally */
}

/* Base nav button styling (desktop) */
.szs-carousel-nav {
    border-style: none;
    box-shadow: 1px 1px 5px 0px #9ca3af;
    border-radius: 30px;
    padding: 8px;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    color: #000000;
    min-width: 32px;
    min-height: 32px;
}

.szs-carousel-nav-icon {
    display: block;
}

.szs-carousel-nav-svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Hover / focus feedback (no background or color change) */
.szs-carousel-nav:hover,
.szs-carousel-nav:focus {
    box-shadow: 1px 1px 7px 0px #9ca3af;
    transform: translateY(-1px);
    background: transparent !important;
    color: #000000 !important;
}

/* Stretch carousel to full container width, no side space, hide overflow */
.szs-products-carousel.swiper-container {
    width: 100%;
    margin-left: -1px;   /* pull container 1px left */
    margin-right: 0;
    margin-top: 0 !important;  /* ensure no extra top margin */
    padding-left: 1px;   /* so first card's left border isn't clipped */
    padding-right: 0;
    overflow: hidden; /* hide products that are not in viewport */
}

/* Swiper wrapper */
.szs-products-carousel .swiper-wrapper {
    align-items: stretch;
}

/* Make slides flex so cards equal height */
.szs-products-carousel .swiper-slide {
    height: auto;
    display: flex;
}

.szs-products-carousel .swiper-slide > .loop-card {
    height: 100%;
}

/* Loop card layout */
.loop-card {
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.16);
    border-color: #E5E7EB;
    overflow: hidden;
    background-color: #ffffff;
    height: 100%;
    position: relative;
}

/* Hover state - border color and box shadow */
.loop-card:hover {
    border-color: #0000007D;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

/* Overlay badges in the top-right corner of the card for this widget */
.szs-products-carousel-wrapper .szs-labels-wrap.szs-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    gap: 4px;
    z-index: 3;
}

/* Image area */
.loop-card__image {
    width: 100%;
    margin-bottom: 15px; /* fixed 15px gap between image and SKU */
}

.loop-card__image a,
.loop-card__image img {
    display: block;
    width: 100%;
}

.loop-card__image-img {
    height: 206px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* Body (SKU, title, short description) */
.loop-card__body {
    padding: 4px 8px 10px 8px; /* base padding, tweaked further on large screens below */
}

.loop-card__sku {
    margin: 0 0 4px 0;
    font-size: 1em;
}

.loop-card__sku a {
    color: inherit;
}

.loop-card__title {
    font-size: 1.1em;
    text-transform: uppercase;
    line-height: 1.2em;
    font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
}

.loop-card__title a {
    color: inherit;
}

.loop-card__excerpt {
    margin-top: 5px;
    font-size: 0.75em;
    line-height: 20px;
    min-height: 5em;
}

.loop-card__excerpt a {
    color: inherit;
}

/* Meta (categories, price, swatches) */
.loop-card__meta {
    display: flex;
    flex-direction: column;
    padding: 0 8px 10px 8px;
    gap: 4px;
}

.loop-card__cats {
    font-size: 0.85em;
}

.loop-card__price {
    font-size: 1em;
    min-height: 40px;
}

.loop-card__swatches {
    font-weight: 500;
    min-height: 35px;
    margin-top: 5px;
}

/* Larger screens: tighten gap between image and SKU */
@media (min-width: 1025px) {
    .loop-card__body {
        padding-top: 2px; /* smaller top padding on desktop */
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .szs-carousel-nav {
        padding: 6px;
        margin-left: 6px;
        border-radius: 28px;
        box-shadow: 1px 1px 4px 0px #9ca3af;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {

    .szs-carousel-heading {
        transform: translateY(5px); /* stronger nudge down on small screens */
    }

    .szs-carousel-nav {
        padding: 4px;
        margin-left: 4px;
        border-radius: 24px;
        box-shadow: 1px 1px 3px 0px #9ca3af;
    }

    .loop-card__image {
        margin-bottom: 15px; /* keep the same 15px gap on mobile */
    }
}
