/* Petcall Product Card Customizer - v1.2.6 */

:root {
    --petcall-card-bg: #fffcf7;
    --petcall-card-bg-soft: #fff8f1;
    --petcall-orange: rgb(240, 120, 20);
    --petcall-orange-deep: #e76a08;
    --petcall-orange-soft: #fff0e2;
    --petcall-brown: rgb(131, 36, 13);
    --petcall-text: #35251f;
    --petcall-muted: #9b8d84;
    --petcall-border: #f0e5dc;
    --petcall-border-strong: #ead8ca;
    --petcall-green: #168755;
    --petcall-green-bg: #ecf8f1;
}

/* ==========================================================
   PETCALL PRODUCT CARD — tighter, cleaner, more compact
========================================================== */
.petcall-card-ui-enabled .wd-product {
    padding: 4px !important;
}

.petcall-card-ui-enabled .wd-carousel-item,
.petcall-card-ui-enabled .swiper-slide {
    padding: 4px !important;
}

.petcall-card-ui-enabled .wd-product .wd-product-wrapper {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
    overflow: hidden !important;
    background: var(--petcall-card-bg) !important;
    border: 1px solid var(--petcall-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 18px rgba(80, 47, 28, .045) !important;
    isolation: isolate !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

.petcall-card-ui-enabled .wd-product .wd-product-wrapper::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 18px !important;
    left: 18px !important;
    height: 2px !important;
    border-radius: 0 0 999px 999px !important;
    background: linear-gradient(90deg, transparent, rgba(240,120,20,.68), transparent) !important;
    opacity: 0 !important;
    transform: scaleX(.75) !important;
    transition: opacity .22s ease, transform .22s ease !important;
    z-index: 8 !important;
}

.petcall-card-ui-enabled .wd-product:hover .wd-product-wrapper {
    transform: translateY(-3px) !important;
    border-color: rgba(240, 120, 20, .28) !important;
    box-shadow: 0 12px 28px rgba(80, 47, 28, .085) !important;
}

.petcall-card-ui-enabled .wd-product:hover .wd-product-wrapper::before {
    opacity: 1 !important;
    transform: scaleX(1) !important;
}

/* ==========================================================
   IMAGE — shorter top area to remove excessive blank height
========================================================== */
.petcall-card-ui-enabled .wd-product .product-element-top {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 0.92 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3px 3px 0 !important;
    overflow: hidden !important;
    background: var(--petcall-card-bg) !important;
    border-radius: 16px 16px 0 0 !important;
}

.petcall-card-ui-enabled .wd-product .product-element-top::after {
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    bottom: 0 !important;
    left: 12px !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(131,36,13,.07), transparent) !important;
    pointer-events: none !important;
}

.petcall-card-ui-enabled .wd-product .product-element-top > a,
.petcall-card-ui-enabled .wd-product .product-image-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 9px !important;
}

.petcall-card-ui-enabled .wd-product .product-element-top img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform .28s ease !important;
}

.petcall-card-ui-enabled .wd-product:hover .product-element-top img {
    transform: scale(1.015) !important;
}

/* ==========================================================
   CONTENT — aggressively tighten spacing
========================================================== */
.petcall-card-ui-enabled .wd-product .product-element-bottom {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 10px 10px !important;
    background: var(--petcall-card-bg) !important;
    direction: rtl !important;
    text-align: right !important;
}

.petcall-card-ui-enabled .wd-product .product-element-bottom > * {
    margin-bottom: 0 !important;
}

/* Hide Woodmart's native category line; plugin prints the desired one. */
.petcall-card-ui-enabled .wd-product .wd-product-cats,
.petcall-card-ui-enabled .wd-product .product-categories,
.petcall-card-ui-enabled .wd-product .product-category,
.petcall-card-ui-enabled .wd-product .wd-product-cat,
.petcall-card-ui-enabled .wd-product .product-cat {
    display: none !important;
}

