/* =========================================================
   FEATURED CATEGORIES - PREMIUM UI/UX
   WooCommerce + Elementor
   ========================================================= */

/* Main Section */
.elementor-element-2dcc40f {
    width: 100% !important;
    max-width: 100% !important;
    padding: 70px 20px 80px !important;
    background: #fafafa !important;
    overflow: hidden;
}

/* Inner Container */
.elementor-element-2dcc40f > .elementor-container {
    max-width: 1320px !important;
    margin: 0 auto !important;
}

/* Category Inner Section */
.elementor-element-7aa4c54 {
    width: 100% !important;
}

/* =========================================================
   SECTION HEADING
   ========================================================= */

.elementor-element-ea10232 {
    margin-bottom: 38px !important;
    text-align: center;
}

.elementor-element-ea10232 .elementor-heading-title {
    position: relative;
    display: inline-block;
    margin: 0 !important;
    color: #171717;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.8px;
}

/* Small accent line */
.elementor-element-ea10232 .elementor-heading-title::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 50px;
    background: currentColor;
    opacity: 0.8;
}

/* =========================================================
   CATEGORY SLIDER
   ========================================================= */

.woo_categories_slider {
    width: 100%;
    position: relative;
}

.category-carousel {
    width: 100% !important;
    padding: 8px 5px 25px !important;
}

/* Remove old carousel spacing */
.category-carousel .owl-wrapper-outer {
    overflow: visible !important;
}

.category-carousel .owl-wrapper {
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
}

/* =========================================================
   CATEGORY ITEM
   ========================================================= */

.category-carousel .owl-item {
    width: auto !important;
    flex: 1 1 0;
    padding: 0 9px;
}

/* Main Card */
.cat-outer-block {
    width: 100%;
    height: 100%;
    padding: 22px 15px 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);

    box-shadow:
        0 5px 20px rgba(0,0,0,0.04);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;

    position: relative;
}

/* Hover Card */
.cat-outer-block:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 45px rgba(0,0,0,0.10);

    border-color: rgba(0,0,0,0.10);
}

/* Inner */
.cat-inner-block {
    text-align: center;
}

/* =========================================================
   CATEGORY IMAGE
   ========================================================= */

.cat-img-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 17px;
}

/* Image Wrapper */
.cat-img {
    display: flex !important;
    width: 118px;
    height: 118px;
    padding: 5px;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 6px 20px rgba(0,0,0,0.08);

    overflow: hidden;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

/* Image */
.cat-img img {
    width: 108px !important;
    height: 108px !important;

    max-width: none !important;

    object-fit: cover;

    border-radius: 50%;

    display: block;

    transition:
        transform 0.5s ease;
}

/* Image Hover */
.cat-outer-block:hover .cat-img {
    transform: scale(1.04);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.13);
}

.cat-outer-block:hover .cat-img img {
    transform: scale(1.10);
}

/* =========================================================
   CATEGORY NAME
   ========================================================= */

.cat_description {
    margin: 0 !important;
}

.cat_name {
    display: inline-block;

    color: #1b1b1b !important;

    font-size: 16px;
    line-height: 1.35;

    font-weight: 600;

    text-decoration: none !important;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

/* Hover Text */
.cat-outer-block:hover .cat_name {
    color: #111 !important;
    transform: translateY(-2px);
}

/* =========================================================
   PRODUCT COUNT
   ========================================================= */

.cat-count {
    display: block;

    margin-top: 5px;

    color: #999 !important;

    font-size: 12px;
    font-weight: 400;

    opacity: 0.85;
}

/* =========================================================
   HIDE EMPTY UNCATEGORIZED
   ========================================================= */

/* Hide Uncategorized card if count is zero */
.cat-outer-block:has(.cat_name[title="Uncategorized"]) {
    display: none;
}

/* =========================================================
   SUBTLE TOP GLOW
   ========================================================= */

.cat-outer-block::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 45px;
    height: 3px;

    transform: translateX(-50%);

    border-radius: 0 0 10px 10px;

    background: currentColor;

    opacity: 0;

    transition: opacity 0.3s ease;
}

.cat-outer-block:hover::before {
    opacity: 0.65;
}

/* =========================================================
   REMOVE OLD OWL CONTROLS
   ========================================================= */

.category-carousel .owl-controls {
    display: none !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .elementor-element-2dcc40f {
        padding: 55px 20px 65px !important;
    }

    .elementor-element-ea10232 {
        margin-bottom: 30px !important;
    }

    .category-carousel .owl-wrapper {
        flex-wrap: wrap;
    }

    .category-carousel .owl-item {
        flex: 0 0 33.333%;
        width: 33.333% !important;
        margin-bottom: 18px;
    }

    .cat-img {
        width: 105px;
        height: 105px;
    }

    .cat-img img {
        width: 95px !important;
        height: 95px !important;
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .elementor-element-2dcc40f {
        padding: 45px 14px 55px !important;
    }

    .elementor-element-ea10232 {
        margin-bottom: 25px !important;
    }

    .elementor-element-ea10232 .elementor-heading-title {
        font-size: 27px;
        letter-spacing: -0.5px;
    }

    .elementor-element-ea10232 .elementor-heading-title::after {
        width: 45px;
        height: 3px;
        margin-top: 11px;
    }

    .category-carousel {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .category-carousel .owl-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .category-carousel .owl-item {
        width: 100% !important;
        padding: 0;
        margin: 0;
        flex: none;
    }

    .cat-outer-block {
        padding: 18px 10px 17px;
        border-radius: 17px;
    }

    .cat-img {
        width: 88px;
        height: 88px;
    }

    .cat-img img {
        width: 80px !important;
        height: 80px !important;
    }

    .cat-img-block {
        margin-bottom: 13px;
    }

    .cat_name {
        font-size: 14px;
    }

    .cat-count {
        font-size: 11px;
    }

}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .elementor-element-ea10232 .elementor-heading-title {
        font-size: 24px;
    }

    .category-carousel .owl-wrapper {
        gap: 10px;
    }

    .cat-outer-block {
        padding: 15px 8px;
    }

    .cat-img {
        width: 78px;
        height: 78px;
    }

    .cat-img img {
        width: 70px !important;
        height: 70px !important;
    }

    .cat_name {
        font-size: 13px;
    }

}