/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.heading {
    font-size: 30px;
}

/* Header Styles */
.header {
    padding: 0.5rem 5%;
    background-color: #FFFDE5;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.header img {
    height: 70px;
    width: 100px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* Navigation */
.nav-container {
    display: flex;
    padding: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    user-select: none;
}

.nav-list a:hover {
    color: #4f5329;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFDE5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    top: 100%;
    left: 0;
    z-index: 1001;
    border-radius: 0 0 8px 8px;
}

.dropdown.show .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid #eee;
    color: #333;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #147B81;
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('https://images.pexels.com/photos/20653873/pexels-photo-20653873/free-photo-of-sofas-in-large-living-room.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-top: 70px;
    /* Account for fixed header */
}

.overlay {
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

.collection {
    font-size: 30px;
    font-weight: bold;
}

/* Shop Now Button */
.shop-now-btn {
    padding: 0.50rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    background-color: #4f5329;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
}

.shop-now-btn:hover {
    background-color: #3c401f;
}

/* Featured Categories */
.featured-categories {
    padding: 4rem 5%;
    text-align: center;
}

.featured-categories h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #4f5329;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-image {
    height: 300px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
}

.category-image.living {
    background-image: url('../images//living.jpeg');
}

.category-image.furnishing {
    background-image: url('../images/furniture.jpeg');
}

.category-image.others {
    background-image: url('../images//other.jpeg');
}

/* About Teaser */
.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    background-color: #FFFDE5;
}

.about-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #4f5329;
}

.about-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.about-image {
    background-image: url('../images/dinning2.jpg');
    background-size: cover;
    background-position: center;
}

.learn-more-btn {
    padding: 0.60rem 1.5rem;
    font-size: 1.1rem;
    background-color: transparent;
    color: #4f5329;
    border: 2px solid #4f5329;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    width: fit-content;
}

.learn-more-btn:hover {
    background-color: #4f5329;
    color: white;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Forces exactly 3 columns */
    gap: 3rem;
    /* Equal gap between all items */
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
    /* Add some internal padding if needed */
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #d1d7b3;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #555;
}
/* Your existing responsive styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        padding: 1rem 0;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        position: absolute;
        top: 70px;
        right: 0;
        background: #fff;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1002;
    }

    .nav-container.open {
        max-height: 1000px;
        padding: 1rem 2rem;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }

    .dropdown-content {
        position: static;
        background-color: #f9f9f9;
        width: 100%;
        padding-left: 1rem;
        box-shadow: none;
        margin-top: 0.5rem;
        border-radius: 0 0 8px 8px;
        font-family: Arial, Helvetica, sans-serif;
    }
        .dropdown-content {
        position: static;
        background-color: #f9f9f9;
        width: 100%;
        padding-left: 0; /* Remove left padding for full-width effect */
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
        font-family: Arial, Helvetica, sans-serif;
        display: none; /* Start hidden */
        transition: all 0.3s ease;
    }

    .dropdown.show .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 1rem; /* Match desktop padding */
        display: block;
        border-bottom: 1px solid #eee;
        color: #333;
        transition: all 0.3s ease;
        margin-left: 0; /* Remove any indentation */
        width: 100%; /* Full width */
    }

    .dropdown-content a:hover {
        background-color: #147B81;
        color: white;
        padding-left: 1.5rem; /* Slight indent on hover for visual feedback */
    }

    /* Make sure the hover effect is visible on touch devices */
    @media (hover: hover) {
        .dropdown-content a:hover {
            background-color: #147B81;
            color: white;
        }
    }

    /* Active state for touch devices */
    .dropdown-content a:active {
        background-color: #147B81;
        color: white;
    }

    /* Remove the border from last dropdown item */
    .dropdown-content a:last-child {
        border-bottom: none;
    }

    /* Dropdown toggle indicator */
    .dropdown-toggle::after {
      
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }


    .overlay h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-teaser {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }
}


/* Product Category Pages */
.product-category {
    padding-top: 70px;
    /* Account for fixed header */
}

.category-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.category-hero.living {
    background-image: url('https://images.pexels.com/photos/1643383/pexels-photo-1643383.jpeg?auto=compress&cs=tinysrgb&w=600');
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: multiply;
}

.category-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: Arial, Helvetica, sans-serif;
}

.category-hero p {
    font-size: 1rem;
    max-width: 800px;
    font-family: Arial, Helvetica, sans-serif;
}

.product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    align-items: center;
    padding: 4rem 5%;
}

.product-section:nth-child(even) {
    background-color: #f9f9f9;
}

.product-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 2rem;
}

.product-image.sofa {
    background-image: url('../images//sofa4.jpg');
}

.product-image.recliner {
    background-image: url('../images/recliner1.jpg');
}

.product-image.curtains {
    background-image: url('../images/curtain2.jpg');
}

.product-image.dining {
    background-image: url('../images//dinning1.jpg');
}

.product-image.accent-chair {
    background-image: url('../images//chair1.jpg');
}

.product-image.beds {
    background-image: url('../images/bed4.jpeg');
}


.product-info {
    padding: 1rem;
}

.product-info h2 {
    font-size: 1.7rem;
    color: #4f5329;
    margin-bottom: 1.5rem;
    font-family: Arial, Helvetica, sans-serif;
}

.product-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
    .product-section {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 300px;
        margin: 1rem 0;
    }

    .category-hero h1 {
        font-size: 2rem;
    }

    .category-hero p {
        font-size: 1.2rem;
    }
}

/* Gallery Styles */
.gallery-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-title {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-size: 2.5rem;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
/* Add this to your CSS */
.dropdown-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.dropdown.show .dropdown-content {
    max-height: 500px; /* Adjust based on your content */
    opacity: 1;
}