/* Fullscreen Image Background Banner */
.banner-container {
    position: relative;
    height: 400px; /* Adjust the height as needed */
    width: 100%;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.banner-text {
    color: #ffffff;
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.banner-subtitle {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-buttons {
    margin-top: 20px;
}

.banner-button {
    background-color: #ffffff;
    color: #06462E;
    padding: 10px 20px;
    margin-right: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.banner-button:hover {
    background-color: #e1e1e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-container {
        height: 300px;
    }

    .banner-subtitle {
        font-size: 1.5rem;
    }

    .banner-text {
        padding: 10px;
    }
}

/* Custom styles for Select2 to make it rounded */
.select2-container .select2-selection--single {
    border-radius: 0.375rem !important; /* Bootstrap's default rounded size */
}
.select2-container--bootstrap5 .select2-selection--single {
    border-radius: 0.375rem !important; /* Ensure consistency with Bootstrap 5 */
}

.form-check-label {
    border-radius: 20px; /* You can adjust this to make the corners more or less rounded */
    cursor: pointer;
}

.form-check-input:checked + .form-check-label {
    background-color: #D8E7FAFF; /* Background color when selected */
    color: #1976d2; /* Text color when selected */
}

/* If the icon still doesn’t pick up the above color, force it: */
.form-check-input:checked + .form-check-label i.fa-design-icons {
    color: #1976d2;
}

.form-check-input:focus + .form-check-label {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25); /* Focus outline */
}

.savings-label {
    color: #28a745; /* Green for savings text */
    font-weight: bold;
}

/* Container holding both sections */
.custom-scroll-container {
    display: flex; /* Keep the left and right sections side by side */
    gap: 20px; /* Optional: Add some spacing between left and right sections */
    align-items: flex-start; /* Ensure both start aligned at the top */
}

/* Sticky Image Container */
.sticky-image-container {
    width: 50%; /* Left side width */
    position: sticky; /* Keep the image sticky */
    top: 140px; /* Adjust this based on your navbar's height */
    height: auto; /* Let the container adjust based on content */
    z-index: 1; /* Ensures sticky content stays on top */
    overflow: hidden; /* Prevent content overflow */
}

/* Sticky Wrapper for Image */
.sticky-wrapper {
    height: 100%; /* Allow the image to take full height */
}

/* Image Styling */
.sticky-image {
    width: 100%; /* Ensure the image fits within the container */
    object-fit: cover; /* Ensure the image maintains aspect ratio */
}

/* Right-hand Content */
.scrollable-content {
    width: 50%; /* Right side width */
    height: auto; /* Let the content naturally flow */
    padding: 0 20px; /* Optional padding for better layout */
}

/*Carousel Items CSS*/

/* Ensure the carousel itself has enough space for the indicators below it */
#carouselExampleIndicators {
    position: relative;
    margin-bottom: 80px; /* Extra space for indicators to fit comfortably below the image */
}

/* Container for the indicators */
.carousel-indicators-container {
    display: flex;
    justify-content: flex-start; /* Align the indicators (thumbnails) to the left */
    margin-top: 10px; /* Space between the carousel and thumbnails */
    width: 100%; /* Ensure the indicators container spans full width */
    padding-left: 0; /* Align with the carousel on the left */
}

/* Style the indicators (thumbnails) */
.carousel-indicators {
    display: flex;
    flex-wrap: nowrap; /* Prevents wrapping of the thumbnails */
    padding: 0;
    width: 55%;
}

.carousel-indicators button {
    border: none;
    background: none;
    padding: 0;
    margin-right: 10px; /* Space between thumbnails */
    flex: 0 0 auto; /* Prevent shrinking */
}

/* Ensure the carousel images have a uniform height */
.carousel-inner img {
    width: 100%; /* Ensures the image takes up the full width of the carousel */
    height: 400px; /* Set a uniform height for all carousel images */
    object-fit: cover; /* Scale the image while maintaining aspect ratio, cropping if necessary */
}

/* Ensure the thumbnail images have a uniform size */
.carousel-indicators button img {
    width: 100px; /* Set a uniform width for the thumbnails */
    height: 50px; /* Set a uniform height for the thumbnails */
    object-fit: cover; /* Ensure the image fits within the button, cropping if necessary */
}


.carousel-indicators button.active img {
    border-color: #007bff; /* Blue border for active thumbnail */
}

/* Also ensure the border is changed when carousel-item is active */
.carousel-item.active + .carousel-indicators button.active img {
    border-color: #007bff;
}

.viewed-width {
    max-width: 300px;
}

.ms-50{
    margin-left: 20rem !important;
}
.enlarge-ms-6{
    margin-left: 6.5rem !important;
}
.options-dropdown {
    overflow-x: auto;
    min-width: 100%;
}
.item-count {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}
@media (max-width: 768px) {
    .options-dropdown { margin-left: 0; min-width: auto; }
}


.dropdown-container {
    padding: 0.5rem 0; /* Reduced padding around dropdown */
}
.dropdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0; /* Smaller padding for a more compact look */
}
.dropdown-inline {
    width: 50%; /* Matches the width of select2 */
}
.dropdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}
.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}
.dropdown-item:last-child .border-bottom {
    border-bottom: none; /* Remove last item border for clean finish */
}
.custom-rounded-card {
    border-radius: 4px !important; /* Square edges with minimal rounding */
    overflow: hidden; /* Ensures content stays within corners while scrolling */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth animation */
    transform: translateY(0); /* Initial position for animation */
    animation: basketItemFadeIn 0.5s ease-out; /* Animation for basket items when they appear */
}

