/* Hamburger button */
.menu-button {
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-button:hover { opacity: .65; }

/* Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* Desktop/default side menu - preserve existing UI */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #c9b8a8;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d9b8ae transparent;
}
.side-menu.active { transform: translateX(0); }

.side-menu-header {
    height: 150px;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px 24px;
}
.side-menu-brand {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}
.side-menu-brand-image {
    display: block;
    width: min(122px, 100%);
    height: 122px;
    object-fit: contain;
    object-position: center;
}
.side-menu-brand-text { display: none; }
.side-menu-header > .search-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 9px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #68142e;
    text-align: center;
    display: grid;
    place-items: center;
}
.side-menu-header > .search-button svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.side-menu-tagline {
    padding: 9px 16px 15px;
    background: #fffdfb;
    color: #805d5c;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2em;
}
.menu-navigation { padding: 8px 14px 24px; background: #fffdfb; }
.menu-item {
    min-height: 54px;
    padding: 7px 10px;
    border-bottom: 1px solid #eee8e7;
    box-sizing: border-box;
}
.menu-item-icon { flex: 0 0 40px; width: 40px; height: 40px; }
.menu-item-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff1f4;
    color: #68142e;
}
.menu-item-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.menu-item-label { flex: 1; padding-left: 12px; }
.menu-item-arrow { flex: 0 0 24px; }
.side-menu-header button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #111;
}
.menu-close { font-size: 38px; font-weight: 300; line-height: 1; }
.search-button { font-size: 32px; font-weight: 300; line-height: 1; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { margin: 0; padding: 0; }
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 11px 24px;
    color: #111;
    text-decoration: none;
    font-size: 19px;
    line-height: 1.4;
    cursor: pointer;
}
.menu-item:hover { background: rgba(255,255,255,.12); }
.menu-list details { margin: 0; padding: 0; }
.menu-list summary { list-style: none; }
.menu-list summary::-webkit-details-marker { display: none; }
.menu-arrow { font-size: 20px; margin-left: 12px; }
.submenu { background: rgba(255,255,255,.08); padding: 5px 0 10px; }
.submenu a {
    display: block;
    padding: 9px 24px 9px 42px;
    color: #222;
    text-decoration: none;
    font-size: 16px;
}
body.menu-open { overflow: hidden; }

