/* File: assets/css/wexnerd-services.css */

/* General Form Styling */
#service-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Labels */
#service-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Inputs */
#service-form input[type="text"],
#service-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsive grid layout */
    gap: 20px;
    margin-top: 20px;
}

/* Product Card Styling */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    overflow: hidden;
    height: 100%; /* Ensure all cards are the same height */
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.product-card img {
    max-width: 100%;
    height: auto;
    max-height: 150px; /* Set consistent height for images */
    margin-bottom: 15px;
    object-fit: cover; /* Crop if necessary to maintain aspect ratio */
    border-radius: 5px;
}

.product-card h5 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.product-card p {
    margin: 5px 0;
    font-size: 14px;
}

/* Hide Checkboxes */
.product-card input[type="checkbox"] {
    display: none;
}

/* Active (Selected) Card */
.product-card.active {
    background-color: #f0f8ff; /* Light blue highlight */
    border-color: #007bff;
}

/* Selected Preview Section */
#selected-preview {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#selected-preview h4 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

#selected-details p {
    margin: 10px 0;
    font-size: 14px;
}

#selected-products {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.selected-product-card {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.selected-product-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.selected-product-card .product-info {
    flex-grow: 1;
}

.selected-product-card h5 {
    margin: 0;
    font-size: 14px;
    flex-grow: 1;
}

.selected-product-card button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.selected-product-card button:hover {
    background-color: #c82333;
}

/* Total Price */
#total-price {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination-btn {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination-btn:hover {
    background-color: #0056b3;
}

.pagination-btn.active {
    background-color: #0056b3;
    font-weight: bold;
}

/* WhatsApp Button */
#whatsapp-button {
    background-color: #25D366;
    color: #fff;
    padding: 12px auto 0 auto;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0 auto;
    transition: background-color 0.3s;
}

#whatsapp-button:hover {
    background-color: #1cb354;
}

/* Out of Stock Styling */
.product-card.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}
