.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 152px;
    padding: 16px 60px 0 60px;
    overflow: visible;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;

}

body {
    padding-top: 152px;
}

body.is-scrolled .menu-container {
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.backdrop.active {
    opacity: 1;
    pointer-events: auto;
}



@media (max-width: 768px) {
    .menu-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        max-width: none;
        height: auto;
        padding: 0;
        z-index: 9999;
    }

    body {
        padding-top: var(--header-h-full, 220px);
        transition: padding-top 0.3s ease;
    }

    body.header-collapsed {
        padding-top: var(--header-h-red, 64px);
    }
}

.menu-header {

    background-color: #FFFFFF;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0px 16px 27px 0px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 1000 !important;
    height: 96px;
}

.menu-header .logo-section{
    flex: 1 1 0;
    max-width: 402px;
    min-width: 170px;
}

@media (max-width: 768px) {
    .menu-header {
        flex-direction: column;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        gap: 0;
    }
}

.menu-button {
    display: none;
}

.header-logo {
    object-fit: contain;
    object-position: center;
}

@media screen and (max-width: 768px) {
    .header-logo {
        max-width: 272px;
        max-height: 46px;
    }

    .logo-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 8px 20px;
        border-bottom: 1px solid rgba(99, 39, 241, 0.10);
    }

    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        color: #0B0427;
        font-size: 22px;
        cursor: pointer;
        padding: 0;
    }

    .menu-button .menu-button__icon--x { display: none; }

    .menu-button.open .menu-button__icon--bars { display: none; }

    .menu-button.open .menu-button__icon--x { display: inline-block; }
}

.menu-header-content {
width: 80%;
    max-width: 1280px;

    /* flex: 1 0 0; */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .menu-header-content {
        flex-direction: column-reverse;
        width: 100%;
        padding: 12px 0px;
        gap: 12px;
        max-height: 600px;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    }

    body.header-collapsed .menu-header-content {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }
}

.search-container {
width: 100%;
    max-width: 694px;
    min-width: 320px;

    display: flex;
    flex: 1 0 0;

    height: 55px;
    padding: 4px;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;

    border-radius: 100px;
    border: 3px solid #FFF;
    background: #FFF;
    box-shadow: 0 7px 20px 0 rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}


@media (max-width: 768px) {
    .search-container {
        width: calc(100% - 40px);
        height: 46px;
        margin: 0 20px;
    }

    /* Tighter input padding on mobile to give the placeholder more room inside the narrower pill (specificity > general .search-input rule below) */
    .search-container .search-input {
        padding: 0 12px 0 8px;
    }
}

/* Default (and desktop): wrapper is layout-invisible — children behave as direct kids of .menu-header-content */
.search-cats-row {
    display: contents;
}

/* Categories pill is mobile-only (desktop has its own categories trigger in .header-buttons-strip) */
@media (min-width: 769px) {
    .search-cats-row .menus-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .search-cats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 8px;
        padding: 0 20px;
        width: 100%;
        transition: grid-template-columns 0.25s ease;
    }

    /* Search container shares the row equally with the categories pill */
    .search-cats-row .search-container {
        width: auto;
        min-width: 0;
        margin: 0;
    }

    /* Categories pill: equal column with search; transitions for collapse on search focus */
    .search-cats-row .menus-button {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        opacity: 1;
        transition: opacity 0.2s ease, padding 0.25s ease, border-width 0.25s ease;
    }

    /* Hide the chevron arrow next to the label (it was for the dropdown trigger; pill now opens drawer) */
    .search-cats-row .menus-button:after {
        display: none;
    }

    /* When SEARCH is focused (not the cats pill): collapse the categories column so search fills the row.
       Use :has() so cats-pill focus doesn't accidentally trigger the collapse. */
    .search-cats-row:has(.search-container:focus-within) {
        grid-template-columns: 1fr 0fr;
        gap: 0;
    }

    .search-cats-row:has(.search-container:focus-within) .menus-button {
        padding-left: 0;
        padding-right: 0;
        border-width: 0;
        opacity: 0;
    }
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    color: #46494f;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    padding: 0 16px;
}

