/* Responsive product-card polish.
   Mobile product card sizing is still protected by mobile-reference-products.css;
   this file tightens catalog/home cards and CTA readability. */

.product-card-v3 {
    border: 1px solid rgba(17, 26, 54, .07) !important;
    box-shadow: 0 14px 34px rgba(17, 26, 54, .075) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.product-card-v3:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(35, 88, 246, .16) !important;
    box-shadow: 0 20px 46px rgba(17, 26, 54, .11) !important;
}

.product-card-v3 .status-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.product-card-v3 .status-inline img {
    width: 13px !important;
    height: 13px !important;
}

.product-card-v3 .favorite-toggle--in-photo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid rgba(17, 26, 54, .08) !important;
    box-shadow: 0 10px 22px rgba(17, 26, 54, .12) !important;
}

.product-card-v3 .favorite-toggle--in-photo img {
    width: 17px !important;
    height: 17px !important;
}

.product-card-v3__chips {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 10px !important;
}

.product-card-v3__chips span {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 8px 9px !important;
    border-radius: 13px !important;
    background: rgba(35, 88, 246, .055) !important;
    border: 1px solid rgba(35, 88, 246, .06) !important;
}

.product-card-v3__chips small {
    display: block !important;
    color: #7b849a !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

.product-card-v3__chips b {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #111a36 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.product-card-v3 .card-price {
    display: grid !important;
    gap: 2px !important;
}

.product-card-v3 .card-price span {
    color: #9aa3b5 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    text-decoration: line-through !important;
}

.product-card-v3 .card-price strong {
    color: #111a36 !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    font-weight: 1000 !important;
    letter-spacing: -.035em !important;
}

.product-card-v3 .product-card-v2__bottom .button,
.product-card-v3 .product-card-v2__bottom .button span,
.product-card-v3 .product-card-v2__bottom button.button,
.product-card-v3 .product-card-v2__bottom button.button span,
.product-card-v3 .product-card-v2__bottom .button.ui-icon-link,
.product-card-v3 .product-card-v2__bottom .button.ui-icon-link span,
.product-card-v3 .product-card-v2__bottom .button.ui-icon-button-label,
.product-card-v3 .product-card-v2__bottom .button.ui-icon-button-label span,
.product-mobile-sticky-buy .button,
.product-mobile-sticky-buy .button span,
.product-mobile-sticky-buy .button.ui-icon-link,
.product-mobile-sticky-buy .button.ui-icon-link span {
    background: linear-gradient(135deg, #2358f6, #5b36ff) !important;
    color: #fff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.product-card-v3 .product-card-v2__bottom .button,
.product-mobile-sticky-buy .button {
    box-shadow: 0 12px 24px rgba(35, 88, 246, .22) !important;
}

.product-card-v3 .product-card-v2__bottom .button img,
.product-mobile-sticky-buy .button img {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    .products,
    .products-polished,
    .catalog-products {
        align-items: stretch !important;
    }

    .product.product-card-v2,
    .products .product-card-v2,
    .products-polished .product-card-v2,
    .catalog-products .product-card-v2 {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .product-card-v2__photo,
    .product-card-v2__photo-wrap,
    .products .product-card-v2__photo,
    .products-polished .product-card-v2__photo,
    .catalog-products .product-card-v2__photo {
        display: grid !important;
        place-items: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1.18 / 1 !important;
        margin: 0 0 12px !important;
        padding: 10px !important;
        overflow: hidden !important;
        border-radius: 18px !important;
        background: linear-gradient(180deg, #f7f9fd, #f1f4fa) !important;
    }

    .catalog-products .product-card-v2__photo,
    .catalog-products .product-card-v2__photo-wrap {
        aspect-ratio: 1.22 / 1 !important;
    }

    .product-card-v2__photo-link {
        display: grid !important;
        place-items: center !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
    }

    .product-card-v2__photo img,
    .product-card-v2__photo-wrap img,
    .product-card-v2__photo-link img,
    .products .product-card-v2__photo img,
    .products-polished .product-card-v2__photo img,
    .catalog-products .product-card-v2__photo img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 92% !important;
        max-height: 92% !important;
        object-fit: contain !important;
        object-position: center !important;
        margin: auto !important;
        transform: none !important;
    }

    .product-card-v2__body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .product-card-v2__title {
        min-height: 44px !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        line-height: 1.1 !important;
    }

    .product-card-v2__bottom {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: auto !important;
    }

    .product-card-v2__bottom form,
    .product-card-v2__bottom .button,
    .product-card-v2__bottom button.button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .product-card-v2__bottom .button,
    .product-card-v2__bottom button.button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 767px) {
    .product-card-v3__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-card-v3__chips span {
        min-height: 40px !important;
        padding: 7px 8px !important;
    }

    .product-card-v3 .product-card-v2__bottom .button {
        min-height: 42px !important;
    }
}
