/* =========================================================
   SAILIMART MOBILE MENU V4
   (Astra burger hide + scrollbar-gutter CSS alada file e ache:
    sailimart-additional-css.css -> Customize > Additional CSS)
   ========================================================= */

#sm-widget-root,
#sm-widget-root * {
    box-sizing: border-box;
}

#sm-widget-root {
    font-family: Arial, Helvetica, sans-serif;
}

/* ---------- HAMBURGER ---------- */
#sm-burger {
    position: absolute; /* page er upore, scroll korle shore jabe */
    top: 10px;
    left: 14px;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 999999;
    -webkit-tap-highlight-color: transparent;
}

#sm-burger span {
    display: block;
    width: 23px;
    height: 3px;
    background: #0A5D56 !important;
    border-radius: 10px;
    transition: transform .25s ease, opacity .2s ease, width .2s ease;
}

#sm-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#sm-burger.open span:nth-child(2) { opacity: 0; width: 0; }
#sm-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#sm-burger:focus-visible {
    outline: 2px solid #0A5D56 !important;
    outline-offset: 3px;
}

/* Header er bhitore gele (JS class dey) header er majhkhane boshbe */
#sm-burger.sm-in-header {
    top: 50%;
    transform: translateY(-50%);
}

/* Header er bhitore na gele, login thakle admin bar er niche rakho */
body.admin-bar #sm-burger:not(.sm-in-header) { top: 42px; }

@media (max-width: 782px) {
    body.admin-bar #sm-burger:not(.sm-in-header) { top: 56px; }
}

@media (min-width: 1025px) {
    #sm-burger { display: none !important; }
}

/* ---------- OVERLAY (blur remove kora, mobile e smooth) ---------- */
#sm-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 999997;
}

#sm-scrim.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ---------- DRAWER ---------- */
#sm-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86%;
    max-width: 355px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff !important;
    border-right: 1px solid rgba(0, 0, 0, .12);
    box-shadow: none;
    transform: translate3d(-105%, 0, 0);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.22, .8, .25, 1), visibility 0s linear .32s;
    z-index: 999998;
    overflow: hidden;
    will-change: transform;
    contain: layout style;
}

#sm-drawer.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    box-shadow: 20px 0 40px rgba(0, 0, 0, .08);
    transition: transform .32s cubic-bezier(.22, .8, .25, 1), visibility 0s;
}