.petcall-card-ui-enabled .petcall-card-top-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.petcall-card-ui-enabled .petcall-pet-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 21px !important;
    padding: 3px 8px !important;
    border: 1px solid rgba(240, 120, 20, .16) !important;
    border-radius: 999px !important;
    background: var(--petcall-orange-soft) !important;
    color: var(--petcall-orange-deep) !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.petcall-card-ui-enabled .petcall-pet-badge::before {
    content: "" !important;
    width: 4px !important;
    height: 4px !important;
    flex: 0 0 4px !important;
    border-radius: 50% !important;
    background: currentColor !important;
    opacity: .8 !important;
}

.petcall-card-ui-enabled .wd-product .wd-entities-title {
    position: relative !important;
    min-height: 20px !important;
    margin: 6px 0 4px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    text-align: right !important;
    z-index: 7 !important;
}

.petcall-card-ui-enabled .wd-product .wd-entities-title a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: var(--petcall-text) !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    transition: color .18s ease !important;
}

.petcall-card-ui-enabled .wd-product .wd-entities-title:hover a,
.petcall-card-ui-enabled .wd-product .wd-entities-title a:hover {
    color: var(--petcall-brown) !important;
}

/* Full title tooltip */
.petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]::after {
    content: attr(data-full-title) !important;
    position: absolute !important;
    right: 0 !important;
    bottom: calc(100% + 8px) !important;
    width: max-content !important;
    max-width: min(300px, 88vw) !important;
    padding: 8px 10px !important;
    border: 1px solid var(--petcall-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--petcall-text) !important;
    box-shadow: 0 12px 30px rgba(68, 42, 27, .12) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    white-space: normal !important;
    direction: rtl !important;
    text-align: right !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(4px) !important;
    pointer-events: none !important;
    transition: opacity .17s ease, transform .17s ease, visibility .17s ease !important;
    z-index: 99 !important;
}

.petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]::before {
    content: "" !important;
    position: absolute !important;
    right: 18px !important;
    bottom: calc(100% + 3px) !important;
    width: 10px !important;
    height: 10px !important;
    background: #fff !important;
    border-right: 1px solid var(--petcall-border) !important;
    border-bottom: 1px solid var(--petcall-border) !important;
    transform: rotate(45deg) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 100 !important;
}

.petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]:hover::after,
.petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]:hover::before {
    opacity: 1 !important;
    visibility: visible !important;
}

.petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]:hover::after {
    transform: translateY(0) !important;
}

.petcall-card-ui-enabled .petcall-deep-category {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: var(--petcall-muted) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    text-align: right !important;
}

.petcall-card-ui-enabled .wd-product .price {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 3px 6px !important;
    margin: 6px 0 0 !important;
    color: var(--petcall-brown) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
}

.petcall-card-ui-enabled .wd-product .price ins {
    text-decoration: none !important;
    color: var(--petcall-brown) !important;
}

