.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;
    }
}

.epcs-price {
    margin: 8px 0 0;
    color: #1e232b;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.epcs-price del {
    color: #999;
    font-weight: 400;
    margin-right: 6px;
}

.epcs-price ins {
    text-decoration: none;
}

.epcs-more-wrap {
    margin-top: 22px;
    text-align: center;
}

.epcs-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border: 1px solid #1e232b;
    border-radius: 4px;
    background: #1e232b;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.epcs-more-button:hover,
.epcs-more-button:focus {
    color: #fff;
    opacity: 0.88;
    transform: translateY(-1px);
}

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

@media (max-width: 767px) {
    .epcs-price {
        font-size: 16px;
    }

    .epcs-more-button {
        width: 100%;
        max-width: 320px;
    }
}

.epcs-image {
    position: relative;
    display: block;
    width: 100%;
}

.epcs-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.epcs-product-card:hover .epcs-actions,
.epcs-product-card:focus-within .epcs-actions {
    opacity: 1;
    transform: translateX(0);
}

.epcs-action {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.epcs-action:last-child {
    border-bottom: 0;
}

.epcs-action:hover,
.epcs-action:focus {
    color: #000;
    background: #f7f7f7;
}

.epcs-action svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .epcs-actions {
        opacity: 1;
        transform: none;
        top: 10px;
        right: 10px;
    }

    .epcs-action {
        width: 42px;
        height: 42px;
    }

    .epcs-action svg {
        width: 22px;
        height: 22px;
    }
}

.epcs-offer-card {
    justify-content: center;
}

.epcs-offer-card-inner {
    min-height: 100%;
    width: 100%;
    padding: 28px 18px;
    border: 2px dashed #d9a13a;
    border-radius: 8px;
    background: #fff8ea;
    color: #1e232b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-sizing: border-box;
}

.epcs-offer-card-text {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
}

.epcs-offer-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid #1e232b;
    border-radius: 4px;
    background: #1e232b;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.epcs-offer-card-button:hover,
.epcs-offer-card-button:focus {
    color: #fff;
    opacity: 0.88;
}

