/* ===== BASE STYLES & VARIABLES ===== */
:root {
    /*--primary-color: #6A8E7F; /* Serene Green/Blue */
    --primary-color: #6f7767; /*  */
    --secondary-color: #A7C4B5; /* Lighter shade */
    --accent-color: #f4e2c98; /* Warm Beige/Gold accent */
    --text-color: #333333;
    --light-text-color: #ffffff;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa; /* Off-white background */
    --border-color: #e0e0e0;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    --header-height: 70px;
    --base-padding: 60px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    /*scroll-padding-top: var(--header-height); /* Offset for fixed header */
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

.section-padding {
    padding: var(--base-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

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

.bg-primary-light {
     background-color: #eaf0ed; /* Very light version of primary */
}

.text-center {
    text-align: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: #5a7a6a; /* Darker shade */
    color: var(--light-text-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

.learn-more {
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.learn-more:hover {
     text-decoration: underline;
     color: #b89d7c; /* Darker accent */
}

/* ===== Header ===== */
#header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color var(--transition-speed) ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo:hover {
    color: var(--primary-color); /* Keep logo color consistent */
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after { /* Add 'active' class via JS on scroll */
    width: 100%;
}

.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Header Scroll Effect */
#header.scrolled {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* ===== Hero Section ===== */
.hero {
    background-image: url('images/website_hero_maca.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* Full viewport height */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    position: relative;
    margin-top: calc(-1 * var(--header-height)); /* Pull up behind fixed header */
    padding-top: var(--header-height);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Center-align text */
    height: 100%; /* Ensure it takes the full height of the hero section */
    padding: 20px; /* Add some padding for spacing */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    margin-bottom: 20px; /* Add spacing below the paragraph */
    font-size: 1.2rem; /* Adjust font size */
    line-height: 1.5; /* Improve readability */
}

.hero-content a.btn {
    display: flex; /* Use flexbox for the button */
    align-items: center; /* Center the SVG and text vertically */
    justify-content: center; /* Center the content horizontally */
    gap: 8px; /* Add spacing between the SVG and text */
    padding: 12px 20px; /* Adjust padding for better button size */
    font-size: 1rem; /* Adjust font size */
    text-decoration: none; /* Remove underline */
}

/* ===== Intro Section ===== */
.intro-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 350px; /* Adjust as needed */
    height: 350px;
    object-fit: cover;
}

/* ===== Services Overview ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    text-align: center;
    padding: 30px 20px; 
    background-color: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.service-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 15px auto;
    /* Style icons appropriately */
}

.service-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* ===== Testimonials Snippet / Full ===== */
.testimonial-grid, .testimonials-full-grid {
    display: grid;
    gap: 30px;
}

.testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 30px;
}

.testimonials-full-grid {
     grid-template-columns: 1fr; /* Stack full testimonials */
}

.testimonial-item, .testimonial-full-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-left: 5px solid var(--accent-color);
    border-radius: 5px;
    font-style: italic;
}

.testimonial-full-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
     background-color: var(--bg-color);
     border: 1px solid var(--border-color);
     border-left: none;
     border-top: 5px solid var(--accent-color);
}

.testimonial-full-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}


.testimonial-item cite, .testimonial-full-item cite {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-style: normal;
    color: var(--primary-color);
}

/* ===== Final CTA ===== */
.final-cta-section h2 {
    color: var(--primary-color);
}
.final-cta-section p {
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Projetos (Services Detail) ===== */
.service-detail {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.service-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


.service-detail h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.service-gallery {
    flex: 1; /* Adjust flex basis as needed */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.service-gallery img {
    height: auto;
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3; /* Maintain aspect ratio */
    object-fit: cover;
}


.service-text {
    flex: 1.2; /* Adjust flex basis as needed */
}

.service-text h3{
    color: var(--primary-color);
    font-size: 1.8rem;
}

.service-text h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.service-text ul, .service-text ol {
    margin-left: 20px;
    padding-left: 10px;
}
.service-text li {
    margin-bottom: 8px;
}


/* ===== Sobre Section ===== */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 0 0 40%; /* Fixed width for image container */
}
.about-image img {
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

.about-text {
    flex: 1;
}
.about-text h3 {
    color: var(--secondary-color);
    margin-top: -10px; /* Adjust positioning relative to H2 */
}

.about-text h4 {
     margin-top: 25px;
     color: var(--primary-color);
}

.about-text ul {
    list-style: disc;
    margin-left: 20px;
}



/* ===== Contact Section ===== */
.contact-container {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.contact-text {
    flex: 1;
}

.contact-info p {
    margin-bottom: 10px;
}
.contact-info strong {
    color: var(--primary-color);
}

/* ===== Contact Section - WhatsApp Focus Styling ===== */

.contact-container-whatsapp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* You might want text on left, other info on right */
}

.contact-text {
    flex: 1.5; /* Give more space to the main interaction area */
}

.whatsapp-fields {
    margin: 30px 0; /* Space around the input fields */
    max-width: 450px; /* Limit width */
}

/* Use existing form-group styles if they work, or redefine */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
/* Style the new inputs */
#whatsapp-name,
#whatsapp-service {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}
#whatsapp-name:focus,
#whatsapp-service:focus {
     outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(106, 142, 127, 0.3);
}

.whatsapp-button-container {
    margin-top: 30px;
}

/* Style the WhatsApp button */
.btn-whatsapp {
    display: flex;
    background-color: #25D366; /* Official WhatsApp Green */
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    display: inline-flex; /* Align icon and text */
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: none; /* Remove border if using background color */
}

.btn-whatsapp a {
    display: flex; /* Ensure the link behaves as a flex container */
    align-items: center; /* Vertically align the SVG and text */
    gap: 8px; /* Add spacing between the SVG and text */
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit the button's text color */
}

.btn-whatsapp:hover {
    background-color: #1DAE54; /* Darker green */
    color: white;
     transform: translateY(-2px); /* Keep subtle lift */
}

/* Styling for the alternative contact info section */
.contact-info-alt {
    flex: 1;
    padding-left: 30px; /* Add some separation */
    border-left: 1px solid var(--border-color); /* Optional separator line */
}

.contact-info-alt h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-alt p {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Ensure social icons in this section are styled */
.contact-info-alt .social-icons {
    justify-content: flex-start; /* Align left */
    margin-top: 10px;
}

/* Responsive adjustments for WhatsApp layout */
@media (max-width: 992px) {
    .contact-container-whatsapp {
        flex-direction: column;
        gap: 30px;
    }
    .contact-info-alt {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color); /* Separator on top */
        padding-top: 30px;
        text-align: center; /* Center align text */
    }
     .whatsapp-fields {
        max-width: none; /* Allow full width */
    }
     .contact-info-alt .social-icons {
        justify-content: center; /* Center icons */
    }
}

/*
.social-icons a {
    margin-right: 10px;
    display: inline-block;
    opacity: 0.8;
}
.social-icons a:hover {
    opacity: 1;
    transform: scale(1.1);
}
 
.social-icons img {
    width: 32px; 
    height: 32px;
}

*/




.contact-form {
    flex: 1.2;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(106, 142, 127, 0.3);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 100px;
}

.form-status {
    margin-top: 15px;
    font-weight: bold;
}
.form-status.success { color: green; }
.form-status.error { color: red; }


/* ===== Social Icons Styling (General) ===== */
.social-icons {
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center icons horizontally */
    align-items: center; /* Center icons vertically */
    gap: 15px; /* Space between icons */
    margin-top: 15px; /* Space above the icons */
}

.social-icons a {
    display: inline-flex; /* Crucial for aligning SVG inside */
    justify-content: center;
    align-items: center;
    width: 42px; /* Icon clickable area width */
    height: 42px; /* Icon clickable area height */
    border-radius: 50%; /* Make it circular */
    background-color: var(--bg-light); /* Light background */
    color: var(--primary-color); /* Icon color (uses SVG fill="currentColor") */
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border: 1px solid var(--border-color); /* Optional subtle border */
}

.social-icons a svg {
    width: 22px; /* Control actual icon size */
    height: 22px;
    /* transition needed if SVG fill changes on hover too */
    transition: fill 0.3s ease-in-out;
}

/* --- Hover Effect --- */
.social-icons a:hover {
    background-color: var(--primary-color); /* Primary color background on hover */
    color: var(--light-text-color); /* White icon on hover */
    transform: translateY(-3px) scale(1.05); /* Lift and slightly enlarge */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    border-color: var(--primary-color);
}

/* ===== Footer Social Icons Styling Overrides ===== */
/* Specific styles if footer background is dark */
#footer .social-icons a {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
    color: var(--bg-light); /* White icon */
    box-shadow: none; /* Remove shadow if footer is dark */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#footer .social-icons a:hover {
    background-color: var(--accent-color); /* Use accent color on hover in footer */
    color: var(--text-color); /* Dark icon on hover */
    transform: translateY(-3px) scale(1.05); /* Keep the lift effect */
    border-color: var(--accent-color);
}

/* ===== Footer ===== */
#footer {
    background-color: var(--text-color);
    color: var(--bg-light);
    padding: 30px 0;
    text-align: center;
    margin-top: var(--base-padding);
}

.footer-container {
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 15px;
}
.footer-links a {
    color: var(--bg-light);
    margin: 0 10px;
    opacity: 0.8;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--background-color);
}

