

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 /* header styles */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4CAF50; 
    padding: 13px 22px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
}

header a {
    color: white;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    border-radius: 50%;
    /* margin-right: 10px; */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav ul li {
    margin: 0 10px;
}

.main-nav ul li a {
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-nav ul li a:hover {
    background-color: #FFEB3B; 
    color: #4CAF50; 
}

.search-cart-container {
    display: flex;
    align-items: center;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
}

#searchInput {
    border: none;
    padding: 5px;
    outline: none;
}

#searchBtn {
    background: none;
    border: none;
    color: #4CAF50; 
    cursor: pointer;
    padding: 0 5px;
}

.cart-btn, .user-btn {
    margin-left: 10px;
    color: white;
    font-size: 24px;
    position: relative;
}

.cart-btn .cart-count {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -10px;
    right: -10px;
}

.cart-btn:hover, .user-btn:hover {
    color: #FFEB3B; 
}

.toggle-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none; 
}


/* Hero Section */
.hero-section {
    background: url('/images/hero.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(55, 47, 47);
    text-align: center;
}

.hero-section .hero-content h1 {
    font-size: 46px;
    margin: 0;
}

.hero-section .hero-content p {
    font-size: 23px;
    margin: 10px 0 20px 0;
}

.hero-section .hero-btn {
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
 
/* main section  */

.new-arrivals {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
}
.new-arrivals h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
.slider-container {
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.product-item {
    min-width: 100%;
    box-sizing: border-box;
}
.product-item img {
    width: 100%;
}
.product-item h3 {
    font-size: 1.2em;
    margin: 10px 0;
}
.product-item p {
    font-size: 1em;
    color: #888;
}
.product-item button {
    background: #3f403c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: background 0.3s;
}
.product-item button:hover {
    background: #433e3c;
}

.featured-products {
    padding: 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.featured-products h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

.product-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    max-width: 200px;
    border-radius: 8px 8px 0 0;
}

.product-item h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.product-item p {
    font-size: 1em;
    color: #888;
}

/* Button styling */
.buy-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 1em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #0056b3;
}
/* 
newsletter styling */

.newsletter {
    background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
    
}

.newsletter h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.newsletter p {
    color: #666;
    margin-bottom: 20px;
}

.newsletter form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.newsletter input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    width: 250px;
}

.newsletter button {
    padding: 10px 20px;
    background-color: #39bd40;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.newsletter button:hover {
    background-color: #45a049;
}




footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.footer-section {
    margin: 20px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #FFEB3B;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: white;
    font-size: 24px;
}

.social-icons a:hover {
    color: #FFEB3B;
}

/* Responsive Design for Mobile */

@media (max-width: 768px) {
    .main-nav {
        
        display: none; 
    }
 
    .toggle-button {
        display: block; 
    }

    .logo img {
      margin-right: 5px; 
      margin-left: 1px;
      
        
    }
    .search-container{
        padding-right: 5px;
    }
   

    .nav-for-mobile {
        position: fixed;
        z-index: 5;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: #333; 
        transform: translateX(100%);
        transition: transform 500ms ease;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 20px 20px 20px;
    }
    

    .nav-for-mobile.active {
        transform: translateX(0);
    }

    .nav-for-mobile ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .nav-for-mobile li {
        width: 100%;
        margin: 10px 0;
    }

    .nav-for-mobile li a {
        width: 100%;
        display: block;
        padding: 15px;
        border-bottom: 2px solid white;
        color: white; 
        text-decoration: none; 
    }

    .nav-for-mobile li a:hover {
        color: #FFEB3B; 
    }

    .sign-out-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 15px;
        border-top: 2px solid white;
        margin-top: auto;
        color: white; 
        text-decoration: none; 
    }

    .sign-out-btn i {
        margin-right: 10px;
    }

    .sign-out-btn:hover {
        color: #FFEB3B; 
    }
    
}



@media (min-width: 769px) {
    .nav-for-mobile {
        display: none;
    }

    .main-nav {
        display: flex; 
    }
}

/* Cart Modal Styles */
.cart-modal {
    display: none; 
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); 
}

.cart-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.cart-items li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cart-total {
    font-size: 18px;
    margin-bottom: 20px;
}

.checkout-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
}

.checkout-btn:hover {
    background-color: #45a049;
}

/* Responsive design */
@media (max-width: 600px) {
    .product-item {
        padding: 10px;
    }

    .buy-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}