/* static/css/styles.css */
.cart-icon {
    font-size: 1.75rem; /* Adjust the size as needed */
}

.cart-item-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.product-card {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-card .card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 200px; /* Adjust the height as needed */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    width: 100%; /* Ensure the image takes the full width of the card */
}

.product-card .card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.product-card .card-text {
    font-size: 1rem;
    color: #555;
}

.product-card .card-price {
    font-size: 1.5rem;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-card .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.product-card .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.product-detail-price {
    font-size: 1.5rem;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-detail-button {
    background-color: #007bff;
    border-color: #007bff;
}

.product-detail-button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Custom CSS for product detail image size */
.product-detail-image {
    max-width: 100%; /* Ensure the image does not exceed the container width */
    max-height: 400px; /* Adjust the height as needed */
    object-fit: cover; /* Ensure the image covers the area without distortion */
}

.stars {
    display: flex;
    align-items: center;
}

.stars .fa-star {
    color: #ddd;
    margin-right: 5px;
}

.stars .fa-star.checked {
    color: #f39c12;
}
