/* --- New Robust Catalog Grid Styling --- */

.new-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    position: relative;
    z-index: 25;
    /* Ensure it stays on top */
}

/* Card Base */
.new-catalog-card {
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
    z-index: 25;
}

.new-catalog-card:hover {
    border-color: var(--primary-neon);
    transform: translateY(-5px);
    background: rgba(18, 18, 18, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 30;
}

/* Card Image */
.card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    pointer-events: none;
    /* Crucial for click-through issues */
}

.new-catalog-card:hover .card-image img {
    transform: scale(1.05);
    /* Subtle zoom */
}

/* Card Content */
.card-content {
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-content h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-content span {
    color: var(--text-dim);
    font-size: 0.85rem;
    display: block;
}

.new-catalog-card:hover .card-content h3 {
    color: var(--primary-neon);
}

/* View All Card Special Styling */
.view-all-card {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(0, 243, 255, 0.1) 100%);
    border: 1px dashed var(--primary-neon);
    align-items: center;
    justify-content: center;
    min-height: 240px;
    /* Match others implicitly or fixed */
}

.view-all-card:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1) 0%, rgba(0, 243, 255, 0.2) 100%);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.view-all-inner {
    text-align: center;
    padding: 20px;
}

.view-all-inner i {
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 15px;
    display: block;
}

.view-all-inner h3 {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 5px;
}

.view-all-inner p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 992px) {
    .new-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .new-catalog-grid {
        grid-template-columns: 1fr;
        /* Full width on mobile */
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .card-image {
        height: 180px;
        /* Taller images on mobile */
    }

    .view-all-card {
        min-height: 160px;
    }
}