/* Match the categories pill label — without this rule the browser fades the
   placeholder, making "חיפוש" look lighter than "כל הקטגוריות" next to it. */
.search-input::placeholder {
    color: #46494f;
    opacity: 1;
}

.search-clear-button {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    opacity: 1;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.2s ease, margin-left 0.2s ease;
    pointer-events: auto;
}

/* Hide clear button when input is empty — collapse width too so it doesn't eat the input's space */
.search-input:placeholder-shown+.search-clear-button {
    opacity: 0;
    pointer-events: none;
    width: 0;
    margin-left: 0;
}

.search-clear-button:hover {
    opacity: 0.6 !important;
}

.search-clear-button svg {
    width: 12px;
    height: 12px;
}


.search-button {
    min-width: 46.333px;
    height: 46.333px;
    border: none;
    border-radius: 96.528px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 7.722px;
    background: #2020B3 url('/templates/corporate_new/assets/icons/search-normal.svg') no-repeat center center;
    position: relative;
    overflow: hidden;
}

.search-button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    pointer-events: none;
}

.search-button .ripple.animate {
    animation: ripple-animation 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Search Autocomplete Dropdown Styles */
.search-container {
    position: relative;
}

@media (min-width: 769px) {
    .menu-header-content {
        display: contents;
    }

    .search-container {
        margin-left: auto;
        margin-right: auto;
    }
}

.autocomplete-suggestions {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #FFFFFF;
    border: 3px solid #FFF;
    border-radius: 12px;
    box-shadow: 0 7px 20px 0 rgba(0, 0, 0, 0.12);
    margin-top: 0;
    z-index: 1000;
    padding: 8px 0;
    direction: rtl;
}

/* Individual Suggestion Item */
.autocomplete-suggestion {
    padding: 12px 24px;
    cursor: pointer;
    color: #46494f;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    text-align: right;
    transition: background-color 0.2s ease;
    border: none;
    background: transparent;
}

.autocomplete-suggestion:hover {
    background-color: rgba(0, 0, 0, 0.05);
    /* text color set by index.php using $set['color10'] */
}

/* Selected/Highlighted Suggestion */
.autocomplete-selected {
    background-color: rgba(0, 0, 0, 0.05) !important;
    font-weight: 600;
    /* text color set by index.php using $set['color10'] */
}

.autocomplete-selected:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

/* Loading State */
.search-container.loading::after {
    content: '';
    position: absolute;
    left: 83px; /* Position next to clear button (8px margin + 20px button + 4px gap) */
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(32, 32, 179, 0.2);
    border-top-color: #2020B3;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* RTL Support */
.autocomplete-suggestions {
    text-align: right;
}

.autocomplete-suggestion strong {
    font-weight: 700;
    /* color set by index.php using $set['color1'] */
}

/* Scrollbar styling for dropdown */
.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .autocomplete-suggestions {
        max-height: 250px;
        font-size: 16px;
        border-radius: 12px;
    }

    .autocomplete-suggestion {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    .search-button {
        min-width: 36px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }
}

.menus {
    display: none;
}

.login-section-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 42px;
}

@media screen and (max-width: 768px) {
    header {
        z-index: 99999;
    }

    .menus {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
    }

    .menus-buttons-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding: 0 20px;
        gap: 12px;
    }

    .menus-button {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        height: 46px;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 1.2;
        padding: 4px 16px 4px 4px; /* search-style: text padding on right (RTL start), icon padding on left */
        border-radius: 100px;
        border: 3px solid #FFF;
        background: #FFF;
        box-shadow: 0 7px 20px 0 rgba(0, 0, 0, 0.12);
        transition: box-shadow 0.2s ease;
        cursor: pointer;
    }

    .menus-button__label {
        flex: 1;
        min-width: 0;
        text-align: right;
        color: #46494f;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menus-button__icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFF;
        font-size: 16px;
        /* background-color is set by index.php using $set['color1'] (matches search button) */
    }

    .menus-button:after {
        content: '';
        background: transparent url('/templates/corporate_new/assets/icons/menu-arrow.svg') no-repeat center center;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.5s ease;
    }

    .menus-button.open {
        background-color: #2020B3;
        color: #FFF;
    }

    .menus-button.open:after {
        background: transparent url('/templates/corporate_new/assets/icons/menu-arrow-white.svg') no-repeat center center;
        transform: rotate(-180deg);
    }

}