#footer .social-icons {
    margin-top: 15px;
    margin-bottom: 15px;
}
#footer .social-icons a img {
    width: 24px;
    height: 24px;
     filter: brightness(0) invert(1); /* Make icons white */
}

#footer p {
    margin-bottom: 5px;
    opacity: 0.8;
}


/* ===== Animations - Scroll Triggered ===== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.fade-in {
    transform: translateY(20px); /* Start slightly down */
}

.animate-on-scroll.slide-up {
     transform: translateY(50px); /* Start more down */
}

.animate-on-scroll.slide-up-delay {
     transform: translateY(50px);
     transition-delay: 0.2s;
}


/* Delays for staggered effect */
.animate-on-scroll.delay-1 { transition-delay: 0.2s; }
.animate-on-scroll.delay-2 { transition-delay: 0.4s; }
.animate-on-scroll.delay-3 { transition-delay: 0.6s; }


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


/* ===== Responsiveness ===== */

/* Tablet */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }

    .intro-container, .about-container, .contact-container {
        flex-direction: column;
        text-align: center;
    }
    .intro-image, .about-image {
        margin: 0 auto 30px auto; /* Center image when stacked */
         width: 300px;
         height: 300px;
    }
    .about-image { flex-basis: auto;} /* Reset fixed width */

    .service-content {
        flex-direction: column;
    }
     .service-gallery { margin-bottom: 20px; }

}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --base-padding: 40px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    .hero h1 { font-size: 2.5rem; }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%; /* Start off-screen */
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left var(--transition-speed) ease-in-out;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        z-index: 999; /* Below header but above content */
    }

    .main-nav.active {
        left: 0; /* Slide in */
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger */
        z-index: 1001; /* Ensure it's clickable above overlay */
    }

     .services-grid {
        grid-template-columns: 1fr; /* Stack service items */
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem;}
}