@media (max-width: 1024px) {
    .epcs-offer-card-text {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .epcs-offer-card-text {
        font-size: 18px;
    }
}

.epcs-offer-card-inner,
.epcs-offer-card-inner:hover,
.epcs-offer-card-inner:focus {
    text-decoration: none;
}

/* Offer card style options */
.epcs-offer-card-inner {
    border-style: solid;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.epcs-offer-card .epcs-offer-card-button {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.epcs-offer-style-outline .epcs-offer-card-inner,
.epcs-offer-style-auto.epcs-offer-auto-outline .epcs-offer-card-inner {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

.epcs-offer-style-outline .epcs-offer-card-button,
.epcs-offer-style-auto.epcs-offer-auto-outline .epcs-offer-card-button {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.epcs-offer-style-filled .epcs-offer-card-inner,
.epcs-offer-style-auto.epcs-offer-auto-filled .epcs-offer-card-inner {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.epcs-offer-style-filled .epcs-offer-card-button,
.epcs-offer-style-auto.epcs-offer-auto-filled .epcs-offer-card-button {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.epcs-offer-style-auto:not(.epcs-offer-auto-outline):not(.epcs-offer-auto-filled) .epcs-offer-card-inner {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.epcs-offer-style-auto:not(.epcs-offer-auto-outline):not(.epcs-offer-auto-filled) .epcs-offer-card-button {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.epcs-offer-hover-scale .epcs-offer-card-inner:hover,
.epcs-offer-hover-scale-invert .epcs-offer-card-inner:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.epcs-offer-hover-invert.epcs-offer-style-outline .epcs-offer-card-inner:hover,
.epcs-offer-hover-scale-invert.epcs-offer-style-outline .epcs-offer-card-inner:hover,
.epcs-offer-hover-invert.epcs-offer-style-auto.epcs-offer-auto-outline .epcs-offer-card-inner:hover,
.epcs-offer-hover-scale-invert.epcs-offer-style-auto.epcs-offer-auto-outline .epcs-offer-card-inner:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.epcs-offer-hover-invert.epcs-offer-style-outline .epcs-offer-card-inner:hover .epcs-offer-card-button,
.epcs-offer-hover-scale-invert.epcs-offer-style-outline .epcs-offer-card-inner:hover .epcs-offer-card-button,
.epcs-offer-hover-invert.epcs-offer-style-auto.epcs-offer-auto-outline .epcs-offer-card-inner:hover .epcs-offer-card-button,
.epcs-offer-hover-scale-invert.epcs-offer-style-auto.epcs-offer-auto-outline .epcs-offer-card-inner:hover .epcs-offer-card-button {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.epcs-offer-hover-invert.epcs-offer-style-filled .epcs-offer-card-inner:hover,
.epcs-offer-hover-scale-invert.epcs-offer-style-filled .epcs-offer-card-inner:hover,
.epcs-offer-hover-invert.epcs-offer-style-auto.epcs-offer-auto-filled .epcs-offer-card-inner:hover,
.epcs-offer-hover-scale-invert.epcs-offer-style-auto.epcs-offer-auto-filled .epcs-offer-card-inner:hover,
.epcs-offer-hover-invert.epcs-offer-style-auto:not(.epcs-offer-auto-outline):not(.epcs-offer-auto-filled) .epcs-offer-card-inner:hover,
.epcs-offer-hover-scale-invert.epcs-offer-style-auto:not(.epcs-offer-auto-outline):not(.epcs-offer-auto-filled) .epcs-offer-card-inner:hover {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

.epcs-offer-hover-invert.epcs-offer-style-filled .epcs-offer-card-inner:hover .epcs-offer-card-button,
.epcs-offer-hover-scale-invert.epcs-offer-style-filled .epcs-offer-card-inner:hover .epcs-offer-card-button,
.epcs-offer-hover-invert.epcs-offer-style-auto.epcs-offer-auto-filled .epcs-offer-card-inner:hover .epcs-offer-card-button,
.epcs-offer-hover-scale-invert.epcs-offer-style-auto.epcs-offer-auto-filled .epcs-offer-card-inner:hover .epcs-offer-card-button,
.epcs-offer-hover-invert.epcs-offer-style-auto:not(.epcs-offer-auto-outline):not(.epcs-offer-auto-filled) .epcs-offer-card-inner:hover .epcs-offer-card-button,
.epcs-offer-hover-scale-invert.epcs-offer-style-auto:not(.epcs-offer-auto-outline):not(.epcs-offer-auto-filled) .epcs-offer-card-inner:hover .epcs-offer-card-button {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Functional product action buttons */
.epcs-actions {
    z-index: 15;
}

.epcs-action.button,
.epcs-action.add_to_cart_button {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    line-height: 1 !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
}

.epcs-action.loading {
    opacity: 0.55;
    pointer-events: none;
}

.epcs-action.added,
.epcs-action.epcs-wishlist-clicked {
    background: #111 !important;
    color: #fff !important;
}

.epcs-action.added svg,
.epcs-action.epcs-wishlist-clicked svg {
    fill: #fff;
}

.epcs-action.added_to_cart {
    display: none !important;
}

.epcs-zoom-open {
    overflow: hidden;
}

.epcs-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.epcs-zoom-modal.is-open {
    display: flex;
}

.epcs-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.epcs-zoom-dialog {
    position: relative;
    z-index: 1;
    max-width: min(920px, 94vw);
    max-height: 92vh;
    background: #fff;
    padding: 22px;
    box-sizing: border-box;
    text-align: center;
}

.epcs-zoom-img {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
}

.epcs-zoom-title {
    margin-top: 12px;
    color: #111;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
}

.epcs-zoom-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 28px;
    line-height: 34px;
    cursor: pointer;
}
