:root {
    --primary-color: #e67e22;
    --secondary-color: #f39c12;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Main content area should take up available space */
body {
    display: flex;
    flex-direction: column;
}

/* Make the content area flexible */
main {
    flex: 1;  /* This makes sure the content area takes all available space */
}

.hero-section .carousel-caption {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.4); /* subtle dark overlay for readability */
    bottom: 20%; /* lift caption a bit for better visual */
  }
  
  @media (max-width: 768px) {
    .hero-section .carousel-caption h1 {
      font-size: 1.8rem; /* smaller heading */
    }
    
    .hero-section .carousel-caption p.lead {
      font-size: 1rem; /* smaller subtitle */
    }
  
    .hero-section .carousel-caption a.btn {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }

    .hero-section .overlay {
        position: absolute;
        top: 20%;
        left: 0;
        width: 100%;
        height: 60%;
        background: rgba(0,0,0,0.2); /* subtle dark overlay */
      }

      .hero-img {
        height: 250px; /* smaller height on mobile */
      }
  }

  .hero-img {
    height: 600px; /* fixed height for all images */
    object-fit: cover; /* cover the container, cropping overflow */
    width: 100%; /* full width */
  }
  

/* Product Cards */
.product-card {
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
    height: 230px;
    width: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-image[loading="lazy"] {
    opacity: 0;
}

.product-image:loaded {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.hero-section .container {
    position: relative;
    z-index: 2; /* makes sure it's above the overlay */
}

.carousel-caption.overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    padding: 20px; /* Space around the text */
    border-radius: 10px; /* Optional rounded corners for a softer effect */
    max-width: 80%; /* Optional - adjust to control the width of the text box */
    left: 50%;
    transform: translateX(-50%); /* Center the text horizontally */
}

/* Styling for carousel caption content */
.carousel-caption h1,
.carousel-caption p {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Optional - adds shadow to text for more contrast */
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 30px;
    }
}

.dropdown-item.active {
    background-color: #007bff;
    color: white;
}

/* Container for toast notifications */
.toast-container {
    z-index: 1050;  /* Make sure it's on top of other elements */
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px;
    max-width: 350px;  /* Max width for the toast notifications */
}

/* Individual Toast */
.toast {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 16px;
    opacity: 0;
    transform: translateX(100%); /* Toast starts from the right */
    transition: opacity 0.5s ease, transform 0.5s ease;  /* Animation for showing and hiding */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Show the toast by making it visible and move it into place */
.toast.show {
    opacity: 1;
    transform: translateX(0); /* Toast moves to its final position */
}

/* Toast Styles for Different Types */
.toast.success {
    background-color: #28a745;  /* Green for success */
}

.toast.error {
    background-color: #dc3545;  /* Red for error */
}

.toast.info {
    background-color: #17a2b8;  /* Blue for info */
}

.toast.warning {
    background-color: #ffc107;  /* Yellow for warning */
}

/* Optional: For close button */
.toast .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}



/* Styling for the Contact Us Page */
.contact {
    padding: 20px 0;
}

.contact .heading h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    padding: 0;

}

.contact .heading h2 span {
    color: #007bff;
}

.contact .heading p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #999999;
    margin: 20px 0 60px;
    padding: 0;
}

.contact .form-control {
    padding: 10px;
    font-size: 13px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border: 0;
    border-radius: 10px;
}

.contact button.btn {
    padding: 10px;
    border-radius: 10px;
    font-size: 15px;
    /* background: #ff9100; */
    color: #ffffff;
}

.contact .title h3 {
    font-size: 18px;
    font-weight: 600;
}

.contact .title p {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    line-height: 1.6;
    margin: 0 0 40px;
}

.contact .content .info {
    margin-top: 30px;
}
.contact .content .info i {
    font-size: 30px;
    padding: 0;
    margin: 0;
    color: #02434b;
    margin-right: 20px;
    text-align: center;
    width: 20px;
}
.contact .content .info h4 {
    font-size: 13px;
    line-height: 1.4;
}

.contact .content .info h4 span {
    font-size: 13px;
    font-weight: 300;
    color: #999999;
}

/* Style for the "Track Order" button */
.track-order-btn {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    padding: 10px 20px; /* Padding for button */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold; /* Bold text */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

/* Hover effect */
.track-order-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    text-decoration: none; /* Remove underline on hover */
}

/* Active state when button is clicked */
.track-order-btn:active {
    background-color: #004085; /* Even darker blue when active */
    transform: scale(0.98); /* Slightly shrink when clicked */
}

/* Responsive behavior for small screens */
@media (max-width: 576px) {
    .track-order-btn {
        width: 100%; /* Make the button full-width on smaller screens */
        text-align: center; /* Center the text */
    }
}


/* Footer Styles */
footer .col-lg-4 .card {
    background-color: #343a40;  /* Dark background for contrast */
    color: #fff;
    border-radius: 8px;         /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
}

footer .col-lg-3 .card-body {
    padding: 1.25rem;  /* Padding to make the content more spacious */
}

footer .col-lg-3 .card-body address {
    font-size: 0.875rem;
}

footer .col-lg-3 .card-body i {
    font-size: 1.2rem;   /* Increased icon size */
}

footer .col-lg-3 .card-body i.text-primary {
    color: #1e90ff;  /* Light blue color for icons */
}

footer .col-lg-3 .card-body h6 {
    font-weight: 600;
    color: #1e90ff;   /* Light blue for heading */
}

footer .col-lg-3 .card-body .small {
    font-size: 0.875rem;
    color: #dcdcdc;    /* Lighter color for the small text */
}

footer .col-lg-3 .card-body p i {
    color: #1e90ff;  /* Blue clock icon for opening hours */
}

footer .col-lg-3 .card-body p:hover {
    background-color: rgba(30, 144, 255, 0.1); /* Light hover effect for opening hours */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Active Link Styling */
.navbar-nav .nav-item .nav-link.active {
    font-weight: bold;
    color: #007bff !important; /* Change color to match your theme */
}

/* Adjust padding/margins for navbar items */
.navbar-nav .nav-item {
    margin-right: 20px;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0;
}
