:root {
    --primary-color: #eec0c6;
    /* Pastel Pink */
    --secondary-color: #96e6a1;
    /* Pastel Green */
    --accent-color: #d4f0f0;
    /* Pastel Blue */
    --text-color: #5d5d5d;
    /* Soft Gray */
    --bg-color: #fdfbf7;
    /* Off-white/Cream */
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 80px;
    /* Space for fixed footer */
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    color: #8e7f7f;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--bg-color) 100%);
    padding: 100px 0;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #7a9e9f;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #888;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(238, 192, 198, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(238, 192, 198, 0.6);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

/* Grids */
.product-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Cards */
.product-card,
.category-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    position: relative;
    display: block;
    text-decoration: none;
}

.product-card:hover,
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.category-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.category-info {
    padding: 25px;
    text-align: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.category-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
}

.category-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.category-info .btn-small {
    display: inline-block;
    margin-top: 5px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-card:hover .btn-small {
    background: #e0a8af;
    transform: translateX(5px);
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Admin Panel */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.admin-dashboard {
    padding: 50px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-table th,
.product-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-table th {
    background-color: var(--accent-color);
    color: #555;
}

.btn-danger {
    background-color: #ff8fa3;
    padding: 8px 15px;
    font-size: 0.9rem;
    color: white;
    border-radius: 5px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Navbar Cart Badge */
.nav-cart-count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: bold;
}

/* Global Language Switcher */
.lang-switcher {
    position: absolute;
    top: -15px;
    right: 0;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 101;
}

.lang-switcher a {
    color: #888;
    margin: 0 5px;
    font-size: 0.85rem;
    text-decoration: none;
}

.lang-switcher a.active-lang {
    color: var(--primary-color);
    text-decoration: underline;
}

.lang-switcher a:hover {
    color: var(--primary-color);
}

/* User Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 10px;
    right: 0;
    padding: 10px 0;
    text-align: left;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #555;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: 0.2s;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 25px;
    /* Slide effect */
}

/* Fixed Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer p {
    margin: 0 !important;
    /* Override inline styles */
    font-size: 0.9rem;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icon:hover {
    color: #e0a8af;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-bottom: 120px;
        /* More space for stacked footer on mobile */
    }

    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 0;
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        border-radius: 0 0 15px 15px;
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .product-table {
        display: block;
        overflow-x: auto;
    }

    .category-image {
        height: 200px;
    }

    header {
        position: relative;
    }

    .lang-switcher {
        right: 20px;
    }

    /* Mobile Dropdown */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #fdfbf7;
        padding: 2px 6px;
        font-size: 0.8rem;
        margin-left: 5px;
        vertical-align: middle;
        font-weight: bold;
    }

    /* Global Language Switcher */
    .lang-switcher {
        position: absolute;
        top: -15px;
        right: 0;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.9);
        padding: 5px 10px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        z-index: 101;
    }

    .lang-switcher a {
        color: #888;
        margin: 0 5px;
        font-size: 0.85rem;
        text-decoration: none;
    }

    .lang-switcher a.active-lang {
        color: var(--primary-color);
        text-decoration: underline;
    }

    .lang-switcher a:hover {
        color: var(--primary-color);
    }

    /* User Dropdown Menu */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #fff;
        min-width: 220px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-radius: 10px;
        right: 0;
        padding: 10px 0;
        text-align: left;
    }

    .dropdown-content.show {
        display: block;
    }

    .dropdown-content a {
        color: #555;
        padding: 12px 20px;
        text-decoration: none;
        display: block;
        transition: 0.2s;
        font-size: 0.95rem;
    }

    .dropdown-content a:hover {
        background-color: #f9f9f9;
        color: var(--primary-color);
        padding-left: 25px;
        /* Slide effect */
    }

    /* Fixed Footer */
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 15px 0;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    footer p {
        margin: 0 !important;
        /* Override inline styles */
        font-size: 0.9rem;
    }

    .social-media {
        display: flex;
        gap: 15px;
    }

    .social-icon {
        color: var(--primary-color);
        font-size: 1.2rem;
        transition: 0.3s;
    }

    .social-icon:hover {
        color: #e0a8af;
        transform: translateY(-2px);
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        body {
            padding-bottom: 120px;
            /* More space for stacked footer on mobile */
        }

        footer .container {
            flex-direction: column;
            text-align: center;
            gap: 10px;
        }

        .menu-toggle .bar {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px auto;
            transition: all 0.3s ease-in-out;
            background-color: var(--primary-color);
        }

        nav {
            flex-direction: row;
            justify-content: space-between;
            padding: 10px 0;
            position: relative;
        }

        .nav-links {
            display: none;
            flex-direction: column;
            width: 100%;
            position: absolute;
            top: 60px;
            left: 0;
            background-color: var(--white);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
            padding: 20px;
            border-radius: 0 0 15px 15px;
            z-index: 99;
        }

        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            margin: 10px 0;
            text-align: center;
        }

        .hero h1 {
            font-size: 2rem;
        }

        .product-table {
            display: block;
            overflow-x: auto;
        }

        .category-image {
            height: 200px;
        }

        header {
            position: relative;
        }

        .lang-switcher {
            right: 20px;
        }

        /* Mobile Dropdown */
        .dropdown-content {
            position: static;
            box-shadow: none;
            background-color: #fdfbf7;
            /* Match bg */
            width: 100%;
            padding-left: 20px;
        }

        /* Mobile Footer Reset */
        footer {
            position: static;
            box-shadow: none;
            padding: 20px 0;
            margin-top: 30px;
            border-top: 1px solid #eee;
        }

        body {
            padding-bottom: 0;
        }

        .dropdown-content a {
            padding: 10px;
            font-size: 0.9rem;
        }
    }

    @media (min-width: 769px) {
        .menu-toggle {
            display: none;
        }
    }