/* =========================================================
   Drosly Smart Search
   Compatible with SmartSearchEngine JS
   - Styles trigger (#searchInput)
   - Styles JS generated modal (.ss-*)
   - No logic changes
========================================================= */

:root{
    --dss-green:#023720;
    --dss-green-2:#075c39;
    --dss-green-3:#0c7a49;
    --dss-green-4:#2EB97E;
    --dss-green-soft:#EAF7F0;
    --dss-green-soft-2:#F5FBF7;
    --dss-text:#122019;
    --dss-text-soft:#66756d;
    --dss-border:rgba(2,55,32,.10);
    --dss-border-strong:rgba(2,55,32,.16);
    --dss-white:#ffffff;
    --dss-shadow-xs:0 8px 22px rgba(2,55,32,.05);
    --dss-shadow-sm:0 14px 30px rgba(2,55,32,.08);
    --dss-shadow-md:0 24px 55px rgba(2,55,32,.13);
    --dss-shadow-lg:0 34px 85px rgba(2,55,32,.18);
    --dss-speed:.28s cubic-bezier(.22,1,.36,1);
}

/* =========================
   Trigger Bar
========================= */
.dss-trigger{
    position: relative;
}

.dss-trigger-shell{
    position: relative;
    isolation: isolate;
}

.dss-trigger-glow{
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
    z-index: -1;
    opacity: .9;
}

.dss-trigger-glow--left{
    left: 10px;
    top: 4px;
    width: 120px;
    height: 44px;
    background: radial-gradient(circle, rgba(46,185,126,.18), transparent 72%);
}

.dss-trigger-glow--right{
    right: 10px;
    top: 2px;
    width: 120px;
    height: 52px;
    background: radial-gradient(circle, rgba(2,55,32,.12), transparent 72%);
}

.dss-trigger-input{
    width: 100%;
    border: 1.5px solid rgba(2,55,32,.10);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,251,248,.98) 100%);
    color: var(--dss-text);
    font-weight: 600;
    letter-spacing: -.01em;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.85),
        0 10px 28px rgba(2,55,32,.06);
    transition:
        border-color var(--dss-speed),
        box-shadow var(--dss-speed),
        transform var(--dss-speed),
        background var(--dss-speed);
}

.dss-trigger-input::placeholder{
    color: #7a8b82;
    font-weight: 500;
}

.dss-trigger-input:hover{
    border-color: rgba(2,55,32,.16);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        0 16px 34px rgba(2,55,32,.08);
}

.dss-trigger-input:focus{
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(46,185,126,.58);
    background:
        linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(242,251,246,1) 100%);
    box-shadow:
        0 0 0 5px rgba(46,185,126,.12),
        0 22px 44px rgba(2,55,32,.12);
}

