body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f5f0;
    overflow-x: hidden;
    box-sizing: border-box;
}

body * {
    box-sizing: border-box;
}

:root {
    --primary-color: #6F4E37; /* Coffee Brown */
    --secondary-color: #A0522D; /* Sienna */
    --accent-color: #8B4513; /* Saddle Brown */
    --light-brown: #FDF7E4; /* Light Creamy Brown */
    --text-dark: #333333;
    --text-light: #f8f5f0;
    --cyan-accent: #20B2AA; /* Light Sea Green for FAQ border */
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Global Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.bg-light-brown {
    background-color: var(--light-brown);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.btn-outline-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.btn:focus, .btn:active {
    box-shadow: none !important;
}

.btn.w-100 {
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

/* Header */
.header {
    background-color: var(--primary-color);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

.navbar-brand {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--light-brown);
}

.navbar-brand .logo-img {
    height: 40px;
    width: auto;
}

.site-name {
    font-size: 1.8rem;
    color: var(--text-light);
}

.navbar-toggler {
    border: none;
    color: var(--text-light);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.offcanvas {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: var(--text-light);
}

.btn-close {
    filter: invert(1);
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--light-brown);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.cart-icon-nav .nav-link {
    display: flex;
    align-items: center;
}

.cart-icon-nav .nav-link i {
    font-size: 1.4rem;
}

.cart-icon-nav .cart-count {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    padding: 0.2em 0.5em;
    margin-left: 0.5rem;
    min-width: 22px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-image: url(images/uploads/coffee-beans-hero_3.jpg); /* Use a macro for the background image */
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--text-light);
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-section > .container-fluid {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-illustration-container {
    padding: 2rem;
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(3deg);
    transition: transform 0.5s ease;
}

.hero-illustration:hover {
    transform: rotate(0deg) scale(1.02);
}

/* About Section */
.about-section {
    background-color: var(--light-brown);
}

.process-item h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.process-percentage {
    font-weight: 600;
    color: var(--secondary-color);
}

.progress-bar-custom {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--cyan-accent);
    width: 0%;
    border-radius: 5px;
    transition: width 1.5s ease-out;
}

.about-illustration {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-color);
}

/* Services Section */
.services-section {
    background-color: var(--light-brown);
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card .service-img {
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.service-card p {
    color: var(--text-dark);
}

/* Benefits Section */
.benefits-section {
    background-color: #fff;
}

.benefits-list li {
    background-color: var(--light-brown);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.benefits-list h4 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Products Section */
.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.view-product-btn {
    text-decoration: none;
}

/* Stats Section */
.stats-section {
    background-image: linear-gradient(rgba(139, 69, 19, 0.8), rgba(139, 69, 19, 0.8)), url(images/uploads/coffee-beans-stats.png); /* Saddle Brown overlay */
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}

.stats-section .section-title {
    color: var(--text-light);
}

.stats-section .section-title::after {
    background-color: var(--light-brown);
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    color: var(--light-brown);
    margin-bottom: 1rem;
}

.stat-number {
    color: var(--light-brown);
    font-weight: 700;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Testimonials Section */
.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.testimonial-card h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-card small {
    color: #888;
}

.testimonial-text {
    font-style: italic;
    color: #555;
}

/* FAQ Section */
.faq-section {
    background-color: #fff;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--cyan-accent);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(32, 178, 170, 0.1);
    overflow: hidden;
}

.faq-item .accordion-button {
    background-color: var(--light-brown);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: none;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.faq-item .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.faq-item .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-item .accordion-button::after {
    font-family: 'remixicon' !important;
    content: '\ea4e'; /* ri-arrow-down-s-line */
    background-image: none;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid var(--cyan-accent);
}

.faq-item .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
    color: var(--text-light);
    border-color: var(--text-light);
}

.faq-item .accordion-body {
    padding: 1.25rem;
    background-color: #fff;
    color: #555;
}

/* Footer Section */
.footer-section {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-logo-link {
    display: block;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.thin-text {
    font-weight: 300;
    color: #777;
}

.spaced-text {
    letter-spacing: 0.5px;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Cart Modal */
#cartModal .modal-dialog, #productAddedModal .modal-dialog, #productModal .modal-dialog, #checkoutModal .modal-dialog, #orderConfirmationModal .modal-dialog, #cookieSettingsModal .modal-dialog {
    z-index: 1050;
}

#cookieSettingsModal .modal-dialog {
    z-index: 1060; /* Higher z-index for cookie settings modal */
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

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

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-price {
    font-weight: 500;
    color: var(--secondary-color);
}

.cart-item-quantity select {
    width: 60px;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #c82333;
}

.cart-subtotal {
    font-weight: 500;
    color: var(--primary-color);
}

#cart-total-price, #checkout-total-price {
    color: var(--primary-color);
    font-weight: 700;
}

/* Product Details Modal */
#productModal .modal-body img {
    max-height: 350px;
    object-fit: cover;
    width: 100%;
}

#productModal .modal-body h3 {
    color: var(--primary-color);
    font-weight: 700;
}

#productModal .modal-body p {
    color: #666;
}

#productModal .modal-body h4 {
    color: var(--secondary-color);
    font-weight: 600;
}

#productModal .modal-body ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

#productModal .modal-body ul li i {
    color: var(--cyan-accent);
    margin-right: 0.5rem;
}

/* Checkout Form */
#checkout-form label {
    font-weight: 500;
    color: var(--primary-color);
}

#checkout-form .form-control, #checkout-form .form-select {
    border-color: #ccc;
}

#checkout-form .form-control:focus, #checkout-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(160, 82, 45, 0.25);
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1040;
    background-color: var(--primary-color) !important;
    color: var(--text-light) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
    color: var(--text-light) !important;
}

