.ea-categories {
    margin-top: 30px;
    gap: 30px;
}

.ea-categories.grid {
    display: grid;
}

.category-box {
    position: relative;
    background-color: white;
    border-radius: 80px 60px 80px 0;
    padding: 10px 20px 5px;
    min-height: 280px;
    overflow: hidden;
    box-shadow: -20px 38px 15px -28px rgba(0, 0, 0, 0.60);
}

.category-box .category-image {
    display: block;
    min-height: 112px;
    /* position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15); */
}

.category-box .category-image img {
    position: absolute;
    top: -10px;
    right: -10px;
    /* width: 120px;
    height: 120px !important; */
    width: 150px;
    height: 110px !important;
    border-radius: 60px 0px 60px 0 !important;
    overflow: hidden;
    /* width: 100%;
    height: 100%;*/
    object-fit: cover;
}

.category-details h3 {
    text-transform: unset;
    margin-bottom: 5px !important;
    color: #000;
    font-size: 15.31px;
    font-style: normal;
    font-weight: 600;
    line-height: 21px;

}

.category-details h3 a:hover {
    color: #ea1c24;
}

.category-details ul {
    list-style: none;
    padding: 0;
    /* margin: 10px 0 0; */
}

.category-details ul li {
    margin-bottom: 5px;
    color: #000;
    font-size: 12.25px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.category-details a:hover {
    color: #ea1c24;
}

@media screen and (max-width: 576px) {
    .ea-categories {
        padding: 20px;
    }
}

/* default Swiper arrows έχουν absolute. Ρυθμίζουμε presets */
.ea-categories.carousel .swiper-button-prev,
.ea-categories.carousel .swiper-button-next {
    z-index: 2;
}

/* inside-center: πάνω από τον slider, κεντραρισμένα κάθετα */
.ea-categories.carousel[data-settings*="inside-center"] .swiper-button-prev,
.ea-categories.carousel[data-settings*="inside-center"] .swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
}

.ea-categories.carousel[data-settings*="inside-center"] .swiper-button-prev {
    left: 12px;
}

.ea-categories.carousel[data-settings*="inside-center"] .swiper-button-next {
    right: 12px;
}

/* inside-sides: στο κάτω μέρος, δεξιά/αριστερά */
.ea-categories.carousel[data-settings*="inside-sides"] .swiper-button-prev,
.ea-categories.carousel[data-settings*="inside-sides"] .swiper-button-next {
    bottom: 10px;
    top: auto;
    transform: none;
}

.ea-categories.carousel[data-settings*="inside-sides"] .swiper-button-prev {
    left: 10px;
}

.ea-categories.carousel[data-settings*="inside-sides"] .swiper-button-next {
    right: 10px;
}

/* outside-sides: εκτός container, δεξιά/αριστερά */
.ea-categories.carousel[data-settings*="outside-sides"] {
    overflow: visible;
    /* επιτρέπει τα βέλη να βγαίνουν εκτός */
}

.ea-categories.carousel[data-settings*="outside-sides"] .swiper-button-prev {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.ea-categories.carousel[data-settings*="outside-sides"] .swiper-button-next {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

/* overflow hidden toggle */
.ea-overflow-hidden {
    overflow: hidden;
}

/* Κοινά για κάρτες */
.ea-categories .category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Αν έχεις wrapper για εικόνα + περιεχόμενο, κράτα την εικόνα σταθερή αναλογία */
.ea-categories .category-card .thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* τετράγωνη προεπισκόπηση, άλλαξέ το αν θες */
    overflow: hidden;
}

.ea-categories .category-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Το περιεχόμενο γεμίζει το υπόλοιπο, κρατά ίδια ύψη στα cards */
.ea-categories .category-card .content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* GRID: τα items τεντώνουν by default, απλά βεβαιώσου ότι το child πιάνει 100% */
.ea-categories.grid>* {
    height: 100%;
}

/* CAROUSEL: κάνε τα slides να τεντώνουν στο ύψος του ψηλότερου */
.ea-categories.carousel .swiper-wrapper {
    align-items: stretch;
    /* κάνει όλα τα .swiper-slide ίδιου ύψους */
}

.ea-categories.carousel .swiper-slide {
    height: auto;
    /* άσε το slide να ψηλώσει όσο χρειάζεται */
}

.ea-categories.carousel .swiper-slide>.category-card {
    height: 100%;
}

/* Προαιρετικά: μικρά gaps πάνω-κάτω μέσα στο slide */
.ea-categories.carousel .swiper-slide {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Αν ενεργοποιηθεί equal height setting, μπορείς να κάνεις scope με κλάση */
.ea-equal-height .category-card {
    height: 100%;
}

.swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
}

span.swiper-pagination-bullet {
    display: inline-flex;
    width: var(--wd-pagin-size, 10px);
    height: var(--wd-pagin-size, 10px);
    background-color: var(--wd-pagin-bg, unset);
    border: 2px solid #fff;
    border-radius: var(--wd-pagin-radius, var(--wd-pagin-size, 10px));
    transition: all .25s ease;
    opacity: 1
}


span.swiper-pagination-bullet:hover {
    border-color: #ea1c24;
    background-color: #ea1c2300;
}

span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    border-color: #ea1c24;
    background-color: #ea1c24;
}