.dss-trigger-btn{
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d7a4a 0%, #023720 100%);
    box-shadow:
        0 12px 24px rgba(2,55,32,.16),
        inset 0 1px 0 rgba(255,255,255,.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform var(--dss-speed),
        box-shadow var(--dss-speed),
        filter var(--dss-speed);
}

.dss-trigger-btn:hover{
    transform: translateY(-50%) scale(1.05);
    box-shadow:
        0 18px 34px rgba(2,55,32,.22),
        inset 0 1px 0 rgba(255,255,255,.22);
    filter: saturate(1.05);
}

.dss-trigger-btn:active{
    transform: translateY(-50%) scale(.98);
}

/* =========================
   JS Generated Overlay / Modal
========================= */
.ss-overlay{
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(6, 16, 11, .46);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.ss-overlay.ss-active{
    opacity: 1;
    visibility: visible;
}

.ss-container{
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(16px) scale(.985);
    width: min(92vw, 920px);
    max-height: calc(100vh - 44px);
    z-index: 9999;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,252,249,.98) 100%);
    border: 1px solid rgba(2,55,32,.08);
    border-radius: 30px;
    box-shadow:
        0 36px 90px rgba(2,55,32,.18),
        0 12px 30px rgba(2,55,32,.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all .34s cubic-bezier(.22,1,.36,1);
}

.ss-container::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:4px;
    background: linear-gradient(90deg, #2EB97E 0%, #0b7a49 35%, #023720 100%);
    z-index: 1;
}

.ss-container::after{
    content:"";
    position:absolute;
    top:-90px;
    right:-70px;
    width:240px;
    height:240px;
    border-radius:999px;
    background: radial-gradient(circle, rgba(46,185,126,.13), transparent 68%);
    pointer-events:none;
}

.ss-container.ss-active{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* =========================
   Input Area
========================= */
.ss-input-wrap{
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(2,55,32,.07);
    background:
        linear-gradient(180deg, rgba(243,251,247,.9) 0%, rgba(255,255,255,.6) 100%);
}

.ss-input-icon{
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #0b7a49;
}

.ss-input{
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dss-text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ss-input::placeholder{
    color: #7a8b82;
    font-weight: 500;
}

.ss-clear-btn,
.ss-voice-btn{
    flex-shrink: 0;
    border: 0;
    cursor: pointer;
    transition: all var(--dss-speed);
}

.ss-clear-btn{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f2f6f3;
    color: #708078;
}

.ss-clear-btn:hover{
    background: #e8efea;
    color: var(--dss-green);
}

.ss-clear-btn.ss-visible{
    display: inline-flex;
}

.ss-voice-btn{
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef8f3;
    color: var(--dss-green);
    border: 1px solid rgba(46,185,126,.16);
}

.ss-voice-btn:hover{
    transform: translateY(-1px);
    background: #e2f4ea;
}

.ss-voice-btn.ss-listening{
    background: #fee2e2;
    color: #dc2626;
    border-color: rgba(220,38,38,.18);
    animation: dssPulse 1.5s ease-in-out infinite;
}

@keyframes dssPulse{
    0%,100%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(220,38,38,.30); }
    50%{ transform: scale(1.05); box-shadow: 0 0 0 10px rgba(220,38,38,0); }
}

.ss-esc-hint{
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f3f6f4;
    color: #6f7d75;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
}

/* =========================
   Body
========================= */
.ss-body{
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    padding: 14px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(2,55,32,.18) transparent;
}

.ss-body::-webkit-scrollbar{
    width: 7px;
}
.ss-body::-webkit-scrollbar-thumb{
    background: rgba(2,55,32,.18);
    border-radius: 999px;
}

/* =========================
   Sections
========================= */
.ss-section{
    padding: 8px 18px;
}

.ss-section-title{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--dss-text);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ss-section-title .ss-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 13px;
    background: linear-gradient(135deg, #dff5ea 0%, #f4fbf7 100%);
    border: 1px solid rgba(46,185,126,.18);
}

.ss-divider{
    height: 1px;
    margin: 8px 18px;
    background: linear-gradient(90deg, transparent 0%, rgba(2,55,32,.10) 15%, rgba(2,55,32,.10) 85%, transparent 100%);
}

/* =========================
   Items
========================= */
.ss-item,
.ss-cat-item,
.ss-blog-item,
.ss-recent-item{
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    transition:
        transform var(--dss-speed),
        border-color var(--dss-speed),
        background-color var(--dss-speed),
        box-shadow var(--dss-speed);
}

.ss-item,
.ss-cat-item,
.ss-blog-item{
    padding: 12px 14px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
    border: 1px solid rgba(2,55,32,.07);
    box-shadow: 0 10px 24px rgba(2,55,32,.05);
}

.ss-item:hover,
.ss-cat-item:hover,
.ss-blog-item:hover,
.ss-item.ss-focused,
.ss-cat-item.ss-focused,
.ss-blog-item.ss-focused{
    transform: translateY(-2px);
    border-color: rgba(46,185,126,.24);
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
    box-shadow: 0 18px 34px rgba(2,55,32,.10);
}

.ss-recent-item{
    padding: 11px 14px;
    margin-bottom: 8px;
    background: rgba(255,255,255,.74);
    border: 1px solid transparent;
}

.ss-recent-item:hover,
.ss-recent-item.ss-focused{
    transform: translateX(4px);
    background: #f4fbf7;
    border-color: rgba(46,185,126,.18);
}

/* =========================
   Course Items
========================= */
.ss-item-img{
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(2,55,32,.08);
    background: #eef4f0;
}

.ss-item-info{
    min-width: 0;
    flex: 1;
}

.ss-item-title,
.ss-blog-title,
.ss-cat-name{
    color: var(--dss-text);
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.35;
}

.ss-item-meta,
.ss-blog-meta{
    margin-top: 4px;
    color: var(--dss-text-soft);
    font-size: .78rem;
    line-height: 1.5;
}

.ss-item-price{
    flex-shrink: 0;
    color: var(--dss-green);
    font-size: .84rem;
    font-weight: 900;
}

.ss-item-price.ss-free{
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(46,185,126,.10);
    border: 1px solid rgba(46,185,126,.16);
    color: #0b7a49;
    font-size: .72rem;
    letter-spacing: .02em;
}

.ss-item-price .ss-original{
    margin-left: 6px;
    color: #97a49d;
    font-size: .72rem;
    font-weight: 500;
    text-decoration: line-through;
}

/* =========================
   Category / Blog / Recent
========================= */
.ss-cat-icon,
.ss-blog-icon{
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dff5ea 0%, #f4fbf7 100%);
    border: 1px solid rgba(46,185,126,.18);
    color: var(--dss-green);
    font-size: 15px;
}

.ss-cat-count{
    margin-inline-start: auto;
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(46,185,126,.10);
    color: #0b7a49;
    border: 1px solid rgba(46,185,126,.16);
    font-size: .7rem;
    font-weight: 800;
}

.ss-recent-icon{
    width: 18px;
    height: 18px;
    color: #708078;
    flex-shrink: 0;
}

.ss-recent-text{
    flex: 1;
    min-width: 0;
    color: var(--dss-text);
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-recent-remove{
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #9aa6a0;
    cursor: pointer;
    opacity: 0;
    transition: all var(--dss-speed);
}

.ss-recent-item:hover .ss-recent-remove{
    opacity: 1;
}

.ss-recent-remove:hover{
    color: #dc2626;
    background: #fee2e2;
}

/* =========================
   Highlight / Synonym / Empty
========================= */
mark.ss-highlight{
    padding: 0 3px;
    border-radius: 6px;
    background: #e8f7ef;
    color: var(--dss-green);
    font-weight: inherit;
}

.ss-synonym-hint{
    margin: 0 18px 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef8f3 0%, #f8fcfa 100%);
    border: 1px solid rgba(46,185,126,.14);
    color: var(--dss-text-soft);
    font-size: .85rem;
    font-weight: 600;
}

.ss-synonym-hint strong{
    color: var(--dss-green);
}

.ss-synonym-original{
    color: #7b8882;
    font-size: .78rem;
}

.ss-empty{
    padding: 36px 20px;
    text-align: center;
}

.ss-empty-icon{
    font-size: 44px;
    margin-bottom: 10px;
}

.ss-empty-title{
    color: var(--dss-text);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.ss-empty-desc{
    color: var(--dss-text-soft);
    font-size: .85rem;
    line-height: 1.6;
}

/* =========================
   View All / Footer
========================= */
.ss-view-all{
    display: block;
    margin: 10px 18px 6px;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #023720 0%, #075c39 55%, #0d7a4a 100%);
    color: #fff;
    font-size: .86rem;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(2,55,32,.16);
    transition: transform var(--dss-speed), box-shadow var(--dss-speed), filter var(--dss-speed);
}

.ss-view-all:hover,
.ss-view-all.ss-focused{
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(2,55,32,.22);
    filter: saturate(1.04);
}

.ss-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(2,55,32,.07);
    background: linear-gradient(180deg, #fbfdfb 0%, #f4f9f6 100%);
    color: #6e7c75;
    font-size: .75rem;
    font-weight: 700;
}

.ss-footer-keys{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ss-footer-key{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ss-footer-key kbd{
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3f0;
    border: 1px solid rgba(2,55,32,.08);
    color: var(--dss-green);
    font-size: .7rem;
    font-weight: 900;
}

/* =========================
   Skeletons
========================= */
.ss-skeleton{
    border-radius: 10px;
    background: linear-gradient(90deg, #edf2ef 25%, #e1e9e4 37%, #edf2ef 63%);
    background-size: 400% 100%;
    animation: dssShimmer 1.35s ease infinite;
}

@keyframes dssShimmer{
    0%{ background-position: 100% 50%; }
    100%{ background-position: 0 50%; }
}

.ss-skel-item{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
}

.ss-skel-thumb{
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.ss-skel-lines{
    flex: 1;
}

.ss-skel-line{
    height: 12px;
    margin-bottom: 7px;
    border-radius: 8px;
}

.ss-skel-line:last-child{
    width: 60%;
    margin-bottom: 0;
}

.ss-skel-price{
    width: 54px;
    height: 22px;
    border-radius: 999px;
}

/* =========================
   Entry animation
========================= */
.ss-item,
.ss-cat-item,
.ss-blog-item,
.ss-recent-item{
    animation: dssItemIn .34s cubic-bezier(.22,1,.36,1) both;
}

.ss-item:nth-child(1),
.ss-cat-item:nth-child(1),
.ss-blog-item:nth-child(1),
.ss-recent-item:nth-child(1){ animation-delay:.03s; }

.ss-item:nth-child(2),
.ss-cat-item:nth-child(2),
.ss-blog-item:nth-child(2),
.ss-recent-item:nth-child(2){ animation-delay:.06s; }

.ss-item:nth-child(3),
.ss-cat-item:nth-child(3),
.ss-blog-item:nth-child(3),
.ss-recent-item:nth-child(3){ animation-delay:.09s; }

.ss-item:nth-child(4),
.ss-cat-item:nth-child(4),
.ss-blog-item:nth-child(4){ animation-delay:.12s; }

.ss-item:nth-child(5),
.ss-cat-item:nth-child(5),
.ss-blog-item:nth-child(5){ animation-delay:.15s; }

@keyframes dssItemIn{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Mobile
========================= */
@media (max-width: 767px){
    .ss-container{
        top: 10px;
        width: calc(100vw - 12px);
        max-height: calc(100vh - 20px);
        border-radius: 24px;
    }

    .ss-input-wrap{
        padding: 16px 14px;
    }

    .ss-body{
        max-height: calc(100vh - 200px);
    }

    .ss-section{
        padding-left: 14px;
        padding-right: 14px;
    }

    .ss-divider{
        margin-left: 14px;
        margin-right: 14px;
    }

    .ss-view-all{
        margin-left: 14px;
        margin-right: 14px;
    }

    .ss-footer{
        flex-direction: column;
        align-items: flex-start;
    }

    .ss-esc-hint{
        display: none;
    }
}

@media (max-width: 480px){
    .dss-trigger-input{
        width: 100% !important;
        min-width: 100% !important;
    }

    .ss-item,
    .ss-cat-item,
    .ss-blog-item{
        padding: 11px 12px;
        border-radius: 16px;
    }

    .ss-item-img{
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 14px;
    }

    .ss-item-title,
    .ss-blog-title,
    .ss-cat-name{
        font-size: .9rem;
    }

    .ss-item-meta,
    .ss-blog-meta{
        font-size: .74rem;
    }

    .ss-footer-keys{
        display: none;
    }
}




.dss-trigger{
    flex: 1 1 600px !important;
    min-width: 420px !important;
    max-width: 860px !important;
    width: 100% !important;
}

.dss-trigger-shell{
    width: 100% !important;
}

#searchInput.dss-trigger-input{
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
}

@media (min-width: 1280px){
    .dss-trigger{
        max-width: 920px !important;
    }
}




/* =========================================================
   Drosly Header UI Fix
   Scope only:
   - Cart / Cart drawer / Cart items
   - Lang dropdown
   - Notification dropdown
   - User dropdown
   - Mobile behavior for same requested items
========================================================= */

:root{
    --dh-green:#023720;
    --dh-green-2:#075c39;
    --dh-green-3:#2EB97E;
    --dh-soft:#EEF9F3;
    --dh-soft-2:#F7FCF9;
    --dh-border:rgba(2,55,32,.10);
    --dh-border-2:rgba(2,55,32,.16);
    --dh-text:#14211a;
    --dh-muted:#6b7280;
    --dh-shadow-sm:0 10px 25px rgba(2,55,32,.08);
    --dh-shadow-md:0 18px 40px rgba(2,55,32,.12);
    --dh-shadow-lg:0 28px 70px rgba(2,55,32,.16);
    --dh-speed:.24s ease;
}


#landing-cart-drawer,
#langDropdown,
#langMDropdown,
#NotificationsDropdown,
#NotificationsDropdownMobile,
#userDropdown {
    z-index: 9999 !important;
}

#mobileDrawer {
    z-index: 9998 !important;
}

#landing-cart-drawer-btn,
#landing-cart-drawer-btn-mobile,
#NotificationsButton,
#NotificationsButtonMobile,
#langButton,
#langMButton,
#avatarButton {
    position: relative;
    border-radius: 999px;
    transition: transform var(--dh-speed), box-shadow var(--dh-speed), background-color var(--dh-speed);
}


#landing-cart-drawer-btn:hover,
#landing-cart-drawer-btn-mobile:hover,
#NotificationsButton:hover,
#langButton:hover,
#langMButton:hover,
#avatarButton:hover {
    transform: translateY(-1px);
}

#landing-cart-drawer-btn:focus-visible,
#landing-cart-drawer-btn-mobile:focus-visible,
#NotificationsButton:focus-visible,
#langButton:focus-visible,
#langMButton:focus-visible,
#avatarButton:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(46,185,126,.15);
}

/* badge style */
#cart-count,
#cart-count-mobile,
#NotificationsButton .absolute.-top-1.-right-1,
#NotificationsButton .absolute.top-\[10px\].left-\[20px\] {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(255,61,0,.24);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* desktop badge positions */
#cart-count {
    top: -4px !important;
    right: -4px !important;
}

#NotificationsButton .absolute.-top-1.-right-1 {
    top: -4px !important;
    right: -4px !important;
}

/* mobile cart badge position */
#cart-count-mobile {
    top: -3px !important;
    right: -3px !important;
    left: auto !important;
    transform: none !important;
}