.petcall-card-ui-enabled .wd-product .price del {
    color: #b5aaa3 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

.petcall-card-ui-enabled .wd-product .stock,
.petcall-card-ui-enabled .wd-product .wd-product-stock {
    display: inline-flex !important;
    width: fit-content !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 5px 0 0 !important;
    padding: 3px 7px !important;
    border-radius: 999px !important;
    background: var(--petcall-green-bg) !important;
    color: var(--petcall-green) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.petcall-card-ui-enabled .wd-product .stock::before,
.petcall-card-ui-enabled .wd-product .wd-product-stock::before {
    content: "" !important;
    width: 4px !important;
    height: 4px !important;
    flex: 0 0 4px !important;
    border-radius: 50% !important;
    background: currentColor !important;
    opacity: .8 !important;
}

.petcall-card-ui-enabled .petcall-feature-row {
    width: 100% !important;
    margin-top: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.petcall-card-ui-enabled .petcall-feature-pill {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 21px !important;
    max-width: 100% !important;
    padding: 3px 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(131, 36, 13, .07) !important;
    border-radius: 999px !important;
    background: #f8f1eb !important;
    color: #6f5b50 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    margin-bottom: 10px !important;
}

.petcall-card-ui-enabled .wd-product .wd-add-btn {
    width: 100% !important;
    margin-top: 8px !important;
    padding-top: 0 !important;
}

.petcall-card-ui-enabled .wd-product .wd-add-btn a,
.petcall-card-ui-enabled .wd-product a.button {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 0 14px !important;
    height: 30px !important;
    overflow: hidden !important;
    border: 1px solid var(--petcall-orange) !important;
    border-radius: 10px !important;
    background: var(--petcall-orange) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(240, 120, 20, .12) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.petcall-card-ui-enabled .wd-product .wd-add-btn a:hover,
.petcall-card-ui-enabled .wd-product a.button:hover {
    background: var(--petcall-orange-deep) !important;
    border-color: var(--petcall-orange-deep) !important;
    box-shadow: 0 7px 16px rgba(240, 120, 20, .2) !important;
    transform: translateY(-1px) !important;
}


.petcall-card-ui-enabled .wd-product .product-labels {
    top: 9px !important;
    right: 9px !important;
    left: auto !important;
    gap: 4px !important;
    z-index: 6 !important;
}

.petcall-card-ui-enabled .wd-product .product-label {
    min-width: unset !important;
    min-height: unset !important;
    padding: 4px 7px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06) !important;
}

.petcall-card-ui-enabled .wd-product .product-label.onsale {
    background: var(--petcall-brown) !important;
    color: #fff !important;
}

.petcall-card-ui-enabled .wd-product .wd-buttons {
    top: 9px !important;
    left: 9px !important;
    right: auto !important;
    overflow: hidden !important;
    border: 1px solid rgba(131, 36, 13, .07) !important;
    border-radius: 999px !important;
    background: rgba(255, 252, 247, .94) !important;
    box-shadow: 0 4px 12px rgba(73, 45, 29, .06) !important;
    backdrop-filter: blur(6px) !important;
}

.petcall-card-ui-enabled .wd-product .wd-buttons a {
    color: var(--petcall-brown) !important;
}

.petcall-card-ui-enabled .wd-product .wd-product-card-bg,
.petcall-card-ui-enabled .wd-product .content-product-imagin {
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove extra bottom gaps sometimes inserted by theme wrappers */
.petcall-card-ui-enabled .wd-product .hover-content,
.petcall-card-ui-enabled .wd-product .fade-in-block,
.petcall-card-ui-enabled .wd-product .wd-bottom-info,
.petcall-card-ui-enabled .wd-product .wd-product-footer {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 767px) {
    .petcall-card-ui-enabled .wd-product {
        padding: 3px !important;
    }

    .petcall-card-ui-enabled .wd-carousel-item,
    .petcall-card-ui-enabled .swiper-slide {
        padding: 3px !important;
    }

    .petcall-card-ui-enabled .wd-product .wd-product-wrapper {
        border-radius: 14px !important;
    }

    .petcall-card-ui-enabled .wd-product .product-element-top {
        aspect-ratio: 1 / 0.94 !important;
        padding: 3px 3px 0 !important;
        border-radius: 14px 14px 0 0 !important;
    }

    .petcall-card-ui-enabled .wd-product .product-element-top > a,
    .petcall-card-ui-enabled .wd-product .product-image-link {
        border-radius: 10px !important;
    }

    .petcall-card-ui-enabled .wd-product .product-element-bottom {
        padding: 0 8px 8px !important;
    }

    .petcall-card-ui-enabled .petcall-card-top-meta {
        margin-bottom: 3px !important;
    }

    .petcall-card-ui-enabled .petcall-pet-badge {
        min-height: 19px !important;
        padding: 3px 7px !important;
        font-size: 8.8px !important;
    }

    .petcall-card-ui-enabled .wd-product .wd-entities-title {
        min-height: 18px !important;
        margin: 5px 0 3px 0 !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .petcall-card-ui-enabled .petcall-deep-category {
        margin-top: 1px !important;
        font-size: 9.2px !important;
    }

    .petcall-card-ui-enabled .wd-product .price {
        margin-top: 5px !important;
        font-size: 11.5px !important;
    }

    .petcall-card-ui-enabled .wd-product .stock,
    .petcall-card-ui-enabled .wd-product .wd-product-stock {
        margin-top: 4px !important;
        font-size: 8.8px !important;
    }

    .petcall-card-ui-enabled .petcall-feature-row {
        margin-top: 5px !important;
    }

    .petcall-card-ui-enabled .petcall-feature-pill {
        min-height: 19px !important;
        padding: 3px 7px !important;
        font-size: 8.8px !important;
    }

    .petcall-card-ui-enabled .wd-product .wd-add-btn {
        margin-top: 7px !important;
    }

    .petcall-card-ui-enabled .wd-product .wd-add-btn a,
    .petcall-card-ui-enabled .wd-product a.button {
        min-height: auto !important;
        height: 28px !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
        font-size: 10px !important;
    }

    .petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]::before,
    .petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]::after {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .petcall-card-ui-enabled .wd-product .wd-product-wrapper,
    .petcall-card-ui-enabled .wd-product .wd-product-wrapper::before,
    .petcall-card-ui-enabled .wd-product .product-element-top img,
    .petcall-card-ui-enabled .wd-product .wd-add-btn a,
    .petcall-card-ui-enabled .wd-product a.button,
    .petcall-card-ui-enabled .wd-product .wd-add-btn a::after,
    .petcall-card-ui-enabled .wd-product a.button::after {
        transition: none !important;
    }
}


/* ==========================================================
   User approved spacing adjustments — v1.1.4
========================================================== */
.petcall-card-ui-enabled .wd-product .product-element-bottom {
    padding: 0px 10px 10px !important;
}

.petcall-card-ui-enabled .wd-product .wd-entities-title {
    margin: 6px 0px 4px 0px !important;
}

.petcall-card-ui-enabled .petcall-feature-pill {
    font-size: 11.5px !important;
    margin-bottom: 10px !important;
}

.petcall-card-ui-enabled .wd-product .wd-add-btn a,
.petcall-card-ui-enabled .wd-product a.button {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0px 14px !important;
}

/* ==========================================================
   v1.1.5 — lock title + category together
   Some Woodmart card layouts apply flex/last-item spacing to the final
   metadata element. When the feature pill is missing, the category can
   become that final element and get pushed toward the button. Wrapping
   title + category and explicitly resetting flex margins keeps the
   category directly under the title on every card.
========================================================== */
.petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-title-category-group {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 0 !important;
}

.petcall-card-ui-enabled .wd-product .petcall-title-category-group > .wd-entities-title {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 6px 0 4px 0 !important;
}

.petcall-card-ui-enabled .wd-product .petcall-title-category-group > .petcall-deep-category {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
}

/* Extra protection against theme rules such as margin-top:auto on
   the last metadata element in equal-height product cards. */
.petcall-card-ui-enabled .wd-product .product-element-bottom .petcall-deep-category,
.petcall-card-ui-enabled .wd-product .product-element-bottom .petcall-title-category-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .petcall-card-ui-enabled .wd-product .petcall-title-category-group > .wd-entities-title {
        margin: 5px 0 3px 0 !important;
    }
}

/* ==========================================================
   v1.1.6 — feature spacing + bottom-aligned action button
========================================================== */
.petcall-card-ui-enabled .petcall-feature-row {
    margin-top: 0 !important;
}

/* Keep the action button pinned to the bottom edge of every equal-height
   card, whether or not the product has a feature pill. */
.petcall-card-ui-enabled .wd-product .product-element-bottom > .wd-add-btn,
.petcall-card-ui-enabled .wd-product .wd-add-btn {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    order: 99 !important;
}

.petcall-card-ui-enabled .wd-product .wd-add-btn a,
.petcall-card-ui-enabled .wd-product a.button {
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .petcall-card-ui-enabled .petcall-feature-row {
        margin-top: 0 !important;
    }

    .petcall-card-ui-enabled .wd-product .product-element-bottom > .wd-add-btn,
    .petcall-card-ui-enabled .wd-product .wd-add-btn {
        margin-top: auto !important;
    }
}


/* ==========================================================
   v1.1.7 — products that belong to both dog and cat categories
   Existing card styling is unchanged; this only separates adjacent badges.
========================================================== */
.petcall-card-ui-enabled .petcall-pet-badge + .petcall-pet-badge {
    margin-inline-start: 4px !important;
}


/* ==========================================================
   v1.1.9 — WooCommerce-native row, feature RIGHT / price LEFT
   RTL flex row-reverse: price (DOM first) is placed at the left edge.
========================================================== */
.petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-price-feature-row,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row-reverse !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    direction: rtl !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
    order: 1 !important;
}

/* Theme outputs either .price or a price wrapper; preserve sale markup. */
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .price,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wrap-price,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wd-product-price {
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price {
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    line-height: 1.35 !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .petcall-feature-row {
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 46% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill {
    box-sizing: border-box !important;
    display: inline-block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 4px 7px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
/* Existing standalone feature rows (no price) should not have a large gap. */
.petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-feature-row {
    margin: 5px 0 0 !important;
}
.petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-title-category-group {
    order: 0 !important;
}
.petcall-card-ui-enabled .wd-product .product-element-bottom > .wd-add-btn {
    margin-top: auto !important;
    padding-top: 7px !important;
    order: 99 !important;
}
.petcall-card-ui-enabled .wd-product .wd-add-btn a,
.petcall-card-ui-enabled .wd-product a.button {
    box-sizing: border-box !important;
    min-height: 34px !important;
    height: auto !important;
    padding: 8px 14px !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .petcall-card-ui-enabled .wd-product {
        min-width: 0 !important;
    }
    .petcall-card-ui-enabled .wd-product .wd-product-wrapper,
    .petcall-card-ui-enabled .wd-product .product-element-bottom,
    .petcall-card-ui-enabled .wd-product .petcall-title-category-group,
    .petcall-card-ui-enabled .wd-product .wd-entities-title,
    .petcall-card-ui-enabled .wd-product .wd-entities-title a,
    .petcall-card-ui-enabled .wd-product .petcall-deep-category {
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .petcall-card-ui-enabled .wd-product .product-element-bottom {
        padding: 0 7px 8px !important;
    }
    .petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-price-feature-row,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row {
        flex-wrap: nowrap !important;
        column-gap: 4px !important;
        margin-top: 4px !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price {
        font-size: 10px !important;
        line-height: 1.35 !important;
        letter-spacing: -.15px !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .petcall-feature-row {
        max-width: 45% !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill {
        min-height: 18px !important;
        font-size: 8.5px !important;
        padding: 3px 5px !important;
    }
    .petcall-card-ui-enabled .wd-product .product-element-bottom > .wd-add-btn {
        padding-top: 6px !important;
    }
    .petcall-card-ui-enabled .wd-product .wd-add-btn a,
    .petcall-card-ui-enabled .wd-product a.button {
        min-height: 33px !important;
        height: auto !important;
        padding: 7px 12px !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}
@media (max-width: 380px) {
    .petcall-card-ui-enabled .wd-product .product-element-bottom {
        padding-inline: 6px !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price {
        font-size: 9px !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill {
        font-size: 8px !important;
        padding-inline: 4px !important;
    }
    .petcall-card-ui-enabled .wd-product .wd-add-btn a,
    .petcall-card-ui-enabled .wd-product a.button {
        font-size: 9px !important;
    }
}

/* If the item has a feature but no listed price, keep it on the right. */
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row--feature-only:not(:has(.price)) {
    justify-content: flex-end !important;
}


/* ==========================================================
   v1.2.0 — typography & exact vertical rhythm
   Desktop: +2px; mobile: +1px relative to v1.1.9.
   Badge → title: 6px. Title → category: 4px.
   Category → price+feature row: 10px.
   Keep right-side feature and left-side price unchanged.
========================================================== */
.petcall-card-ui-enabled .petcall-card-top-meta {
    margin: 0 !important;
}
.petcall-card-ui-enabled .wd-product .petcall-title-category-group > .wd-entities-title {
    margin: 6px 0 4px !important;
    font-size: 14.5px !important;
    min-height: 0 !important;
}
.petcall-card-ui-enabled .wd-product .petcall-title-category-group > .petcall-deep-category {
    margin: 0 !important;
    font-size: 12px !important;
}
.petcall-card-ui-enabled .petcall-pet-badge { font-size: 11.5px !important; }
.petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]::after { font-size: 13px !important; }
.petcall-card-ui-enabled .wd-product .price { font-size: 15px !important; }
.petcall-card-ui-enabled .wd-product .price del { font-size: 12px !important; }
.petcall-card-ui-enabled .wd-product .stock,
.petcall-card-ui-enabled .wd-product .wd-product-stock { font-size: 11px !important; }
.petcall-card-ui-enabled .petcall-feature-pill { font-size: 13.5px !important; }
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill { font-size: 12px !important; }
.petcall-card-ui-enabled .wd-product .wd-add-btn a,
.petcall-card-ui-enabled .wd-product a.button { font-size: 13px !important; }
.petcall-card-ui-enabled .wd-product .wd-add-btn a::after,
.petcall-card-ui-enabled .wd-product a.button::after { font-size: 17px !important; }
.petcall-card-ui-enabled .wd-product .product-label { font-size: 11px !important; }
/* The PHP wrapper also has a matching inline margin:10px!important. */
.petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-price-feature-row,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row {
    margin-top: 10px !important;
}
.petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-feature-row {
    margin-top: 10px !important;
}

@media (max-width: 767px) {
    .petcall-card-ui-enabled .petcall-card-top-meta { margin: 0 !important; }
    .petcall-card-ui-enabled .wd-product .petcall-title-category-group > .wd-entities-title {
        margin: 6px 0 4px !important;
        font-size: 12px !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-title-category-group > .petcall-deep-category {
        margin: 0 !important;
        font-size: 10.2px !important;
    }
    .petcall-card-ui-enabled .petcall-pet-badge { font-size: 9.8px !important; }
    .petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]::after { font-size: 12px !important; }
    .petcall-card-ui-enabled .wd-product .price,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price { font-size: 11px !important; }
    .petcall-card-ui-enabled .wd-product .price del { font-size: 11px !important; }
    .petcall-card-ui-enabled .wd-product .stock,
    .petcall-card-ui-enabled .wd-product .wd-product-stock { font-size: 9.8px !important; }
    .petcall-card-ui-enabled .petcall-feature-pill { font-size: 12.5px !important; }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill { font-size: 9.5px !important; }
    .petcall-card-ui-enabled .wd-product .wd-add-btn a,
    .petcall-card-ui-enabled .wd-product a.button { font-size: 11px !important; }
    .petcall-card-ui-enabled .wd-product .product-label { font-size: 10px !important; }
    .petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-price-feature-row,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row { margin-top: 10px !important; }
    .petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-feature-row { margin-top: 10px !important; }
}
@media (max-width: 380px) {
    /* Maintain the 1px increase at the pre-existing extra-small breakpoint. */
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price { font-size: 10px !important; }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill { font-size: 9px !important; }
    .petcall-card-ui-enabled .wd-product .wd-add-btn a,
    .petcall-card-ui-enabled .wd-product a.button { font-size: 10px !important; }
}


/* ==========================================================
   v1.2.1 — double the three requested vertical spacings on all screens:
   Pet badge → product title: 12px (previously 6px)
   Product title → deepest category: 8px (previously 4px)
   Category → price/feature row: 20px (previously 10px)
   Smaller action button, no arrow/cart icon.
========================================================== */
.petcall-card-ui-enabled .wd-product .petcall-title-category-group > .wd-entities-title {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
}
.petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-price-feature-row,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row,
.petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-feature-row {
    margin-top: 20px !important;
}

/* Match the smaller, text-only CTA in Woodmart's various card layouts. */
.petcall-card-ui-enabled .wd-product .wd-add-btn a,
.petcall-card-ui-enabled .wd-product a.button {
    box-sizing: border-box !important;
    min-height: 30px !important;
    height: 30px !important;
    max-height: 30px !important;
    padding: 0 10px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}
/* v1.2.2: restore hover icons; do not suppress theme icon pseudo-elements or child icons. */

@media (max-width: 767px) {
    .petcall-card-ui-enabled .wd-product .petcall-title-category-group > .wd-entities-title {
        margin-top: 12px !important;
        margin-bottom: 8px !important;
    }
    .petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-price-feature-row,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row,
    .petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-feature-row {
        margin-top: 20px !important;
    }
    .petcall-card-ui-enabled .wd-product .wd-add-btn a,
    .petcall-card-ui-enabled .wd-product a.button {
        min-height: 28px !important;
        height: 28px !important;
        max-height: 28px !important;
        padding: 0 7px !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
    }
}


/* ==========================================================
   v1.2.2 — requested CTA and mobile typography refinements
   - CTA: +10px in both desktop and mobile (40px / 38px)
   - Desktop: 10px of padding above CTA while preserving bottom alignment
   - Restore hover icon and force white; invisible at rest
   - Mobile: all previously adjusted typography +1px
   - Preserve the previous 12 / 8 / 20px metadata spacings
========================================================== */
/* Keep buttons aligned at the foot of cards and provide a 10px minimum separation. */
@media (min-width: 768px) {
    .petcall-card-ui-enabled .wd-product .product-element-bottom > .wd-add-btn,
    .petcall-card-ui-enabled .wd-product .wd-add-btn {
        margin-top: auto !important;
        padding-top: 10px !important;
    }
}
.petcall-card-ui-enabled .wd-product .wd-add-btn a,
.petcall-card-ui-enabled .wd-product a.button {
    min-height: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    padding: 0 20px !important;
    color: #fff !important;
}
/* The previous plugin drew a literal left arrow in ::after.  Remove it and
   leave Woodmart's real basket icon (::before or an icon element) intact.
   Preserve :after while loading, as Woodmart uses it for the AJAX spinner. */
.petcall-card-ui-enabled .wd-product .wd-add-btn a:not(.loading):not(.wd-loading)::after,
.petcall-card-ui-enabled .wd-product a.add_to_cart_button:not(.loading)::after {
    content: none !important;
    display: none !important;
}
.petcall-card-ui-enabled .wd-product .wd-add-btn a:hover::before,
.petcall-card-ui-enabled .wd-product .wd-add-btn a:focus-visible::before,
.petcall-card-ui-enabled .wd-product a.add_to_cart_button:hover::before,
.petcall-card-ui-enabled .wd-product a.add_to_cart_button:focus-visible::before {
    color: #fff !important;
}
/* Keep theme-rendered SVG/icon nodes white, without drawing a second icon. */
.petcall-card-ui-enabled .wd-product .wd-add-btn a:hover > :is(i, svg, .wd-icon, .wd-btn-icon, .wd-cart-icon, .wd-action-icon),
.petcall-card-ui-enabled .wd-product .wd-add-btn a:focus-visible > :is(i, svg, .wd-icon, .wd-btn-icon, .wd-cart-icon, .wd-action-icon) {
    color: #fff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

@media (max-width: 767px) {
    .petcall-card-ui-enabled .wd-product .wd-add-btn a,
    .petcall-card-ui-enabled .wd-product a.button {
        min-height: 38px !important;
        height: 38px !important;
        max-height: 38px !important;
        padding: 0 7px !important;
        font-size: 12px !important; /* was 11px */
    }
    /* +1px relative to v1.2.1, including every text size used in card metadata. */
    .petcall-card-ui-enabled .wd-product .petcall-title-category-group > .wd-entities-title { font-size: 13px !important; }
    .petcall-card-ui-enabled .wd-product .petcall-title-category-group > .petcall-deep-category { font-size: 11.2px !important; }
    .petcall-card-ui-enabled .petcall-pet-badge { font-size: 10.8px !important; }
    .petcall-card-ui-enabled .wd-product .wd-entities-title[data-full-title]::after { font-size: 13px !important; }
    .petcall-card-ui-enabled .wd-product .price,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price { font-size: 12px !important; }
    .petcall-card-ui-enabled .wd-product .price del { font-size: 12px !important; }
    .petcall-card-ui-enabled .wd-product .stock,
    .petcall-card-ui-enabled .wd-product .wd-product-stock { font-size: 10.8px !important; }
    .petcall-card-ui-enabled .petcall-feature-pill { font-size: 13.5px !important; }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill { font-size: 10.5px !important; }
    .petcall-card-ui-enabled .wd-product .product-label { font-size: 11px !important; }
}
@media (max-width: 380px) {
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price { font-size: 11px !important; }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill { font-size: 10px !important; }
    .petcall-card-ui-enabled .wd-product .wd-add-btn a,
    .petcall-card-ui-enabled .wd-product a.button { font-size: 11px !important; }
}

/* ==========================================================
   v1.2.3 — WooCommerce AJAX add-to-cart / Woodmart hover repair
   Prevent the AJAX "View cart" link from turning into a second orange CTA.
   This targets product cards only; other cart links remain available.
========================================================== */
.petcall-card-ui-enabled .wd-product a.added_to_cart.wc-forward,
.petcall-card-ui-enabled .wd-product a.added_to_cart:not(.add_to_cart_button),
.petcall-card-ui-enabled .wd-product .wd-add-btn > a.wc-forward {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}


/* ==========================================================
   v1.2.4 — sale-price layout and full feature visibility
   - Keep feature text fully visible instead of truncating it to ellipsis
   - Sale prices stack old/new prices on two lines
   - Regular prices sit on the bottom edge of the shared row
========================================================== */
.petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-price-feature-row,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row {
    align-items: flex-end !important;
    column-gap: 8px !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .price,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wrap-price,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wd-product-price {
    flex: 0 0 auto !important;
    align-self: flex-end !important;
    min-width: fit-content !important;
    max-width: 46% !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    line-height: 1.25 !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price > :is(del, ins),
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price > .woocommerce-Price-amount,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price > bdi {
    display: block !important;
    width: 100% !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price del {
    order: 1 !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price ins,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price > .woocommerce-Price-amount,
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price > bdi {
    order: 2 !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .petcall-feature-row {
    flex: 1 1 0 !important;
    align-self: flex-end !important;
    max-width: 60% !important;
}
.petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill {
    display: inline-flex !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    text-align: right !important;
}
@media (max-width: 767px) {
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .price,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wrap-price,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wd-product-price {
        max-width: 44% !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .petcall-feature-row {
        max-width: 56% !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price {
        gap: 1px !important;
        line-height: 1.2 !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill {
        line-height: 1.3 !important;
    }
}


/* ==========================================================
   v1.2.5 — mobile stacked feature/price layout
   Mobile only:
   - feature on top, price underneath
   - 8px gap between them
   - mobile price font +2px
========================================================== */
@media (max-width: 767px) {
    .petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-price-feature-row,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        row-gap: 8px !important;
        column-gap: 0 !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .petcall-feature-row {
        order: 1 !important;
        align-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .price,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wrap-price,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wd-product-price {
        order: 2 !important;
        align-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: flex-start !important;
        text-align: right !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.28 !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price del {
        font-size: 14px !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill {
        max-width: 100% !important;
    }
}
@media (max-width: 380px) {
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price {
        font-size: 13px !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price del {
        font-size: 13px !important;
    }
}


/* ==========================================================
   v1.2.6 — mobile feature + price full-width/right-aligned fix
   The fixed inline !important row direction and 60% feature width were
   removed from PHP, so these responsive rules now take effect.
========================================================== */
@media (max-width: 767px) {
    .petcall-card-ui-enabled .wd-product .product-element-bottom > .petcall-price-feature-row,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row {
        box-sizing: border-box !important;
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        direction: rtl !important;
        gap: 8px !important;
        margin-top: 20px !important;
        padding: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: right !important;
    }
    /* Feature takes the first full-width row, no flex shrink/60% constraint. */
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .petcall-feature-row {
        box-sizing: border-box !important;
        display: flex !important;
        flex: none !important;
        order: 1 !important;
        align-self: stretch !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        direction: rtl !important;
        text-align: right !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .petcall-feature-pill {
        box-sizing: border-box !important;
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        direction: rtl !important;
        text-align: right !important;
    }
    /* Price / Woodmart wrappers take the next full-width row. */
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .price,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wrap-price,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row > .wd-product-price {
        box-sizing: border-box !important;
        display: flex !important;
        flex: none !important;
        order: 2 !important;
        align-self: stretch !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        direction: rtl !important;
        text-align: right !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        direction: rtl !important;
        text-align: right !important;
    }
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price > del,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price > ins,
    .petcall-card-ui-enabled .wd-product .petcall-price-feature-row .price > .woocommerce-Price-amount {
        width: 100% !important;
        text-align: right !important;
    }
}
