*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

 :root {
    --primary: #009483;
    --primary-dull: #006156;
    --primary-light: rgba(0, 148, 131, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    color: #374151;
    background: #fff;
    min-height: 100vh
}

a {
    text-decoration: none;
    color: inherit
}

img {
    display: block;
    max-width: 100%
}

button {
    font-family: 'Outfit', sans-serif;
    cursor: pointer
}

.go-to-cart-btn {
    background: #fff !important;
    color: #009483 !important;
    border: 1.5px solid #009483 !important;
}

.go-to-cart-btn:hover {
    background: var(--primary-light) !important;
}

#header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.desktop-nav-links a.active {
    color: var(--primary);
    /* the green color */
    /* font-weight: 600; */
}



/* ── TOP BAR ── */

.topbar {
    background: #203040;
    color: #d1d5db;
    font-size: 12px;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-height: 40px;
    transition: max-height .3s ease, opacity .3s ease, padding .3s ease;
    z-index: 51
}

.topbar.topbar-hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.topbar-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 4px
}

.topbar-contact-icon {
    color: var(--primary);
    font-size: 11px
}

.topbar-right {
    display: none;
    align-items: center;
    gap: 24px;
    font-weight: 500;
    font-size: 13px
}

.topbar-right a:hover {
    color: #fff
}

@media(min-width:768px) {
    .topbar-right {
        display: flex
    }
}


/* ── NAVBAR ── */

.navbar {
    background: #fff;
    border-bottom: 1px solid #f3f4f6
}
.navbar-upper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb
}

.logo {
    display: flex;
    align-items: center
}

.logo img {
    width: 96px;
    height: 32px;
    object-fit: cover
}

@media(min-width:640px) {
    .logo img {
        width: 128px;
        height: 40px
    }
}

@media(min-width:768px) {
    .logo img {
        width: 160px;
        height: 48px
    }
}

.desktop-search {
    display: none;
    align-items: center;
    flex: 1;
    max-width: 600px;
    margin: 0 32px;
    background: #f9fafb;
    border-radius: 9999px;
    padding: 10px 16px;
    gap: 8px;
    font-size: 14px
}

.desktop-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #374151
}

.desktop-search input::placeholder {
    color: #9ca3af
}

@media(min-width:768px) {
    .desktop-search {
        display: flex
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px
}

@media(min-width:1024px) {
    .nav-right {
        gap: 16px
    }
}

.mobile-search-btn {
    display: flex;
    background: none;
    border: none;
    font-size: 18px;
    padding: 4px;
    color: #374151
}

@media(min-width:768px) {
    .mobile-search-btn {
        display: none
    }
}

.cart-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px
}

.cart-label {
    display: none;
    font-size: 14px;
    font-weight: 500
}

@media(min-width:1024px) {
    .cart-label {
        display: block
    }
}

.cart-icon-wrap {
    position: relative
}

.cart-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: #374151
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600
}

.wallet-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    background: #dcfce7;
    color: #15803d;
    padding: 4px 8px;
    border-radius: 9999px;
    white-space: nowrap
}

@media(min-width:768px) {
    .wallet-badge {
        font-size: 13px
    }
}

.login-btn {
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    transition: background .2s;
    margin-left: 8px
}

.login-btn:hover {
    background: var(--primary-dull)
}

@media(min-width:640px) {
    .login-btn {
        padding: 8px 24px;
        font-size: 14px
    }
}

.profile-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px
}

.profile-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    border-radius: 8px;
    width: 144px;
    font-size: 14px;
    z-index: 100
}

.profile-dropdown.open {
    display: block
}

.profile-dropdown li {
    list-style: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background .15s
}

.profile-dropdown li:hover {
    background: var(--primary-light)
}

.profile-dropdown li.red {
    color: #ef4444
}


/* mobile search input */

.mobile-search-row {
    display: none;
    padding: 0 16px 8px;
    position: relative
}

.mobile-search-row.open {
    display: block
}

@media(min-width:768px) {
    .mobile-search-row {
        display: none !important
    }
}