/* mobile notification dot/count */
.lg\:hidden #NotificationsButton .absolute.top-\[10px\].left-\[20px\] {
    top: -2px !important;
    right: -2px !important;
    left: auto !important;
    transform: none !important;
}

/* dropdown shared */
#langDropdown,
#langMDropdown,
#NotificationsDropdown,
#NotificationsDropdownMobile,
#userDropdown {
    border: 1px solid var(--dh-border) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: var(--dh-shadow-lg) !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* force dropdown appear above all */
#langDropdown,
#langMDropdown,
#NotificationsDropdown,
#NotificationsDropdownMobile,
#userDropdown {
    position: absolute !important;
}

/* lang dropdown */
#langDropdown,
#langMDropdown {
    width: 190px;
    margin-top: 10px;
}

#langDropdown .border-b,
#langMDropdown .border-b,
#NotificationsDropdown .border-b,
#userDropdown .border-b {
    border-color: rgba(2,55,32,.08) !important;
}

#langDropdown a,
#langMDropdown a {
    transition: background-color var(--dh-speed), color var(--dh-speed), transform var(--dh-speed);
    border-radius: 12px;
}

#langDropdown a:hover,
#langMDropdown a:hover {
    background: var(--dh-soft-2) !important;
    color: var(--dh-green) !important;
}

