/* Products Pages Styles */

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Images */
.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Product Info */
.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc3545;
}

.price-original {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
}

.price-special {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product Stock Status */
.stock-status {
    margin-bottom: 1rem;
}

.stock-status small {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.stock-available {
    background-color: #d4edda;
    color: #155724;
}

.stock-limited {
    background-color: #fff3cd;
    color: #856404;
}

.stock-out {
    background-color: #f8d7da;
    color: #721c24;
}

/* Product Category */
.product-category {
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Product Store */
.product-store {
    margin-bottom: 1rem;
}

.store-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #007bff;
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Product Detail Page */
.product-detail {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.product-main-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.product-thumbnail:hover {
    transform: scale(1.05);
}

.product-thumbnail.active {
    border-color: #007bff;
}

/* Product Information */
.product-info h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-info .text-muted {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Price Display */
.price-display {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-display h3 {
    color: #333;
    margin-bottom: 1rem;
}

.price-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.temperature-option {
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.temperature-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.temperature-option.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.temperature-option h6 {
    margin-bottom: 0.5rem;
    color: #333;
}

.temperature-option .fw-bold {
    color: #007bff;
    font-size: 1.1rem;
}

/* Fix for selected temperature option text visibility */
.temperature-option.bg-primary .fw-bold,
.temperature-option.bg-primary h6 {
    color: white !important;
}

.temperature-option.bg-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
}

/* Ingredients */
.ingredients-section {
    margin-bottom: 2rem;
}

.ingredients-section h5 {
    color: #333;
    margin-bottom: 1rem;
}

.ingredient-checkbox {
    margin-right: 0.5rem;
}

.ingredient-label {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.ingredient-label:hover {
    background-color: #f8f9fa;
}

.ingredient-price {
    margin-left: auto;
    font-weight: 500;
    color: #6c757d;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    font-weight: 500;
    color: #333;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    overflow: hidden;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-input {
    border: none;
    text-align: center;
    width: 60px;
    padding: 0.5rem;
}

/* Total Price */
.total-price {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.total-price .total-label {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.total-price .total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-buttons .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
}

/* Related Products */
.related-products {
    margin-top: 3rem;
}

.related-products h3 {
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail {
        padding: 1rem;
    }
    
    .price-options {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quantity-input-group {
        align-self: stretch;
    }
}
