/* Base Styles */
:root {
    --primary-color: #352626;
    --secondary-color: #8b5e3c;
    --accent-color: #ff9f1c;
    --text-color: #333;
    --light-color: #fff;
    --dark-color: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
/* Update the navbar styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: transparent;
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: all 0.3s ease;
    
   
}

/* Add a class for scroll effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Update the nav links for better visibility */
.nav-links a,h3 {
    color: var(--light-color) !important;
    font-weight: 600 !important;
}

.navbar.scrolled .nav-links a , h3 {
    color: var(--text-color) !important;
}

/* Update username color for visibility */
.username {
    color: var(--light-color) !important;
}

.navbar.scrolled .username {
    color:black !important;
}

.nav-brand {
    width: 120px;
    height: auto;
    display: flex;
    align-items: center;
}

.nav-brand img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}


.nav-brand img:hover {
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.active {
    color: var(--accent-color) !important;
}
.navbar.scrolled a.active {
    color: var(--accent-color) !important;
}
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    color: var(--primary-color);
    font-weight: 500;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--light-color);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}
.cart-popup {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-popup.active {
    display: block;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-price {
    font-weight: bold;
}

.cart-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-weight: bold;
    text-align: right;
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5em;
}

.empty-cart {
    text-align: center;
    padding: 20px;
    color: #666;
}
.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.buy-now-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.buy-now-btn:hover {
    background: #ff8c00;
}

.login-btn, .logout-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.login-btn {
    background:#E9695C;
    color: var(--light-color);
}

.logout-btn {
    background:rgb(172, 37, 37);
    color: var(--light-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../Assets/hero.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: var(--light-color);
    padding-top: 70px;
    padding-left: 10%;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-left: 0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    margin-left: 0;
}
.hero-text {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: flex-start; /* Align text to the left */
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--light-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
}

/* Featured Products */
.featured {
    padding: 5rem 5%;
    background: #f9f9f9;
}
/*  Best Sellers */
.best-sellers {
    padding: 5rem 5%;
    background: #f9f9f9;
}

.best-sellers h2 {
    text-align: center;
    color:#4a3429;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.featured h2 {
    text-align: center;
    color:#4a3429;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f9f9f9;
}

.product-card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

.product-card p {
    padding: 0 1rem;
    color: var(--text-color);
}

.product-card .price {
    display: block;
    padding: 1rem;
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
}

.add-to-cart {
    width: 100%;
    padding: 1rem;
    background:#28a745; 
    color: var(--light-color);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background:#218838;
}

/* About Section */
.about {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
}
.feedback-section {
    padding: 5rem 5%;
    background: #f8f9fa;
}

.feedback-section h2 {
    text-align: center;
    color:#4a3429;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feedback-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-card {
    background: var(--light-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-10px);
}

.customer-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.customer-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.customer-info {
    text-align: center;
}

.customer-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.customer-info p {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .feedback-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .feedback-card {
        padding: 1.5rem;
    }

    .feedback-section h2 {
        font-size: 2rem;
    }
}


/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.footer-section img {
    width: 180px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-section img:hover {
    transform: scale(1.05);
}

.footer-section p {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    font-style: italic;
    max-width: 300px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer-section img {
        width: 150px;
    }
    
    .footer-section p {
        font-size: 1rem;
    }
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section a {
    color: var(--light-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #4a3429;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-auth {
        gap: 0.5rem;
    }

    .username {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}


  