#langDropdown .bg-primary-50,
#langMDropdown .bg-primary-50 {
    background: rgba(46,185,126,.12) !important;
    color: var(--dh-green) !important;
}

/* notification dropdown */
#NotificationsDropdown {
    width: 340px !important;
    max-width: calc(100vw - 20px);
    margin-top: 10px;
}

#NotificationsDropdown .max-h-80 > div {
    transition: background-color var(--dh-speed), transform var(--dh-speed);
}

#NotificationsDropdown .max-h-80 > div:hover {
    background: #f7fcf9 !important;
}

#NotificationsDropdownMobile {
    width: min(92vw, 340px) !important;
    max-height: 72vh;
    overflow: auto !important;
    padding: 0 !important;
    right: 8px !important;
    left: auto !important;
    top: calc(100% + 8px) !important;
}

#NotificationsDropdownMobile ul {
    padding: 8px 14px;
}

#NotificationsDropdownMobile li {
    border-bottom: 1px solid rgba(2,55,32,.07);
    transition: background-color var(--dh-speed);
}

#NotificationsDropdownMobile li:hover {
    background: #f8fcf9;
}

#NotificationsDropdownMobile li:last-child {
    border-bottom: 0;
}

/* user dropdown */
#userDropdown {
    width: 270px !important;
    max-width: calc(100vw - 20px);
    margin-top: 10px;
    right: 0 !important;
    left: auto !important;
}

