/* General Shopping Layout */
.shopping-layout {
    font-family: Arial, sans-serif;
    color: #333;
}

/* Product Card */
.product-card {
    transition: transform 0.2s;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.custom-card {
    border: 1px solid #ddd;
}

/* Card Header */
.product-header {
    background-color: #f7f7f7;
    padding: 1.25rem;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
}

.product-subtitle {
    font-size: 0.9rem;
    color: #1c1e1f;
}

/* Product Item List */
.product-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    background-color: #fff;
}

.product-item:last-child {
    border-bottom: none;
}

/* Text and Prices */
.product-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #343a40;
}

.product-price, .product-delivery {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.25rem;
}

.price-value, .delivery-value {
    font-weight: bold;
    color: #28a745; /* A success green for prices */
}

.product-total {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
    margin-top: 0.5rem;
}

.total-value {
    font-size: 1.5rem; /* Larger font for total */
    color: #dc3545; /* A red color to stand out */
}

/* Buttons */
.btn-primary, .btn-secondary {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.text-black {
    color: black;
}

.container-image {
    max-height: 250px; /* Or whatever height you prefer */
    overflow: hidden;
    border-radius: 0.5rem; /* Optional: adds rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Optional: a light background color */
}

.container-image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensures the entire image is visible without stretching */
}

.container-image-wrapper {
    height: 250px; /* Set a fixed height for a consistent look */
    overflow: hidden; /* Hides any part of the image that spills out */
    border-radius: 0.5rem; /* Matches the card style */
}

.container-image-wrapper img {
    width: 100%; /* Makes the image fill the entire width of its container */
    height: 100%; /* Makes the image fill the entire height of its container */
    object-fit: cover; /* This is the key change: it makes the image fill the space, cropping as needed */
}

.container-image-wrapper .carousel {
    height: 100%; /* Make the carousel the same height as its wrapper */
}

.container-image-wrapper .carousel-item {
    height: 100%; /* Make each carousel item the same height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail-wrapper {
    display: flex;
    justify-content: start;
    gap: 5px; /* Adds space between thumbnails */
    flex-wrap: wrap; /* Allows thumbnails to wrap to the next line */
}

.thumbnail-image {
    width: 60px; /* A fixed size for the thumbnails */
    height: 60px;
    object-fit: cover; /* Ensures the thumbnail fills its container */
    cursor: pointer; /* Changes the cursor to a pointer on hover */
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    transition: transform 0.2s; /* Adds a subtle hover effect */
}

.thumbnail-image:hover {
    transform: scale(1.05); /* Makes the image slightly larger on hover */
    border-color: #007bff; /* Highlights the hovered thumbnail */
}

.container-image-wrapper {
    height: 250px; /* Set a fixed height for a consistent look */
    overflow: hidden;
    border-radius: 0.5rem;
    display: flex; /* Centers the image */
    justify-content: center;
    align-items: center;
}

.container-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the key change to make the image fill the container */
}

.thumbnail-wrapper {
    display: flex;
    justify-content: start;
    gap: 5px;
    flex-wrap: wrap;
}

.thumbnail-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    transition: transform 0.2s, border-color 0.2s;
}

.thumbnail-image:hover {
    transform: scale(1.05);
    border-color: #007bff;
}