.cookie-banner .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cookie-banner .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.cookie-banner .btn-outline-light {
    color: var(--text-light);
    border-color: var(--text-light);
}

.cookie-banner .btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Cookie Settings Modal */
#cookieSettingsModal .modal-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-bottom: none;
}

#cookieSettingsModal .modal-title {
    color: var(--text-light);
}

#cookieSettingsModal .btn-close {
    filter: invert(1);
}

#cookieSettingsModal .form-check-label {
    color: var(--primary-color);
}

#cookieSettingsModal .form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

#cookieSettingsModal .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(160, 82, 45, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .navbar-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-nav .nav-item {
        flex-shrink: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand .logo-img {
        height: 35px;
    }
    .site-name {
        font-size: 1.5rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .hero-illustration {
        transform: none;
    }
    .section-title {
        font-size: 2rem;
    }
    .product-description {
        -webkit-line-clamp: 3;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner .d-flex.gap-2 {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner .btn {
        flex-grow: 1;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand .logo-img {
        height: 30px;
    }
    .site-name {
        font-size: 1.25rem;
    }
    .hero-section {
        text-align: center;
        padding-top: 100px;
        min-height: auto;
    }
    .hero-content {
        padding: 2rem 1rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-illustration-container {
        padding: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .benefits-list li {
        padding: 1rem;
    }
    .benefit-icon {
        font-size: 1.5rem;
    }
    .stat-icon {
        font-size: 2.5rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .testimonial-card .avatar {
        width: 50px;
        height: 50px;
    }
    .faq-item .accordion-button {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    .footer-logo {
        height: 40px;
    }
    .footer-link {
        font-size: 0.9rem;
    }
    .cart-item {
        flex-wrap: wrap;
    }
    .cart-item-details {
        width: calc(100% - 80px - 1rem);
        margin-bottom: 0.5rem;
    }
    .cart-item-quantity {
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }
    .cart-item-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
    .cookie-banner p {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.15rem;
    }
    .site-name {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 1024px) {
    .site-name {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .hero-content h1 {
        font-size: 3.8rem;
    }
}
/* Styles for the main container */
.consentTunnelGrid {
    padding-top: 40px; /* Top padding for the content area */
    padding-left: 30px; /* Left padding for the content area */
    padding-right: 30px; /* Right padding for the content area */
    margin-bottom: 40px; /* Space below the grid container */
}

/* Heading 1 styles */
.consentTunnelGrid h1 {
    font-size: 2.2rem; /* Moderate font size for main heading */
    font-weight: 700; /* Bold font weight */
    line-height: 1.2; /* Line height for readability */
    margin-top: 2.5rem; /* Top margin for spacing */
    margin-bottom: 1.2rem; /* Bottom margin for spacing */
}

/* Heading 2 styles */
.consentTunnelGrid h2 {
    font-size: 1.8rem; /* Moderate font size for sub-heading */
    font-weight: 700; /* Bold font weight */
    line-height: 1.25; /* Line height for readability */
    margin-top: 2rem; /* Top margin for spacing */
    margin-bottom: 1rem; /* Bottom margin for spacing */
}

/* Heading 3 styles */
.consentTunnelGrid h3 {
    font-size: 1.5rem; /* Moderate font size for tertiary heading */
    font-weight: 700; /* Bold font weight */
    line-height: 1.3; /* Line height for readability */
    margin-top: 1.8rem; /* Top margin for spacing */
    margin-bottom: 0.9rem; /* Bottom margin for spacing */
}

/* Heading 4 styles */
.consentTunnelGrid h4 {
    font-size: 1.25rem; /* Smaller font size for sub-sub-heading */
    font-weight: 700; /* Bold font weight */
    line-height: 1.35; /* Line height for readability */
    margin-top: 1.5rem; /* Top margin for spacing */
    margin-bottom: 0.8rem; /* Bottom margin for spacing */
}

/* Heading 5 styles */
.consentTunnelGrid h5 {
    font-size: 1.1rem; /* Smallest heading font size */
    font-weight: 700; /* Bold font weight */
    line-height: 1.4; /* Line height for readability */
    margin-top: 1.2rem; /* Top margin for spacing */
    margin-bottom: 0.7rem; /* Bottom margin for spacing */
}

/* Paragraph styles */
.consentTunnelGrid p {
    font-size: 1.125rem; /* Standard paragraph font size (approx. 18px if root is 16px) */
    line-height: 1.7; /* Good line spacing for readability */
    margin-bottom: 1.5rem; /* Space between paragraphs */
}

/* Unordered list styles */
.consentTunnelGrid ul {
    list-style-type: disc; /* Default bullet points */
    padding-left: 25px; /* Indent for list markers */
    margin-top: 1.5rem; /* Space above the list */
    margin-bottom: 1.5rem; /* Space below the list */
}

/* List item styles */
.consentTunnelGrid li {
    font-size: 1.125rem; /* Font size consistent with paragraphs */
    line-height: 1.6; /* Good line spacing for list items */
    margin-bottom: 0.8rem; /* Space between list items */
}
