.epcs-tabs-wrap {
    width: 100%;
    text-align: center;
}

.epcs-heading {
    margin: 0 0 28px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #111;
    text-transform: uppercase;
}

.epcs-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    margin: 0 0 30px;
}

.epcs-tab {
    appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    padding: 0 0 6px;
    color: #5f6268;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.epcs-tab.is-active,
.epcs-tab:hover {
    color: #1e232b;
    border-bottom-color: #d9a13a;
}

.epcs-panel {
    display: none;
}

.epcs-panel.is-active {
    display: block;
}

.epcs-slider-wrap {
    width: 100%;
    overflow: visible;
}

.epcs-slider-wrap.epcs-has-arrows {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    column-gap: 14px;
    align-items: start;
}

.epcs-slider {
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 2px 10px;
}

.epcs-slider::-webkit-scrollbar {
    display: none;
}

.epcs-product-card {
    flex: 0 0 calc((100% - 60px) / 4);
    padding: 0 8px;
    background: transparent;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.epcs-image {
    display: block;
    width: 100%;
    text-decoration: none;
}

.epcs-image-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: transparent;
}

.epcs-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.epcs-hover-img {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.epcs-image:hover .epcs-main-img {
    opacity: 0;
}

.epcs-image:hover .epcs-hover-img {
    opacity: 1;
    transform: scale(1.02);
}

.epcs-title {
    margin: 14px 0 6px;
    color: #3b3d42;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    min-height: 56px;
}

.epcs-title a {
    color: inherit;
    text-decoration: none;
}

.epcs-product-cat {
    color: #a1a1a1;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
}

.epcs-arrow {
    position: relative;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transform: none;
    margin-top: var(--epcs-arrow-margin-top, 0px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.epcs-slider-wrap.epcs-has-arrows .epcs-prev {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.epcs-slider-wrap.epcs-has-arrows .epcs-slider {
    grid-column: 2;
    grid-row: 1;
}

.epcs-slider-wrap.epcs-has-arrows .epcs-next {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.epcs-empty {
    width: 100%;
    padding: 12px;
    border: 1px dashed #ccc;
}

@media (max-width: 1024px) {
    .epcs-heading {
        font-size: 24px;
    }

    .epcs-tab {
        font-size: 18px;
    }

    .epcs-title {
        font-size: 20px;
    }

    .epcs-product-cat {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .epcs-tabs {
        gap: 20px;
        margin-bottom: 22px;
    }

    .epcs-tab {
        font-size: 16px;
    }

    .epcs-slider-wrap.epcs-has-arrows {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        column-gap: 8px;
    }

    .epcs-arrow {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}
