/* Shop product card — price, wishlist, add to cart */
.product-card .shop-card-body {
    width: 100%;
    padding: 0.75rem 0 0;
    margin: 0;
}

.product-card .shop-card-text {
    direction: rtl;
    text-align: right;
    width: 100%;
    unicode-bidi: plaintext;
}

.product-card .shop-card-text .element-title,
.product-card .shop-card-text .shop-card-description,
.product-card .shop-card-text .shop-card-author {
    direction: rtl;
    text-align: right;
}

.product-card .shop-card-author {
    margin-bottom: 0.75rem;
}

.product-card .shop-card-description {
    width: 100%;
    margin: 0 0 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

.product-card .shop-card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    width: 100%;
}

.product-card .shop-card-price {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
    padding: 0.4rem 0;
    flex: 0 0 auto;
    min-width: 0;
    color: #111;
    align-self: center;
    white-space: nowrap;
}

/* English uses Playfair site-wide; keep price/actions readable sans-serif */
html[lang="en"] .product-card .shop-card-price,
html[lang="en"] .product-card .shop-card-actions .button.shop-cart-animate span.shop-cart-label,
html[lang="en"] .product-card .shop-card-actions--out-of-stock .shop-out-of-stock-btn {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0;
}

html[lang="en"] .product-card .shop-card-actions .shop-cart-plus-icon {
    font-family: bootstrap-icons !important;
}

.product-card .shop-card-actions .shop-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    margin: 0;
    border: 2px solid #111;
    border-radius: 10px;
    flex: 0 0 auto;
    line-height: 1;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
        border-radius 0.25s ease, transform 0.15s ease;
}

.product-card .shop-card-actions .shop-wishlist-btn i {
    font-size: 1.2rem;
    line-height: 1;
    pointer-events: none;
}

.product-card .shop-card-actions .shop-wishlist-btn:hover,
.product-card .shop-card-actions .shop-wishlist-btn:focus-visible {
    background: #111;
    color: #fff;
    border-color: #111;
    border-radius: 10px;
}

.product-card .shop-card-actions .shop-wishlist-btn:active {
    transform: scale(0.96);
}

/* Checked / in wishlist — circle like before */
.product-card .shop-card-actions .shop-wishlist-btn.active,
.product-card .shop-card-actions .shop-wishlist-btn.active:hover,
.product-card .shop-card-actions .shop-wishlist-btn.active:focus-visible {
    background: #111;
    color: #fff;
    border-color: #111;
    border-radius: 50%;
}

/* Animated add-to-cart — bigger on shop cards */
.product-card .shop-card-actions .button.shop-cart-animate {
    padding: 0.75rem 1.5rem 0.75rem 1.25rem !important;
    min-width: 9.5rem !important;
    min-height: 3rem;
    margin: 0 !important;
    border-radius: 10px;
    flex: 0 0 auto;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-card .shop-card-actions .button.shop-cart-animate span.shop-cart-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    line-height: 1.5;
    padding-inline-start: 0 !important;
    padding-left: 0 !important;
    margin-inline-start: 0 !important;
    margin-left: 0 !important;
}

.product-card .shop-card-actions .button.shop-cart-animate span.shop-cart-label::before,
.product-card .shop-card-actions .button.shop-cart-animate span.shop-cart-label::after {
    display: none !important;
    content: none !important;
}

.product-card .shop-card-actions .button.shop-cart-animate .shop-cart-plus-icon {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.product-card .shop-card-actions .button.shop-cart-animate:hover:not(.loading) {
    background: #111;
    color: #fff;
    --cart: #fff;
    --text: #fff;
}

.product-card .shop-card-actions--out-of-stock {
    flex-wrap: wrap;
    justify-content: center;
}

.product-card .shop-card-actions--out-of-stock .shop-out-of-stock-btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: 11rem;
    margin: 0.35rem auto 0;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 10px;
    cursor: not-allowed;
    white-space: nowrap;
    text-align: center;
}

.product-card .shop-card-actions--out-of-stock .shop-out-of-stock-btn span {
    padding: 0;
    margin: 0;
}


@media (max-width: 1399.98px) {
    .product-card .shop-card-actions {
        gap: 0.5rem;
    }

    .product-card .shop-card-actions .button.shop-cart-animate {
        min-width: 8.5rem !important;
        padding: 0.7rem 1.25rem 0.7rem 1.05rem !important;
    }

    .product-card .shop-card-actions .button.shop-cart-animate span {
        font-size: 0.8125rem;
    }
}

@media (max-width: 575.98px) {
    .product-card .shop-card-actions {
        gap: 0.5rem;
    }

    .product-card .shop-card-price {
        font-size: 0.9375rem;
    }

    .product-card .shop-card-actions .button.shop-cart-animate {
        min-width: 7.75rem !important;
        padding: 0.65rem 1rem 0.65rem 0.9rem !important;
    }

    .product-card .shop-card-actions .button.shop-cart-animate span.shop-cart-label {
        font-size: 0.75rem;
        gap: 0.3rem;
    }
}

.shop-filter-sidebar {
    max-width: 320px;
}

.shop-filter-toggle {
    color: inherit;
    cursor: pointer;
}

.shop-filter-toggle:focus-visible {
    outline: 2px solid #465367;
    outline-offset: 2px;
    border-radius: 4px;
}

.shop-filter-chevron {
    font-size: 1.25rem;
    transition: transform 0.25s ease;
}

.shop-filter-toggle[aria-expanded="true"] .shop-filter-chevron {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .shop-filter-sidebar {
        position: static !important;
        max-width: 100%;
    }

    .shop-filter-collapse {
        margin-top: 0;
        overflow: hidden;
        transition: margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .shop-filter-collapse.show,
    .shop-filter-collapse.collapsing {
        margin-top: 0.75rem;
    }

    .shop-filter-collapse.collapsing {
        transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
            margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .shop-filter-collapse-inner {
        transform: translateY(-0.5rem);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.35s ease;
    }

    .shop-filter-collapse.show:not(.collapsing) .shop-filter-collapse-inner,
    .shop-filter-collapse.collapsing:not(.show) .shop-filter-collapse-inner {
        transform: translateY(0);
        opacity: 1;
    }

    .shop-filter-collapse.collapsing.show .shop-filter-collapse-inner {
        transform: translateY(-0.35rem);
        opacity: 0;
        transition-duration: 0.3s;
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .shop-filter-collapse,
    .shop-filter-collapse.collapsing,
    .shop-filter-collapse-inner {
        transition: none !important;
    }

    .shop-filter-collapse-inner {
        transform: none;
        opacity: 1;
    }
}

@media (min-width: 992px) {
    .shop-filter-collapse.collapse {
        display: block;
        visibility: visible;
        height: auto !important;
    }

    .shop-filter-form {
        margin-top: 0;
    }
}
