/* TM Technology Shop Sidebar v1.1 */

.tmtm-shop-tools {
    clear: both;
    margin-bottom: 30px;
    color: #15243a;
}

.tmtm-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    padding: 8px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(21,36,58,.07);
}

.tmtm-search-symbol {
    padding: 0 8px;
    color: #52708f;
    font-size: 27px;
}

.tmtm-search-form input[type="search"] {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #15243a;
    font-size: 15px;
}

.tmtm-search-form button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: #123b69;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.tmtm-search-form button:hover {
    background: #0b2b50;
    color: #fff;
}

/* Live search suggestions */

#tmtm-results {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

#tmtm-results[hidden] {
    display: none !important;
}

.tmtm-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #edf1f6;
    color: #15243a;
    text-decoration: none;
}

.tmtm-result:hover {
    background: #f3f7fc;
}

.tmtm-result img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tmtm-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tmtm-result-price {
    color: #167448;
    font-weight: 700;
}

.tmtm-result-message {
    padding: 15px;
    color: #64748b;
}

.tmtm-view-all {
    display: block;
    padding: 13px;
    background: #f4f7fb;
    color: #123b69;
    text-align: center;
    font-weight: 700;
}

/* Desktop: sidebar left, products right */

.tmtm-shop-layout {
    display: grid;
    grid-template-columns: minmax(220px, 26%) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.tmtm-category-sidebar {
    position: sticky;
    top: 24px;
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(21,36,58,.04);
}

.tmtm-category-sidebar h3 {
    margin: 0;
    padding: 18px;
    border-bottom: 1px solid #e8eef5;
    background: #f5f8fc;
    color: #15243a;
    font-size: 18px;
    font-weight: 800;
}

.tmtm-category-list {
    display: flex;
    flex-direction: column;
    padding: 7px;
}

.tmtm-category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 10px;
    border-radius: 9px;
    color: #253750 !important;
    line-height: 1.35;
    text-decoration: none !important;
}

.tmtm-category-link:hover,
.tmtm-category-link.is-current {
    background: #eaf2fb;
    color: #123b69 !important;
}

.tmtm-category-link.is-current {
    font-weight: 800;
}

.tmtm-category-icon {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0f5fb;
    color: #123b69;
    font-size: 18px;
}

.tmtm-category-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.tmtm-category-count {
    color: #8190a3;
    font-size: 11px;
}

.tmtm-shop-products-area {
    min-width: 0;
}

/* Mobile category dropdown is hidden on desktop */

.tmtm-mobile-categories-toggle,
.tmtm-mobile-category-panel {
    display: none;
}

/* Tablet */

@media (max-width: 900px) {
    .tmtm-shop-layout {
        grid-template-columns: minmax(190px, 30%) minmax(0, 1fr);
        gap: 18px;
    }

    .tmtm-category-sidebar h3 {
        padding: 15px;
        font-size: 16px;
    }

    .tmtm-category-link {
        gap: 7px;
        padding: 9px 7px;
    }

    .tmtm-category-icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .tmtm-category-name {
        font-size: 12px;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .tmtm-shop-tools {
        margin-bottom: 22px;
    }

    .tmtm-search-form {
        gap: 4px;
        margin-bottom: 16px;
        padding: 6px;
    }

    .tmtm-search-form input[type="search"] {
        padding: 10px 4px;
        font-size: 13px;
    }

    .tmtm-search-form button {
        min-height: 40px;
        padding: 0 13px;
        font-size: 13px;
    }

    .tmtm-shop-layout {
        display: block;
    }

    .tmtm-category-sidebar {
        display: none;
    }

    .tmtm-mobile-categories-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 0 0 14px;
        padding: 13px 15px;
        border: 1px solid #dce5ef;
        border-radius: 11px;
        background: #f5f8fc;
        color: #123b69;
        font-size: 14px;
        font-weight: 750;
        cursor: pointer;
    }

    .tmtm-mobile-category-panel {
        margin: -6px 0 18px;
        padding: 8px;
        border: 1px solid #dce5ef;
        border-radius: 11px;
        background: #fff;
    }

    .tmtm-mobile-category-panel[hidden] {
        display: none !important;
    }

    .tmtm-mobile-category-panel .tmtm-category-list {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .tmtm-mobile-category-panel .tmtm-category-link {
        padding: 10px;
    }
}
/* Shop banner with integrated search */
.tmtm-shop-banner {
    background: linear-gradient(135deg, #102f55, #1d5488);
    color: #fff;
    padding: 38px 0 42px;
}
.tmtm-shop-banner .tm-kicker,
.tmtm-shop-banner h1 { color: #fff; }
.tmtm-banner-search {
    max-width: 760px;
    margin: 22px 0 0;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
}
.tmtm-banner-search input[type="search"] { color: #15243a; }
@media (max-width: 600px) {
    .tmtm-shop-banner { padding: 28px 0; }
    .tmtm-banner-search { gap: 4px; padding: 6px; }
    .tmtm-banner-search button { padding: 0 14px; }
}

/* Final Shop Banner styling */
.tmtm-shop-banner {
    background: linear-gradient(135deg, #12345a, #1e5485) !important;
    color: #ffffff !important;
    padding: 38px 0 42px !important;
}

.tmtm-shop-banner .tm-kicker {
    color: #ffffff !important;
    opacity: 1 !important;
}

.tmtm-shop-banner h1 {
    color: #ffffff !important;
}

.tmtm-shop-banner .tmtm-banner-search {
    background: #ffffff !important;
    max-width: 760px;
    margin-top: 22px;
}

@media (max-width: 600px) {
    .tmtm-shop-banner {
        padding: 28px 0 !important;
    }

    .tmtm-shop-banner .tmtm-banner-search {
        width: 100%;
    }
}

/* Center the Shop banner content */
.tmtm-shop-banner .tm-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tmtm-shop-banner .tmtm-banner-search {
    width: 100%;
    max-width: 820px;
    margin: 22px auto 0;
    text-align: left;
}

.tmtm-shop-banner .tm-kicker,
.tmtm-shop-banner h1 {
    text-align: center;
}

@media (max-width: 600px) {
    .tmtm-shop-banner .tm-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tmtm-shop-banner .tmtm-banner-search {
        max-width: 100%;
        margin-top: 18px;
    }
}
