
/* ==========================================================
   Hide flag icons in Polylang language switcher (text only)
   ========================================================== */
.lang-item img,
.menu-item-language img,
.pll-parent-menu-item img,
.pll-switcher-select img,
.menu-item-language .pll-flag,
.pll-flag,
li[class*="lang-item-"] img,
.wd-mobile-menu .menu-item-language img {
    display: none !important;
}
.lang-item a,
.menu-item-language a {
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
}


/* ==========================================================
   Premium Category Cards — Azalia (v2)
   Rose-gold luxe design, double ring, subtle shimmer
   ========================================================== */

:root {
    --az-rose-1: #f4cdc1;
    --az-rose-2: #e8a89a;
    --az-rose-deep: #c97f6e;
    --az-gold: #e6c687;
    --az-cream: #fff7f3;
}

/* Outer wrap — make room for decorative ring */
.wd-cats-element .category-grid-item,
.wd-cats .category-grid-item {
    overflow: visible !important;
}

/* Image circle */
.wd-cats-element .category-image-wrapp,
.wd-cats .category-image-wrapp {
    position: relative !important;
    border-radius: 50% !important;
    overflow: visible !important;
    width: 156px !important;
    height: 156px !important;
    min-width: 156px !important;
    min-height: 156px !important;
    margin: 6px auto 0 !important;
    display: block !important;
    background: var(--az-cream);
    transition: transform .55s cubic-bezier(.2,.7,.2,1) !important;
    box-shadow: none !important;
    border: 0 !important;
    flex-shrink: 0 !important;
    isolation: isolate;
}

/* Outer rose-gold conic ring — always visible */
.wd-cats-element .category-image-wrapp::before,
.wd-cats .category-image-wrapp::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 130deg,
        var(--az-rose-1) 0deg,
        var(--az-gold) 90deg,
        var(--az-rose-2) 180deg,
        var(--az-rose-1) 270deg,
        var(--az-rose-1) 360deg
    );
    opacity: .65;
    z-index: -2;
    transition: opacity .5s ease, inset .5s ease, filter .5s ease;
    filter: blur(.4px);
}

/* Inner soft glow ring */
.wd-cats-element .category-image-wrapp::after,
.wd-cats .category-image-wrapp::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #fff;
    z-index: -1;
    box-shadow:
        0 1px 3px rgba(60,28,28,.05),
        0 14px 34px -8px rgba(201,127,110,.32);
    transition: box-shadow .5s ease;
}

/* Image fills the inner circle */
.wd-cats-element .category-image-wrapp img,
.wd-cats .category-image-wrapp img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 50% !important;
    display: block !important;
    transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease !important;
}

/* Shimmer sweep on hover */
.wd-cats-element .category-image-wrapp .wd-cat-shimmer,
.wd-cats .category-image-wrapp .wd-cat-shimmer { display: none; }

.wd-cats-element .category-image-wrapp,
.wd-cats .category-image-wrapp {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Hover state */
.wd-cats-element .category-grid-item:hover .category-image-wrapp,
.wd-cats .category-grid-item:hover .category-image-wrapp {
    transform: translateY(-7px) scale(1.05) !important;
}
.wd-cats-element .category-grid-item:hover .category-image-wrapp::before,
.wd-cats .category-grid-item:hover .category-image-wrapp::before {
    opacity: 1;
    inset: -10px;
    filter: blur(0px);
    animation: az-ring-spin 8s linear infinite;
}
.wd-cats-element .category-grid-item:hover .category-image-wrapp::after,
.wd-cats .category-grid-item:hover .category-image-wrapp::after {
    box-shadow:
        0 4px 8px rgba(60,28,28,.08),
        0 26px 48px -10px rgba(201,127,110,.55);
}
.wd-cats-element .category-grid-item:hover .category-image-wrapp img,
.wd-cats .category-grid-item:hover .category-image-wrapp img {
    transform: scale(1.09) !important;
    filter: brightness(1.04) saturate(1.05) !important;
}

@keyframes az-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Layout container per category */
.wd-cats-element .cat-design-default .wrapp-category,
.wd-cats .cat-design-default .wrapp-category {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    overflow: visible !important;
    height: auto !important;
    padding: 16px 6px 26px !important;
    position: relative !important;
}

/* Title block under circle */
.wd-cats-element .cat-design-default .hover-mask,
.wd-cats .cat-design-default .hover-mask {
    position: static !important;
    transform: none !important;
    padding: 22px 6px 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    inset-inline: auto !important;
    bottom: auto !important;
}

/* Decorative diamond above title */
.wd-cats-element .cat-design-default .hover-mask::before,
.wd-cats .cat-design-default .hover-mask::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--az-rose-2), var(--az-gold));
    transform: rotate(45deg);
    border-radius: 1px;
    opacity: .55;
    transition: transform .4s ease, opacity .4s ease;
}
.wd-cats-element .category-grid-item:hover .cat-design-default .hover-mask::before,
.wd-cats .category-grid-item:hover .cat-design-default .hover-mask::before {
    transform: rotate(225deg) scale(1.3);
    opacity: 1;
}

