* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    transition: background-color 0.5s ease;
}
/* Dark Mode Styling */
body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}
body.dark-mode header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
body.dark-mode .logo h1 {
    color: #f5f5f5;
}
body.dark-mode .logo span {
    color: #7b96ff;
}
body.dark-mode .menu a {
    color: #e0e0e0;
}
body.dark-mode .menu a.active {
    color: #7b96ff;
}
body.dark-mode .menu-toggle {
    color: #f5f5f5;
}
body.dark-mode .cart-count {
    background-color: #7b96ff;
}
body.dark-mode nav {
    background-color: #1a1a1a;
}
body.dark-mode .categories {
    background-color: #202020;
}
body.dark-mode .categories h2 {
    background-color: #b8860b;
    color: #f5f5f5;
    border-color: #f5f5f5;
}
body.dark-mode .category-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
body.dark-mode .featured-products h2 {
    color: #f5f5f5;
}
body.dark-mode .product-card {
    background-color: #2a2a2a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
body.dark-mode .product-title {
    color: #e0e0e0;
}
body.dark-mode .product-price {
    color: #7b96ff;
}
body.dark-mode .add-to-cart {
    background-color: #505050;
}
body.dark-mode .add-to-cart:hover {
    background-color: #7b96ff;
}
body.dark-mode #change-theme {
    background-color: #505050;
}
body.dark-mode #change-theme:hover {
    background-color: #7b96ff;
}
body.dark-mode .newsletter {
        background: black ; 
        padding: 60px 5%;
        text-align: center;
}
body.dark-mode .newsletter p {
    color: #b0b0b0;
}
body.dark-mode input[type="text"],
body.dark-mode input[type="email"] {
    background-color: #333;
    border-color: #555;
    color: #f5f5f5;
}
body.dark-mode .error-message {
    color: #ff6b6b;
}
body.dark-mode .subscribe-btn {
    background-color: red;
}
body.dark-mode .subscribe-btn:hover {
    background-color: #5c7cfa;
}
body.dark-mode footer {
    background-color: #1a1a1a;
}
body.dark-mode .footer-section a {
    color: #b0b0b0;
}
body.dark-mode .footer-section a:hover {
    color: #7b96ff;
}
body.dark-mode .footer-bottom {
    border-top-color: #333;
}
body.dark-mode .product-card:hover {
    box-shadow: 0 10px 20px rgba(123, 150, 255, 0.2) !important;
}
body.dark-mode .category-card h3 {
    background-color: rgba(26, 26, 26, 0.9);
}
body.dark-mode .product-card:hover {
    box-shadow: 0 10px 20px rgba(123, 150, 255, 0.2) !important;
}
/* Light Mode Styling */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}
.logo h1 {
    font-size: 26px;
    font-weight: 600;
    color: #333;
}
.logo span {
    color: #5c7cfa;
}
.menu {
    display: flex;
    list-style: none;
}
.menu li {
    margin: 0 15px;
}
.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.menu a.active {
    color: #5c7cfa;
}
.cart {
    display: flex;
    align-items: center;
    margin-right: 15px;
}
.cart-icon {
    font-size: 20px;
    margin-right: 5px;
}
.cart-count {
    background-color: #5c7cfa;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.hero {
    background-image: linear-gradient(90deg,rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}
.hero-content h2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    font-size: 36px;
    margin-bottom: 15px;
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}
.shop-now {
    background-color: #090979;
    color: white;
    border: 2px dashed white;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.shop-now:hover {
    background-color: #4263eb;
}
.categories {
    padding: 60px 5%;
    text-align: center;
    background-color: #f0f3ff;
}
.categories h2 {
    background-color: goldenrod;
    color: white;
    border: 2px solid black;
    padding: 12px 30px;
    font-size: 20px;
    border-radius: 25px;
    margin-bottom: 40px;
    color: #333;
}
.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.category-card:hover {
    transform: translateY(-10px);
}
.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    margin: 0;
    text-align: center;
}
.featured-products {
    padding: 60px 5%;
    text-align: center;
}
.featured-products h2 {
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
}
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.product-card:hover {
    transform: translateY(-10px);
}
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-info {
    padding: 15px;
}
.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}
.product-price {
    font-weight: bold;
    color: #5c7cfa;
    margin-bottom: 15px;
}
.add-to-cart {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.add-to-cart:hover {
    background-color: #5c7cfa;
    transform: scale(1.05);
}
.theme-toggle {
    text-align: center;
    margin: 20px 0;
}
#change-theme {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
#change-theme:hover {
    background-color: #5c7cfa;
}
.newsletter {
    background: #1FA2FF; 
    background: -webkit-linear-gradient(to right, #A6FFCB, #12D8FA, #1FA2FF);
    background: linear-gradient(to right, #A6FFCB, #12D8FA, #1FA2FF);
    padding: 60px 5%;
    text-align: center;
}
.newsletter h2 {
    margin-bottom: 15px;
}
.newsletter p {
    margin-bottom: 30px;
    color: #666;
}
#newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.error-message {
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}
.subscribe-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.subscribe-btn:hover {
    background-color: #4263eb;
}
footer {
    background-color: #333;
    color: white;
    padding: 50px 5% 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}
.footer-section ul {
    list-style: none;
}
.footer-section li {
    margin-bottom: 10px;
}
.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section a:hover {
    color: #5c7cfa;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}
.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}
.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.linkedin {
    background-color: #0077B5;
}

.telegram {
    background-color: #229ED9;
}

.website {
    background-color: #00BCD4;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}
/* Responsive Design */
    /* CSS for Mobile Menu */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }   
    .logo {
        flex: 0 0 auto;
    }   
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
    }
    .mobile-controls {
        display: flex;
        align-items: center;
        order: 3;
    }    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }   
    nav.active {
        right: 0;
    }    
    .menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 20px;
    }    
    .menu li {
        margin: 15px 0;
        text-align: center;
    }    
    /* Add overlay when menu is active */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }   
    .overlay.active {
        display: block;
    }    
    .hero-content h2 {
        font-size: 28px;
    }    
    .hero-content p {
        font-size: 16px;
    }    
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
     .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
    }
}
@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .featured-products,
    .newsletter {
        padding: 40px 5%;
    }
}