/* Premium mobile-only menu */
@media (max-width: 600px) {
    .menu-button { color: #68142e; }

    .menu-overlay {
        background: rgba(24,15,18,.52);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .side-menu {
        width: min(390px, 92vw);
        max-width: none;
        height: 100vh;
        height: 100dvh;
        background: #fffdfb;
        color: #211b1d;
        box-shadow: 14px 0 40px rgba(35,18,24,.18);
        scrollbar-width: thin;
        scrollbar-color: #d8a9b7 transparent;
        transition: transform .34s cubic-bezier(.22,.61,.36,1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .side-menu-header {
        min-height: 142px;
        height: auto;
        padding: 18px 18px 6px;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: start;
        gap: 8px;
        background: linear-gradient(135deg,#fff9f7 0%,#f9e8ed 100%);
    }

    .side-menu-header button {
        width: 44px;
        height: 44px;
        padding: 8px;
        border-radius: 50%;
        color: #68142e;
        display: grid;
        place-items: center;
    }

    .side-menu-header button:hover { background: rgba(104,20,46,.07); }
    .menu-close { font-size: 38px; }
    .search-button svg {
        width: 27px;
        height: 27px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .side-menu-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 100%;
        padding-top: 4px;
        text-decoration: none;
    }

    .side-menu-brand img {
        display: block;
        width: min(190px,100%);
        height: 92px;
        object-fit: contain;
    }

    .side-menu-tagline {
        padding: 3px 18px 15px;
        background: linear-gradient(135deg,#fff9f7 0%,#f9e8ed 100%);
        color: #805d5c;
        text-align: center;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: .28em;
    }

    .menu-navigation {
        padding: 14px 14px 30px;
        background: #fffdfb;
    }

    .menu-item {
        position: relative;
        display: grid;
        grid-template-columns: 54px 1fr 24px;
        align-items: center;
        width: 100%;
        min-height: 68px;
        padding: 8px;
        box-sizing: border-box;
        color: #252126;
        font-family: Arial,sans-serif;
        font-size: 17px;
        font-weight: 500;
        letter-spacing: -.01em;
        line-height: 1.25;
        border-bottom: 1px solid #eee8e7;
        transition: background .2s ease,color .2s ease,transform .2s ease;
    }

    .menu-item:hover {
        background: #fff5f7;
        color: #68142e;
    }

    .menu-item.is-current {
        margin-bottom: 4px;
        padding-left: 8px;
        border-bottom-color: transparent;
        border-radius: 18px;
        background: linear-gradient(135deg,#fae5eb,#f8eef0);
        color: #68142e;
        font-weight: 700;
        box-shadow: inset 3px 0 0 #68142e;
    }

    .menu-item-icon {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border-radius: 50%;
        background: #fff1f4;
        color: #68142e;
    }

    .menu-item.is-current .menu-item-icon { background: #f9dce5; }

    .menu-item-icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.65;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .menu-item-label { padding-left: 8px; }

    .menu-item-arrow {
        color: #6b686d;
        font-family: Arial,sans-serif;
        font-size: 30px;
        font-weight: 300;
        line-height: 1;
        text-align: center;
        transition: transform .2s ease,color .2s ease;
    }

    .menu-item:hover .menu-item-arrow,
    .menu-item.is-current .menu-item-arrow {
        color: #68142e;
        transform: translateX(2px);
    }

    @media (max-width: 370px) {
        .side-menu { width: 94vw; }
        .side-menu-brand img { width: 155px; height: 82px; }
        .menu-item { min-height: 62px; font-size: 16px; }
        .menu-item-icon { width: 40px; height: 40px; }
        .menu-item-icon svg { width: 22px; height: 22px; }
    }
}

.menu-categories-dropdown > summary {
    list-style: none;
    cursor: pointer;
}

.menu-categories-dropdown > summary::-webkit-details-marker { display: none; }
.menu-categories-dropdown > summary::marker { content: ""; }

.menu-categories-dropdown .menu-item-arrow {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #f8f1ed;
    color: #68142e;
}

.menu-categories-dropdown .menu-item-arrow svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-categories-dropdown[open] > summary .menu-item-arrow {
    transform: rotate(180deg);
}

.menu-category-sublist {
    margin: 10px 0 12px 14px;
    padding: 7px;
    border: 1px solid #f0e2de;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffaf8, #fbf2ef);
    box-shadow: 0 8px 20px rgba(72, 39, 37, .06);
    list-style: none;
}

.menu-category-sublist li + li {
    margin-top: 2px;
}

.menu-category-sublist li { margin: 0; padding: 0; }

.menu-category-sublist a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
    border-bottom: 1px solid #efe4e0;
    border-radius: 8px;
    color: #665557;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, padding .18s ease, transform .18s ease;
}

.menu-category-sublist a:hover {
    transform: translateX(2px);
    background: #f8ecea;
    color: #68142e;
}

.menu-category-sublist li:last-child a { border-bottom-color: transparent; }

.menu-category-sublist a::after {
    color: #ad857a;
    content: "›";
    font-size: 20px;
    font-weight: 400;
}

.menu-category-sublist a.is-current,
.menu-category-sublist a:hover {
    padding-right: 9px;
    padding-left: 15px;
    background: #f7e9e7;
    color: #68142e;
}

@media (prefers-reduced-motion: reduce) {
    .menu-overlay, .side-menu, .menu-item, .menu-item-arrow { transition: none; }
}

/* =========================================================
   MOBILE SIDE-MENU LOGO FIX - feature/product-search
   ========================================================= */

@media (max-width: 600px) {
    .side-menu {
        width: min(360px, 88vw) !important;
        max-width: 88vw !important;
        background: #fffdfb !important;
        color: #211b1d !important;
    }

    .menu-navigation {
        background: #fffdfb !important;
    }

    .menu-item {
        border-bottom: 1px solid #eee8e7 !important;
        background: transparent;
    }

    .side-menu-header {
        min-height: 112px;
        height: 112px;
        padding: 12px 14px 4px;
        overflow: hidden;
    }

    .side-menu-brand {
        width: 100%;
        height: 76px;
        min-height: 76px;
        max-height: 76px;
        padding: 0;
        overflow: hidden;
    }

    .side-menu-brand img {
        display: block;
        width: min(125px, 100%);
        height: 58px;
        max-height: 58px;
        object-fit: contain;
        object-position: center;
    }

    .side-menu-tagline {
        padding-top: 2px;
    }
}

@media (max-width: 370px) {
    .side-menu-header {
        min-height: 104px;
        height: 104px;
    }

    .side-menu-brand {
        height: 70px;
        min-height: 70px;
        max-height: 70px;
    }

    .side-menu-brand img {
        width: 110px;
        height: 52px;
        max-height: 52px;
    }
}


/* =========================================================
   FINAL MOBILE MENU LOGO OVERFLOW FIX
   The logo artwork is overflowing out of its header box on
   some browsers/local builds. Keep the mobile menu header
   clean and prevent the image from affecting menu content.
   ========================================================= */

@media (max-width: 600px) {
    .side-menu-header {
        position: relative;
        min-height: 112px !important;
        height: 112px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 14px !important;
        background: #fff9f7 !important;
        border-bottom: 1px solid #eee3e5 !important;
    }

    .side-menu-header > button {
        position: relative !important;
        z-index: 3 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        margin: 0 !important;
        padding: 8px !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        color: #68142e !important;
        display: grid !important;
        place-items: center !important;
        box-shadow: none !important;
    }

    .side-menu-header > .search-button {
        width: 44px !important;
        height: 44px !important;
        padding: 8px !important;
    }

    .side-menu-header > .search-button svg {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        fill: none !important;
        stroke: #68142e !important;
        stroke-width: 1.8 !important;
    }

    .side-menu-brand {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 76px !important;
        min-height: 76px !important;
        max-height: 76px !important;
        overflow: hidden !important;
        z-index: 2;
    }

    .side-menu-brand img {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 96px !important;
        max-height: 96px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .side-menu-tagline {
        position: relative;
        z-index: 3;
    }

    .menu-navigation {
        position: relative;
        z-index: 4;
    }
}

@media (max-width: 370px) {
    .side-menu-brand img {
        width: auto !important;
        height: auto !important;
        max-width: 88px !important;
        max-height: 88px !important;
    }
}


/* =========================================================
   CLEAN MOBILE MENU WORDMARK
   Avoid using the large artwork in logo.png inside the
   slide-out menu. Keep the existing desktop logo unchanged.
   ========================================================= */

@media (max-width: 600px) {
    .side-menu-brand {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        text-decoration: none;
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .side-menu-brand-text {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #68142e !important;
        font-family: Georgia, "Times New Roman", serif !important;
        font-size: 27px !important;
        font-weight: 700 !important;
        letter-spacing: .18em !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
}

@media (max-width: 370px) {
    .side-menu-brand-text {
        font-size: 23px !important;
        letter-spacing: .14em !important;
    }
}


/* =========================================================
   MOBILE MENU — UNIFIED PREMIUM SURFACE
   Keep the drawer visually consistent: no beige/pink header
   block against a white navigation area.
   ========================================================= */

@media (max-width: 600px) {
    .side-menu {
        background: #fffdfb !important;
        color: #211b1d !important;
        box-shadow: 12px 0 36px rgba(35, 18, 24, .14) !important;
    }

    .side-menu-header {
        background: #fffdfb !important;
        border-bottom: 1px solid #eee8e7 !important;
    }

    .side-menu-tagline {
        background: #fffdfb !important;
        color: #80645f !important;
        border-bottom: 0 !important;
    }

    .menu-navigation {
        background: #fffdfb !important;
    }

    .menu-item {
        background: transparent !important;
        color: #252126 !important;
    }

    .menu-item:hover {
        background: #fff7f8 !important;
    }

    .menu-item.is-current {
        background: #fff1f4 !important;
        color: #68142e !important;
        box-shadow: inset 3px 0 0 #68142e !important;
    }

    .menu-item-icon {
        background: #fff1f4 !important;
        color: #68142e !important;
    }

    .menu-item.is-current .menu-item-icon {
        background: #f9dce5 !important;
    }

    .side-menu-header > button:hover {
        background: #fff1f4 !important;
    }
}

/* Refined hamburger drawer: richer brand header, calmer type, and clearer rows. */
.side-menu {
    width: min(390px, 90vw);
    max-width: 90vw;
    background: #fffdfb;
    color: #302326;
    border-right: 1px solid #ead9d5;
    box-shadow: 18px 0 48px rgb(48 23 31 / 18%);
    scrollbar-width: none;
    overscroll-behavior: contain;
}

.side-menu::-webkit-scrollbar { display: none; }

.side-menu-header {
    position: relative;
    min-height: 154px;
    background: linear-gradient(135deg, #f8eeeb 0%, #fffaf5 58%, #f3e2d4 100%);
    border-bottom: 1px solid #ead9d5;
}

.side-menu-header::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #68142e, #b67a36 62%, #ead2a4);
    content: "";
}

.side-menu-header::after {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 154, 69, .18), transparent 68%);
    content: "";
    pointer-events: none;
}

.side-menu-header > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgb(255 255 255 / 72%);
    color: #68142e;
    transition: background .18s ease, transform .18s ease;
}

.side-menu-header > button:hover {
    background: #fff;
    transform: translateY(-1px);
}

.side-menu-tagline {
    padding: 13px 18px 11px;
    background: #fffaf7;
    color: #8a5b50;
    font-size: 10px;
    letter-spacing: .24em;
}

.menu-navigation {
    padding: 14px 16px 28px;
    background: #fffdfb;
}

.menu-item {
    min-height: 62px;
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    padding: 8px 10px;
    border: 0;
    border-radius: 14px;
    color: #33272a;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .005em;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.menu-item + li { border-top: 1px solid #f0e8e5; }
.menu-list li + li { border-top: 1px solid #f0e8e5; }

.menu-item:hover {
    transform: translateX(2px);
    background: #fbf1ef;
    color: #68142e;
    box-shadow: 0 6px 16px rgba(84, 38, 47, .04);
}

.menu-item.is-current {
    margin: 3px 0;
    background: linear-gradient(100deg, #f8e9e9, #fcf4ed);
    box-shadow: inset 3px 0 #8c2946, 0 8px 18px rgba(84, 38, 47, .04);
    color: #68142e;
}

.menu-item-icon {
    width: 38px;
    height: 38px;
    background: #f9eeef;
    color: #812440;
    transition: background .18s ease, color .18s ease;
}

.menu-item-icon svg { width: 20px; height: 20px; }
.menu-item:hover .menu-item-icon,
.menu-item.is-current .menu-item-icon { background: #edd5d8; color: #68142e; }

.menu-item-label { padding-left: 4px; }

.menu-item-arrow {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #f8f1ed;
    color: #9b796d;
    font-size: 22px;
}

.menu-item:hover .menu-item-arrow,
.menu-item.is-current .menu-item-arrow { background: #edd5d8; color: #68142e; }

@media (max-width: 600px) {
    .side-menu { width: min(390px, 90vw) !important; max-width: 90vw !important; }
    .side-menu-header { min-height: 136px; height: 136px; }
    .menu-navigation { padding: 10px 14px 24px; }
    .menu-item { min-height: 60px; font-size: 15px; }
    .menu-item-icon { width: 38px; height: 38px; }
}

/* Final drawer hierarchy and brand details. */
.side-menu {
    scrollbar-width: thin;
    scrollbar-color: #d9b8ae transparent;
}

.side-menu::-webkit-scrollbar { display: block; width: 5px; }
.side-menu::-webkit-scrollbar-thumb { border-radius: 8px; background: #d9b8ae; }
.side-menu::-webkit-scrollbar-track { background: transparent; }

.side-menu-header {
    min-height: 126px;
    height: 126px;
    padding: 20px 20px;
    gap: 16px;
}

.side-menu-brand-image {
    width: 92px;
    height: 92px;
    padding: 5px;
    border: 1px solid rgb(177 132 76 / 22%);
    border-radius: 4px;
    background: #fffaf0;
    box-shadow: 0 7px 18px rgb(91 46 37 / 9%);
}

.side-menu-tagline {
    padding: 12px 18px 9px;
    font-size: 9px;
    letter-spacing: .25em;
}

.menu-navigation { padding-top: 8px; }

.menu-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 10px 7px;
    color: #9a7770;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1;
    text-transform: uppercase;
}

.menu-section-heading i {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, #eadbd4, transparent);
}

.menu-list li + li { border-color: #f2eae6; }

.menu-item {
    min-height: 58px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
}

.menu-item.is-current { margin: 2px 0; }

.menu-help-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 11px;
    margin: 18px 2px 0;
    padding: 13px 12px;
    border: 1px solid #efded8;
    border-radius: 14px;
    background: linear-gradient(110deg, #fff7f3, #fbf0f1);
    color: #5e2837;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 10px 20px rgba(90, 47, 53, .04);
}

.menu-help-link:hover {
    transform: translateY(-1px);
    border-color: #dcb8b5;
    box-shadow: 0 10px 20px rgba(104, 20, 46, .08);
}

.menu-help-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #812440;
}

.menu-help-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-help-link strong,
.menu-help-link small { display: block; }
.menu-help-link strong { font-size: 13px; font-weight: 700; }
.menu-help-link small { margin-top: 3px; color: #8a706d; font-size: 11px; line-height: 1.35; }
.menu-help-arrow { color: #9c6670; font-size: 23px; text-align: center; }

@media (max-width: 600px) {
    .side-menu-header { min-height: 112px; height: 112px; padding: 14px 14px; }
    .side-menu-brand-image { width: 80px; height: 80px; padding: 4px; }
    .side-menu-tagline { padding: 10px 12px 8px; }
    .menu-navigation { padding: 9px 13px 20px; }
    .menu-item { min-height: 55px; font-size: 14px; }
    .menu-item-icon { width: 36px; height: 36px; }
    .menu-help-link { margin-top: 14px; }
}

/* Keep the navigation edge clean; scrolling still works without a visible track. */
.side-menu { scrollbar-width: none; }
.side-menu::-webkit-scrollbar { display: none; }
.menu-item-arrow { display: none; }
.menu-item { grid-template-columns: 44px minmax(0, 1fr); }

@media (max-width: 600px) {
    .menu-item { grid-template-columns: 44px minmax(0, 1fr); }
}

/* Anchor the drawer's brand and support actions while its links scroll. */
.side-menu-header {
    position: sticky;
    top: 0;
    z-index: 6;
    flex: 0 0 auto;
    min-height: 112px;
    height: 112px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8eeeb 0%, #fffaf5 62%, #f3e2d4 100%);
    box-shadow: 0 5px 16px rgb(72 39 37 / 6%);
}

.side-menu-brand-image {
    box-sizing: border-box;
    width: 80px;
    height: 80px;
    padding: 4px;
}

.side-menu-tagline { flex: 0 0 auto; }
.menu-navigation { padding-bottom: 16px; }

.menu-help-link {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    margin-top: 14px;
    background: linear-gradient(110deg, #fff7f3, #fbf0f1);
    box-shadow: 0 -8px 18px rgb(255 253 251 / 88%);
}

.side-menu-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 0 6px;
    color: #a1847d;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
}

.side-menu-footer-note i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #bf9758;
}

@media (max-width: 600px) {
    .side-menu-header {
        min-height: 112px !important;
        height: 112px !important;
        padding: 12px 14px !important;
        align-items: center !important;
    }

    .side-menu-brand-image {
        width: auto !important;
        height: auto !important;
        max-width: 76px !important;
        max-height: 76px !important;
        box-sizing: border-box !important;
        padding: 3px !important;
    }
}


/* Mobile drawer: reliable vertical scrolling and aligned category disclosure. */
.side-menu {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.side-menu-header {
    flex: 0 0 auto;
}

.side-menu-tagline {
    flex: 0 0 auto;
}

.menu-navigation {
    flex: 0 0 auto;
    min-height: min-content;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.menu-categories-dropdown {
    display: block;
    width: 100%;
}

.menu-categories-dropdown > summary.menu-item {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 28px !important;
    align-items: center;
    justify-content: initial;
    gap: 8px;
    min-height: 58px;
    padding: 9px 8px;
    list-style: none;
    cursor: pointer;
}

.menu-categories-dropdown > summary.menu-item::-webkit-details-marker {
    display: none;
}

.menu-categories-dropdown > summary .menu-item-label {
    min-width: 0;
    padding-left: 4px;
}

.menu-categories-dropdown > summary .menu-item-arrow {
    display: grid !important;
    position: static;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: #f8f1ed;
    color: #68142e;
    transform: none;
    transition: transform .2s ease, background .2s ease;
}

.menu-categories-dropdown[open] > summary .menu-item-arrow {
    transform: rotate(180deg);
    background: #edd5d8;
}

.menu-category-sublist {
    display: block;
    margin: 2px 0 10px 52px;
    padding: 6px;
    border: 1px solid #f0e2de;
    border-radius: 12px;
    background: #fff8f6;
}

.menu-category-sublist a {
    min-height: 42px;
    padding: 10px 12px;
    line-height: 1.35;
}

@media (max-width: 600px) {
    .side-menu {
        width: min(390px, 90vw) !important;
        max-width: 90vw !important;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto !important;
    }

    .menu-navigation {
        padding: 9px 13px max(24px, env(safe-area-inset-bottom));
    }

    .menu-categories-dropdown > summary.menu-item {
        grid-template-columns: 44px minmax(0, 1fr) 28px !important;
        min-height: 62px;
        font-size: 16px;
    }

    .menu-category-sublist {
        margin-left: 48px;
    }

    .menu-help-link {
        position: static;
        margin-top: 16px;
        box-shadow: 0 8px 20px rgba(90, 47, 53, .05);
    }
}


/* Colorful, responsive category accordion for desktop and mobile sidebars. */
.menu-categories-dropdown {
    display: block;
    width: 100%;
    margin: 4px 0;
    overflow: hidden;
    border: 1px solid #f0d9dc;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff8f6 0%, #fff0f2 100%);
    box-shadow: 0 5px 16px rgba(104, 20, 46, .055);
}

.menu-categories-dropdown > summary.menu-item {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 30px !important;
    align-items: center;
    gap: 9px;
    min-height: 60px;
    padding: 9px 12px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #fbe5e8 0%, #fff1eb 100%);
    color: #761b36;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.menu-categories-dropdown > summary::-webkit-details-marker { display: none; }
.menu-categories-dropdown > summary::marker { content: ""; }

.menu-categories-dropdown > summary .menu-item-icon {
    width: 40px;
    height: 40px;
    background: #efd0d8;
    color: #761b36;
}

.menu-categories-dropdown > summary .menu-item-arrow {
    display: grid !important;
    position: static;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    color: #761b36;
    transform: none;
    transition: transform .2s ease, background .2s ease;
}

.menu-categories-dropdown > summary .menu-item-arrow svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-categories-dropdown[open] > summary .menu-item-arrow {
    transform: rotate(180deg);
    background: #fff;
}

.menu-category-sublist {
    list-style: none;
    margin: 0 !important;
    padding: 7px 9px 9px 16px !important;
    background: linear-gradient(180deg, #fff8f6, #fffdfb);
}

.menu-category-sublist li { margin: 0; padding: 0; }

.menu-category-sublist li + li {
    border-top: 1px solid #f1e3e0;
}

.menu-category-sublist a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    color: #61464d;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, padding .18s ease;
}

.menu-category-sublist a::after {
    content: "›";
    color: #b27b87;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.menu-category-sublist a:hover,
.menu-category-sublist a.is-current {
    padding-left: 16px;
    background: #f8e7eb;
    color: #761b36;
}

.menu-category-sublist a:hover::after,
.menu-category-sublist a.is-current::after { color: #761b36; }

@media (min-width: 601px) {
    .menu-categories-dropdown > summary.menu-item { min-height: 62px; }
    .menu-category-sublist { padding: 9px 10px 11px 18px !important; }
    .menu-category-sublist a { min-height: 44px; font-size: 14px; }
}

@media (max-width: 600px) {
    .menu-categories-dropdown { margin: 5px 0; border-radius: 14px; }
    .menu-categories-dropdown > summary.menu-item {
        grid-template-columns: 44px minmax(0, 1fr) 28px !important;
        min-height: 58px;
        padding: 8px 9px;
        font-size: 15px;
    }
    .menu-category-sublist {
        margin: 0 !important;
        padding: 5px 8px 8px 13px !important;
    }
    .menu-category-sublist a { min-height: 42px; font-size: 14px; }
}


/* Hide trailing arrows on individual category links in the side menu.
   Keep the Categories expand/collapse chevron on the section header. */
.menu-category-sublist a::after {
    display: none !important;
    content: none !important;
}

/* Match the side-menu links to the colored Categories accordion card. */
.menu-list > li:not(.menu-category-group) {
    margin: 6px 0;
    border: 0;
}

.menu-list > li:not(.menu-category-group) > .menu-item {
    min-height: 62px;
    border: 1px solid #eedfdc;
    border-radius: 14px;
    background: linear-gradient(110deg, #fff7f5, #fffdfb);
    box-shadow: 0 4px 12px rgb(84 38 47 / 4%);
}

.menu-list > li:nth-child(1) > .menu-item { border-color: #efd9de; background: linear-gradient(110deg, #fff2f4, #fffaf8); }
.menu-list > li:nth-child(2) > .menu-item { border-color: #f0dfc8; background: linear-gradient(110deg, #fff7eb, #fffdf7); }
.menu-list > li:nth-child(4) > .menu-item { border-color: #dce8dd; background: linear-gradient(110deg, #f1f8f1, #fbfdf9); }
.menu-list > li:nth-child(5) > .menu-item { border-color: #e4dcef; background: linear-gradient(110deg, #f7f2fb, #fdfbff); }
.menu-list > li:nth-child(6) > .menu-item { border-color: #eadbd4; background: linear-gradient(110deg, #fbf4ef, #fffdf9); }

.menu-list > li:not(.menu-category-group) > .menu-item:hover {
    border-color: #d9b7b4;
    background: linear-gradient(110deg, #f9e9eb, #fff7f2);
    box-shadow: 0 7px 16px rgb(84 38 47 / 9%);
}

.menu-list > li:not(.menu-category-group) > .menu-item .menu-item-icon {
    border: 1px solid rgb(255 255 255 / 85%);
    box-shadow: 0 2px 7px rgb(79 35 47 / 7%);
}

.menu-list > li:nth-child(1) .menu-item-icon { background: #f8e5e9; color: #8a2948; }
.menu-list > li:nth-child(2) .menu-item-icon { background: #f7ead7; color: #9a672d; }
.menu-list > li:nth-child(4) .menu-item-icon { background: #e5efe5; color: #527a60; }
.menu-list > li:nth-child(5) .menu-item-icon { background: #eee6f4; color: #75558c; }
.menu-list > li:nth-child(6) .menu-item-icon { background: #f1e6df; color: #815a49; }
