.shop-product-card,
.category-tile {
    border-radius: var(--mh-radius-lg);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--mh-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.055);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.shop-product-card {
    cursor: pointer;
}

.shop-product-card:hover,
.category-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.09);
}

.shop-product-card__topline {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    pointer-events: none;
}

.shop-product-card__badge,
.shop-product-card__availability {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--mh-text);
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

.shop-product-card__badge {
    background: rgba(17, 17, 17, 0.88);
    color: #fff;
}

.shop-product-card__availability {
    margin-left: auto;
}

.shop-product-card__availability--empty {
    color: #b42318;
}

.shop-product-card__image-link,
.category-tile__image-link {
    display: block;
    background: #f2f2f4;
}

.category-tile__link {
    display: block;
    color: inherit;
}

.shop-product-card__image,
.category-tile__image {
    display: block;
    width: 100%;
    object-fit: cover;
}

.shop-product-card__image {
    height: 240px;
}

.category-tile__image {
    height: 180px;
}

.shop-product-card__image--placeholder,
.category-tile__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-card__image--placeholder {
    height: 220px;
    color: #8a8a8e;
    font-size: 2rem;
}

.category-tile__image--placeholder {
    height: 180px;
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
    font-size: 2.2rem;
}

.shop-product-card .card-body,
.category-tile .card-body {
    padding: 0.85rem 0.85rem 0.9rem;
}

.shop-product-card__title,
.category-tile__title {
    line-height: 1.35;
    margin-bottom: 0;
}

.shop-product-card__title {
    min-height: 2.45em;
}

.shop-product-card__title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-card__title a,
.category-tile__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-card__title a {
    color: inherit;
}

.shop-product-card__title a:hover {
    color: #212529;
}

.category-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    color: var(--mh-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.category-tile__cta i {
    transition: transform 0.18s ease;
}

.category-tile:hover .category-tile__cta i {
    transform: translateX(2px);
}

.shop-product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.shop-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(232, 227, 220, 0.72);
    color: var(--mh-text);
    font-size: 0.72rem;
    font-weight: 500;
}

.shop-product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem;
}

.shop-product-card__old-price {
    color: #8a8a8e;
    font-size: 0.82rem;
    text-decoration: line-through;
}

.shop-product-card__current-price {
    color: var(--mh-text);
    font-size: 1.05rem;
    font-weight: 700;
}

.shop-product-card__current-price--discount {
    color: #b42318;
}

.shop-product-card__hint {
    color: var(--mh-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.shop-product-card__actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shop-product-card__cart-form {
    width: 100%;
    display: flex;
    justify-content: center;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    border-radius: 999px;
    padding: 0.56rem 0.85rem;
    font-weight: 600;
    font-size: 0.82rem;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.shop-btn:hover {
    transform: translateY(-1px);
}

.shop-btn--primary {
    background: #111;
    border-color: #111;
    color: #fff;
}

.shop-btn--primary:hover,
.shop-btn--primary:focus {
    background: #2a2a2c;
    border-color: #2a2a2c;
    color: #fff;
}

.shop-btn--secondary {
    min-width: 124px;
    padding-inline: 0.9rem;
    background: #fff;
    border-color: var(--mh-border);
    color: var(--mh-text);
}

.shop-btn--secondary,
.shop-btn--in-cart {
    justify-content: center;
}

.shop-btn--secondary:hover,
.shop-btn--secondary:focus {
    background: #f5f5f7;
    border-color: rgba(29, 29, 31, 0.18);
    color: var(--mh-text);
}

.shop-btn--in-cart {
    min-width: 124px;
    padding-inline: 0.9rem;
    background: #eef8f1;
    border-color: #c9ead1;
    color: #19713a;
}

.shop-btn--in-cart:hover,
.shop-btn--in-cart:focus {
    background: #e1f2e6;
    border-color: #bde2c7;
    color: #125c2d;
}

@media (max-width: 575.98px) {
    .shop-product-card__image {
        height: 148px;
    }

    .category-tile__image,
    .category-tile__image--placeholder {
        height: 112px;
    }

    .shop-product-card .card-body,
    .category-tile .card-body {
        padding: 0.7rem 0.7rem 0.75rem;
    }

    .shop-product-card,
    .category-tile {
        border-radius: 18px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    }

    .shop-product-card__current-price {
        font-size: 0.92rem;
    }

    .shop-meta-chip {
        font-size: 0.66rem;
        padding: 0.22rem 0.48rem;
    }

    .shop-product-card__title {
        min-height: auto;
        font-size: 0.82rem;
    }

    .category-tile__title {
        font-size: 0.8rem;
    }

    .category-tile__cta {
        font-size: 0.68rem;
    }

    .shop-product-card__actions {
        justify-content: center;
    }

    .shop-btn {
        min-height: 38px;
        padding: 0.5rem 0.65rem;
        font-size: 0.74rem;
    }

    .shop-btn--secondary,
    .shop-btn--in-cart {
        min-width: 112px;
        padding-inline: 0.7rem;
    }

    .shop-product-card__action-text {
        display: inline;
    }

    .shop-product-card__hint {
        font-size: 0.7rem;
    }

}
