:root {
    --ec-color-text: #111827;
    --ec-color-muted: #4b5563;
    --ec-color-border: #e5e7eb;
    --ec-color-surface: #ffffff;
    --ec-color-soft: #f7f7f8;
    --ec-color-brand: #111827;
    --ec-color-focus: #0f766e;
    --ec-sidebar-width: 196px;
    --ec-hero-desktop-height: 620px;
    --ec-page-max-width: 1440px;
    --ec-page-gutter: max(0px, calc((100vw - var(--ec-page-max-width)) / 2));
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ec-color-text);
    background: var(--ec-color-surface);
    font-family: Inter, Roboto, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--ec-color-focus);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    left: 20px;
    top: 16px;
    z-index: 30;
    padding: 10px 14px;
    color: var(--ec-color-surface);
    background: var(--ec-color-text);
    border-radius: 4px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 20;
}

.site-sidebar {
    position: absolute;
    inset: 0 auto auto 0;
    width: var(--ec-sidebar-width);
    height: var(--ec-hero-desktop-height);
    display: flex;
    flex-direction: column;
    gap: 42px;
    padding: 24px 14px 24px 12px;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid var(--ec-color-border);
    border-bottom: 1px solid var(--ec-color-border);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    color: var(--ec-color-brand);
    font-size: 1.42rem;
    font-weight: 700;
    letter-spacing: 0;
}

.site-brand__mark {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.site-brand__mark::before,
.site-brand__mark::after {
    content: "";
    position: absolute;
    top: 50%;
    border: 1.5px solid var(--ec-color-brand);
    border-left: 0;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: translateY(-50%);
}

.site-brand__mark::before {
    left: 4px;
    width: 8px;
    height: 14px;
}

.site-brand__mark::after {
    left: 10px;
    width: 10px;
    height: 20px;
}

.site-sidebar__nav {
    display: grid;
    gap: 14px;
}

.site-sidebar__nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 12px;
    color: var(--ec-color-text);
    border-radius: 5px;
    font-family: Inter, Roboto, Arial, sans-serif;
    font-size: 0.91rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.site-sidebar__nav a.is-active {
    color: #ffffff;
    background: var(--ec-color-brand);
    font-weight: 600;
}

.site-sidebar__nav a:hover {
    color: var(--ec-color-text);
    background: #eceef1;
}

.site-sidebar__nav a.is-active .site-nav-icon {
    color: #ffffff;
}

.site-sidebar__nav a:hover .site-nav-icon {
    color: var(--ec-color-text);
}

.site-nav-icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.site-nav-icon--home::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 14px;
    height: 10px;
    border: 1.5px solid var(--ec-color-text);
    border-top: 0;
}

.site-nav-icon--home::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 3px;
    width: 13px;
    height: 13px;
    border-left: 1.5px solid var(--ec-color-text);
    border-top: 1.5px solid var(--ec-color-text);
    transform: rotate(45deg);
}

.site-nav-icon--buy::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--ec-color-text);
    border-radius: 50%;
}

.site-nav-icon--buy::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 8px;
    height: 1.5px;
    background: var(--ec-color-text);
    transform: rotate(45deg);
    transform-origin: center;
}

.site-nav-icon--sell::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    width: 13px;
    height: 13px;
    border: 1.5px solid var(--ec-color-text);
    border-radius: 3px;
    transform: rotate(45deg);
}

.site-nav-icon--sell::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 7px;
    width: 4px;
    height: 4px;
    border: 1.5px solid var(--ec-color-text);
    border-radius: 50%;
    background: var(--ec-color-surface);
}

.site-nav-icon--map::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 12px;
    height: 16px;
    border: 1.5px solid var(--ec-color-text);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.site-nav-icon--map::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    width: 4px;
    height: 4px;
    border: 1.5px solid var(--ec-color-text);
    border-radius: 50%;
    background: var(--ec-color-surface);
}

.site-nav-icon--communities::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 18px;
    height: 9px;
    border: 1.5px solid var(--ec-color-text);
    border-radius: 9px 9px 0 0;
    border-bottom: 0;
}

.site-nav-icon--communities::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 4px;
    height: 4px;
    border: 1.5px solid var(--ec-color-text);
    border-radius: 50%;
    box-shadow: 7px 0 0 -1.5px var(--ec-color-surface), 7px 0 0 0 var(--ec-color-text);
}

.site-nav-icon--voice::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 8px;
    height: 14px;
    border: 1.5px solid var(--ec-color-text);
    border-radius: 8px;
}

.site-nav-icon--voice::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: 2px;
    width: 14px;
    height: 7px;
    border-bottom: 1.5px solid var(--ec-color-text);
    border-left: 1.5px solid var(--ec-color-text);
    border-right: 1.5px solid var(--ec-color-text);
    border-radius: 0 0 8px 8px;
}

.site-nav-icon--more::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 10px;
    width: 3px;
    height: 3px;
    background: var(--ec-color-text);
    border-radius: 50%;
    box-shadow: 7px 0 0 var(--ec-color-text), 14px 0 0 var(--ec-color-text);
}