/* Category name */
.wd-cats-element .cat-design-default .hover-mask .wd-entities-title,
.wd-cats .cat-design-default .hover-mask .wd-entities-title {
    position: relative;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #2a2424 !important;
    margin: 0 !important;
    padding: 0 0 10px !important;
    letter-spacing: .4px !important;
    line-height: 1.45 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: color .35s ease, letter-spacing .35s ease !important;
}

/* Animated underline */
.wd-cats-element .cat-design-default .hover-mask .wd-entities-title::after,
.wd-cats .cat-design-default .hover-mask .wd-entities-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    background: linear-gradient(90deg, var(--az-rose-2), var(--az-gold));
    border-radius: 2px;
    transition: width .4s ease, height .4s ease;
}

.wd-cats-element .category-grid-item:hover .hover-mask .wd-entities-title,
.wd-cats .category-grid-item:hover .hover-mask .wd-entities-title {
    color: var(--az-rose-deep) !important;
    letter-spacing: .8px !important;
}
.wd-cats-element .category-grid-item:hover .hover-mask .wd-entities-title::after,
.wd-cats .category-grid-item:hover .hover-mask .wd-entities-title::after {
    width: 46px;
    height: 2.5px;
}

/* Hide product count on all category cards/listings */
.wd-cats-element .count,
.wd-cats .count,
.products.product-categories .count,
.products .product-category .count,
.woocommerce ul.products li.product-category .count,
mark.count,
.wd-cat-meta,
.wd-products-element .product-category .count,
.term-description ~ .products .count,
ul.products .product-category .woocommerce-loop-category__title mark,
.product-categories-shortcode .count,
.wd-cat-design-default .product-categories-shortcode .count,
.nav-link-count,
.category-nav-link .nav-link-count,
.wd-categories-grid .nav-link-count,
.wd-cat-overlap-style .nav-link-count {
    display: none !important;
}


/* Mobile */
@media (max-width: 767px) {
    .wd-cats-element .category-image-wrapp,
    .wd-cats .category-image-wrapp {
        width: 112px !important;
        height: 112px !important;
        min-width: 112px !important;
        min-height: 112px !important;
    }
    .wd-cats-element .category-image-wrapp::before,
    .wd-cats .category-image-wrapp::before {
        inset: -5px;
    }
    .wd-cats-element .cat-design-default .hover-mask .wd-entities-title,
    .wd-cats .cat-design-default .hover-mask .wd-entities-title {
        font-size: 12.5px !important;
    }
    .wd-cats-element .cat-design-default .hover-mask,
    .wd-cats .cat-design-default .hover-mask {
        padding: 14px 4px 0 !important;
    }
    .wd-cats-element .cat-design-default .hover-mask::before,
    .wd-cats .cat-design-default .hover-mask::before {
        width: 5px;
        height: 5px;
        margin-bottom: 7px;
    }
}

/* Tablet — slightly smaller */
@media (min-width: 768px) and (max-width: 1024px) {
    .wd-cats-element .category-image-wrapp,
    .wd-cats .category-image-wrapp {
        width: 132px !important;
        height: 132px !important;
        min-width: 132px !important;
        min-height: 132px !important;
    }
}
