.gpc-card-wrapper {
    width: 100%;
    max-width: 400px !important;
    height: 520px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    border: 1px solid #e8e8e8;
}

.gpc-card-title {
    flex-shrink: 0;
    margin: 0 0 20px;
    padding-bottom: 0 !important;
}

.gpc-products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.gpc-count-1 .gpc-products-grid {
    align-content: stretch;
}

.gpc-product-item {
    box-sizing: border-box;
    overflow: hidden;
    text-align: left;
    border: none;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: transparent !important;
    position: relative;
    z-index: 1;
    outline: none;
}

.gpc-product-item:focus,
.gpc-product-item:focus-visible,
.gpc-product-item:focus-within {
    outline: none;
}

/* -- Layout by count -- */
.gpc-count-1 .gpc-product-item {
    width: 100%;
    height: 100%;
}

.gpc-count-2 .gpc-product-item {
    width: 100%;
    height: calc(50% - 10px);
}

.gpc-count-3 .gpc-products-grid {
    justify-content: flex-start;
}

.gpc-count-3 .gpc-product-item {
    width: calc(50% - 10px);
    height: calc(50% - 10px);
}

.gpc-count-4 .gpc-product-item {
    width: calc(50% - 10px);
    height: calc(50% - 10px);
}

/* -- Center border separators -- */
.gpc-count-2 .gpc-products-grid,
.gpc-count-3 .gpc-products-grid,
.gpc-count-4 .gpc-products-grid {
    position: relative;
}

.gpc-count-2 .gpc-products-grid::before,
.gpc-count-3 .gpc-products-grid::before,
.gpc-count-4 .gpc-products-grid::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e8e8e8;
    pointer-events: none;
}

.gpc-count-3 .gpc-products-grid::after,
.gpc-count-4 .gpc-products-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e8e8e8;
    pointer-events: none;
}

.gpc-product-image {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gpc-product-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.gpc-ratio-square .gpc-product-image {
    aspect-ratio: 1 / 1;
}

.gpc-ratio-portrait .gpc-product-image {
    aspect-ratio: 3 / 4;
}

.gpc-ratio-landscape .gpc-product-image {
    aspect-ratio: 4 / 3;
}

.gpc-ratio-original .gpc-product-image {
    flex: 1;
    min-height: 0;
}

.gpc-ratio-original .gpc-product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.gpc-fit-cover .gpc-product-image img {
    object-fit: cover;
    object-position: top center;
}

.gpc-fit-contain .gpc-product-image img {
    object-fit: contain;
}

.gpc-product-price {
    flex-shrink: 0;
    margin: 0 0 2px;
}

.gpc-product-price ins {
    text-decoration: none;
}

.gpc-product-price del {
    opacity: 0.5;
    font-size: 0.85em;
}

.gpc-product-title {
    flex-shrink: 0;
    margin: 0 0 4px;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.gpc-custom-text {
    flex-shrink: 0;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

@media ( max-width: 767px ) {
    .gpc-count-1 .gpc-product-item {
        width: 100%;
        height: 100%;
    }

    .gpc-count-2 .gpc-product-item {
        width: 100%;
        height: calc(50% - 10px);
    }

    .gpc-count-3 .gpc-product-item {
        width: calc(50% - 10px);
        height: calc(50% - 10px);
    }

    .gpc-count-4 .gpc-product-item {
        width: calc(50% - 10px);
        height: calc(50% - 10px);
    }

    .gpc-card-wrapper {
        width: 100%;
        max-width: 400px !important;
        height: 520px;
        padding: 15px !important;
    }
}

@media ( max-width: 480px ) {
    .gpc-card-wrapper {
        width: 100%;
        max-width: 400px !important;
        height: 520px;
    }
}

/* -- Slider styles (Splide) -- */
.gpc-slider,
.psc-slider {
    flex: 1;
    min-height: 0;
    width: 100%;
}

.gpc-slider .splide__track,
.psc-slider .splide__track {
    height: 100%;
}

.gpc-slider .splide__list,
.psc-slider .splide__list {
    height: 100%;
}

.gpc-slider .splide__slide,
.psc-slider .splide__slide {
    height: 100%;
    display: flex;
}

.gpc-slider .splide__slide > .gpc-product-item,
.psc-slider .splide__slide > .gpc-product-item,
.gpc-slider .splide__slide > .psc-product-item,
.psc-slider .splide__slide > .psc-product-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #e8e8e8;
}

.gpc-slider .gpc-product-item > .gpc-product-image,
.psc-slider .gpc-product-item > .gpc-product-image,
.gpc-slider .psc-product-item > .gpc-product-image,
.psc-slider .psc-product-item > .gpc-product-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.gpc-slider .gpc-product-item > .gpc-product-image img,
.psc-slider .gpc-product-item > .gpc-product-image img,
.gpc-slider .psc-product-item > .gpc-product-image img,
.psc-slider .psc-product-item > .gpc-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.gpc-slider .gpc-product-item:hover,
.psc-slider .gpc-product-item:hover,
.gpc-slider .psc-product-item:hover,
.psc-slider .psc-product-item:hover {
    box-shadow: none;
    transform: none;
}

.gpc-slider .gpc-product-item:hover .gpc-product-image img,
.psc-slider .gpc-product-item:hover .gpc-product-image img,
.gpc-slider .psc-product-item:hover .gpc-product-image img,
.psc-slider .psc-product-item:hover .gpc-product-image img {
    transform: none;
}

.gpc-slider .splide__arrow,
.psc-slider .splide__arrow {
    background: rgba(0,0,0,0.5);
    opacity: 0.8;
}

.gpc-slider .splide__arrow:hover,
.psc-slider .splide__arrow:hover {
    background: rgba(0,0,0,0.7);
}

.gpc-slider .splide__arrow svg,
.psc-slider .splide__arrow svg {
    fill: #fff;
}

.gpc-slider .splide__pagination__page.is-active,
.psc-slider .splide__pagination__page.is-active {
    background: #333;
}

.gpc-has-slider .gpc-products-grid {
    display: none;
}

/* -- Card stack / scroll styles -- */
.gpc-stack-row.et_pb_row,
.gpc-stack-row:not(.et_pb_row) {
    max-width: 1600px !important;
    margin: 0 auto;
    display: block !important;
    width: 100%;
    box-sizing: border-box;
}
.gpc-stack-row.et_pb_row > .et_pb_column {
    width: 100% !important;
    padding-bottom: 0 !important;
}
.gpc-stack-row .gpc-scroll-row,
.gpc-stack-row .gpc-scroll-track {
    display: contents;
}
.gpc-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    padding-left: 40px;
    padding-right: 60px;
    padding-top: 20px;
}
.gpc-stack-row .gpc-scroll-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow: visible;
    justify-content: flex-start;
    padding: 0;
    list-style: none;
    margin: 0;
}