#userDropdown .from-primary-50,
#userDropdown .to-emerald-50 {
    background: linear-gradient(135deg, #ecf8f2 0%, #f8fdfa 100%) !important;
}

#userDropdown a,
#userDropdown button {
    transition: background-color var(--dh-speed), color var(--dh-speed), transform var(--dh-speed);
}

#userDropdown a:hover,
#userDropdown button:hover {
    background: #f7fcf9 !important;
}

#userDropdown .text-red-500:hover {
    background: #fef2f2 !important;
}

/* cart drawer */
#landing-cart-drawer {
    inset: 0;
}

#landing-cart-overlay {
    background: rgba(15,23,42,.42) !important;
    transition: opacity .34s ease;
}

#landing-cart-panel {
    transition: transform .42s cubic-bezier(.22,1,.36,1) !important;
    z-index: 10000;
}

#landing-cart-panel > div {
    border-left: 1px solid var(--dh-border);
    box-shadow: -18px 0 60px rgba(2,55,32,.14);
}

/* drawer title / close */
#drawer-title {
    color: var(--dh-text);
    font-weight: 800;
    letter-spacing: -.02em;
}

#landing-cart-close {
    border-radius: 999px;
    transition: background-color var(--dh-speed), transform var(--dh-speed), color var(--dh-speed);
}

