@charset "ISO-8859-1";

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFD166;
    --light: #F7F9FC;
    --dark: #2D3047;
    --text: #333333;
    --white: #FFFFFF;
    --gray: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.tagline {
    font-style: italic;
    margin-left: 10px;
    font-size: 16px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    order: 2;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Header Controls (Language & Cart) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    order: 3;
}

/* Language/Currency Selector Styling */
.selector-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 5px 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.selector-dropdown:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.selector-dropdown i {
    color: var(--white);
    margin-right: 8px;
    font-size: 16px;
}

#language-currency-select {
    background: transparent;
    border: none;
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding: 5px 25px 5px 5px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 15px;
    min-width: 160px;
}

#language-currency-select:focus {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

/* Improved dropdown option styling */
#language-currency-select option {
    background: var(--white); 
    color: var(--dark);
    padding: 12px;
    font-size: 14px;
}

#language-currency-select option:hover,
#language-currency-select option:focus,
#language-currency-select option:checked {
    color: var(--white) !important;
    font-weight: 500;
}

/* Cart Icon with item count */
.cart-icon {
    position: relative;
    background: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}



.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Adjust based on your logo's proportions */
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--white); /* Changed from var(--primary) to white */
}

.tagline {
    font-style: italic;
    color: var(--accent); /* Changed from var(--dark) to accent color */
    font-size: 14px;
    margin-top: -5px;
}

/* Hero Section - Back to original but better */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1518373714866-3f1478910cc0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.categories {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-img {
    height: 200px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark);
}

.category-info p {
    color: var(--text);
    margin-bottom: 20px;
}

/* Featured Products */
.featured {
    background: var(--gray);
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 50px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

/* About Section */
.about {
    padding: 80px 0;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-links {
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .header-controls {
        order: 2;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
}


/* Additional styles for new sections */
        .product-category {
            padding: 60px 0;
        }
        
        .product-category:nth-child(even) {
            background-color: var(--gray);
        }
        
        .category-header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .category-icon {
            font-size: 48px;
            color: var(--primary);
            margin-bottom: 15px;
        }
        
        /* Dropdown menu styles */
        .dropdown {
            position: relative;
            display: inline-block;
        }
        
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: var(--white);
            min-width: 200px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .dropdown-content a {
            color: var(--dark);
            padding: 12px 16px;
            text-decoration: none;
            display: block;
        }
        
        .dropdown-content a:hover {
            background-color: var(--light);
        }
        
        .dropdown:hover .dropdown-content {
            display: block;
        }
        
        /* Categories grid - 4 columns in one row */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Responsive design for smaller screens */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* Ensure category cards are equal height */
.category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-info p {
    flex-grow: 1;
}


    /* Update the category grid to display 4 columns */
    .category-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        margin: 0 auto;
    }
    
    /* Responsive adjustments */
    @media (max-width: 1024px) {
        .category-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .category-grid {
            grid-template-columns: 1fr;
        }
    }


    /* Special grid for age categories with 3 items */
    .age-category-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin: 0 auto;
        max-width: 1000px; /* Slightly narrower to look better with 3 items */
    }
    
    /* Center the age category section header */
    .category-header {
        text-align: center;
        margin-bottom: 40px;
    }
    
    /* Responsive adjustments */
    @media (max-width: 1024px) {
        .age-category-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .age-category-grid {
            grid-template-columns: 1fr;
            max-width: 400px;
        }
    }
    
    
      /* Improved login/register buttons */
        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .auth-btn {
            display: flex;
            align-items: center;
            padding: 8px 16px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            font-size: 14px;
        }

        .auth-login {
            background: rgba(255, 255, 255, 0.2);
            color: var(--white);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .auth-login:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .auth-register {
            background: var(--accent);
            color: var(--dark);
        }

        .auth-register:hover {
            background: var(--white);
            transform: translateY(-2px);
        }

        .auth-btn i {
            margin-right: 6px;
        }
        
        
         .register-container {
            max-width: 500px;
            margin: 40px auto;
            padding: 30px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .register-title {
            text-align: center;
            margin-bottom: 25px;
            color: #333;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }

        .btn-register {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 12px 20px;
            width: 100%;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .btn-register:hover {
            background-color: #ff5252;
        }

        .login-link {
            text-align: center;
            margin-top: 20px;
        }

        .login-link a {
            color: var(--primary);
            text-decoration: none;
        }
        
        
        /* Login Dropdown Styles */
.login-dropdown {
    width: 300px;
    padding: 20px;
    right: 0;
    left: auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form .form-group label {
    font-size: 14px;
    margin-bottom: 5px;
}

.login-form .form-group input {
    padding: 10px 12px;
    font-size: 14px;
}

.btn-login {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-login:hover {
    background-color: #ff5252;
}

.login-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.login-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    text-align: center;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Make sure the dropdown appears on hover */
.dropdown:hover .login-dropdown {
    display: block;
}


