:root {
    --mp-accent: hsl(44, 95%, 58%);
    --mp-accent-dark: hsl(43, 87%, 40%);
    --mp-accent-soft: hsl(44, 95%, 92%);
    --mp-text: #1c1c1e;
    --mp-text-muted: #6b7280;
    --mp-border: #e5e7eb;
    --mp-bg: #f4f5f7;
    --mp-white: #ffffff;
    --mp-danger: #ef4444;
}

* {
    box-sizing: border-box;
}

body.merchant-shell {
    margin: 0;
    background: var(--mp-bg);
    color: var(--mp-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

/* ---- Topbar (row 1) ---- */

.mp-topbar {
    background: var(--mp-white);
    border-bottom: 1px solid var(--mp-border);
}

.mp-topbar__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 9px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mp-topbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-topbar__logo img {
    height: 26px;
    display: block;
}

.mp-topbar__panel-switch {
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-text);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 0 0 12px;
    border-left: 1px solid var(--mp-border);
}

.mp-topbar__panel-switch::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 2px;
    margin-top: -3px;
}

.mp-topbar__links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
}

.mp-topbar__links a {
    color: var(--mp-text-muted);
    font-weight: 500;
}

.mp-topbar__links a:hover {
    color: var(--mp-text);
}

.mp-topbar__divider {
    width: 1px;
    height: 16px;
    background: var(--mp-border);
}

.mp-topbar__link--accent {
    color: var(--mp-accent-dark) !important;
    font-weight: 600;
}

/* ---- Main nav (row 2) ---- */

.mp-nav {
    background: var(--mp-bg);
}

.mp-nav__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.mp-nav__menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.mp-nav__item > a {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-text);
    white-space: nowrap;
}

.mp-nav__item > a:hover {
    background: rgba(0, 0, 0, .05);
}

.mp-nav__item--active > a {
    background: var(--mp-white);
    color: var(--mp-accent-dark);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}

.mp-nav__item.dropdown > a::after {
    display: none;
}

.mp-nav__chevron {
    font-size: 17px;
    line-height: 1;
}

/* ---- Right side actions ---- */

.mp-nav__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mp-nav__icon-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--mp-text);
    font-size: 14px;
    font-weight: 500;
}

.mp-nav__icon-btn:hover {
    background: rgba(0, 0, 0, .05);
}

.mp-nav__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mp-nav__icon-wrap i {
    font-size: 19px;
    color: var(--mp-text-muted);
}

.mp-nav__badge {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mp-danger);
    border: 2px solid var(--mp-bg);
}

.mp-nav__account {
    margin-left: 6px;
}

.mp-nav__account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
}

.mp-nav__account-btn:hover {
    background: rgba(0, 0, 0, .05);
}

.mp-nav__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mp-nav__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-nav__account-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mp-text);
    letter-spacing: .01em;
}

/* ---- Dropdown base ---- */

.mp-header .dropdown-menu {
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
    padding: 8px;
    margin-top: 10px !important;
}

.mp-simple-menu {
    min-width: 190px;
}

.mp-simple-menu .dropdown-item {
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
}

.mp-simple-menu .dropdown-item.active,
.mp-simple-menu .dropdown-item:active {
    background: var(--mp-accent-soft);
    color: var(--mp-accent-dark);
}

.mp-simple-menu__empty {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--mp-text-muted);
}

/* ---- Megamenu (Ürün) ---- */

.mp-megamenu {
    min-width: 360px;
    padding: 8px;
}

.mp-megamenu__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: inherit;
}

.mp-megamenu__item:hover {
    background: var(--mp-bg);
}

.mp-megamenu__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--mp-accent-soft);
    color: var(--mp-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.mp-megamenu__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-megamenu__desc {
    display: block;
    font-size: 12.5px;
    color: var(--mp-text-muted);
    margin-top: 2px;
    line-height: 1.35;
}

/* ---- Account dropdown ---- */

.mp-account-menu {
    min-width: 230px;
}

.mp-account-menu__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--mp-text-muted);
    padding: 8px 12px 6px;
}

