/* Shared catalog cards (home categories + category product cards) */
.product-card-modern {
    border-radius: 14px !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(11, 61, 145, 0.1) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(11, 61, 145, 0.28) !important;
    box-shadow: 0 18px 40px rgba(11, 61, 145, 0.14);
}

.products-featured-badge {
    z-index: 10;
    background: linear-gradient(135deg, #0b3d91, #1565c0) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.35);
}

.product-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: #eef3f9;
}

.product-image-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(245, 230, 200, 0.25) 0%,
        #e8d5a3 18%,
        #d4af37 50%,
        #e8d5a3 82%,
        rgba(245, 230, 200, 0.25) 100%
    );
    pointer-events: none;
    z-index: 4;
}

.product-image-fallback {
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.95) 0%, transparent 60%),
        linear-gradient(160deg, #f7f9fc 0%, #e8eef7 48%, #dde7f4 100%);
}

.product-image-fallback__pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(11, 61, 145, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 61, 145, 0.045) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 75%);
}

.product-image-fallback__link {
    position: relative;
    z-index: 1;
    color: #0b3d91;
}

.product-icon-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(11, 61, 145, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.product-card-modern:hover .product-icon-placeholder {
    transform: translateY(-3px);
    border-color: rgba(11, 61, 145, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 14px 28px rgba(11, 61, 145, 0.12);
}

.product-icon-placeholder i {
    font-size: 1.65rem;
    color: #0b3d91;
    opacity: 0.9;
}

.product-card-image {
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card-modern:hover .product-card-image {
    transform: scale(1.08);
}

.product-overlay {
    background: rgba(8, 27, 58, 0.42);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.product-overlay-btn {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.product-card-modern:hover .product-overlay-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-card-title {
    font-size: 1.08rem;
    min-height: 2.6rem;
}

.product-card-title a {
    color: #0a1628;
    transition: color 0.25s ease;
}

.product-card-title a:hover {
    color: #0b3d91 !important;
}

.product-card-description {
    font-size: 0.9rem;
    line-height: 1.55;
}

.product-card-meta {
    color: #64748b;
}

.product-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    align-self: flex-start;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    color: #1d4ed8;
    background: #e8f0fe;
    border: 1px solid rgba(37, 99, 235, 0.22);
    box-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-card-cta i {
    font-size: 0.7rem;
}

.product-card-cta:hover,
.product-card-modern:hover .product-card-cta {
    color: #ffffff;
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.22);
}

@media (max-width: 991.98px) {
    .product-image-container {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .product-overlay {
        display: none !important;
    }

    .product-image-container {
        height: 200px;
    }

    .product-card-modern .card-body {
        padding: 1.15rem !important;
    }

    .product-card-title {
        min-height: 0;
        font-size: 1.02rem;
    }
}

@media (max-width: 575.98px) {
    .product-image-container {
        height: 180px;
    }

    .product-icon-placeholder {
        width: 4rem;
        height: 4rem;
    }

    .product-icon-placeholder i {
        font-size: 1.45rem;
    }

    .product-card-modern .card-body {
        padding: 1rem !important;
    }
}

@media (hover: none) {
    .product-overlay {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card-modern,
    .product-card-image,
    .product-overlay,
    .product-overlay-btn {
        transition: none !important;
        transform: none !important;
    }
}
