:root {
    --primary-color: #4CAF50;
    --secondary-color: #FFC107;
    --text-color: #333;
    --background-color: #f5f5f5;
    --white: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMzguNzkzTDEuNDEzIDQwSDR2LTQuMDk3TDQuMDk3IDM2SDIuOTAzTDBDMCAzNy4wOTcgMCAzOC43OTMgMCAzOC43OTN6TTM2IDQuMDk3VjBIMzguNTg3TDM2IDEuNDEzVjQuMDk3ek00MCAxLjQxM0wzOC41ODcgMEgzNlY0LjA5N0w0MCAwVjEuNDEzek0wIDQuMDk3VjBIMi45MDNMMCAxLjQxM1Y0LjA5N3pNMCAzNi4wOTdWMzguNzkzTDEuNDEzIDQwSDQuMDk3TDBDMCAzNi4wOTcgMCAzNi4wOTd6TTM2IDM4Ljc5M0wzOC41ODcgNDBIMzkuOTk5VjM2LjA5N0wzNiAzOC43OTN6TTQwIDM2LjA5N1Y0MEgzOC41ODdMMzYgMzguNzkzVjM2LjA5N3pNMCAwVjEuNDEzTDEuNDEzIDBIMHoiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvZz48L2c+PC9zdmc='); /* Subtle pattern */
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

.hero {
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax effect */
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

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

.hero-content {
    position: relative; /* Ensure content is above overlay */
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem; /* Slightly more padding */
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    margin-top: 1.5rem; /* More space */
    transition: all 0.3s ease; /* Smooth transitions for all properties */
    border: 2px solid var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.2); /* Subtle green shadow */
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px); /* Slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 128, 0, 0.3); /* Enhanced shadow on hover */
}

/* ... other styles ... */

.add-to-cart {
    background: linear-gradient(45deg, var(--secondary-color), #ffda44); /* Subtle gradient */
    color: var(--text-color);
    border: none;
    padding: 0.6rem 1.2rem; /* Adjusted padding */
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.add-to-cart:hover {
    background: linear-gradient(45deg, #ffda44, var(--secondary-color)); /* Reverse gradient on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.contact {
    padding: 4rem 5%;
    background-color: var(--background-color); /* Use a slightly different background */
}

#order-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 1rem 5%;
}

footer a {
    color: var(--white); /* Set link color to white */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color); /* Highlight on hover */
}

/* Cart Display Styles */
.cart-display {
    border: 1px solid #ddd;
    border-radius: 8px; /* Slightly more rounded */
    padding: 1rem;
    min-height: 100px;
    background-color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #eee;
}

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

.cart-item span {
    font-weight: 500;
    color: var(--text-color);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 50%; /* Circular buttons */
    width: 28px; /* Fixed width */
    height: 28px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.quantity-btn:hover {
    background-color: #e0e0e0;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.remove-item {
    background-color: #ff6b6b; /* Softer red */
    color: var(--white);
    border: none;
    border-radius: 50%; /* Circular button */
    width: 28px; /* Fixed width */
    height: 28px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.remove-item:hover {
    background-color: #e63946; /* Darker red on hover */
    transform: scale(1.1); /* Slight pop effect */
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about {
        flex-direction: column;
    }

    .about-content,
    .about-image {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* About Us Section */
.about {
    padding: 4rem 5%;
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: var(--white);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 600px; /* Set a max height for the image container */
    overflow: hidden; /* Hide overflow if image is still too large */
}

.about-image img {
    max-width: 100%;
    height: 100%; /* Make image fill the container height */
    width: auto; /* Allow width to adjust to maintain aspect ratio */
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: contain; /* Ensure the entire image is visible */
}

.products {
    padding: 4rem 5%;
    background-color: #d4edda; /* A deeper, soft green */
}

h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    margin-bottom: 1rem;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart {
    background: linear-gradient(45deg, var(--secondary-color), #ffda44); /* Subtle gradient */
    color: var(--text-color);
    border: none;
    padding: 0.6rem 1.2rem; /* Adjusted padding */
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.add-to-cart:hover {
    background: linear-gradient(45deg, #ffda44, var(--secondary-color)); /* Reverse gradient on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.order-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.3);
}

.qrcode-container {
    display: none; /* Hidden by default */
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.qrcode-container p {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.qrcode-container #qrcode {
    display: inline-block; /* To center the canvas */
    padding: 10px;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
