
:root{
    --tdsh-ink:#17211c;
    --tdsh-muted:#69716b;
    --tdsh-green:#33c54b;
    --tdsh-green-dark:#22983a;
    --tdsh-orange:#f2a51a;
    --tdsh-line:#ddd9cf;
    --tdsh-bg:#fffdf9;
}

/* Keep Astra menu items vertically aligned. */
.site-header .tds-header-search-item,
.site-header .tds-header-cart-item,
#ast-desktop-header .tds-header-search-item,
#ast-desktop-header .tds-header-cart-item{
    display:flex!important;
    align-items:center!important;
}

/* Search */
.tds-header-search{
    display:flex;
    align-items:center;
    width:220px;
    min-width:180px;
    height:42px;
    margin:0 10px;
    padding:0;
    overflow:hidden;
    border:1px solid var(--tdsh-line);
    border-radius:8px;
    background:#fff;
}

.tds-header-search-input{
    flex:1 1 auto;
    min-width:0;
    height:40px!important;
    margin:0!important;
    padding:0 10px 0 13px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--tdsh-ink)!important;
    font-size:14px!important;
    line-height:40px!important;
    box-shadow:none!important;
    outline:none!important;
}

.tds-header-search-input::placeholder{
    color:#8a908c;
}

.tds-header-search:focus-within{
    border-color:var(--tdsh-green);
    box-shadow:0 0 0 3px rgba(51,197,75,.10);
}

.tds-header-search-button{
    flex:0 0 42px;
    width:42px!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--tdsh-ink)!important;
    cursor:pointer;
    box-shadow:none!important;
}

.tds-header-search-button:hover{
    color:var(--tdsh-green-dark)!important;
    background:#f7fbf7!important;
}

.tds-header-search-button svg{
    display:block;
    width:20px;
    height:20px;
    fill:currentColor;
}

/* Cart */
.tds-header-cart-link{
    position:relative;
    min-height:42px;
    display:flex!important;
    align-items:center!important;
    gap:6px;
    margin-left:3px;
    padding:0 7px!important;
    color:var(--tdsh-ink)!important;
    text-decoration:none!important;
}

.tds-header-cart-link:hover{
    color:var(--tdsh-green-dark)!important;
}

.tds-header-cart-icon{
    display:grid;
    place-items:center;
}

.tds-header-cart-icon svg{
    width:25px;
    height:25px;
    fill:currentColor;
}

.tds-header-cart-label{
    font-size:14px;
    font-weight:700;
}

.tds-header-cart-count{
    min-width:20px;
    height:20px;
    display:inline-grid;
    place-items:center;
    padding:0 5px;
    border-radius:999px;
    background:var(--tdsh-orange);
    color:#fff;
    font-size:11px!important;
    line-height:1!important;
    font-weight:900;
}

/* Prevent global menu typography rules from enlarging form internals awkwardly. */
.site-header .tds-header-search-item input,
.site-header .tds-header-search-item button{
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
}

/* Tablet/mobile Astra off-canvas menu */
@media(max-width:921px){
    .ast-mobile-popup-drawer .tds-header-search-item,
    #ast-mobile-header .tds-header-search-item{
        width:100%;
        padding:12px 18px!important;
    }

    .ast-mobile-popup-drawer .tds-header-search,
    #ast-mobile-header .tds-header-search{
        width:100%;
        margin:0;
        height:46px;
    }

    .ast-mobile-popup-drawer .tds-header-search-input,
    #ast-mobile-header .tds-header-search-input{
        height:44px!important;
        font-size:16px!important;
        line-height:44px!important;
    }

    .ast-mobile-popup-drawer .tds-header-search-button,
    #ast-mobile-header .tds-header-search-button{
        width:46px!important;
        height:44px!important;
        min-height:44px!important;
        flex-basis:46px;
    }

    .ast-mobile-popup-drawer .tds-header-cart-item,
    #ast-mobile-header .tds-header-cart-item{
        display:block!important;
        width:100%;
    }

    .ast-mobile-popup-drawer .tds-header-cart-link,
    #ast-mobile-header .tds-header-cart-link{
        min-height:48px;
        margin:0;
        padding:0 20px!important;
    }

    .ast-mobile-popup-drawer .tds-header-cart-label,
    #ast-mobile-header .tds-header-cart-label{
        font-size:16px!important;
    }
}

/* If desktop header space gets tight, slightly compact the search first. */
@media(min-width:922px) and (max-width:1180px){
    .tds-header-search{
        width:175px;
        min-width:150px;
        margin-left:5px;
        margin-right:5px;
    }

    .tds-header-cart-label{
        display:none;
    }
}