.mobile-search-row input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px
}

.mobile-search-row .clear-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #6b7280
}


/* ── BOTTOM NAVBAR ── */

.navbar-bottom {
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    gap: 16px
}

@media(min-width:768px) {
    .navbar-bottom {
        gap: 40px
    }
}

.cat-btn-wrap {
    position: relative
}

.cat-trigger {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding-right: 20px;
    transition: background .2s, color .2s
}

.cat-trigger:hover {
    background: var(--primary);
    color: #fff
}

.cat-trigger:hover .cat-icon-circle {
    background: #006156
}

.cat-icon-circle {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    margin-right: 12px;
    transition: background .2s;
    flex-shrink: 0
}

.cat-arrow {
    font-size: 11px;
    margin-left: 4px
}

.cat-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 256px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100
}

.cat-dropdown-menu.open {
    display: block
}

.cat-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    transition: background .15s;
    color: #374151
}

.cat-dropdown-menu a:last-child {
    border-bottom: none
}

.cat-dropdown-menu a:hover {
    background: #f3f4f6
}

.mobile-menu-btn {
    display: flex;
    background: none;
    border: none;
    font-size: 20px;
    color: #374151;
    padding: 4px
}

@media(min-width:768px) {
    .mobile-menu-btn {
        display: none
    }
}

.desktop-nav-links {
    display: none;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 600
}

@media(min-width:768px) {
    .desktop-nav-links {
        display: flex
    }
}

.desktop-nav-links a:hover {
    color: var(--primary)
}

.mobile-nav-menu {
    display: none;
    padding: 0 16px 16px;
    font-size: 14px;
    font-weight: 500
}

.mobile-nav-menu.open {
    display: block
}

.mobile-nav-menu a {
    display: block;
    padding: 8px 0;
    color: #374151
}

.mobile-nav-menu a:hover {
    color: var(--primary)
}


/* ── MAIN BANNER SECTION ── */

.banner-section {
    background: #f3f4f6;
    padding: 40px 16px
}


/* slider */

.slider-outer {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative
}

.slider-desktop {
    display: none;
    position: relative;
    width: 100%
}

@media(min-width:768px) {
    .slider-desktop {
        display: block
    }
}

.slider-ghost {
    width: 100%;
    opacity: 0;
    pointer-events: none;
    display: block
}

.slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 3s ease-in-out;
    opacity: 0;
    z-index: 0
}

.slider-slide.active {
    opacity: 1;
    z-index: 1
}

.slider-mobile {
    display: block
}

@media(min-width:768px) {
    .slider-mobile {
        display: none
    }
}

.slider-mobile img {
    width: 100%;
    display: block
}

.slider-mobile-caption {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    padding: 0 16px
}

.slider-prev,
.slider-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    z-index: 20;
    opacity: 0;
    transition: opacity .3s;
    cursor: pointer
}

.slider-outer:hover .slider-prev,
.slider-outer:hover .slider-next {
    opacity: 1
}

@media(min-width:768px) {
    .slider-prev {
        display: flex;
        left: 16px
    }
    .slider-next {
        display: flex;
        right: 16px
    }
}

.slider-dots {
    display: none;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 20
}

@media(min-width:768px) {
    .slider-dots {
        display: flex
    }
}

.dot {
    height: 12px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all .3s;
    background: #d1d5db;
    width: 12px
}

.dot.active {
    background: var(--primary);
    width: 24px
}


/* services bar */

.services-bar {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    padding: 28px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px
}

@media(min-width:1024px) {
    .services-bar {
        grid-template-columns: repeat(5, 1fr)
    }
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 8px
}

@media(min-width:1024px) {
    .service-item {
        border-right: 1px solid #f3f4f6
    }
}

@media(min-width:1024px) {
    .service-item:last-child {
        border-right: none
    }
}

.service-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0
}

.service-item h3 {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937
}

.service-item p {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 2px
}


/* category banners */

.cat-banners {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 16px 0;
    margin-top: 10px
}