.site-topbar {
    position: fixed;
    top: 18px;
    right: 28px;
    z-index: 21;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-topbar__brand {
    display: none;
}

.site-topbar__menu {
    display: none;
}

.site-topbar__link {
    color: var(--ec-color-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.site-topbar__action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: var(--ec-color-surface);
    background: var(--ec-color-brand);
    border: 1px solid var(--ec-color-brand);
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 700;
}

.site-topbar__action:hover {
    background: #000000;
}

@media (min-width: 821px) {
    .seller-account-template .site-sidebar {
        display: none;
    }

    .seller-account-template .site-topbar {
        position: fixed;
        inset: 0 0 auto 0;
        min-height: 74px;
        justify-content: flex-end;
        gap: 24px;
        padding: 0 calc(var(--ec-page-gutter) + 56px);
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--ec-color-border);
    }

    .seller-account-template .site-topbar__brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-right: auto;
        color: var(--ec-color-brand);
        font-size: 1.42rem;
        font-weight: 700;
        letter-spacing: 0;
    }

    .seller-account-template .site-topbar__menu {
        position: relative;
        display: block;
    }

    .seller-account-template .site-topbar__menu summary {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 0 14px;
        color: var(--ec-color-text);
        background: #ffffff;
        border: 1px solid var(--ec-color-border);
        border-radius: 5px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
    }

    .seller-account-template .site-topbar__menu summary::-webkit-details-marker {
        display: none;
    }

    .seller-account-template .site-topbar__nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: 230px;
        display: grid;
        gap: 2px;
        padding: 10px;
        background: #ffffff;
        border: 1px solid var(--ec-color-border);
        border-radius: 5px;
        box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
    }

    .seller-account-template .site-topbar__nav a {
        min-height: 38px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        color: var(--ec-color-text);
        border-radius: 4px;
        font-size: 0.9rem;
        font-weight: 500;
        line-height: 1.2;
        text-decoration: none;
    }

    .seller-account-template .site-topbar__nav a:hover,
    .seller-account-template .site-topbar__nav a:focus-visible {
        color: var(--ec-color-text);
        background: #eceef1;
    }

    .seller-account-template .site-topbar__nav a[aria-current="page"] {
        color: #ffffff;
        background: var(--ec-color-brand);
        font-weight: 600;
    }

    .seller-account-template .site-topbar__menu summary:focus-visible {
        outline: 3px solid var(--ec-color-focus);
        outline-offset: 3px;
    }
}

.site-mobilebar {
    display: none;
}

@media (min-width: 821px) {
    body {
        padding-left: 0;
    }
}

@media (max-width: 820px) {
    body {
        padding-top: 72px;
    }

    .site-sidebar,
    .site-topbar {
        display: none;
    }

    .site-mobilebar {
        position: fixed;
        inset: 0 0 auto 0;
        min-height: 72px;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 18px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--ec-color-border);
    }

    .site-mobilebar .site-brand {
        font-size: 1.25rem;
    }

    .site-mobilebar__menu {
        position: relative;
    }

    .site-mobilebar__menu summary {
        min-height: 42px;
        padding: 10px 14px;
        color: var(--ec-color-text);
        border: 1px solid var(--ec-color-border);
        border-radius: 5px;
        cursor: pointer;
        font-family: Inter, Roboto, Arial, sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        list-style: none;
    }

    .site-mobilebar__menu summary::-webkit-details-marker {
        display: none;
    }

    .site-mobilebar__nav {
        position: absolute;
        right: 0;
        top: calc(100% + 12px);
        width: min(260px, calc(100vw - 36px));
        padding: 10px;
        display: grid;
        gap: 2px;
        background: var(--ec-color-surface);
        border: 1px solid var(--ec-color-border);
        border-radius: 5px;
        box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    }

    .site-mobilebar__nav a {
        padding: 12px;
        color: var(--ec-color-text);
        border-radius: 4px;
        font-family: Inter, Roboto, Arial, sans-serif;
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
    }

    .site-mobilebar__nav a:hover,
    .site-mobilebar__nav a:focus-visible {
        color: var(--ec-color-text);
        background: #eceef1;
    }

    .site-mobilebar__nav a[aria-current="page"] {
        color: #ffffff;
        background: var(--ec-color-brand);
        font-weight: 600;
    }

    .site-mobilebar__nav a[aria-current="page"]:hover,
    .site-mobilebar__nav a[aria-current="page"]:focus-visible {
        color: var(--ec-color-text);
        background: #eceef1;
    }
}

.site-brand i.site-brand__icon,
.site-topbar__brand i.site-brand__icon,
.site-nav-icon {
    display: grid;
    place-items: center;
    color: var(--ec-color-text);
    line-height: 1;
}

.site-brand i.site-brand__icon,
.site-topbar__brand i.site-brand__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--ec-color-brand);
    font-size: 1.05rem;
}

i.site-nav-icon::before,
i.site-nav-icon::after {
    position: static;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}
