
.tss-search{position:relative;width:100%;max-width:var(--tss-max-width,100%);z-index:99999;font-family:inherit;color:var(--tss-text,#1e242d)}
.tss-form{display:flex;align-items:center;width:100%;min-height:var(--tss-height,48px);background:#fff;border:1px solid var(--tss-border,#d5d9de);border-radius:var(--tss-radius,12px);overflow:hidden;transition:border-color .2s,box-shadow .2s}
.tss-form:focus-within{border-color:var(--tss-accent,#ffc107);box-shadow:0 0 0 3px color-mix(in srgb,var(--tss-accent,#ffc107) 18%,transparent)}
.tss-input{flex:1;min-width:0;width:100%;min-height:var(--tss-height,48px);border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:13px 16px!important;font-size:16px!important;color:var(--tss-text,#1e242d)!important}
.tss-input::-webkit-search-cancel-button{cursor:pointer}

.tss-button{width:var(--tss-height,48px)!important;min-width:var(--tss-height,48px)!important;height:var(--tss-height,48px)!important;min-height:var(--tss-height,48px)!important;flex:0 0 var(--tss-height,48px)!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--tss-accent,#ffc107)!important;color:var(--tss-text,#1e242d)!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;line-height:1!important}

.tss-button svg{display:block!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;max-width:28px!important;max-height:28px!important;flex:0 0 28px!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.tss-button svg circle,.tss-button svg path{fill:none!important;stroke:currentColor!important}

.tss-results{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:100000;background:#fff;border:1px solid #e1e5e9;border-radius:var(--tss-radius,12px);box-shadow:0 12px 30px rgba(20,30,40,.14);overflow:hidden;display:none;max-height:min(70vh,560px);overflow-y:auto}
.tss-results.is-open{display:block}
.tss-result{display:flex;align-items:center;gap:14px;padding:12px 14px;text-decoration:none!important;color:#1e242d!important;border-bottom:1px solid #edf0f2;transition:background .15s}
.tss-result:hover{background:#f7f8fa}
.tss-thumb{width:72px;height:72px;flex:0 0 72px;display:flex;align-items:center;justify-content:center}
.tss-product-image{width:72px!important;height:72px!important;object-fit:contain!important;margin:0!important}
.tss-product-info{display:flex;flex-direction:column;flex:1;gap:4px;min-width:0}
.tss-product-title{font-size:14px;font-weight:650;line-height:1.35}
.tss-sku{font-size:12px;color:#66717c}
.tss-price{display:block;margin:0;padding:0;line-height:1.4;font-size:14px;font-weight:650}
.tss-price del{opacity:.55;font-weight:400}
.tss-price ins{text-decoration:none}
.tss-price .tss-price-login{display:inline-block;position:static;color:#1e242d;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.tss-price .tss-price-login:hover{color:#b88600}
.tss-empty,.tss-loading{padding:18px;text-align:center;color:#66717c;font-size:14px}
.tss-all-results{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#f7f8fa;color:#1e242d!important;font-weight:650;text-decoration:none!important}
.tss-all-results:hover{background:var(--tss-accent,#ffc107)}
.tss-search *{box-sizing:border-box}
.tss-section-title{padding:10px 14px 7px;background:#f7f8fa;color:#66717c;font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.tss-brand-result{display:flex;align-items:center;gap:12px;padding:10px 14px;text-decoration:none!important;color:#1e242d!important;border-bottom:1px solid #edf0f2;transition:background .15s}
.tss-brand-result:hover{background:#fff8df}
.tss-brand-thumb{width:48px;height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #edf0f2;border-radius:8px;background:#fff}
.tss-brand-thumb img{width:100%;height:100%;object-fit:contain;padding:4px}
.tss-brand-placeholder{font-size:20px;font-weight:750;color:#1e242d;background:#f7f8fa}
.tss-brand-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.tss-brand-name{font-size:14px;font-weight:750;text-transform:uppercase}
.tss-brand-count{font-size:12px;color:#66717c}
.tss-brand-arrow{margin-left:auto;font-size:25px;color:#9aa3ad}
.tss-image-link{display:flex;flex:0 0 72px;width:72px;align-items:center;justify-content:center;text-decoration:none!important}
.tss-product-title-link{display:block;color:inherit!important;text-decoration:none!important}

@media(max-width:600px){
.tss-results{max-height:65vh}
.tss-result{gap:10px;padding:10px}
.tss-thumb,.tss-product-image{width:60px!important;height:60px!important}
.tss-thumb{flex-basis:60px}
.tss-product-title{font-size:13px}
.tss-input{padding:12px!important;font-size:16px!important}
.tss-brand-result{padding:9px 10px}
.tss-brand-thumb{width:44px;height:44px;flex-basis:44px}
.tss-image-link{flex-basis:60px;width:60px}
}

/* =========================================
   TECNOSHOP SMART SEARCH - RICERCHE RECENTI
   ========================================= */

.tss-history-panel {
    width: 100%;
    background: #fff;
}

.tss-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    background: #f7f8fa;
    border-bottom: 1px solid #edf0f2;
}

.tss-history-title {
    color: #1e242d;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tss-history-clear {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #737e89;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.tss-history-clear:hover {
    color: #b88600;
    text-decoration: underline;
}

.tss-history-list {
    display: flex;
    flex-direction: column;
}

.tss-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    border-bottom: 1px solid #edf0f2;
    transition: background .15s;
}

.tss-history-row:hover {
    background: #fff8df;
}

.tss-history-item {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    border: 0;
    background: transparent;
    color: #1e242d;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.tss-history-item svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: #929ba5;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tss-history-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tss-history-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    margin-right: 7px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #9aa3ad;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.tss-history-remove:hover {
    background: #fff0e9;
    color: #c0392b;
}

.tss-history-item:focus-visible,
.tss-history-remove:focus-visible,
.tss-history-clear:focus-visible {
    outline: 2px solid var(--tss-accent, #ffc107);
    outline-offset: 2px;
}

@media(max-width:600px) {
    .tss-history-header {
        padding: 12px;
    }

    .tss-history-item {
        padding: 12px;
        font-size: 13px;
    }

    .tss-history-remove {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}