@media(min-width:768px) {
    .cat-banners {
        grid-template-columns: repeat(3, 1fr)
    }
}

.cat-banner-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    cursor: pointer;
    height: 180px
}

.cat-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s
}

.cat-banner-card:hover img {
    transform: scale(1.05)
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 32px
}

.cat-banner-overlay h2 {
    font-size: 22px;
    font-weight: 600;
    color: #000
}

.cat-banner-overlay p {
    font-size: 13px;
    color: rgba(0, 0, 0, .8);
    margin-bottom: 12px
}

.cat-banner-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
    width: fit-content
}

.cat-banner-btn:hover {
    background: #2b8f72;
    color: #fff
}


/* ── BEST SELLER / ALL PRODUCTS ── */

.products-section {
    margin-top: 26px;
    padding: 0 16px
}

.section-heading {
    font-size: 24px;
    font-weight: 500;
    color: #1f2937
}

@media(min-width:768px) {
    .section-heading {
        font-size: 30px
    }
}

.section-heading .c-primary {
    color: var(--primary)
}

.section-heading .c-green {
    color: #2b8f72
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px
}

@media(min-width:640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(min-width:768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px
    }
}

@media(min-width:1024px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr)
    }
}


/* product card */

.product-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
    background: #fff
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
    transform: translateY(-3px)
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s
}

.product-card:hover .product-card-img img {
    transform: scale(1.05)
}

.product-card-body {
    padding: 12px
}

.product-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px
}

.product-stars img {
    width: 14px;
    height: 14px
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

@media(min-width:768px) {
    .product-name {
        font-size: 14px
    }
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 4px
}

.offer-price {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937
}

.orig-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through
}

.product-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 10px;
    padding: 7px 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background .2s
}

.product-add-btn:hover {
    background: var(--primary-dull)
}

.product-add-btn img {
    width: 16px;
    height: 16px
}


/* footer banner */

.footer-banner {
    width: 100%;
    margin: 40px 0
}

.footer-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover
}


/* ── BOTTOM BANNER (gifting) ── */

.gifting-banner {
    position: relative;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0 16px;
    line-height: 0
}

.gifting-banner img {
    width: 100%;
    object-fit: contain
}


/* ── FOOTER ── */

footer {
    margin-top: 24px;
    background: var(--primary-light);
    padding: 0 16px
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(107, 114, 128, .3)
}

@media(min-width:768px) {
    .footer-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 40px
    }
}

.footer-brand {
    flex-shrink: 0
}

@media(min-width:768px) {
    .footer-brand {
        width: 30%
    }
}

.footer-logo-img {
    width: 160px;
    height: 48px;
    object-fit: cover;
    display: block
}

.footer-desc {
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 400px
}


/* .footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    flex: 1
} */

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    flex: 1;
    justify-content: space-between;
}

.footer-col h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px
}

@media(max-width:767px) {
    .footer-col h3 {
        margin-bottom: 8px
    }
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.footer-col ul li a {
    font-size: 14px;
    color: #6b7280;
    transition: color .15s
}

.footer-col ul li a:hover {
    color: var(--primary);
    text-decoration: underline
}

.footer-copy {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(107, 114, 128, .8)
}


/* skeleton pulse */

@keyframes pulse {
    0%,
    100% {
        opacity: 1
    }
    50% {
        opacity: .4
    }
}

.skeleton {
    background: #e5e7eb;
    border-radius: 8px;
    animation: pulse 1.5s ease-in-out infinite
}

.skel-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden
}

.skel-img {
    width: 100%;
    aspect-ratio: 1;
    background: #e5e7eb;
    animation: pulse 1.5s ease-in-out infinite
}

.skel-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.skel-line {
    height: 12px;
    background: #e5e7eb;
    border-radius: 4px;
    animation: pulse 1.5s ease-in-out infinite
}

.skel-line.short {
    width: 60%
}

