.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 10px;
    display: block;
}
.product-card-inner {
    display: grid;
    grid-template-columns: 40px auto;
    gap: 10px;
    align-items: start;
}
.product-image img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
}
.product-info {
    display: flex;
    flex-direction: column;
}
.product-title {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.product-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.2;
}
.product-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.product-price {
    font-weight: bold;
    color: #000;
}
.restaurant-add-to-cart-form {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0;
}
.restaurant-add-to-cart-form select,
.restaurant-add-to-cart-form input[type="number"] {
    padding: 3px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.75rem;
    width: auto;
}
.restaurant-add-to-cart-form button {
    background: #f0b429;
    border: none;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.2s;
}
.restaurant-add-to-cart-form button:hover {
    background: #d9990f;
}
.menu-title {
    background: #fdf1d0;
    color: #333;
    padding: 5px 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}
@media (max-width: 768px) {
    .product-card-inner {
        grid-template-columns: 35px auto;
    }
    .product-image img {
        width: 35px;
        height: 35px;
    }
    .product-title {
        font-size: 0.9rem;
    }
    .product-desc {
        font-size: 0.75rem;
    }
}


.restaurant-order-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* ✅ Ajuste automático */
    gap: 20px;
}

.product-item {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    box-sizing: border-box;
}

.product-item h3 {
    margin: 0 0 10px;
}

.product-extras {
    margin-top: 10px;
}

#cart-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#cart-loading-overlay .spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #0071a1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Botón añadir al carrito */
.add-to-cart-form button {
    background-color: #D4AF37; /* Dorado */
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.add-to-cart-form button:hover {
    background-color: #b9962f; /* Dorado más oscuro al pasar el mouse */
}

/* Extras del producto */
.product-extras {
    margin-top: 8px;
    font-size: 0.95em;
}

.menu-title {
    background: #fdf1d0;
    color: #333;
    padding: 5px 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