#landing-cart-close:hover {
    background: var(--dh-soft);
    color: var(--dh-green);
    transform: rotate(90deg);
}

/* cart item list */
#cart-drawer-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#cart-drawer-content .drawer-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 122px;
    padding: 14px;
    margin: 0;
    border: 1px solid var(--dh-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fcfefd 100%);
    box-shadow: var(--dh-shadow-sm);
    transition: transform var(--dh-speed), box-shadow var(--dh-speed), border-color var(--dh-speed), opacity var(--dh-speed);
}

#cart-drawer-content .drawer-item:hover {
    transform: translateY(-2px);
    border-color: rgba(46,185,126,.28);
    box-shadow: 0 16px 34px rgba(2,55,32,.10);
}

#cart-drawer-content .drawer-item > div:first-child {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(2,55,32,.08);
    background: linear-gradient(180deg, #f6faf7 0%, #eef7f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-drawer-content .drawer-item > div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .26s ease;
}

#cart-drawer-content .drawer-item:hover > div:first-child img {
    transform: scale(1.04);
}

#cart-drawer-content .drawer-item > .ml-4 {
    margin-left: 0 !important;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#cart-drawer-content .drawer-item .text-base.font-medium.text-gray-900 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

#cart-drawer-content .drawer-item h3,
#cart-drawer-content .drawer-item h3 a {
    color: var(--dh-text);
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

#cart-drawer-content .drawer-item .text-base.font-medium.text-gray-900 > p {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--dh-green);
    font-size: .95rem;
    font-weight: 800;
}

#cart-drawer-content .drawer-item .text-gray-500 {
    color: #667085 !important;
}

#cart-drawer-content .drawer-item .flex.flex-1.items-end.justify-between.text-sm {
    align-items: center;
}

#cart-drawer-content .remove-from-cart-drawer-btn {
    color: var(--dh-green-2) !important;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background-color var(--dh-speed), color var(--dh-speed), transform var(--dh-speed);
}

#cart-drawer-content .remove-from-cart-drawer-btn:hover {
    background: rgba(46,185,126,.1);
    color: var(--dh-green) !important;
    transform: translateY(-1px);
}

#cart-drawer-content .remove-from-cart-drawer-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* subtotal / buttons */
#drawer-subtotal {
    color: var(--dh-green);
    font-weight: 800;
}

#landing-cart-panel .bg-indigo-600 {
    background: linear-gradient(135deg, var(--dh-green), var(--dh-green-2)) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 26px rgba(2,55,32,.18);
    transition: transform var(--dh-speed), box-shadow var(--dh-speed);
}

#landing-cart-panel .bg-indigo-600:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(2,55,32,.22);
}

#landing-cart-panel .text-indigo-600 {
    color: var(--dh-green-2) !important;
}

/* mobile */
@media (max-width: 1024px) {
    #langDropdown,
    #langMDropdown,
    #NotificationsDropdown,
    #NotificationsDropdownMobile,
    #userDropdown {
        max-width: calc(100vw - 16px);
    }
}

