@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@900&display=swap');

/* RockSlides universal header */

:root {
    --rs-header-height: 68px;
    --rs-header-bg: rgba(255, 255, 255, 0.88);
    --rs-header-border: rgba(17, 24, 22, 0.08);
    --rs-header-text: #121615;
    --rs-header-muted: #66726e;
    --rs-header-soft: #f4f7f5;
    --rs-header-accent: #2f6258;
    --rs-header-shadow: 0 18px 54px rgba(27, 39, 36, 0.08);
}

.rock-slides-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--rs-header-height);
    border-bottom: 1px solid var(--rs-header-border);
    background: var(--rs-header-bg);
    backdrop-filter: saturate(1.25) blur(18px);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.rock-header-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: none;
    min-height: var(--rs-header-height);
    margin: 0;
    padding: 0 clamp(18px, 2.4vw, 36px);
    box-sizing: border-box;
}

.rock-header-brand,
.rock-header-account {
    display: flex;
    align-items: center;
    min-width: 0;
}

.rock-header-brand {
    justify-content: flex-start;
}

.rock-header-account {
    justify-content: flex-end;
    gap: 12px;
}

.rock-header-menu-panel {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 380px) minmax(180px, 1fr);
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.rock-logo {
    display: inline-flex;
    align-items: center;
    color: var(--rs-header-text);
    text-decoration: none;
}

.rock-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 30px;
    object-fit: contain;
}

.logo-text {
    color: var(--rs-header-text);
    font-size: 19px;
    font-weight: 850;
    letter-spacing: 0;
}

.rock-header-nav {
    min-width: 0;
}

.rock-header-nav-left {
    justify-self: start;
}

.rock-header-nav-right {
    justify-self: end;
}

.rock-nav-menu,
.rock-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rock-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.rock-header-nav-right .rock-nav-menu {
    justify-content: flex-end;
}

.rock-nav-menu > li {
    position: relative;
    margin: 0;
}

.rock-nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--rs-header-muted);
    font-size: 14px;
    font-weight: 680;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease;
}

.rock-nav-menu > li:hover > a,
.rock-nav-menu > li:focus-within > a,
.rock-nav-menu > .current-menu-item > a,
.rock-nav-menu > .current-menu-ancestor > a {
    background: var(--rs-header-soft);
    color: var(--rs-header-text);
}

.rock-nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--rs-header-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--rs-header-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.rock-header-nav-right .rock-nav-menu .sub-menu {
    right: 0;
    left: auto;
}

.rock-nav-menu li:hover > .sub-menu,
.rock-nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rock-nav-menu .sub-menu a {
    display: flex;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    color: var(--rs-header-muted);
}

.rock-nav-menu .sub-menu a:hover,
.rock-nav-menu .sub-menu a:focus {
    background: var(--rs-header-soft);
    color: var(--rs-header-text);
}

.rock-header-center {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.rock-header-search,
.search-form {
    position: relative;
    width: 100%;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: #8c9692;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 40px;
    border: 1px solid rgba(17, 24, 22, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--rs-header-text);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.search-input:focus {
    border-color: rgba(47, 98, 88, 0.42);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 98, 88, 0.09);
}

.search-input::placeholder {
    color: #8c9692;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 720;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-text {
    color: var(--rs-header-muted);
    background: transparent;
}

.btn-text:hover,
.btn-text:focus {
    color: var(--rs-header-text);
    background: var(--rs-header-soft);
}

.btn-primary {
    color: #fff;
    background: var(--rs-header-text);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--rs-header-accent);
}

.rock-user-menu {
    position: relative;
    display: inline-flex;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 4px 12px 4px 5px;
    border: 1px solid rgba(17, 24, 22, 0.1);
    border-radius: 999px;
    background: #fff;
    color: var(--rs-header-text);
    cursor: pointer;
    font: inherit;
    box-shadow: 0 8px 26px rgba(27, 39, 36, 0.06);
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--rs-header-text);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    color: var(--rs-header-text);
    font-size: 13px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron-down {
    color: #8c9692;
}

.user-dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--rs-header-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--rs-header-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.rock-user-menu:hover .user-dropdown-content,
.rock-user-menu:focus-within .user-dropdown-content,
.rock-user-menu.active .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 7px;
    color: var(--rs-header-muted);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--rs-header-soft);
    color: var(--rs-header-text);
}

.dropdown-item.text-danger {
    color: #b42318;
}

.dropdown-divider {
    height: 1px;
    margin: 6px 0;
    background: var(--rs-header-border);
}

.rock-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(17, 24, 22, 0.1);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.rock-mobile-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--rs-header-text);
}

@media (max-width: 1180px) {
    .rock-header-container {
        width: 100%;
        padding: 0 20px;
        gap: 18px;
    }

    .rock-header-menu-panel {
        grid-template-columns: minmax(150px, 1fr) minmax(240px, 340px) minmax(150px, 1fr);
        gap: 14px;
    }

    .rock-nav-menu a {
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 960px) {
    .rock-header-menu-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .rock-header-center {
        display: none;
    }
}

@media (max-width: 820px) {
    .rock-logo-image {
        max-width: 148px;
        max-height: 28px;
    }

    .rock-header-container {
        display: flex;
        justify-content: space-between;
        padding: 0 16px;
    }

    .rock-header-menu-panel {
        position: fixed;
        top: var(--rs-header-height);
        left: 16px;
        right: 16px;
        display: none;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        border: 1px solid var(--rs-header-border);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--rs-header-shadow);
    }

    .rock-slides-header.menu-open .rock-header-menu-panel {
        display: grid;
    }

    .rock-header-center {
        display: block;
        order: 2;
    }

    .rock-header-nav-left {
        order: 1;
    }

    .rock-header-nav-right {
        order: 3;
        justify-self: stretch;
    }

    .rock-nav-menu {
        display: grid;
        gap: 4px;
    }

    .rock-header-nav-right .rock-nav-menu {
        justify-content: stretch;
    }

    .rock-nav-menu a {
        justify-content: space-between;
        width: 100%;
        min-height: 42px;
        border-radius: 7px;
    }

    .rock-nav-menu .sub-menu {
        position: static;
        display: grid;
        min-width: 0;
        margin: 2px 0 8px 14px;
        padding: 0;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .btn-text,
    .btn-primary,
    .user-name,
    .chevron-down {
        display: none;
    }

    .rock-mobile-toggle {
        display: inline-flex;
    }
}