/* ---------- HEADER / LOGO ---------- */
.sm-head {
    flex: 0 0 auto;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #fafcfc;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.sm-logo { width: 115px; max-width: 70%; }
.sm-logo a { display: block; line-height: 0; }
.sm-logo img { display: block; width: 100%; height: auto; }

/* ---------- SEARCH ---------- */
.sm-search-wrap {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 18px 10px;
    background: #fff;
}

.sm-search-box {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    background: #f2f5f5;
    border: 1px solid #dce3e1;
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sm-search-box:focus-within {
    border-color: #0A5D56;
    box-shadow: 0 0 0 3px rgba(10, 93, 86, .11);
}

.sm-search-box svg { flex: 0 0 auto; opacity: .6; }

.sm-search-box input {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    color: #1e1e1e !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px; /* iPhone e zoom bondho korte 16px */
}

.sm-search-box input::placeholder { color: #6f7e7a; font-size: 13px; }

.sm-search-loading {
    position: absolute;
    right: 13px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    border: 2px solid #dce3e1;
    border-top-color: #0A5D56;
    border-radius: 50%;
    display: none;
    animation: smSpin .55s linear infinite;
}

.sm-search-loading.show { display: block; }

@keyframes smSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

#sm-live-results {
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    background: #fff;
    border: 1px solid #d0d9d6;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    z-index: 999999;
}

#sm-live-results.show { display: block; }
#sm-live-results::-webkit-scrollbar { width: 3px; }
#sm-live-results::-webkit-scrollbar-thumb { background: #0A5D56; border-radius: 10px; }

.sm-live-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    min-height: 48px;
    color: #1e1e1e;
    text-decoration: none;
    border-bottom: 1px solid #edf1ef;
    transition: background .15s ease;
}

.sm-live-item:last-child { border-bottom: 0; }
.sm-live-item:hover,
.sm-live-item:focus-visible { background: #f2f7f5; }

.sm-live-info { min-width: 0; width: 100%; }

.sm-live-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #0a2b27;
    font-size: 13px;
    font-weight: 500;
}

.sm-live-price { margin-top: 2px; color: #0A5D56; font-size: 12px; font-weight: 600; }
.sm-live-message { padding: 20px 12px; text-align: center; color: #5f6f6b; font-size: 13px; }

/* ---------- SCROLL AREA ---------- */
.sm-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
}

.sm-scroll::-webkit-scrollbar { width: 3px; }
.sm-scroll::-webkit-scrollbar-thumb { background: #0A5D56; border-radius: 10px; }

/* ---------- MAIN MENU ---------- */
.sm-nav-list { list-style: none; margin: 4px 0 0; padding: 0; }
.sm-nav-item { margin: 0; padding: 0; }

.sm-nav-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 18px;
    color: #1e1e1e;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #ecf0ee;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease;
}

.sm-nav-row:hover,
.sm-nav-row:focus-visible { background: #f2f7f5; }
.sm-nav-row:focus-visible { outline: 2px solid #0A5D56; outline-offset: -2px; }

#sm-widget-root .dash { color: #0A5D56 !important; font-weight: 700; }

.sm-chevron {
    margin-left: auto;
    color: #0A5D56;
    font-size: 19px;
    line-height: 1;
    transition: transform .22s ease;
}

.sm-nav-item.expanded .sm-chevron { transform: rotate(90deg); color: #2a8f86; }

/* ---------- SUBMENU ---------- */
.sm-submenu {
    max-height: 0;
    overflow: hidden;
    background: #f8fbfa;
    transition: max-height .28s ease;
}

.sm-submenu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px 8px 50px;
    color: #2e3f3b;
    font-size: 12.5px;
    text-decoration: none;
    border-bottom: 1px solid #e6ece9;
    transition: background .15s ease, color .15s ease;
}

.sm-submenu a:hover,
.sm-submenu a:focus-visible { color: #0A5D56; background: #eef5f2; }

/* ---------- SECTION LABEL ---------- */
.sm-section-label {
    margin-top: 4px;
    padding: 13px 18px 8px;
    color: #0A5D56;
    border-top: 1px solid #e6ece9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* ---------- EXPLORE ---------- */
.sm-explore-links { margin: 0; padding: 0; }

.sm-explore-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 18px;
    color: #1e1e1e;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #ecf0ee;
    transition: background .15s ease, color .15s ease;
}

.sm-explore-links a:hover,
.sm-explore-links a:focus-visible { color: #0A5D56; background: #f2f7f5; }

/* ---------- BRANDS ---------- */
.sm-brand-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 18px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #0A5D56 transparent;
}

.sm-brand-scroller::-webkit-scrollbar { height: 3px; }
.sm-brand-scroller::-webkit-scrollbar-track { background: transparent; }
.sm-brand-scroller::-webkit-scrollbar-thumb { background: #0A5D56; border-radius: 10px; }

.sm-brand-pill {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #fff;
    border: 1px solid #dce3e1;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease;
}

.sm-brand-pill:hover,
.sm-brand-pill:focus-visible { border-color: #0A5D56; transform: scale(1.04); }

.sm-brand-pill img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- PROMO ---------- */
.sm-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 18px 0;
    padding: 10px 12px;
    border: 1px solid #d0dbd7;
    border-radius: 12px;
    background: #f4f9f7;
}

.sm-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #0A5D56; }
.sm-promo p { margin: 0; color: #1e2b27; font-size: 11px; line-height: 1.45; }
.sm-promo b { color: #0A5D56; }
.sm-promo-offer { margin-top: 8px; border-color: #0A5D56; background: #eef7f4; }
.sm-promo-offer .sm-dot { background: #e67e22; }

/* ---------- SMALL DEVICES ---------- */
@media (max-width: 360px) {
    #sm-drawer { width: 90%; }
    .sm-logo { width: 105px; }
    .sm-nav-row { padding-left: 15px; padding-right: 15px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    #sm-drawer,
    #sm-scrim,
    #sm-burger span,
    .sm-chevron,
    .sm-submenu,
    .sm-brand-pill { transition: none !important; }
    .sm-search-loading { animation: none !important; }
}

/* ---------- PRINT ---------- */
@media print {
    #sm-widget-root,
    #sm-burger,
    #sm-scrim,
    #sm-drawer,
    #sm-live-results { display: none !important; }
}