/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Palette Variables */
:root {
    --bg-primary: #F7F7F5; /* soft off-white */
    --bg-secondary: #EFEFEA; /* very light neutral */
    --bg-card: #FFFFFF; /* pure white */
    --bg-nav: #2A2A2A; /* deep charcoal */
    --text-primary: #1A1A1A; /* near-black */
    --text-secondary: #555555; /* neutral gray */
    --text-muted: #777777; /* light gray */
    --accent-primary: #1E5A44; /* deep forest green */
    --accent-secondary: #C49A3A; /* warm gold */
    --button-primary: #1E5A44; /* deep forest green */
    --button-primary-hover: #256B52; /* brighter green */
    --button-secondary: #FFFFFF; /* white */
    --button-secondary-border: #1E5A44; /* green border */
    --button-text: #FFFFFF; /* white */
    --shadow: rgba(0, 0, 0, 0.1); /* subtle shadow */
    --border: #E0E0E0; /* light border */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
    min-height: 80px;
    padding-bottom: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem 1rem 140px; /* Left padding increased to 140px to prevent overlap with enlarged logo */
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Ensures nav content stays above logo */
    z-index: 1;
}

.logo {
    position: absolute; /* Positions logo absolutely within header */
    left: 2rem; /* Aligns logo to left edge */
    bottom: -10px; /* Positions logo 10px below header bottom for hanging effect */
    z-index: 10; /* Ensures logo appears above other header elements */
}

.logo img {
    height: 80px;
    width: auto;
    border: 4px solid var(--bg-nav);
    border-radius: 10px;
    background: var(--bg-nav);
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05); /* Slight scale on hover for interactivity */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--bg-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--bg-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 90vh;
    padding: 140px 2rem 6rem;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    margin-bottom: 6rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 90, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-image {
    margin-bottom: 3rem;
}

.hero-image img {
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px var(--shadow);
}

.hero .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px var(--shadow);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

label[for="product-selector"] {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

#product-selector {
    width: 100%;
    max-width: 450px;
    padding: 1.5rem;
    font-size: 1.2rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 4px 16px var(--shadow);
    margin-bottom: 3rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#product-selector:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(30, 90, 68, 0.2);
}

.add-to-cart {
    background: var(--button-primary);
    color: var(--button-text);
    border: none;
    padding: 2rem 5rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(30, 90, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.add-to-cart:hover {
    background: var(--button-primary-hover);
    box-shadow: 0 12px 40px rgba(30, 90, 68, 0.4);
    transform: translateY(-3px);
}

.add-to-cart:hover::before {
    left: 100%;
}

/* Gallery Section */
.gallery {
    padding: 8rem 0;
    background: var(--bg-primary);
    margin: 6rem 0;
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--shadow);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 90, 68, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.gallery h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px var(--shadow);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.gallery-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow);
    flex: 1;
    max-width: 600px;
}

#main-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

#main-image:hover {
    transform: scale(1.03);
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.thumbnails img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 6px 20px var(--shadow);
    position: relative;
}

.thumbnails img:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px var(--shadow);
}

.thumbnails img.active {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(30, 90, 68, 0.3);
}

/* Modal for gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--bg-primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Section Styles */
section {
    padding: 8rem 0;
    background: var(--bg-secondary);
    border-radius: 24px;
    margin: 6rem 0;
    box-shadow: 0 8px 32px var(--shadow);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 90, 68, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px var(--shadow);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

section p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

section ul {
    list-style: none;
    padding-left: 0;
}

section li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

section i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

/* Why Need Section */
.why-need {
    background: var(--bg-primary);
}

/* Features Section */
.features ul {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Included Section */
.included ul {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* How Works Section */
.how-works {
    background: var(--bg-primary);
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 340px;
    margin: 2rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px var(--shadow);
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 90, 68, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.step:hover::before {
    opacity: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--accent-primary);
    color: var(--button-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 2.5rem;
    box-shadow: 0 6px 20px rgba(30, 90, 68, 0.3);
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* About Section */
.about {
    background: var(--bg-primary);
}

/* Shipping Section */
.shipping {
    background: var(--bg-primary);
}

.shipping p {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq {
    background: var(--bg-primary);
}

.faq-item {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.faq-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Final CTA Section */
.final-cta {
    background: var(--bg-card);
    color: var(--text-primary);
    text-align: center;
    border-radius: 24px;
    margin: 6rem 0;
    box-shadow: 0 12px 40px var(--shadow);
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 90, 68, 0.03) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 24px;
}

.final-cta h2 {
    color: var(--text-primary);
    font-size: 3.2rem;
    font-weight: 600;
}

.final-cta p {
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.final-cta .price {
    color: var(--accent-primary);
    font-size: 3rem;
    margin: 3rem 0;
    font-weight: 700;
}

.final-cta .add-to-cart {
    background: var(--button-primary);
    margin-top: 3rem;
    box-shadow: 0 8px 32px rgba(30, 90, 68, 0.3);
}

.final-cta .add-to-cart:hover {
    box-shadow: 0 12px 40px rgba(30, 90, 68, 0.4);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--bg-nav);
    color: var(--bg-primary);
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--border);
    box-shadow: inset 0 10px 36px var(--shadow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #f5f5f0;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #d0d0d0;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #daa520;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f4c430;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #3d2a1a;
    padding-top: 1rem;
    color: #d0d0d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px; /* Increased to account for taller header */
    }

    .hero-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .price {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    header {
        min-height: 60px; /* Reduced header height for mobile */
        padding-bottom: 10px; /* Less overhang */
    }

    .logo {
        bottom: -5px; /* Less hanging */
    }

    .logo img {
        height: 50px; /* Smaller logo on mobile */
    }

    nav {
        padding: 1rem 2rem 1rem 80px; /* Adjusted left padding for smaller logo */
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .gallery-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .thumbnails {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .thumbnails img {
        width: 80px;
        height: 80px;
    }

    section {
        margin: 2rem 0;
        padding: 3rem 0;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem 1rem 1rem 70px; /* Further reduced left padding */
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .price {
        font-size: 1.8rem;
    }

    .logo img {
        height: 45px; /* Even smaller for very small screens */
    }

    section {
        padding: 2.5rem 0;
    }
}
