.product-category > .dh-category-tile {
    --dh-tile-easing: cubic-bezier(.22, .61, .36, 1);
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 15px;
    container: dh-category-tile / inline-size;
    color: #fff;
    text-decoration: none;
}

.dh-category-tile > img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .6s var(--dh-tile-easing);
}

.dh-category-tile__bar {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    place-items: center;
    min-height: 70.4px;
    padding: 6px 32px;
    background-color: rgba(20, 18, 15, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    color: #fff;
    font: 600 22px / 1.2 "Open Sans", sans-serif;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    transition: background-color .45s var(--dh-tile-easing);
}

.dh-category-tile__name {
    position: relative;
    max-width: 100%;
    overflow-wrap: anywhere;
    transform-origin: center;
    transition: transform .45s var(--dh-tile-easing);
}

.dh-category-tile__arrow {
    position: absolute;
    left: 100%;
    top: 50%;
    translate: 0 -50%;
    /* Lower the arrow glyph to the optical center of the capitals. */
    margin-top: .1em;
    margin-left: 6px;
    font-size: .9em;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .45s var(--dh-tile-easing), transform .45s var(--dh-tile-easing);
}

.product-category > .dh-category-tile:focus-visible {
    outline: 2px solid #29241f !important;
    outline-offset: 3px;
}

.dh-category-tile:focus-visible .dh-category-tile__bar {
    background-color: rgba(20, 18, 15, .68);
}

.dh-category-tile:focus-visible .dh-category-tile__arrow {
    opacity: 1;
    transform: none;
}

@media (hover: hover) {
    .dh-category-tile:hover .dh-category-tile__bar {
        background-color: rgba(20, 18, 15, .68);
    }

    .dh-category-tile:hover .dh-category-tile__name {
        transform: scale(1.08);
    }

    .dh-category-tile:hover .dh-category-tile__arrow {
        opacity: 1;
        transform: none;
    }

    .dh-category-tile:hover > img {
        transform: scale(1.04);
    }
}

@media (hover: none) {
    .dh-category-tile__arrow {
        display: none;
    }

    .dh-category-tile > img,
    .dh-category-tile__bar,
    .dh-category-tile__name {
        transition-duration: .14s;
    }

    .dh-category-tile.is-touch-pressed .dh-category-tile__bar {
        background-color: rgba(20, 18, 15, .68);
    }

    .dh-category-tile.is-touch-pressed .dh-category-tile__name {
        transform: scale(1.04);
    }

    .dh-category-tile.is-touch-pressed > img {
        transform: scale(1.04);
    }
}

@container dh-category-tile (width >= 330px) {
    .tax-product_cat .dh-category-tile__bar {
        font-size: 18px;
    }
}

@container dh-category-tile (width < 330px) {
    .dh-category-tile__bar {
        min-height: 56px;
        padding-inline: 26px;
        font-size: 16px;
    }
}

@container dh-category-tile (width < 250px) {
    .dh-category-tile__bar {
        min-height: 48px;
        padding-inline: 22px;
        font-size: 13px;
    }
}

@container dh-category-tile (width < 180px) {
    .dh-category-tile__bar {
        font-size: 11px;
    }
}

@media (max-width: 384px) {
    .product-listing.woocommerce[class*="columns-"] .product-item-wrap.dh-category-tile-item {
        /* Handmade forces two columns with !important at this width. */
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-category-tile > img,
    .dh-category-tile__bar,
    .dh-category-tile__name,
    .dh-category-tile__arrow {
        transition: none;
    }

    .dh-category-tile:hover > img,
    .dh-category-tile:hover .dh-category-tile__name,
    .dh-category-tile.is-touch-pressed > img,
    .dh-category-tile.is-touch-pressed .dh-category-tile__name {
        transform: none;
    }
}