.skel-btn {
    height: 32px;
    background: #e5e7eb;
    border-radius: 6px;
    animation: pulse 1.5s ease-in-out infinite;
    margin-top: 4px
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.login-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-modal-overlay.open {
    display: flex;
}

.login-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
    animation: modalPop .25s ease;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
}

.login-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-modal-form label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-top: 10px;
}

.login-modal-form input {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    outline: none;
}

.login-modal-form input:focus {
    border-color: var(--primary);
}

.login-modal-submit {
    margin-top: 18px;
    padding: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background .2s;
}

.login-modal-submit:hover {
    background: var(--primary-dull);
}

.login-modal-footer {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    color: #6b7280;
}

.login-modal-footer a {
    color: var(--primary);
    font-weight: 600;
}


.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary, #009483);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}
.profile-dropdown-header {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    cursor: default;
}
.profile-dropdown-name {
    font-size: 11px;
    font-weight: 700;
    color: #111827;
}
.profile-dropdown-id {
    font-size: 9px;
    color: #6b7280;
    margin-top: 2px;
}

/* assets/app.css — small extras layered on top of Tailwind CDN utility classes */

body {
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* simple skeleton shimmer, used by all "loading" states */

.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

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


/* thumbnail scroll strip on product details */

.thumb-strip::-webkit-scrollbar {
    width: 4px;
}

.thumb-strip::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}


/* product card image fit */

.product-card img {
    transition: transform .25s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

.profile-dropdown-wallets {
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
}
.wallet-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #374151;
    padding: 3px 0;
}
.wallet-row span {
    font-weight: 600;
    color: #009483;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    border-radius: 8px;
    width: 240px;   /* increased from 144px */
    font-size: 14px;
    z-index: 100
}

.wallet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #374151;
    padding: 4px 0;
    white-space: nowrap;
    gap: 12px;
}   

@media (max-width: 480px) {
    .profile-dropdown {
        width: min(240px, calc(100vw - 32px));
        right: -8px;
    }
}



/* ── PROFILE / WALLET DROPDOWN ── */

.wallet-badge {
    background: #ecfdf5;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    white-space: nowrap;
}

.profile-wrap {
    position: relative;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.2s;
}

.profile-avatar:hover {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1000;
    display: none;
}

.profile-dropdown.active {
    display: block;
}

.profile-dropdown-header {
    padding: 16px 18px 14px;
    border-bottom: 1px solid #f1f1f1;
}

.profile-dropdown-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #111827;
}

.profile-dropdown-id {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.profile-dropdown-wallets {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f1f1;
}

.wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    padding: 5px 0;
}

.wallet-row span {
    font-weight: 700;
    color: #16a34a;
}

.profile-dropdown-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}

.profile-dropdown-action:hover {
    background: #f9fafb;
}

.profile-action-icon {
    font-size: 15px;
}

.profile-dropdown li.red {
    padding: 16px 18px;
    font-size: 14.5px;
    font-weight: 700;
    color: #dc2626;
    cursor: pointer;
    border-top: 1px solid #f1f1f1;
    transition: background 0.15s;
}
.profile-dropdown li.red:hover {
    background: #fef2f2;
}


.points-badge {
  display: inline-block;
  background: #e8f8f2;
  color: #009483;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 6px 0;
}


.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 2000;
}

.search-results-dropdown.open {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f3f4f6;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}

.search-result-offer {
    font-size: 13px;
    font-weight: 700;
    color: #009483;
}

.search-result-mrp {
    font-size: 11.5px;
    color: #9ca3af;
    text-decoration: line-through;
}

.search-no-results,
.search-loading {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.search-results-dropdown {
    max-height: 400px;
    overflow-y: auto;

    /* Firefox */
    scrollbar-width: none;
}

/* Chrome, Edge, Safari */
.search-results-dropdown::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Loader */
.search-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    color: #6b7280;
    font-size: 14px;
}

.search-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #d1d5db;
    border-top-color: #009483;
    border-radius: 50%;
    display: inline-block;
    animation: search-spin 0.6s linear infinite;
}

@keyframes search-spin {
    to { transform: rotate(360deg); }
}