/* Professional catalogue cards shared by the main catalogue and search results. */
.product-grid {
    gap: 22px !important;
    align-items: stretch;
}

.product-card {
    position: relative;
    overflow: hidden !important;
    border: 1px solid #e7e1d7 !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 7px 24px rgba(43, 29, 18, .055) !important;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease !important;
}

.product-card:hover {
    transform: translateY(-7px) !important;
    border-color: #d5b25a !important;
    box-shadow: 0 22px 55px rgba(43, 29, 18, .12) !important;
}

.product-img-wrap {
    position: relative;
    height: 245px !important;
    padding: 16px !important;
    overflow: hidden;
    border-bottom: 1px solid #eee9e1;
    background: radial-gradient(circle at 50% 35%, #fff 0%, #faf8f3 67%, #f4efe7 100%) !important;
}

.product-img-wrap::after {
    content: "";
    position: absolute;
    right: -65px;
    bottom: -65px;
    width: 120px;
    height: 120px;
    border: 23px solid rgba(199, 156, 50, .08);
    border-radius: 50%;
    pointer-events: none;
}

.product-img-wrap > a {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

.product-card .product-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: scale(1);
    transition: transform .32s ease !important;
}

.product-card:hover .product-img-wrap img { transform: scale(1.035) !important; }

.product-badge {
    top: 14px !important;
    left: 14px !important;
    z-index: 3 !important;
    padding: 6px 10px !important;
    border-radius: 99px !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
    font-size: .59rem !important;
    letter-spacing: .075em !important;
}

.badge-bestseller { background: #8f1d1d !important; }
.badge-new { background: #19764a !important; }
.badge-popular { background: #9a7018 !important; }

.product-info {
    padding: 19px 19px 13px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
}

.product-cat-label {
    margin-bottom: 8px !important;
    color: #9c731c !important;
    font-size: .61rem !important;
    font-weight: 800 !important;
    letter-spacing: .105em !important;
}

.product-card h3 {
    min-height: 2.65em;
    margin: 0 !important;
    color: #1d2738 !important;
    font-size: .97rem !important;
    font-weight: 750 !important;
    line-height: 1.34 !important;
    letter-spacing: -.015em;
}

.product-card h3 a:focus-visible,
.product-detail-link:focus-visible,
.product-img-wrap a:focus-visible {
    outline: 3px solid rgba(143, 29, 29, .28);
    outline-offset: 3px;
    border-radius: 5px;
}

.product-card-desc {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 9px 0 12px;
    overflow: hidden;
    color: #737d8d;
    font-size: .7rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #8f1d1d;
    text-decoration: none;
    font-size: .67rem;
    font-weight: 800;
}

.product-detail-link span { transition: transform .2s ease; }
.product-detail-link:hover span { transform: translateX(4px); }

.product-actions {
    min-height: 62px;
    margin-top: auto !important;
    padding: 13px 19px 17px !important;
    border-top: 1px solid #eee9e1;
    background: #fdfcf9;
}

.product-actions .btn-cart {
    width: 100% !important;
    min-height: 42px;
    border: 1px solid #8f1d1d !important;
    border-radius: 9px !important;
    background: #8f1d1d !important;
    color: white !important;
    box-shadow: 0 7px 16px rgba(143,29,29,.14) !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
}

.product-actions .btn-cart:hover { background: #681313 !important; }
.product-actions .btn-cart svg { width: 16px !important; height: 16px !important; }

.product-actions .qty-stepper {
    width: 100% !important;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid #d8d0c5 !important;
    border-radius: 9px !important;
    background: white !important;
}

.product-actions .qty-stepper button {
    width: 43px !important;
    border: 0 !important;
    background: #f3eee7 !important;
    color: #8f1d1d !important;
    font-size: 1rem !important;
}

.product-actions .stepper-input { font-size: .78rem !important; }
.product-actions .stepper-label { color: #8d958f !important; font-size: .54rem !important; }

@media (max-width: 768px) {
    .product-grid { gap: 12px !important; }
    .product-img-wrap { height: 190px !important; padding: 10px !important; }
    .product-info { padding: 14px 13px 10px !important; }
    .product-card h3 { min-height: 2.55em; font-size: .82rem !important; }
    .product-card-desc { display: none; }
    .product-detail-link { font-size: .62rem; }
    .product-actions { min-height: 56px; padding: 10px 12px 13px !important; }
}

@media (max-width: 430px) {
    .product-img-wrap { height: 160px !important; padding: 8px !important; }
    .product-badge { top: 8px !important; left: 8px !important; padding: 4px 7px !important; font-size: .48rem !important; }
    .product-cat-label { font-size: .52rem !important; }
    .product-card h3 { font-size: .75rem !important; }
    .product-detail-link { font-size: .56rem; }
    .product-actions .btn-cart { min-height: 38px; font-size: .62rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    .product-card, .product-card img, .product-detail-link span { transition: none !important; }
}
