.savedProducts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-bottom: 5%;
}

.product {
    display: flex;
    flex-direction: column;
    background: var(--bs-tertiary-bg);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--bs-border-color-translucent);
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

.product .carousel {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.03);
}

.product .carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product .body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.product .body .name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bs-body-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.1rem;
}

.product .body .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--first-color);
}

/* Fix for dark mode price color */
[data-bs-theme="dark"] .product .body .price {
    color: #4dabf7; /* Brighter color for dark mode */
}

.product .btnCont {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.product .btnCont .addToCartBtn {
    flex-grow: 1;
    background: var(--first-color);
    color: white;
    border-radius: 0.75rem;
    padding: 0.6rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .product .btnCont .addToCartBtn {
    background: #2c3e50;
    border: 1px solid rgba(255,255,255,0.1);
}

.product .btnCont .addToCartBtn:hover {
    background: var(--third-color);
    transform: scale(1.02);
}

.product .btnCont .removeSavedBtn {
    background: rgba(239, 83, 80, 0.1);
    color: #ef5350;
    border: none;
    border-radius: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.product .btnCont .removeSavedBtn:hover {
    background: #ef5350;
    color: white;
}

/* Request Quote Button styling - more prominent and themed */
#btnPreventivoSalvati {
    border-radius: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] #btnPreventivoSalvati {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Animations */
@keyframes slideOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

.product.removing {
    animation: slideOut 0.4s forwards;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-top: 6rem !important; /* Extra space for mobile navbar */
    }
    
    .savedProducts {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .product .body .name {
        font-size: 1rem;
    }
}

/* Modal styles for products review */
.modal-product-list::-webkit-scrollbar {
    width: 6px;
}
.modal-product-list::-webkit-scrollbar-track {
    background: transparent;
}
.modal-product-list::-webkit-scrollbar-thumb {
    background: var(--bs-secondary-bg);
    border-radius: 10px;
}
.modal-qty-input {
    border-radius: 0.5rem;
    font-weight: 600;
}