/* Shared product-category card — Home carousel and product category index only.
   Reverse the original wine overlay and white image halo. Keep the original theme. */
.artizana-category-card-shell {
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
.artizana-catalog-category-grid > .artizana-category-card-shell { margin: 0; }
.service-block_five-inner.artizana-category-link.artizana-category-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    min-width: 0;
    margin-inline: auto;
    padding: clamp(14px, 2vw, 30px) clamp(12px, 2vw, 35px);
    text-align: center;
    text-decoration: none;
    background: var(--white-color, #fff);
    color: var(--white-color, #fff);
    border-radius: 15px;
}
.service-block_five-inner.artizana-category-link.artizana-category-card::before {
    z-index: -1;
    background-color: var(--main-color);
    transform: scale(1, 1);
    transform-origin: left center;
}
.service-block_five-inner.artizana-category-link.artizana-category-card .service-block_five-title,
.service-block_five-inner.artizana-category-link.artizana-category-card .service-block_five-text {
    text-align: center !important; /* Existing Arabic homepage rules are deliberately overridden. */
    color: var(--white-color, #fff);
    width: 100%;
    overflow-wrap: anywhere;
    unicode-bidi: plaintext;
}
.service-block_five-inner.artizana-category-link.artizana-category-card .service-block_five-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5em;
    font-size: clamp(16px, 1.4vw, 24px);
    line-height: 1.25;
    margin: 0;
    direction: inherit;
}
.service-block_five-inner.artizana-category-link.artizana-category-card .service-block_five-text {
    direction: inherit;
    margin: 10px 0 clamp(16px, 2vw, 30px);
    font-size: clamp(13px, 1.1vw, 16px);
}
.service-block_five-inner.artizana-category-link.artizana-category-card .service-block_five-image_outer {
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-block_five-inner.artizana-category-link.artizana-category-card .service-block_five-image_outer::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: min(calc(100% + 24px), 224px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--white-color, #fff);
    opacity: 1;
    pointer-events: none;
    transition: opacity 250ms ease;
}
.service-block_five-inner.artizana-category-link.artizana-category-card .service-block_five-image {
    width: min(100%, 200px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
}
.service-block_five-inner.artizana-category-link.artizana-category-card .service-block_five-image img {
    display: block;
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
}
/* Keyboard users see the reversed state too; touch users keep the default wine card. */
.service-block_five-inner.artizana-category-link.artizana-category-card:focus-visible {
    outline: 3px solid var(--brand-wine, #742b3b);
    outline-offset: 3px;
}
.service-block_five-inner.artizana-category-link.artizana-category-card:focus-visible::before {
    transform: scale(0, 1);
    transform-origin: right center;
}
.service-block_five-inner.artizana-category-link.artizana-category-card:focus-visible .service-block_five-title,
.service-block_five-inner.artizana-category-link.artizana-category-card:focus-visible .service-block_five-text {
    color: var(--color-five, #1f1e17);
}
.service-block_five-inner.artizana-category-link.artizana-category-card:focus-visible .service-block_five-image_outer::before { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
    .service-block_five-inner.artizana-category-link.artizana-category-card:hover::before {
        transform: scale(0, 1);
        transform-origin: right center;
    }
    .service-block_five-inner.artizana-category-link.artizana-category-card:hover .service-block_five-title,
    .service-block_five-inner.artizana-category-link.artizana-category-card:hover .service-block_five-text {
        color: var(--color-five, #1f1e17);
    }
    .service-block_five-inner.artizana-category-link.artizana-category-card:hover .service-block_five-image_outer::before { opacity: 0; }
}
@media (hover: none), (pointer: coarse) {
    /* Override the old theme's sticky hover rules on touch devices. */
    .service-block_five-inner.artizana-category-link.artizana-category-card:hover:not(:focus-visible)::before { transform: scale(1, 1); }
    .service-block_five-inner.artizana-category-link.artizana-category-card:hover:not(:focus-visible) .service-block_five-title,
    .service-block_five-inner.artizana-category-link.artizana-category-card:hover:not(:focus-visible) .service-block_five-text { color: var(--white-color, #fff); }
    .service-block_five-inner.artizana-category-link.artizana-category-card:hover:not(:focus-visible) .service-block_five-image_outer::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .artizana-category-card, .artizana-category-card::before,
    .artizana-category-card .service-block_five-title,
    .artizana-category-card .service-block_five-text,
    .artizana-category-card .service-block_five-image_outer::before { transition: none !important; }
}