@media (max-width: 767px) {
    #landing-cart-panel {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    #landing-cart-panel > div {
        border-left: 0;
        box-shadow: none;
    }

    #cart-drawer-content .drawer-item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
        min-height: 106px;
        padding: 12px;
        border-radius: 16px;
    }

    #cart-drawer-content .drawer-item > div:first-child {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
        border-radius: 14px;
    }

    #cart-drawer-content .drawer-item .text-base.font-medium.text-gray-900 {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    #cart-drawer-content .drawer-item .text-base.font-medium.text-gray-900 > p {
        font-size: .9rem;
    }

    #cart-drawer-content .drawer-item h3,
    #cart-drawer-content .drawer-item h3 a {
        font-size: .9rem;
    }

    #cart-drawer-content .drawer-item .flex.flex-1.items-end.justify-between.text-sm {
        gap: 10px;
    }

    #NotificationsDropdownMobile {
        width: min(94vw, 340px) !important;
    }

    #langMDropdown {
        width: min(84vw, 210px) !important;
    }

    #userDropdown {
        width: min(92vw, 270px) !important;
        right: 0 !important;
        left: auto !important;
    }

    #cart-count,
    #cart-count-mobile,
    #NotificationsButton .absolute.-top-1.-right-1,
    .lg\:hidden #NotificationsButton .absolute.top-\[10px\].left-\[20px\] {
        min-width: 20px;
        height: 20px;
        font-size: 10px !important;
    }
}

@media (max-width: 480px) {
    #cart-drawer-content .drawer-item {
        grid-template-columns: 70px minmax(0, 1fr);
        min-height: 100px;
    }

    #cart-drawer-content .drawer-item > div:first-child {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
    }

    #cart-drawer-content .drawer-item h3,
    #cart-drawer-content .drawer-item h3 a {
        font-size: .86rem;
    }

    #cart-drawer-content .remove-from-cart-drawer-btn {
        padding: 4px 8px;
        font-size: .8rem;
    }

    #drawer-subtotal {
        font-size: .96rem;
    }
}

.cart-toast-popup{
    border-radius: 14px !important;
    box-shadow: 0 14px 35px rgba(2,55,32,.14) !important;
}

.cart-empty-state{
    list-style: none;
    margin: 8px 0 0;
    padding: 36px 20px 34px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed rgba(2,55,32,.12);
    border-radius: 20px;
    background: linear-gradient(180deg, #fcfefd 0%, #f4fbf7 100%);
}

.cart-empty-state__icon{
    width: 112px;
    height: 112px;
    margin-bottom: 16px;
    animation: cartEmptyFloat 3.2s ease-in-out infinite;
}

.cart-empty-state__icon svg{
    width: 100%;
    height: 100%;
    display: block;
}

.cart-empty-state__circle{
    fill: #eef9f3;
    stroke: rgba(46,185,126,.28);
    stroke-width: 2;
}

.cart-empty-state__cart{
    fill: none;
    stroke: #023720;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-empty-state__wheel{
    fill: #2EB97E;
}

.cart-empty-state__spark{
    fill: none;
    stroke: #2EB97E;
    stroke-width: 3.2;
    stroke-linecap: round;
    opacity: .9;
    animation: cartSparkPulse 1.8s ease-in-out infinite;
}

.cart-empty-state__spark--2{
    animation-delay: .35s;
}

.cart-empty-state__title{
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 800;
    color: #14211a;
}

.cart-empty-state__text{
    margin: 0 0 18px;
    max-width: 260px;
    font-size: .95rem;
    line-height: 1.65;
    color: #6b7280;
}

.cart-empty-state__btn{
    border: 0;
    outline: 0;
    cursor: pointer;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #023720, #075c39);
    box-shadow: 0 12px 24px rgba(2,55,32,.18);
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.cart-empty-state__btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(2,55,32,.22);
}

.cart-empty-state__btn:active{
    transform: translateY(0);
}

@keyframes cartEmptyFloat{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(-6px); }
}

@keyframes cartSparkPulse{
    0%,100%{ opacity: .35; transform: scale(1); }
    50%{ opacity: 1; transform: scale(1.04); }
}

@media (max-width: 767px){
    .cart-empty-state{
        min-height: 300px;
        padding: 28px 16px;
        border-radius: 18px;
    }

    .cart-empty-state__icon{
        width: 96px;
        height: 96px;
        margin-bottom: 14px;
    }

    .cart-empty-state__title{
        font-size: 1.08rem;
    }

    .cart-empty-state__text{
        font-size: .9rem;
        max-width: 240px;
    }

    .cart-empty-state__btn{
        width: 100%;
        max-width: 220px;
    }
}

/* Fix cart drawer height + footer visibility */
#landing-cart-panel {
    height: 100dvh !important;
    max-height: 100dvh !important;
}

#landing-cart-panel > div {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
}

#landing-cart-panel .flex-1.overflow-y-auto,
#landing-cart-panel .flex-1.min-h-0.overflow-y-auto {
    min-height: 0 !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 18px;
}

