/* Banner Carousel Section */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 550px; /* Adjust height as needed */
    overflow: hidden;
    margin-bottom: 40px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area, cropping if necessary */
    object-position: center; /* Centers the image within the area */
}


/* Categories Section */
.categories-section {
    padding: 50px 0;
    text-align: center;
    background-color: #fff;
    margin-bottom: 40px;
}
.categories-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.category-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}
.category-item:hover {
    transform: translateY(-5px);
}
.category-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.category-item p {
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1em;
}

/* Featured Products Section */
.featured-products-section {
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
}
.featured-products-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Significantly wider columns */
    gap: 40px; /* Increased gap */
    margin-top: 40px; /* Increased margin */
    justify-content: center; /* Center items in the grid */
}
.product-item {
    background-color: #fff;
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* Even more prominent shadow */
    padding: 30px; /* Increased padding */
    text-align: center; /* Center content within item */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flexbox for internal layout */
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribute space */
}
.product-item:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* Stronger shadow on hover */
}
.product-item img {
    width: 100%;
    height: 250px; /* Significantly increased image height */
    object-fit: cover;
    border-radius: 10px; /* More rounded image corners */
    margin-bottom: 25px; /* Increased margin */
    box-shadow: 0 3px 8px rgba(0,0,0,0.15); /* Small shadow for images */
}
.product-item h4 {
    font-family: 'Playfair Display', serif; /* Use Playfair for titles */
    font-size: 1.8em; /* Significantly larger title */
    margin-bottom: 12px;
    color: var(--primary-color);
    text-align: center;
}
.product-item p {
    font-size: 1.05em; /* Slightly larger description */
    color: #555; /* Darker grey for better readability */
    margin-bottom: 18px; /* Increased margin */
    text-align: center;
    flex-grow: 1; /* Allow description to take available space */
}
.product-item .price {
    font-size: 1.6em; /* Significantly larger price */
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: auto; /* Push price to the bottom */
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between icon and text */
    background-color: var(--secondary-color); /* Use secondary color for button */
    color: var(--primary-color); /* Dark text for contrast */
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px; /* Adjust margin as needed */
    text-decoration: none; /* Ensure no underline if it becomes a link */
}

.add-to-cart-btn:hover {
    background-color: #e0c26b; /* Slightly darker on hover */
    transform: translateY(-2px);
}

.add-to-cart-btn img {
    width: 20px; /* Smaller icon size within the button */
    height: 20px;
    margin-bottom: 0; /* Reset margin from product-item img */
    box-shadow: none; /* Remove shadow from product-item img */
}

/* Reviews Carousel Section */
.reviews-section {
    background-color: var(--primary-color); /* Reverted to original color */
    color: white;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
}
.reviews-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: white;
}
.review-carousel {
    display: flex;
    overflow: hidden; /* Hide scrollbar */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding: 20px 0;
}
.review-item {
    flex: 0 0 300px; /* Fixed width for each review */
    margin: 0 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.review-item:hover {
    transform: scale(1.08); /* Significantly increased scale on hover */
}
.review-item p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.95em;
}
.review-item .author {
    font-weight: bold;
    font-size: 1em;
}

/* Pitch Section */
.pitch-section {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
    margin-bottom: 40px;
}
.pitch-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.pitch-section p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Partners Section */
.partners-section {
    padding: 50px 0;
    text-align: center;
    background-color: #f0f0f0; /* Slightly darker light grey for better contrast */
    margin-bottom: 40px;
}
.partners-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
}
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.partner-logos img {
    height: 100px; /* Increased size for partner logos */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* What We Are Good At Section */
.what-we-are-good-at-section {
    padding: 50px 0;
    text-align: center;
    background-color: #fff;
    margin-bottom: 40px;
}

.what-we-are-good-at-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 4em; /* Further increased font size for better impact */
    margin-bottom: 50px; /* Keep margin for separation */
    color: var(--primary-color);
}

.what-we-are-good-at-image-wrapper {
    display: block; /* Use block to allow margin: auto for centering */
    max-width: 600px; /* Increased maximum width for the wrapper to make the image larger */
    width: fit-content; /* Allow wrapper to shrink to content size */
    margin: 0 auto; /* Center the wrapper itself */
    overflow: hidden; /* Hide any overflow from the wrapper */
}

.what-we-are-good-at-image-wrapper img {
    width: 100%; /* Image takes full width of its constrained wrapper */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure it behaves as a block element */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Media Queries for Home Page Sections */
@media (max-width: 768px) {
    .pitch-section h3 {
        font-size: 2em;
    }
    .pitch-section p {
        font-size: 1em;
    }
    .partners-section h3 {
        font-size: 2em;
    }
}

/* Animation for elements appearing on scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