.mp-account-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--mp-text);
    font-size: 14px;
}

.mp-account-menu__item:hover {
    background: var(--mp-bg);
}

.mp-account-menu__item i {
    font-size: 17px;
    color: var(--mp-text-muted);
}

.mp-account-menu__divider {
    height: 1px;
    background: var(--mp-border);
    margin: 6px 4px;
}

/* ---- Page content area ---- */

.mp-page {
    min-height: calc(100vh - 96px);
}

.mp-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.mp-empty-state {
    background: var(--mp-white);
    border: 1px solid var(--mp-border);
    border-radius: 16px;
    padding: 64px 24px;
    text-align: center;
    color: var(--mp-text-muted);
}

.mp-empty-state h1 {
    color: var(--mp-text);
    font-size: 20px;
    margin-bottom: 6px;
}

/* ---- Auth (login) ---- */

body.mp-auth {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fbfaf8;
    background-image: radial-gradient(circle at 15% 20%, hsl(44, 90%, 88%) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, hsl(220, 20%, 92%) 0%, transparent 45%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--mp-text);
}

.mp-auth__glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}

.mp-auth__glow--a {
    background: hsl(44, 95%, 70%);
    top: -160px;
    left: -160px;
}

.mp-auth__glow--b {
    background: hsl(215, 30%, 80%);
    bottom: -180px;
    right: -160px;
}

.mp-auth__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: var(--mp-white);
    border-radius: 20px;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .22);
    padding: 40px 36px 32px;
    animation: mpAuthIn .5s cubic-bezier(.16, 1, .3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .mp-auth__card {
        animation: none;
    }
}

@keyframes mpAuthIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mp-auth__logo {
    display: block;
    margin: 0 0 20px;
}

.mp-auth__logo img {
    height: 28px;
    display: block;
}

.mp-auth__eyebrow {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-accent-dark);
}

.mp-auth__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mp-text);
}

.mp-auth__subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--mp-text-muted);
    line-height: 1.5;
}

.mp-auth__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: hsl(0, 85%, 96%);
    color: hsl(0, 70%, 32%);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.mp-auth__alert i {
    font-size: 17px;
    line-height: 1.4;
    flex-shrink: 0;
}

.mp-auth__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mp-field__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-field__input {
    width: 100%;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--mp-text);
    background: var(--mp-white);
    transition: border-color .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s cubic-bezier(.16, 1, .3, 1);
}

.mp-field__input::placeholder {
    color: #9ca3af;
}

.mp-field__input:focus {
    outline: none;
    border-color: var(--mp-accent-dark);
    box-shadow: 0 0 0 3px hsl(44, 95%, 88%);
}

.mp-field__wrap {
    position: relative;
    display: block;
}

.mp-field__wrap .mp-field__input {
    padding-right: 44px;
}

.mp-field__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--mp-text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.mp-field__toggle:hover {
    background: var(--mp-bg);
    color: var(--mp-text);
}

.mp-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
}

.mp-checkbox {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--mp-text);
    cursor: pointer;
}

.mp-checkbox input {
    accent-color: var(--mp-accent-dark);
    width: 15px;
    height: 15px;
}

.mp-auth__link {
    color: var(--mp-accent-dark);
    font-weight: 600;
}

.mp-auth__submit {
    margin-top: 4px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 13px;
    background: var(--mp-accent);
    color: #241a03;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s cubic-bezier(.16, 1, .3, 1), filter .18s cubic-bezier(.16, 1, .3, 1);
}

.mp-auth__submit:hover {
    filter: brightness(.95);
    transform: translateY(-1px);
}

.mp-auth__submit:focus-visible {
    outline: 3px solid hsl(44, 95%, 70%);
    outline-offset: 2px;
}

.mp-auth__footer {
    margin: 24px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--mp-text-muted);
}