/* ===== Projetos (Services Detail) - Stacking Gallery - Scroll/Hover Triggered ===== */

/* Ensure service-content layout still provides space */
.service-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    /* overflow: hidden; */ /* Optional: if text overlaps during animation */
}

/* Container for the stacking images */
.stacking-gallery {
    flex: 0 0 45%;
    max-width: 450px;
    min-height: 300px; /* Adjust based on image aspect ratio */
    position: relative;
    margin: 0 auto 20px auto;
    cursor: default; /* Change cursor if hover triggers animation only */
}

/* Individual images - INITIAL STATE (Hidden) */
.stacking-gallery img {
    width: 85%; /* Adjust as needed */
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--bg-color);

    position: absolute;
    top: 0;
    /* Start off-screen to the right and faded out */
    opacity: 0;
    transform: translateX(0px);
    /* Define FINAL left positions */
    /* These 'left' values determine the final stacked layout */
    transition: opacity 1.5s ease-out,
                transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                left 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Define FINAL resting positions and stacking order */
.stacking-gallery img:nth-child(1) {
    left: 0px;  /* Furthest left */
    z-index: 1;
}
.stacking-gallery img:nth-child(2) {
    left: 20px; /* Middle overlap - adjust px value for more/less overlap */
    z-index: 2;
}
.stacking-gallery img:nth-child(3) {
    left: 40px; /* Rightmost overlap - adjust px value */
    z-index: 3;
}

/* --- VISIBLE STATE (Triggered by JS adding .image-visible class) --- */
.stacking-gallery img.image-visible {
    opacity: 1;
    transform: translateX(20px); /* Slide into final position */
}

/* --- Responsive adjustments --- */
/* Keep the previous responsive rules for .service-content, .stacking-gallery */
@media (max-width: 992px) {
    .service-content {
        flex-direction: column;
        align-items: center;
    }
    .stacking-gallery {
        flex-basis: auto;
        width: 80%;
        max-width: 400px;
        min-height: 250px;
        margin-bottom: 30px;
    }
    .service-text {
        text-align: center;
    }

    .service-text li{
        text-align: left;
    }

     /* Adjust final overlap on smaller screens if needed */
    .stacking-gallery img:nth-child(2) { left: 30px; }
    .stacking-gallery img:nth-child(3) { left: 60px; }
}

@media (max-width: 480px) {
     .stacking-gallery {
         width: 95%;
         min-height: 200px;
     }
      .stacking-gallery img:nth-child(2) { left: 25px; }
      .stacking-gallery img:nth-child(3) { left: 50px; }
}

/* ===== Product Display ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2rem;
    color: #555;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-button {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr; /* Stack products on small screens */
    }
}