@media (max-width: 320px) {
    .menus-button {

        height: 40px;
        font-size: 11px;
    }

    .menus-button:after {
        width: 10px;
        height: 10px;
    }
}

.account-section-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 26px;

}

.account-section-wrapper .cart-section {
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cart-section::before {
    content: '';
    background: transparent url('/templates/corporate_new/assets/icons/cart.svg') no-repeat center center;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shared count badge for the cart and points icons — same pill so they read
   as one family. (.cart-text gets a tighter circle override on mobile below.) */
.account-section-wrapper .cart-text,
.account-section-wrapper .points-count {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    height: 22px;
    min-width: 22px;
    padding: 0 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: -10px;
    right: -16px;

    color: #FFFFFF;
    border-radius: 999px;
}

.account-section-wrapper .cart-text-description {
    font-size: 16px;
    font-weight: 600;
    color: #0B0427;
    white-space: nowrap;
}

@keyframes points-pill-reveal {
    from {
        opacity: 0;
        transform: translateX(-14px) scaleX(0.7);
    }
    to {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
}

/* Points: same flex-column idiom as .cart-section — big black icon, a pink
   count bubble pinned top-right, and a label revealed on hover. The entrance
   reveal (slide-in next to the separator) is kept via points-pill-reveal. */
.account-section-wrapper .points-section {
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform-origin: left center;
    /* 'backwards' (not 'both'): keep the from-state during the entrance delay,
       but release transform after so .press-effect's :active scale can take over. */
    animation: points-pill-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}

.account-section-wrapper .points-icon {
    font-size: 30px;
    color: #0B0427;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .points-count shares the count-badge rule with .cart-text (see above). */

.account-section-wrapper .points-text-description {
    font-size: 16px;
    font-weight: 600;
    color: #0B0427;
    white-space: nowrap;
}

.header-divider {
    width: 1px;
    height: 28px;
    background: rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.categories-button {
    width: 48px;
    height: 48px;
}

.my-points {
    display: flex;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 67px;
    width: 132px;

    border-radius: 12px;
    background: #F3F3FF;
}

.my-points .my-points-title {

    color: #0B0427;
    text-align: center;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.my-points .my-points-title::before {
    content: '';
    background: transparent url('/templates/corporate_new/assets/icons/points.svg') no-repeat center center;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-points .my-points-value {
    color: #FFF;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;

    width: fit-content;
    display: flex;
    padding: 6px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 20px;

    border-radius: 4px;
    background: #4138F2;
}

@media screen and (max-width: 768px) {
    .account-section-wrapper {
        display: flex;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 0 20px;
    }

    .account-section-wrapper .cart-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .account-section-wrapper .cart-text {
        font-size: 12px;
        height: 18px;
        min-width: 18px;
        padding: 0 5px 0 5px;

        top: 2px;
        right: -4px;

        color: #FFFFFF;
        border-radius: 50%;
    }

    /* Labels trimmed to 14px to make room for the added points icon + divider. */
    .account-section-wrapper .cart-text-description,
    .account-section-wrapper .login-text {
        font-size: 14px;
    }

    .account-section-wrapper .cart-text-description {
        display: block;
        color: #0B0427;
        text-align: right;
        font-weight: 600;
    }

    /* Hide logout from the top strip on mobile (logout link lives in the hamburger menu) */
    .account-section-wrapper .logout-section {
        display: none;
    }

    /* Mobile order (right→left): user-area, divider, points clustered on the
       right; cart pushed to the far left by the auto margin. Mirrors the
       desktop points · divider · user-area grouping. */
    .account-section-wrapper .login-section { order: 1; } /* user-area, rightmost */
    .account-section-wrapper .header-divider { order: 2; display: block; }
    .account-section-wrapper .points-section { order: 3; display: flex; }
    .account-section-wrapper .join-button  { order: 2; }
    .account-section-wrapper .cart-section { order: 4; margin-inline-start: auto; }

    /* Points here is icon + bubble only — no label. */
    .account-section-wrapper .points-section .points-text-description {
        display: none;
    }

    /* Smaller bubble to sit on the standalone icon (matches the cart bubble). */
    .account-section-wrapper .points-count {
        font-size: 12px;
        height: 18px;
        min-width: 18px;
        padding: 0 6px;
        top: -6px;
        right: -10px;
    }
}

.login-section {
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .login-section {
        flex-direction: row;
    }
}

.login-section::before {
    content: '';
    background: transparent url('/templates/corporate_new/assets/icons/user.svg') no-repeat center center;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-text {
    font-size: 16px;
    font-weight: 600;
    color: #0B0427;
    white-space: nowrap;
    text-decoration: none;

}

.logout-section {
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logout-section i {
    font-size: 28px;
    color: #0B0427;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-text {
    font-size: 16px;
    font-weight: 600;
    color: #0B0427;
    white-space: nowrap;
}

/* Desktop: hide account labels by default, slide-up reveal on hover */
@media (min-width: 769px) {
    .cart-section .cart-text-description,
    .points-section .points-text-description,
    .login-section .login-text,
    .logout-section .logout-text {
        position: absolute;
        top: 100%;
        left: 50%;
        margin-top: 0;
        transform: translateX(-50%) translateY(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.25s ease;
    }

    .cart-section:hover .cart-text-description,
    .points-section:hover .points-text-description,
    .login-section:hover .login-text,
    .logout-section:hover .logout-text {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .logout-section {
        flex-direction: row;
    }
}


.header-buttons-strip {
    position: absolute;
    z-index: 100;
    right: 60px;
    bottom: -12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .header-buttons-strip {
        display: none;
    }
}

.categories-button {
    width: 260px;
    height: 60px;
    background-color: #2020B3;
    border: 3px solid #FFFFFF;
    border-radius: 12px;
    padding: 7px 26px;
    display: flex;
    box-shadow: 0 4px 13px 0 rgba(0, 0, 0, 0.16);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 14px;
    z-index: 99999999;
}

.categories-button::after {
    content: '';
    background: transparent url('/templates/corporate_new/assets/icons/chevron-down.svg') no-repeat center center;
    background-size: contain;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.categories-button {
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.categories-button:hover {
    background-color: #1a1a8f;
    transform: translateY(-2px);
    /* slightly stronger drop shadow for the lift */
    box-shadow: 0 8px 18px 0 rgba(0, 0, 0, 0.22);
}

.categories-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 13px 0 rgba(0, 0, 0, 0.16);
}

.categories-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    /* color is set by index.php using $set['color7'] */
}

.chevron-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chevron-svg {
    width: 18px;
    height: 9px;
}

.menu-item-container {
    display: flex;
    align-items: center;
    gap: 10px;
}



/* ============================================================
   Nav bar (pipe menu) — Band B
   ============================================================ */

.nav-bar {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 50;
}

.nav-bar__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-bar__item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-bar__item + .nav-bar__item::before {
    content: '';
    display: block;
    width: 1px;
    height: 18px;
    background: rgba(11, 4, 39, 0.2);
    margin: 0 24px;
    flex-shrink: 0;
}

.nav-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #0B0427;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.nav-bar__chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-bar__link--has-children.open .nav-bar__chevron {
    transform: rotate(180deg);
}

/* Hide the new pipe menu on mobile (mobile keeps its existing nav system) */
@media (max-width: 768px) {
    .nav-bar {
        display: none;
    }
}

/* ============================================================
   Nav dropdown panel
   ============================================================ */

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 240px;
    padding: 12px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 200;
    /* background-color is set by index.php using $set['color11'] */
}

.nav-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown__item {
    display: block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    color: #0B0427;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-dropdown__item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown__item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ============================================================
   Join button (logged-out only)
   ============================================================ */

.join-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border: 3px solid #FFFFFF;
    border-radius: 999px;
    box-shadow: 0 4px 13px 0 rgba(0, 0, 0, 0.16);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    /* background-color set by index.php via $set['color1']; color via $set['color7'] */
}

/* Diagonal gloss that sweeps across the button on hover */
.join-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left 0.6s ease;
}

.join-button:hover::after {
    left: 125%;
}
