* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header-top {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.user-actions a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.user-actions a:hover {
    color: #3498db;
}

.header-main {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 24px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.cart-icon a {
    position: relative;
    color: #2c3e50;
    font-size: 24px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.nav-menu {
    background-color: #34495e;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    background-color: #2c3e50;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #c0392b;
}

/* Products Section */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.btn-add-cart, .btn-details {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-add-cart {
    background-color: #3498db;
    color: white;
}

.btn-add-cart:hover {
    background-color: #2980b9;
}

.btn-details {
    background-color: #ecf0f1;
    color: #333;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-details:hover {
    background-color: #bdc3c7;
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card a {
    text-decoration: none;
    color: #333;
}

.category-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 20px;
}

.blog-meta {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

/* Newsletter Section */
.newsletter {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.newsletter p {
    margin-bottom: 30px;
}

#newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

#newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
}

#newsletter-form button {
    padding: 15px 30px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #1a252f;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer a:hover {
    color: #3498db;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
    }
    
    .search-bar {
        margin: 15px 0;
        max-width: 100%;
    }
    
    .nav-menu ul {
        flex-direction: column;
    }
    
    .products-grid,
    .blog-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background-color: #27ae60;
}

.notification.error {
    background-color: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.current-language {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: background 0.3s;
}

.current-language:hover {
    background: rgba(255,255,255,0.2);
}

.current-language img {
    width: 20px;
    margin-right: 8px;
}

.current-language i {
    margin-left: 8px;
    font-size: 12px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    min-width: 180px;
    list-style: none;
    padding: 5px 0;
    margin: 5px 0 0;
}

.language-switcher:hover .language-dropdown {
    display: block;
}

.language-dropdown li {
    margin: 0;
    padding: 0;
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
    font-size: 14px;
}

.language-dropdown li a:hover {
    background: #f5f5f5;
}

.language-dropdown img {
    width: 20px;
    margin-right: 10px;
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.welcome-text {
    margin-right: 15px;
    color: #ecf0f1;
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 10px;
    }
    
    .current-language span {
        display: none;
    }
    
    .language-dropdown {
        right: -10px;
    }
}