.product-categories-block {
    background-color: #1a497e;
    padding: 80px 0;
    color: #fff;
    margin: 3rem 0;
}

.product-categories-block .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-categories-header {
    margin-bottom: 50px;
    max-width: 800px;
}

.product-categories-subtitle {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.product-categories-title {
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 20px;
    color: #fff;
    line-height: 1.2;
}

.product-categories-desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Support for explicit 4 columns if needed */
.product-categories-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}


.product-cat-card {
    background: #f5f5f5; /* Light grey/white background as seen in image */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 220px; /* Rectangular shape */
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-cat-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain; /* Use contain to keep the cable shape visible on the light bg */
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.product-cat-card:hover .product-cat-bg {
    transform: scale(1.05);
}

.product-cat-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to link */
}

.product-cat-name {
    color: #1a497e; /* Dark blue text matching the brand */
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    max-width: 80%; /* Don't cover the whole image if possible */
}

/* Responsive */
@media (max-width: 992px) {
    .product-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-categories-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .product-categories-grid {
        grid-template-columns: 1fr;
    }
    .product-cat-card {
        height: 200px;
    }
}
