.header-middle .icon-box{
    margin-right: 0 !important;
}

.category-icon .category-name {
     margin: 0;
     color: #222 !important;
}

.category img{
    border-radius: 50%;
    max-width: 50%;
}

@media screen and (max-width: 992px) {
    .category .category-name {
        font-size: 1rem;
    }
}

/* Mobile Direct Menu Styles */
.mobile-direct-menu {
    border-bottom: 1px solid #eee;
    background: #fff;
    position: relative;
    z-index: 999;
}
.mobile-direct-menu-container {
    position: relative;
    width: 100%;
}
.mobile-menu-tab {
    flex: 1;
}
.mobile-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    max-height: 320px;
    overflow-y: auto;
    border-top: 1px solid #eee;
}
.mobile-dropdown-content a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    border-bottom: 1px solid #f4f4f4;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}
.mobile-dropdown-content a:hover,
.mobile-dropdown-content a:active {
    background-color: #f9f9f9;
    color: #222;
}
.mobile-dropdown-content a.all-link {
    font-weight: 700;
    color: #222;
    background-color: #fafafa;
}
.mobile-menu-btn {
    width: 100%;
    padding: 12px 0;
    background: #3567b1;
    border: none;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
}
.mobile-menu-btn:active {
    background-color: #f7f7f7;
}
.mobile-menu-btn i {
    font-size: 14px;
}

/* Mobile Phone Icon Adjustment to match Cart Icon */
@media (max-width: 991px) {
    .header-right .d-icon-phone {
        font-size: 2.5rem !important;
        color: #222 !important;
    }
    .header-right .icon-box-icon {
        font-size: 1.6rem !important;
        line-height: 1 !important;
        margin: 0 !important;
    }
    .header-right .icon-box {
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* Live Search Suggestions Dropdown */
.input-wrapper {
    position: relative !important;
}

.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
    display: none;
    box-sizing: border-box;
}

.search-suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

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

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #f4f6f9;
    text-decoration: none;
}

