.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: var(--size-7);
    cursor: pointer;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #E5F0F7;
    border-radius: 10px;
    padding: var(--size-4);
    min-height: 150px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.product-card__title {
    font-size: var(--size-4);
}

.product-card:hover {
    background-color: #DDEBF5;
}

.product-card .product-card__button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    transition: background-color 0.2s ease;
}

.product-card:hover .product-card__button {
    background-color: #163663;
}

[data-modal-id="product-detail-modal"] .modal-box {
    max-width: 1193px;
    width: 95%;
    padding: var(--size-5);
    padding-right: var(--size-4);
}

.product-modal-detail {
    max-height: 70dvh;
    overflow-y: scroll;
}

.product-modal-detail .data-table {
    width: 100%;
    border-collapse: collapse;
}

.product-modal-detail .data-table td {
    padding: 10px 15px;
    color: var(--color-primary);
    vertical-align: top;
    font-weight: normal;
}

.product-modal-detail .data-table td:first-child {
    width: 45%;
    font-weight: 500;
}

.product-modal-detail .data-table td:last-child {
    font-weight: 500;
    text-align: left;
}

.product-modal-detail .data-table tr:nth-child(odd) {
    background-color: #F1F7FA;
}

@media screen and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-modal-detail .data-table td:first-child {
        width: 50%;
    }
}

@media screen and (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        min-height: 120px;
    }
    [data-modal-id="product-detail-modal"] .modal-box {
        padding: var(--size-3);
    }
}