.topbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transition: 0.3s;
}

body.dark .topbar {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left img {
    height: 42px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#langToggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

#langToggle:hover {
    background: #f3f4f6;
}

body.dark #langToggle:hover {
    background: rgba(255,255,255,0.08);
}

.flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.lang {
    font-size: 13px;
    color: #374151;
}

body.dark .lang {
    color: #ccc;
}

.cart-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: 0.2s;
}

.cart-wrapper:hover {
    background: #f3f4f6;
}

body.dark .cart-wrapper:hover {
    background: rgba(255,255,255,0.08);
}

.cart {
    font-size: 18px;
    color: #111827;
    transition: 0.3s;
}

body.dark .cart {
    color: #ffffff;
}

.cart:hover {
    color: #2563eb;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
}

.theme-toggle {
    width: 52px;
    height: 26px;
    background: #e5e7eb;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

body.dark .theme-toggle {
    background: #1f2937;
}

.toggle-circle {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: 0.3s;
    z-index: 2;
}

body.dark .toggle-circle {
    transform: translateX(26px);
}

.theme-icon {
    font-size: 12px;
    z-index: 1;
    color: #6b7280;
    transition: 0.3s;
}

body.dark .theme-icon.sun {
    opacity: 0.4;
}

body.dark .theme-icon.moon {
    color: #fff;
}

.theme-icon.sun {
    color: #f59e0b;
}

.hamburger {
    display: none;
    font-size: 20px;
    color: #111827;
    cursor: pointer;
}

body.dark .hamburger {
    color: #ffffff;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .topbar-right {
        gap: 10px;
    }

    .cart-wrapper {
        width: 34px;
        height: 34px;
    }

    .cart {
        font-size: 17px;
    }
}