.custom-rounded-card:hover {
    transform: translateY(-2px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
    border-color: rgba(0, 123, 255, 0.3); /* Subtle blue border on hover */
}

@keyframes basketItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced animation for basket item removal */
.basket-item-removing {
    animation: basketItemFadeOut 0.4s ease-in forwards;
}

@keyframes basketItemFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Enhanced basket UI improvements */
.basket-count-badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Quantity input animations */
.quantity-input {
    transition: all 0.2s ease;
}

.quantity-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Button hover animations */
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-danger:hover {
    transform: translateY(-1px) scale(1.02);
}

/* Smooth loading states */
.loading-overlay {
    transition: opacity 0.3s ease;
}

/* Enhanced empty basket state */
.empty-basket-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Basket total animation */
.basket-total {
    transition: all 0.3s ease;
}

.basket-total.updating {
    transform: scale(1.02);
    color: #007bff;
}

/* Square quantity selects styling */
.quantity-select {
    border-radius: 4px !important; /* Square edges */
}

/* Select2 square styling for quantity selects */
.select2-container--default .select2-selection--single {
    border-radius: 4px !important; /* Square edges */
}

.select2-dropdown {
    border-radius: 4px !important; /* Square edges for dropdown */
}

/* Enhanced SweetAlert modal styling */
.swal2-popup {
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    padding: 2rem !important;
}

.swal2-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
}

.swal2-content {
    font-size: 1rem !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
}

.swal2-icon {
    margin: 1rem auto 1.5rem !important;
}

.swal2-icon.swal2-warning {
    border-color: #f39c12 !important;
    color: #f39c12 !important;
}

.swal2-actions {
    gap: 1rem !important;
    margin-top: 1.5rem !important;
}

/* Enhanced button styling for SweetAlert */
.swal2-confirm.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

.swal2-confirm.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

.swal2-cancel.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2) !important;
}

.swal2-cancel.btn-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3) !important;
}

/* SweetAlert backdrop styling */
.swal2-backdrop-show {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px) !important;
}

/* Animation improvements for SweetAlert */
.swal2-show {
    animation: swalSlideInUp 0.3s ease-out !important;
}

@keyframes swalSlideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive improvements for modals */
@media (max-width: 768px) {
    .swal2-popup {
        width: 90% !important;
        padding: 1.5rem !important;
    }

    .swal2-title {
        font-size: 1.25rem !important;
    }

    .swal2-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .swal2-confirm.btn-danger,
    .swal2-cancel.btn-secondary {
        width: 100% !important;
        padding: 0.875rem 1rem !important;
    }
}
/* End of public/assets/css/custom.css */