.gpc-scroll-wrapper::-webkit-scrollbar {
    display: none;
}
.gpc-stack-row .gpc-scroll-item {
    flex: 0 0 366px;
    width: 366px;
    display: flex;
    overflow: visible;
}
.gpc-stack-row .gpc-card-wrapper {
    width: 366px;
    max-width: 366px;
    flex-shrink: 0;
}

@media ( min-width: 1441px ) {
    .gpc-stack-row.gpc-count-max4 .gpc-scroll-wrapper {
        overflow: visible !important;
        padding: 0 !important;
        padding-top: 20px !important;
        cursor: auto;
        user-select: auto;
        -webkit-user-select: auto;
    }
    .gpc-stack-row.gpc-count-max4 .gpc-scroll-list {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        overflow: visible !important;
        padding: 0 !important;
    }
    .gpc-stack-row.gpc-count-max4 .gpc-scroll-item {
        flex: none;
        width: auto;
    }
    .gpc-stack-row.gpc-count-max4 .gpc-card-wrapper {
        width: 100%;
        max-width: 100%;
    }
}
@media ( max-width: 1440px ) {
    .gpc-stack-row.et_pb_row,
    .gpc-stack-row:not(.et_pb_row) {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        position: unset !important;
        padding: 0 20px !important;
    }
    .gpc-stack-row.et_pb_row > .et_pb_column {
        padding: 0 !important;
    }
}
@media ( max-width: 767px ) {
    .gpc-scroll-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .gpc-stack-row .gpc-scroll-item {
        flex: 0 0 min(325px, calc(100vw - 80px));
        width: min(325px, calc(100vw - 80px));
    }
    .gpc-stack-row .gpc-card-wrapper {
        width: min(325px, calc(100vw - 80px));
        max-width: min(325px, calc(100vw - 80px));
    }
}
@media ( max-width: 450px ) {
    .gpc-stack-row.et_pb_row,
    .gpc-stack-row:not(.et_pb_row) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .gpc-scroll-wrapper {
        scroll-snap-type: x mandatory;
        padding-left: 10vw;
        padding-right: 10vw;
    }
    .gpc-stack-row .gpc-scroll-item {
        scroll-snap-align: center;
    }
}