.suggestion-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.suggestion-info {
    flex-grow: 1;
    min-width: 0; /* Enable text truncation */
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    font-size: 1.1rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.suggestion-price {
    font-weight: 700;
    color: #f53003;
}

.suggestion-category {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 1rem;
    color: #555;
}

.suggestion-badge {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: auto;
    flex-shrink: 0;
}

.badge-product {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.badge-service {
    background-color: #e0f2f1;
    color: #004d40;
}

.suggestion-loading {
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 1.3rem;
}

.suggestion-no-results {
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 1.3rem;
}

.suggestion-view-all {
    display: block;
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    font-weight: 700;
    color: #3C63A4;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-view-all:hover {
    background: #f1f3f5;
    color: #2b4c80;
}

/* Spinner */
.search-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #3C63A4;
    animation: spin 0.8s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Scrollbar styling for suggestions */
.search-suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}
.search-suggestions-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.search-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Align Mobile Sticky Footer Search Dropdown up */
.sticky-footer .header-search.dir-up .search-suggestions-dropdown {
    bottom: 100%;
    top: auto;
    margin-top: 0;
    margin-bottom: 4px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}

/* Mobile sticky footer — always visible, evenly spaced bottom nav */
@media (max-width: 767px) {
    .sticky-content-wrapper {
        display: block !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .sticky-footer.sticky-content {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        z-index: 1051;
        display: flex !important;
        align-items: stretch;
        justify-content: space-between;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    }

    .sticky-footer > * {
        flex: 1 1 0;
        min-width: 0;
    }

    .sticky-footer .sticky-link {
        margin: 0.55rem 0 0.45rem;
        padding: 0 2px;
        text-align: center;
        color: #888;
    }

    .sticky-footer .sticky-link.active {
        color: #222;
    }

    .sticky-footer .sticky-link i {
        font-size: 2.2rem;
        width: auto;
        height: auto;
    }

    .sticky-footer .sticky-link span {
        font-size: 0.625rem;
        margin-top: 0.35rem;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }

    .sticky-footer .header-search.hs-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        min-width: 0;
    }

    .sticky-footer .header-search .search-toggle.sticky-link {
        width: 100%;
    }

    .sticky-footer .hs-toggle .input-wrapper {
        min-width: 0 !important;
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        right: auto !important;
        left: 50% !important;
        transform: translate3d(-50%, 10px, 0) !important;
        margin-bottom: 0.5rem !important;
        padding: 1rem !important;
        box-sizing: border-box;
    }

    .sticky-footer .header-search.hs-toggle.show .input-wrapper {
        transform: translate3d(-50%, 0, 0) !important;
    }

    .sticky-footer .sticky-link--cart {
        position: relative;
    }

    .sticky-footer .sticky-link--cart .cart-count {
        position: absolute;
        top: 2px;
        left: 50%;
        margin-left: 12px;
        right: auto;
        font-size: 0.6rem;
        border-radius: 50%;
        width: 15px;
        height: 15px;
        font-weight: bold;
        font-family: sans-serif;
    }

    .page-wrapper {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }
}

/* Shop / services listing — static filter bar above cards on mobile */
@media (max-width: 767px) {
    .main-content-wrap .sticky-content-wrapper {
        height: auto !important;
        display: block !important;
        overflow: visible !important;
    }

    .main-content-wrap .toolbox.sticky-toolbox {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
        padding: 1rem 0 0.5rem !important;
        box-shadow: none !important;
        z-index: 21;
        flex-wrap: wrap;
        gap: 0.75rem;
        background-color: #fff;
    }

    .main-content-wrap .toolbox.sticky-toolbox.fixed,
    .main-content-wrap .toolbox.sticky-toolbox.sticky-content.fixed {
        position: relative !important;
        animation: none !important;
    }

    .main-content-wrap .toolbox-left,
    .main-content-wrap .toolbox-right {
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
    }

    .main-content-wrap .toolbox-left {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .main-content-wrap .toolbox-right .show-info {
        margin: 0;
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .main-content-wrap .toolbox-item.left-sidebar-toggle {
        margin-right: 0;
        flex: 1 1 auto;
    }

    .main-content-wrap .product-wrapper,
    .main-content-wrap .product-lists {
        position: relative;
        z-index: 1;
        clear: both;
    }
}

/* Sticky Chat CTA Bubbles */
.whatsapp-li,
.messenger-li {
    position: relative;
}

.chat-bubble-prompt {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    padding: 10px 16px;
    border-radius: 20px 20px 0 20px;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bubble-bounce 2.2s infinite ease-in-out, bubble-fade-in 0.5s ease-out;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.chat-bubble-prompt::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    display: block;
    width: 0;
}

/* Messenger Bubble Styling */
.messenger-bubble {
    background: linear-gradient(135deg, #0975FF, #b900b4);
    box-shadow: 0 8px 24px rgba(185, 0, 180, 0.35);
}

.messenger-bubble::after {
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #b900b4;
}

/* WhatsApp Bubble Styling */
.whatsapp-bubble {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.whatsapp-bubble::after {
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #128C7E;
}

.chat-bubble-link {
    color: #fff !important;
    text-decoration: none !important;
}

.chat-bubble-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.chat-bubble-close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Animations */
@keyframes bubble-fade-in {
    from {
        opacity: 0;
        transform: translate(15px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@keyframes bubble-bounce {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-58%);
    }
}

@media (max-width: 767px) {
    .chat-bubble-prompt {
        right: 65px;
        padding: 8px 12px;
        font-size: 1.1rem;
    }
    .chat-bubble-prompt::after {
        border-width: 6px 0 6px 6px;
        right: -6px;
    }
}

/* Header Right Filled Blue Icons Styling */
.header-right .header-icon {
    font-size: 2.5rem !important;
    color: #3268b2 !important;
    transition: color 0.3s, transform 0.2s;
}

.header-right .header-icon:hover {
    color: #222 !important;
    transform: scale(1.1);
}

.header-right .facebook-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: 25px !important;
}

@media (max-width: 991px) {
    .header-right .header-icon {
        font-size: 2.5rem !important;
    }
    .header-right .facebook-link {
        margin-left: 15px !important;
    }
}

/* Product discount and sale tag styles */
.product-price del.old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
    font-size: 85%;
    font-weight: normal;
}

.product-label.label-sale {
    background-color: #e35e38 !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
}

/* Mobile Product Tabs styling - display side-by-side */
@media (max-width: 767px) {
    .product-tabs .nav-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        border-bottom: 1px solid #eee !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }
    .product-tabs .nav-tabs .nav-item {
        margin: 0 !important;
        flex: 1;
        text-align: center;
    }
    .product-tabs .nav-tabs .nav-link {
        font-size: 1.2rem !important;
        padding: 10px 2px !important;
        white-space: nowrap !important;
        letter-spacing: -0.02em;
    }
}