.cart-drawer-footer {
    flex-shrink: 0 !important;
    position: relative;
    background: #fff;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* mobile extra safety */
@media (max-width: 767px) {
    #landing-cart-panel,
    #landing-cart-panel > div {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    #landing-cart-panel .flex-1.min-h-0.overflow-y-auto,
    #landing-cart-panel .flex-1.overflow-y-auto {
        padding-bottom: 14px !important;
    }

    .cart-drawer-footer {
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }
}


.ss-input-icon--pro {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

.ss-empty--pro {
    padding: 26px 20px 22px;
    text-align: center;
}

.ss-empty-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.ss-empty-svg {
    width: 170px;
    max-width: 100%;
    height: auto;
    display: block;
}

.ss-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #023720;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.ss-empty-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #5f6f68;
    max-width: 420px;
    margin: 0 auto;
}


.dss-mobile-search-trigger{
    background: linear-gradient(135deg, #0d7a4a 0%, #023720 100%);
    box-shadow: 0 12px 24px rgba(2,55,32,.18);
}

.ss-mobile-hint{
    display: none;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #7a8b82;
    font-weight: 700;
    margin-bottom: 6px;
}

.ss-input-wrap{
    position: sticky;
    top: 0;
    z-index: 5;
    flex-wrap: wrap;
}

.ss-chip-row{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ss-chip-row--center{
    justify-content: center;
}

.ss-chip,
.ss-chip-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(2,55,32,.10);
    background: #fff;
    color: #023720;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}

.ss-chip:hover,
.ss-chip-link:hover{
    background: #eef8f3;
    border-color: rgba(46,185,126,.28);
    transform: translateY(-1px);
}

.ss-item--featured{
    border-width: 1.5px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
    box-shadow: 0 20px 40px rgba(2,55,32,.10);
}

.ss-item--compact .ss-item-img{
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.ss-item-badges{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ss-mini-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2,55,32,.08);
    color: #023720;
    font-size: .68rem;
    font-weight: 800;
}

.ss-mini-badge--soft{
    background: rgba(46,185,126,.10);
    color: #0d7a4a;
}

.ss-info-card{
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 18px;
    border: 1px solid rgba(2,55,32,.07);
    background: linear-gradient(180deg, #fff 0%, #fbfefc 100%);
    text-decoration: none;
    transition: all .25s ease;
}

.ss-info-card:hover{
    transform: translateY(-2px);
    background: #f4fbf7;
    box-shadow: 0 16px 30px rgba(2,55,32,.08);
}

.ss-info-card__title{
    color: #122019;
    font-size: .92rem;
    font-weight: 800;
}

.ss-info-card__subtitle{
    color: #66756d;
    font-size: .78rem;
    margin-top: 4px;
}

.ss-action-item{
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 16px;
    text-decoration: none;
    color: #023720;
    background: linear-gradient(135deg, #eef8f3 0%, #f8fcfa 100%);
    border: 1px solid rgba(46,185,126,.14);
    font-weight: 800;
    transition: all .25s ease;
}

.ss-action-item:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(2,55,32,.08);
}

.ss-intent-pill{
    display: inline-flex;
    align-items: center;
    margin-inline-start: 8px;
    margin-top: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(46,185,126,.10);
    color: #0b7a49;
    font-size: .72rem;
    font-weight: 800;
}

@media (max-width: 767px){
    .ss-container{
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        transform: translateX(0) translateY(24px);
    }

    .ss-container.ss-active{
        transform: translateX(0) translateY(0);
    }

    .ss-mobile-hint{
        display: block;
    }

    .ss-body{
        max-height: calc(100dvh - 160px);
        padding-bottom: 24px;
    }

    .ss-item,
    .ss-cat-item,
    .ss-blog-item,
    .ss-action-item,
    .ss-info-card{
        min-height: 74px;
        border-radius: 20px;
    }

    .ss-item{
        align-items: flex-start;
    }

    .ss-item-img{
        width: 58px;
        height: 58px;
        min-width: 58px;
        border-radius: 16px;
    }

    .ss-item-title,
    .ss-blog-title,
    .ss-cat-name{
        font-size: .98rem;
    }

    .ss-item-meta,
    .ss-blog-meta{
        font-size: .8rem;
    }

    .ss-chip,
    .ss-chip-link{
        min-height: 40px;
        font-size: .82rem;
        padding: 0 15px;
    }

    .ss-voice-btn{
        width: 44px;
        height: 44px;
    }
}