.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    margin-top: 20px;
}

.ea-categories.carousel .swiper-button-prev,
.ea-categories.carousel .swiper-button-next {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    line-height: 1;
    color: #ffffff;
    background: var(--wd-arrow-bg, unset);
    box-shadow: var(--wd-arrow-shadow, unset);
    border: var(--wd-arrow-brd, unset) var(--wd-arrow-brd-color, unset);
    border-radius: var(--wd-arrow-radius, unset);
    cursor: pointer;
    transition: all .25s ease;
    font-size: 24px;
    pointer-events: auto;
}

.ea-categories.carousel .swiper-button-prev:hover,
.ea-categories.carousel .swiper-button-next:hover {
    color: #ea1c24;
}


.ea-categories.carousel .swiper-button-prev:after,
.ea-categories.carousel .swiper-button-next:after {
    font-size: inherit;
}

/* Ο wrapper που «αγκαλιάζει» τον slider */
.ea-categories.carousel {
    position: relative;
}

.ea-categories.carousel .swiper {
    position: relative;
    padding: 10px;
}

/* ===== NEW: Arrow wrapper layout ===== */
.ea-categories.carousel .ea-arrows {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left: 0 */
    display: flex;
    align-items: center;
    /* κάθετα κέντρο */
    justify-content: space-between;
    /* αριστερά/δεξιά στις άκρες */
    pointer-events: none;
    z-index: 5;
}

@media screen and (max-width:1650px) {

    /* Τα κουμπιά να δέχονται κλικ, και να μη είναι absolute */
    .ea-categories.carousel .ea-arrows .swiper-button-prev,
    .ea-categories.carousel .ea-arrows .swiper-button-next {
        pointer-events: auto;
        position: static;
        /* ακυρώνει το default absolute της Swiper */
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        transform: none;
        /* καθαρίζουν παλιά rules */
    }
}

/* Κρατάμε το υπάρχον visual style σου */
.ea-categories.carousel .ea-arrows .swiper-button-prev,
.ea-categories.carousel .ea-arrows .swiper-button-next {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    line-height: 1;
    color: #ffffff;
    background: var(--wd-arrow-bg, unset);
    box-shadow: var(--wd-arrow-shadow, unset);
    border: var(--wd-arrow-brd, unset) var(--wd-arrow-brd-color, unset);
    border-radius: var(--wd-arrow-radius, unset);
    cursor: pointer;
    transition: all .25s ease;
    font-size: 15px;
}

/* hover όπως ήδη είχες */
.ea-categories.carousel .ea-arrows .swiper-button-prev:hover,
.ea-categories.carousel .ea-arrows .swiper-button-next:hover {
    color: #ea1c24;
}

.ea-categories.carousel .ea-arrows .swiper-button-prev:after,
.ea-categories.carousel .ea-arrows .swiper-button-next:after {
    font-size: inherit;
}

/* Λίγη ανάσα από τα άκρα σε desktop */
.ea-categories.carousel .ea-arrows .swiper-button-prev {
    margin-left: 8px;
}

.ea-categories.carousel .ea-arrows .swiper-button-next {
    margin-right: 8px;
}

/* ===== MOBILE: πάνω δεξιά, δίπλα-δίπλα ===== */
@media (max-width: 1650px) {
    .ea-categories.carousel .ea-arrows {
        top: -10px;
        right: 8px;
        left: auto;
        bottom: auto;
        width: auto;
        height: auto;
        justify-content: flex-end;
        /* πάνε δεξιά */
        gap: 0px;
    }
}