/* Hardware & 3D page specific styles
   Shared hero button styles live in hovergo-shared.css
*/

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    font-size: 1.0rem;
    text-align: left;
    max-width: 395px; /* Limit the width of the grid */
    margin: 0 auto;   /* Center the grid horizontally */
}

/* Utility wrapper used on this page to control spacing */
.section {
    margin: 2rem 0;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.product-card {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    background-color: #f9f9f9;
}

.product-card a img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 1rem;
}

.disabled-link {
    color: gray;          /* Faded look */
    pointer-events: none; /* Prevent clicking */
    text-decoration: none;
    cursor: default;
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .link-grid {
        max-width: 300px;
        font-size: 0.8rem;
    }
}
