.gallery-products {
    background-color: white;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.list-random-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    min-height: 200px;
}

.loading {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid var(--color-primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.product-card {
    cursor: pointer;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr auto;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid #e9e9e9;
}

.product-card picture {
    display: grid;
    place-items: center;
    padding: 12px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: auto;
}

.product-info {
    padding: 10px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info .category {
    display: none;
    font-size: .9rem;
    color: var(--color-primary-300);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.product-info .name-product {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-secondary-500);
    margin-bottom: 8px;
}

.product-info .prices {
    margin-top: auto;
}

.product-info .prices .price-regular {
    text-decoration: line-through;
    font-size: .9rem;
    color: #888;
}

.product-info .prices .discount {
    font-size: .9rem;
    color: var(--color-secondary-500);
    margin-left: 5px;
}

.product-info .prices .price-with-discount {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary-500);
    margin-top: 4px;
}

.center-button {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

#see-more {
    background: var(--color-primary-500);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s;
}

#see-more:disabled {
    background: #ccc;
    cursor: default;
}

#see-more:hover:not(:disabled) {
    background: var(--color-secondary-500);
}
.product-card .actions {
    display: flex;
    justify-content: center;
    padding: 10px 0px;
    justify-content: start;
}
.product-card .actions .btn.btn-primary.btn-buy {
    background: var(--color-secondary-500);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s;
}
.product-card .actions .btn.btn-primary.btn-buy:hover { 
    background: var(--color-secondary-600);
}