/* Main product image styling */
.product-image {
    height: 300px;
    width: 100%;
    object-fit: contain;
}

/* Card layout and styling */
.card {
    margin: 10px;
    padding: 10px;
    margin-top: 20px;
    border: 1px solid #ddd; /* Add border for cleaner look */
    border-radius: 8px; /* Add rounded corners */
    background-color: var(--bs-body-bg); /* Adjust for light/dark mode */
    color: var(--bs-body-color); /* Adjust text color for light/dark mode */
}

.card-header {
    background-color: var(--bs-primary); /* Adapt to Bootstrap's primary color */
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    text-align: center;
}

/* List group items in the card */
.list-group-item {
    font-size: 1rem;
    padding: 10px;
    border: none; /* Remove borders for cleaner look */
    background-color: var(--bs-body-bg); /* Adjust for light/dark mode */
    color: var(--bs-body-color); /* Adjust text color for light/dark mode */
}

/* Row and column layout adjustments */
.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-4 {
    margin-bottom: 20px;
}

/* Product details section */
.product-details {
    margin-top: 20px;
    line-height: 1.8;
    color: var(--bs-body-color); /* Adjust text color for light/dark mode */
}

/* Product detail page image styling */
.product-detail-image {
    max-height: 200px;
    width: auto;
    margin-bottom: 0;
    border-radius: 8px;
}

/* Adjustments for title next to image */
.col-lg-8.d-flex {
    align-items: flex-start;
}

.flex-shrink-0 {
    max-width: 200px;
}

.flex-grow-1 {
    margin-left: 10px;
}

/* General spacing for rows */
.row.mt-4 {
    margin-top: 20px;
}

/* Price text styling */
.price-text {
    font-size: 1.5rem;
    color: var(--bs-success); /* Use Bootstrap's success color */
    font-weight: bold;
}

/* Features list */
.features-list .list-group-item {
    font-size: 1rem;
    padding: 10px;
    border: none;
}

/* Bottom CTA button */
.btn-primary {
    font-size: 0.9rem;
    padding: 8px 16px;
    text-transform: uppercase;
    border-radius: 5px;
}

/* Dark Mode Adjustments */
:root[data-bs-theme="dark"] {
    --bs-body-bg: #121212; /* Dark background */
    --bs-body-color: #e9ecef; /* Light text */
    --bs-card-bg: #1e1e1e; /* Card background */
    --bs-primary: #0d6efd; /* Primary button color */
    --bs-success: #198754; /* Success text color */
}

:root[data-bs-theme="light"] {
    --bs-body-bg: #ffffff; /* Light background */
    --bs-body-color: #212529; /* Dark text */
    --bs-card-bg: #f8f9fa; /* Card background */
    --bs-primary: #0d6efd; /* Primary button color */
    --bs-success: #28a745; /* Success text color */
}

/* Additional styling for cards */
.card-body p.text-muted {
    font-size: 0.9rem;
    margin: 0;
}

/* Badge styling */
.badge {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
}
