/* General Styles */
@font-face {
    font-family: 'montserrat';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
}

body {
    font-family: 'montserrat-bold', sans-serif;
    background-color: rgb(218, 209, 206); /* Matching the soft beige background */
    color: rgb(77, 72, 67);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'montserrat', sans-serif;
    color: rgb(124, 75, 53);
}

/* Navbar Styling */
.navbar {
    background-color: rgb(230, 224, 222) !important;
    border-bottom: 2px solid rgb(175, 126, 103);
}

/* Add shadow to the brand name */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 3px 5px rgba(0, 0, 0, 0.3); /* Soft shadow */
}

/* Add shadow to the navigation links */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Light shadow effect */
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #d2691e; /* Bakery-style warm brown */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

/* Add shadow to the login button text */
.btn-outline-dark {
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.btn-outline-dark:hover {
    background-color: #4f2d15;
    color: white;
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.4); /* White glow effect */
}


/* Header Section */
header {
    background-color: rgb(175, 126, 103);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.header-bg {
    position: relative;
    background: url('images/360_F_194674604_ljLHejiSLubzErvpKQleLptz8RTAspIT.jpg') center/cover no-repeat;
    padding: 100px 20px;
    color: rgb(136, 76, 35);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.header-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for better contrast */
    backdrop-filter: blur(8px); /* Blurs the background */
    z-index: 1;
}

.header-bg h1,
.header-bg p,
.header-bg a {
    position: relative;
    z-index: 2;
}


/* Product Cards */
.bg-secondary {
    background-color: rgb(230, 224, 222) !important;
    color: rgb(77, 72, 67);
    text-align: center;
    padding: 20px;
}

/* Buttons */
.btn-dark {
    background-color: rgb(135, 66, 14) !important;
    border: none;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-dark:hover {
    background-color: rgb(142, 108, 91) !important;
}

/* Testimonials */
.bg-primary {
    background-color: rgb(61, 61, 61) !important;
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: rgb(230, 224, 222);
    padding: 50px 0;
    text-align: center;
    border-top: 2px solid rgb(175, 126, 103);
}

footer button {
    margin: 10px;
}

/* Carousel Styles */
/* Set the carousel to match the original image size */
.custom-carousel-img {
    min-height: 600px;
    max-height: 600px; /* Adjust height as needed */
    width: 80%;
    margin: 0 auto;
    object-fit: cover; /* Ensures the image fits well */
}

/* Style the caption for better visibility */
.custom-caption {
    background: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
    padding: 15px;
    border-radius: 10px;
    bottom: 20px; /* Moves caption up a bit */
    width: 80%; /* Adjust width for readability */
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}

/* Improve caption text visibility */
.custom-caption h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.custom-caption p {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 0;
}

/* Mission & Values Section */
.mission-section {
    background: linear-gradient(135deg, rgba(175, 126, 103, 0.9), rgba(136, 76, 35, 0.9)); /* Soft bakery gradient */
    padding: 80px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Individual Mission Boxes */
.mission-box {
    background: rgba(255, 255, 255, 0.15); /* Light overlay */
    border-radius: 10px;
    padding: 20px;
    color: white;
    transition: all 0.3s ease-in-out;
}

/* Icon Styling */
.mission-box i {
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect */
.mission-box:hover {
    background: rgba(255, 255, 255, 0.25); /* Lighter effect on hover */
    transform: scale(1.05);
}

.mission-box:hover i {
    transform: rotate(10deg);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15); /* Light overlay */
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.25); /* Lighter effect on hover */
    transform: scale(1.05);
}

.stock-image {
    transition: transform 0.3s ease-in-out;
}

.stock-image:hover {
    transform: scale(1.05);
}

/* Product Card Styling */
.product-card {
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease-in-out;
}

.product-card img {
    object-fit: cover;
    max-height: 200px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.3);
}

#popularProductsGrid {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Cart Item Box */
.cart-item {
    background: #f8f9fa; /* Light gray background */
    border: 1px solid #dee2e6; /* Subtle border */
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

/* Cart Item Details */
.cart-item-details {
    flex-grow: 1;
}

/* Large Price Display */
.cart-item-price {
    text-align: right;
    min-width: 120px;
}

/* Price Styling */
.cart-item-price h4 {
    font-size: 1.4rem; /* Large font size */
    font-weight: bold;
}

/* Remove Button Styling */
.remove-from-cart {
    font-size: 0.8rem; /* Small button */
    width: 100px; /* Keep it aligned */
    padding: 3px;
    transition: all 0.3s ease-in-out;
}

.remove-from-cart:hover {
    background-color: #dc3545 !important;
    color: white !important;
    transform: scale(1.05);
}

/* Quantity Button Styling */
.quantity-decrease,
.quantity-increase {
    transition: all 0.2s ease-in-out;
}

.quantity-decrease:hover,
.quantity-increase:hover {
    background-color: #343a40 !important;
    color: white !important;
}

/* Out of Stock Styling */
/* Gray out out-of-stock items */
.out-of-stock {
    opacity: 0.5;
    pointer-events: none; /* Prevent clicking */
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* Add grayscale filter to images */
.grayscale {
    filter: grayscale(100%);
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
}


/* Checkout Form Styling */
#checkoutForm .form-control {
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Larger touch area */
    border: 1px solid #ced4da; /* Subtle border */
    transition: all 0.3s ease-in-out;
    box-shadow: none; /* Remove default focus outline */
}

/* Focus Effect */
#checkoutForm .form-control:focus {
    border-color: #007bff !important; /* Blue highlight */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Glow effect */
}

/* Row Spacing */
#checkoutForm .row {
    margin-bottom: 15px;
}

