/* Product Grid and Card Styles */
.product-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* View More/Less Button Container */
.view-buttons-container {
    margin: 30px 0;
    text-align: center;
}

/* Order Summary Styles */
.order-summary {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .product-card {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 10px;
    }

    .product-card img {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
    }

    .product-info {
        flex: 1;
    }

    .add-to-order-btn {
        margin-left: auto;
        white-space: nowrap;
    }

    .price-breakdown {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .products-container {
        grid-template-columns: 1fr;
    }

    .product-card {
        flex-direction: column;
        text-align: center;
    }

    .product-card img {
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }

    .add-to-order-btn {
        width: 100%;
        margin-top: 10px;
    }

    .order-summary table {
        font-size: 14px;
    }
}

/* Button and Action Styles */
.add-to-order-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-order-btn:hover {
    background: #0056b3;
}

/* Price Display */
.price {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin: 8px 0;
}