/* =========================
   Sivvia Sidebar (Unified)
   Structure inspired by reference UI (pill list + sections)
   Colors/icons remain Sivvia brand
   ========================= */

/* Brand fallbacks (if not already defined) */



:root {
    --brand: #E33789;
    --brand-dark: #AF2864;
    --side-bg: #ffffff;
    --side-pill: #fff1f7;
    /* soft pink tint */
    --side-pill-2: #ffe6f1;
    --side-title: #8a8a8a;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 998;
    display: none;
}

.overlay.show {
    display: block;
}

/* Sidebar shell */
.nav {
    position: fixed;
    top: 0;
    right: -340px;
    width: min(340px, 92vw);
    height: 100vh;
    background: var(--side-bg);
    border-radius: 22px 0 0 22px;
    box-shadow: -12px 0 40px rgba(0, 0, 0, .25);
    z-index: 999;
    overflow: hidden;
    transition: right .35s ease;
    display: flex;
    flex-direction: column;
}

.nav.expanded {
    right: 0;
}

/* Top header (same structure as reference, Sivvia colors) */
.sideTop {
    /* remove fixed height */
    height: auto;
    min-height: 92px;
    /* keeps nice header size */
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
background: linear-gradient(90deg, #e3378900 0%, #ff5fa1 55%, var(--brand-dark) 100%);
}

.sideLogo {
    display: block;
    height: 56px;
    width: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .18));
}

.nav * {
    box-sizing: border-box;
}

.sideScroll {
    padding-top: 12px;
}

/* slightly tighter */


/* Close button (round) */
.sideClose {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, .25);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(8px);
}

.sideClose i {
    font-size: 22px;
}

/* Scroll area */
.sideScroll {
    padding: 18px 16px 14px;
    overflow: auto;
    flex: 1;
}

/* Section titles (COMPANY / PRODUCTS / CONTACT) */
.sideSectionTitle {
    margin: 14px 6px 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--side-title);
    font-size: 14px;
}

/* Menu items pills */
.sideItem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    border-radius: 22px;
    background: var(--side-pill);
    margin: 10px 0;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .04);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.sideItem:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    background: var(--side-pill-2);
}

/* Active item (subtle, keep same brand theme) */
.sideItem.active {
    background: linear-gradient(90deg, rgba(227, 55, 137, .18), rgba(175, 40, 100, .12));
    border-color: rgba(227, 55, 137, .22);
}

/* Icon bubble */
.sideIcon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
    flex: 0 0 auto;
}

.sideIcon i {
    color: var(--brand);
    font-size: 18px;
}

/* Item text */
.sideText {
    font-size: 24px;
    font-weight: 750;
    color: var(--brand);
    letter-spacing: .01em;
    line-height: 1.05;
}

/* Contact rows */
.sideContact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.sideContactRow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    border-radius: 22px;
    background: var(--side-pill);
    border: 1px solid rgba(0, 0, 0, .04);
}

.sideContactRow .sideText {
    font-size: 18px;
    color: #4b4b4b;
    font-weight: 700;
    word-break: break-word;
}

/* Footer inside sidebar */
.sideFooter {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    background: rgba(255, 255, 255, .9);
}

.sideFooterBrand {
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 12px;
    color: #6b6b6b;
}

.sideFooterSmall {
    margin-top: 6px;
    font-size: 12px;
    color: #8a8a8a;
    line-height: 1.4;
}

.sideFooterSmall a {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 700;
}

.sideFooterSmall a:hover {
    text-decoration: underline;
}

/* Mobile tuning */
@media (max-width:520px) {
    .sideText {
        font-size: 22px;
    }

    .sideContactRow .sideText {
        font-size: 16px;
    }
}


/* Sticky footer contact lines */
.sideFooterContact {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sideFooterLine {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    background: var(--side-pill);
    border: 1px solid rgba(0, 0, 0, .04);
    text-decoration: none;
}

.sideFooterIco {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
    flex: 0 0 auto;
}

.sideFooterIco i {
    color: var(--brand);
    font-size: 16px;
}

.sideFooterTxt {
    color: #4b4b4b;
    font-weight: 750;
    font-size: 16px;
    word-break: break-word;
}



/* Make sidebar perfect at 320px */
@media (max-width:360px) {
    .nav {
        width: 92vw;
        border-radius: 18px 0 0 18px;
    }

    .sideTop {
        height: 104px;
        padding: 14px;
    }

    .sideLogo {
        height: 54px;
    }

    .sideClose {
        width: 48px;
        height: 48px;
    }

    .sideScroll {
        padding: 14px 14px 12px;
    }

    .sideItem {
        padding: 14px 14px;
        border-radius: 20px;
    }

    .sideIcon {
        width: 34px;
        height: 34px;
        border-radius: 13px;
    }

    .sideIcon i {
        font-size: 16px;
    }

    .sideText {
        font-size: 20px;
    }

    .sideFooter {
        padding: 12px 14px 14px;
    }

    .sideFooterTxt {
        font-size: 14px;
    }
}