/*mmlivesearch*/
.mmlivesearch__result{position:absolute;top:40px;width:100%;z-index:510;border-radius:0 0 5px 5px;overflow-y:auto;left:0;box-shadow:0 10px 10px #b1b1b1;color: #000;border-top: 1px solid #ddd}
.mmlivesearch__result span.search_sel {cursor:pointer;display:table;width:100%;padding:10px 15px;position:relative;border-top:1px solid #e3e3e3;background:#fff;text-align:left}
.mmlivesearch__result span.search_sel .im{display:table-cell;padding-right:10px;width:30px;vertical-align:middle;text-align:center}
.mmlivesearch__result span.search_sel .w{display:table-cell;vertical-align:middle;text-align:left}
.mmlivesearch__result span.search_sel:hover{background:#dbdbdb}
.mmlivesearch__result span.search_sel:hover .mmls__price{background:#dbdbdb}
.mmlivesearch__result span.search_sel.toproduct,.mmlivesearch__result span.search_sel.tosearch{padding:10px 100px 10px 15px}
.mmlivesearch__result span.search__sel.toproduct{padding:10px 100px 10px 15px;position:relative;z-index:1223;padding-left:35px;border-top:1px solid #e3e3e3;background:#fff;text-align:left}
.mmlivesearch__result span.search_sel.history{padding:10px 15px 10px 15px}
.mmlivesearch__result span.selected{background:#dbdbdb}
.mmlivesearch__result span.selected .mmls__price{background:#dbdbdb}
.mmlivesearch__result .title{padding:10px 10px 0px 10px;background:#fff;text-align:left}
.mmlivesearch__result span.all_products{width:100%;padding:10px;text-align:center!important}
.mmlivesearch__result span.no_find{width:100%;padding:10px;display:block;background:#fff;text-align:center}
.mmlivesearch__result .clearMMLiveSearch{float:right}
.mmlivesearch__result .mmls__price{position:absolute;font-weight:bold;right:10px;top:calc(50% - 10px);background:#fff;padding-left:10px}

/* ==========================================================================
   Full-screen Responsive Live Search Modal
   ========================================================================== */

.mm-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(244, 245, 247, 0.96) !important;
    z-index: 9999999 !important;
    display: flex !important;
    justify-content: center !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    animation: mmFadeIn 0.2s ease-out;
    box-sizing: border-box !important;
}

@keyframes mmFadeIn {
    from { opacity: 0; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

/* Central container */
.mm-modal-container {
    width: 85%;
    max-width: 1600px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

/* Header with large search input */
.mm-modal-header {
    height: 100px;
    flex-shrink: 0;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
    background: #ffffff;
    box-sizing: border-box;
}

.mm-search-icon {
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-large-input {
    flex-grow: 1 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    color: #222222 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 60px !important;
    line-height: 60px !important;
}

.mm-large-input::placeholder {
    color: #cccccc !important;
    font-weight: 300 !important;
}

.mm-close-btn {
    font-size: 42px;
    font-weight: 300;
    color: #999999;
    cursor: pointer;
    margin-left: 30px;
    line-height: 1;
    transition: color 0.2s;
    user-select: none;
}

.mm-close-btn:hover {
    color: #111111;
}

/* Results body */
.mm-modal-body {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
}

.mm-empty-state, .mm-loader-state {
    padding: 70px 20px;
    text-align: center;
    font-size: 18px;
    color: #777777;
}

/* Layout: Sidebar + Grid */
.mm-layout {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* Left Sidebar */
.mm-sidebar {
    width: 320px;
    border-right: 1px solid #eeeeee;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 20px 0;
    background: #fafafa;
    box-sizing: border-box;
}

.mm-cat-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mm-cat-list li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 35px !important;
    font-size: 15px !important;
    color: #444444 !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f5f5f5 !important;
    transition: background 0.15s, color 0.15s !important;
}

.mm-cat-list li:hover {
    background: #f0f0f0 !important;
    color: #111111 !important;
}

.mm-cat-list li.active {
    font-weight: bold !important;
    color: #111111 !important;
    background: #ffffff !important;
    border-left: 4px solid #333333 !important;
    padding-left: 31px !important;
}

.mm-cat-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.mm-badge {
    font-size: 12px;
    color: #777777;
    background: #e8e8e8;
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: normal;
    flex-shrink: 0;
}

.mm-badge-main {
    background: #2b2b2b;
    color: #ffffff;
    font-weight: 600;
}

/* Right Content Area */
.mm-content {
    flex-grow: 1;
    padding: 35px 40px;
    overflow-y: auto;
    background: #ffffff;
    box-sizing: border-box;
}

.mm-columns {
    column-count: 3;
    column-gap: 40px;
    width: 100%;
}

.mm-group {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 40px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.mm-group-title {
    font-size: 19px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.mm-group-title:hover {
    color: #000000;
    border-bottom-color: #333333;
}

/* Product item card */
.mm-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    cursor: pointer;
    border-radius: 6px;
    padding: 6px 8px;
    transition: background 0.15s;
    box-sizing: border-box;
}

.mm-item:hover {
    background: #f8f9fa;
}

.mm-item:hover .mm-name {
    color: #000000;
    text-decoration: underline;
}

.mm-item-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: #ffffff;
    overflow: hidden;
}

.mm-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mm-item-info {
    flex-grow: 1;
    min-width: 0;
}

.mm-name {
    font-size: 14px;
    color: #333333;
    margin-bottom: 4px;
    line-height: 1.35;
    word-break: break-word;
}

.mm-name strong {
    background: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

.mm-price {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.mm-more {
    font-size: 13px;
    color: #666666;
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f5f5f5;
    transition: all 0.2s;
}

.mm-more:hover {
    color: #000000;
    background: #e9ecef;
}

.mm-all-results {
    width: 100%;
    display: block;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
    color: #222222;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    background: #f1f3f5;
    transition: background 0.2s;
    break-inside: avoid;
}

.mm-all-results:hover {
    background: #e2e6ea;
}

/* Empty category preview */
.mm-empty-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
    text-align: center;
    color: #555555;
    padding: 30px;
}

.mm-empty-preview h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333333;
}

.mm-empty-preview p {
    font-size: 14px;
    color: #888888;
    margin-bottom: 20px;
}

.mm-btn-view-all {
    background-color: #222222;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.mm-btn-view-all:hover {
    background-color: #000000;
}

/* Responsive / Mobile */
@media (max-width: 1400px) {
    .mm-modal-container {
        width: 92%;
    }
}

@media (max-width: 1100px) {
    .mm-columns {
        column-count: 2;
        column-gap: 30px;
    }
}

@media (max-width: 768px) {
    .mm-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }

    .mm-modal-header {
        padding: 0 16px !important;
        height: 65px !important;
    }

    .mm-large-input {
        font-size: 19px !important;
        height: 40px !important;
        line-height: 40px !important;
    }

    .mm-close-btn {
        font-size: 32px !important;
        margin-left: 15px !important;
    }

    .mm-layout {
        flex-direction: column !important;
    }

    .mm-sidebar {
        width: 100% !important;
        max-height: 150px !important;
        padding: 5px 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #eeeeee !important;
    }

    .mm-cat-list li {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    .mm-cat-list li.active {
        border-left: none !important;
        border-bottom: 2px solid #333333 !important;
        padding-left: 16px !important;
    }

    .mm-content {
        padding: 16px !important;
    }

    .mm-columns {
        column-count: 1 !important;
    }

    .mm-group {
        margin-bottom: 25px !important;
    }

    .mm-group-title {
        font-size: 17px !important;
    }

    .mm-item-img {
        width: 50px !important;
        height: 50px !important;
        margin-right: 12px !important;
    }
}

/* Suppress UniShop default popups */
.live-search, .live_search, #search .live-search, .header-search .live-search, .search-box .live-search, div.live-search { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