/* Labels Styling */
#checkoutForm .form-label {
    font-weight: bold;
    color: #333; /* Darker for better readability */
}

/* Submit Button Styling */
#checkoutForm .btn-primary {
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

/* Button Hover Effect */
#checkoutForm .btn-primary:hover {
    background-color: #0056b3;
}

/* Spacing for Cart Items in Checkout */
#cartItemsCheckout {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.testimonial-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    justify-content: flex-start;
}

.testimonial-card-wrapper {
    flex: 0 0 calc(33.333% - 20px); /* Ensures 3 per row */
    scroll-snap-align: start;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

/* Ensure proper scaling on smaller screens */
@media (max-width: 768px) {
    .testimonial-card-wrapper {
        flex: 0 0 80%; /* Makes them scrollable but still large enough */
    }
}


.delicious-products-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    justify-content: flex-start;
}

.product-card-wrapper {
    flex: 0 0 calc(25% - 20px); /* Ensures 4 per row */
    scroll-snap-align: start;
}

/* Adjustments for smaller screens */
@media (max-width: 992px) {
    .product-card-wrapper {
        flex: 0 0 calc(33.333% - 20px); /* 3 per row */
    }
}

@media (max-width: 768px) {
    .product-card-wrapper {
        flex: 0 0 50%; /* 2 per row */
    }
}

@media (max-width: 576px) {
    .product-card-wrapper {
        flex: 0 0 100%; /* 1 per row */
    }
}


/* Ensure the text and image scale properly */
.scalable-text {
    font-size: 2rem;
    line-height: 1.3;
}

.scalable-subtext {
    font-size: 1rem;
}

/* Ensure image scales properly */
.scalable-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .row.align-items-center {
        flex-wrap: wrap;
    }

    /* Reduce text size */
    .scalable-text {
        font-size: 1.5rem;
    }

    .scalable-subtext {
        font-size: 0.9rem;
    }

    /* Reduce image size */
    .scalable-image {
        max-width: 100%;
        height: auto;
    }

    /* Adjust column layout for small screens */
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    /* Further scale down for very small screens */
    .scalable-text {
        font-size: 1.3rem;
    }

    .scalable-subtext {
        font-size: 0.85rem;
    }

    .scalable-image {
        max-width: 100%;
    }
}

