.ahura-product-cards {
    --cards-accent: #ef0b3d;
    --cards-surface: #fcf9f9;
    --cards-text: #191617;
    --cards-button: #191617;
    --cards-button-text: #fff;
    --cards-success: #25834b;
    --cards-success-text: #fff;
    --cards-desktop: 4;
    --cards-tablet: 2;
    --cards-mobile: 1;
    --cards-gap: 20px;
    width: 100%;
    color: var(--cards-text);
}
.ahura-product-cards *, .ahura-product-cards *::before, .ahura-product-cards *::after { box-sizing: border-box; }
.ahura-product-cards [hidden] { display: none; }
.ahura-product-cards .ahura-product-cards__viewport { padding: 4px 2px 18px; }
.ahura-product-cards .swiper-wrapper { align-items: stretch; }
.ahura-product-cards:not(.is-ready) .swiper-wrapper { display: flex; gap: var(--cards-gap); overflow-x: auto; scroll-snap-type: x mandatory; }
.ahura-product-cards:not(.is-ready) .ahura-product-cards__card { flex: 0 0 calc((100% - (var(--cards-desktop) - 1) * var(--cards-gap)) / var(--cards-desktop)); scroll-snap-align: start; }
.ahura-product-cards .ahura-product-cards__card { display: flex; flex-direction: column; height: auto; min-width: 0; padding: 12px; margin: 0; border: 1px solid #fff; border-radius: 32px; background: var(--cards-surface); box-shadow: 0 18px 24px -23px rgb(38 22 29 / 35%); text-align: start; }
.ahura-product-cards__image { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #f1eeee; color: #605b5d; text-decoration: none; }
.ahura-product-cards__image:has(.ahura-product-cards__placeholder) { border: 1px dashed #b4abad; }
.ahura-product-cards .ahura-product-cards__image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: center; border-radius: inherit; }
.ahura-product-cards__placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 16px; }
.ahura-product-cards__placeholder svg { width: 32px; height: 32px; color: #999395; }
.ahura-product-cards__discount { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; justify-content: center; min-width: 43px; min-height: 33px; padding: 5px 10px; border-radius: 24px; color: #fff; background: var(--cards-accent); font-size: 13px; font-weight: 800; }
.ahura-product-cards__rating { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-top: 8px; color: #827a7d; font-size: 13px; line-height: 1.8; }
.ahura-product-cards__diamonds { display: inline-flex; gap: 4px; padding: 3px; }
.ahura-product-cards__diamonds > span { display: block; width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: #ddd7d9; }
.ahura-product-cards__diamonds .is-filled { background: var(--cards-accent); }
.ahura-product-cards .ahura-product-cards__title { margin: 8px 0 10px; color: var(--cards-text); font-size: 17px; font-weight: 700; line-height: 1.65; min-height: 3.3em; overflow-wrap: anywhere; }
.ahura-product-cards__title a { color: inherit; text-decoration: none; }
.ahura-product-cards .ahura-product-cards__spec { margin: 0 0 8px; min-height: 24px; color: #776f73; font: 14px/1.7 monospace; text-align: start; overflow-wrap: anywhere; }
.ahura-product-cards__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-height: 29px; color: var(--cards-accent); font-size: 17px; font-weight: 700; line-height: 1.7; }
.ahura-product-cards__price del { order: 2; color: #8c8388; font-size: 12px; font-weight: 400; }
.ahura-product-cards__price ins { order: 1; background: transparent; color: inherit; text-decoration: none; }
.ahura-product-cards__price .woocommerce-Price-currencySymbol { font-size: inherit; }
.ahura-product-cards .ahura-product-cards__stock { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: 13px; line-height: 1.8; color: #756e71; }
.ahura-product-cards__stock::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; background: currentColor; border-radius: 50%; }
.ahura-product-cards .ahura-product-cards__stock.is-available { color: #3c845e; }
.ahura-product-cards__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }
.ahura-product-cards .ahura-product-cards__buy { position: relative; display: flex; flex: 1 1 120px; justify-content: center; align-items: center; min-height: 46px; padding: 10px 12px; margin: 0; border: 0; border-radius: 16px; background: var(--cards-button); color: var(--cards-button-text); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.6; text-align: center; text-decoration: none; transition: opacity .2s; }
.ahura-product-cards .ahura-product-cards__buy.is-added-feedback { background: var(--cards-success); color: var(--cards-success-text); }
.ahura-product-cards .ahura-product-cards__buy:hover { opacity: .85; }
.ahura-product-cards .ahura-product-cards__buy.loading { opacity: .6; pointer-events: none; }
/* Keep WooCommerce's injected link and checkmark from adding another row or changing button size. */
.ahura-product-cards .ahura-product-cards__actions > .added_to_cart,
.ahura-product-cards .ahura-product-cards__buy.added::after { display: none; }
.ahura-product-cards__original-label { visibility: hidden; }
.ahura-product-cards__success-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 4px; line-height: 1.2; }
.ahura-product-cards__wishlist, .ahura-product-cards__compare { display: flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; border: 1px solid #e5dfe2; border-radius: 15px; background: #fff; }
.ahura-product-cards__wishlist .yith-wcwl-add-to-wishlist { margin: 0; }
.ahura-product-cards__wishlist :is(.yith-wcwl-add-button, .yith-wcwl-wishlistaddedbrowse, .yith-wcwl-wishlistexistsbrowse) > a,
.ahura-product-cards__compare a { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0; padding: 0; background: transparent; border: 0; color: #71696d; font-size: 0; text-decoration: none; }
.ahura-product-cards__wishlist .feedback { display: none; }
.ahura-product-cards__wishlist a i { margin: 0; font-size: 18px; }
.ahura-product-cards__wishlist a svg { width: 18px; height: 18px; }
.ahura-product-cards__compare a::before { content: ''; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20V10M12 20V4M19 20v-7' stroke='black' stroke-width='1.7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ahura-product-cards__navigation { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 0; }
.ahura-product-cards__navigation button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e5dfe2; border-radius: 50%; background: #fff; color: var(--cards-text); cursor: pointer; }
.ahura-product-cards__navigation svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ahura-product-cards:not(:dir(rtl)) .ahura-product-cards__navigation svg { transform: rotate(180deg); }
.ahura-product-cards__navigation .swiper-button-disabled { opacity: .35; cursor: default; }
.ahura-product-cards__navigation .swiper-button-lock { display: none; }
.ahura-product-cards__dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; width: auto; }
.ahura-product-cards__dots .swiper-pagination-bullet { width: 10px; height: 10px; }
.ahura-product-cards__dots .swiper-pagination-bullet-active { background: var(--cards-accent); }
.ahura-product-cards :is(a, button, [tabindex]):focus-visible { outline: 2px solid var(--cards-accent); outline-offset: 3px; }
@media (max-width: 1023px) {
    .ahura-product-cards:not(.is-ready) .ahura-product-cards__card { flex-basis: calc((100% - (var(--cards-tablet) - 1) * var(--cards-gap)) / var(--cards-tablet)); }
    .ahura-product-cards .ahura-product-cards__card { padding: 10px; border-radius: 26px; }
}
@media (max-width: 767px) {
    .ahura-product-cards:not(.is-ready) .ahura-product-cards__card { flex-basis: calc((100% - (var(--cards-mobile) - 1) * var(--cards-gap)) / var(--cards-mobile)); }
    .ahura-product-cards .ahura-product-cards__title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ahura-product-cards .swiper-wrapper { transition-duration: 0ms !important; }
    .ahura-product-cards .ahura-product-cards__buy { transition: none; }
}
