.tepe-ai-header {
    position: relative;
    z-index: 9990;
    width: 100%;
    border-bottom: 1px solid #dfe3e7;
    background: #fff;
    box-shadow: 0 3px 14px rgba(17, 24, 39, .08);
}

html, body { max-width: 100%; overflow-x: hidden; }

.tepe-ai-header *, .tepe-ai-search *, .tepe-ai-whatsapp * { box-sizing: border-box; }
.tepe-ai-header__inner { width: min(1240px, 100%); margin: 0 auto; padding: 0 24px 14px; }
.tepe-ai-header__bar { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 26px; align-items: center; min-height: 82px; }
.tepe-ai-header__logo { display: inline-flex; align-items: center; width: fit-content; }
.tepe-ai-header__logo img { display: block; width: auto; max-width: 190px; height: 58px; object-fit: contain; }
.tepe-ai-header__nav .menu { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tepe-ai-header__nav .menu-item { margin: 0; padding: 0; }
.tepe-ai-header__nav a { display: block; padding: 12px 11px; color: #111827 !important; font-size: 14px; font-weight: 750; line-height: 1.2; text-decoration: none !important; }
.tepe-ai-header__nav a:hover, .tepe-ai-header__nav a:focus-visible, .tepe-ai-header__nav .current-menu-item > a { color: #b5121b !important; }
.tepe-ai-header__actions { display: flex; align-items: stretch; gap: 8px; }
.tepe-ai-header__action { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 78px; min-height: 58px; padding: 7px 9px; border: 1px solid #e1e4e8; border-radius: 5px; color: #111827 !important; font-size: 11px; font-weight: 750; line-height: 1.1; text-align: center; text-decoration: none !important; }
.tepe-ai-header__action:hover, .tepe-ai-header__action:focus-visible { border-color: #b5121b; color: #b5121b !important; }
.tepe-ai-header__action, a[title="Show Account"], a[aria-label="Mijn account"] { pointer-events: auto !important; }
.tepe-ai-header__action svg, .tepe-ai-header__toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.tepe-ai-header__cart-count { position: absolute; top: 3px; right: 5px; display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #b5121b; color: #fff; font-size: 10px; line-height: 1; }
.tepe-ai-header__toggle { display: none; }
.tepe-ai-header li::before, .tepe-ai-header li::after,
.tepe-ai-footer li::before, .tepe-ai-footer li::after { display: none !important; content: none !important; }

.tepe-ai-search {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0;
    background: #fff;
    box-sizing: border-box;
}

.tepe-ai-search__form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 920px; margin: 0 auto; }
.tepe-ai-search__input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid #cfd4da; border-radius: 4px 0 0 4px; background: #fff; color: #111827; font-size: 16px; outline: none; }
.tepe-ai-search__input:focus { border-color: #b5121b; box-shadow: inset 0 0 0 1px #b5121b; }
.tepe-ai-search__submit { min-width: 112px; height: 50px; padding: 0 20px; border: 0; border-radius: 0 4px 4px 0; background: #b5121b; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.tepe-ai-search__results { position: absolute; top: calc(100% + 4px); right: 0; left: 0; z-index: 10000; max-height: min(520px, 70vh); overflow-y: auto; border: 1px solid #d9dde2; border-radius: 4px; background: #fff; box-shadow: 0 12px 32px rgba(17,24,39,.18); }
.tepe-ai-search__result { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 13px; align-items: center; min-height: 78px; padding: 8px 12px; border-bottom: 1px solid #edf0f2; color: #111827 !important; text-decoration: none !important; }
.tepe-ai-search__result:last-child { border-bottom: 0; }
.tepe-ai-search__result:hover, .tepe-ai-search__result:focus, .tepe-ai-search__result.is-active { background: #f5f6f7; outline: none; }
.tepe-ai-search__image { width: 64px; height: 60px; object-fit: contain; background: #fff; }
.tepe-ai-search__title { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.tepe-ai-search__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #5f6670; font-size: 12px; line-height: 1.3; }
.tepe-ai-search__message { padding: 18px; color: #5f6670; text-align: center; }

.tepe-ai-whatsapp { position: fixed; right: 22px; bottom: 24px; z-index: 100000; display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 12px 17px; border-radius: 999px; background: #25d366; color: #fff !important; font-size: 14px; font-weight: 800; line-height: 1; text-decoration: none !important; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.tepe-ai-whatsapp:hover, .tepe-ai-whatsapp:focus-visible { background: #1ebd5a; color: #fff !important; transform: translateY(-1px); }
.tepe-ai-whatsapp:focus-visible { outline: 3px solid #111827; outline-offset: 3px; }
.tepe-ai-whatsapp svg { width: 25px; height: 25px; flex: 0 0 auto; }

.sm-site-footer { display: none !important; }
html body #tepe-mobile-nav-v6,
html body #tepe-mobile-menu-v6,
html body #top-store-mobile-bar { display: none !important; }
.tepe-ai-footer { position: relative; z-index: 2; clear: both; width: 100%; margin: 0; padding: 54px 24px 0; background: #081426; color: #d7dee8; font-family: Arial, Helvetica, sans-serif; }
.tepe-ai-footer * { box-sizing: border-box; }
.tepe-ai-footer__inner { width: min(1200px, 100%); margin: 0 auto; }
.tepe-ai-footer__grid { display: grid; grid-template-columns: 1.45fr 1fr .85fr 1.15fr; gap: 42px; padding-bottom: 42px; }
.tepe-ai-footer__logo { display: inline-flex; margin-bottom: 18px; padding: 8px; border-radius: 4px; background: #fff; }
.tepe-ai-footer__logo img { display: block; width: auto; height: 48px; }
.tepe-ai-footer h2 { margin: 6px 0 18px; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; }
.tepe-ai-footer p { margin: 0 0 14px; color: #c9d2df; font-size: 14px; line-height: 1.65; }
.tepe-ai-footer ul { margin: 0; padding: 0; list-style: none; }
.tepe-ai-footer li { margin: 0 0 10px; }
.tepe-ai-footer a { color: #e8edf4 !important; font-size: 14px; line-height: 1.45; text-decoration: none !important; }
.tepe-ai-footer a:hover, .tepe-ai-footer a:focus-visible { color: #ff6369 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.tepe-ai-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tepe-ai-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding: 22px 180px 22px 0; border-top: 1px solid rgba(255,255,255,.16); }
.tepe-ai-footer__bottom p { margin: 0; font-size: 12px; }
#tepe-dealers-v1 { max-width: 1180px; margin: 0 auto; padding: 0 20px 48px; color: #172433; }
.tepe-ai-dealers-page > h1 { max-width: 1180px; margin: 42px auto 8px; padding: 0 20px; color: #102b46; }
.tepe-dealers-lead { margin: 0 0 26px; color: #596b7b; }
.tepe-dealers-layout { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(340px,1.1fr); gap: 26px; align-items: start; }
.tepe-dealers-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tepe-dealer { padding: 17px 19px; border: 1px solid #dbe4ec; border-left: 4px solid #e33b3b; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(16,43,70,.07); }
.tepe-dealer strong { display: block; color: #102b46; }
.tepe-dealer span { display: block; margin-top: 5px; color: #607181; font-size: .94rem; }
.tepe-dealers-map { position: sticky; top: 18px; height: 560px; overflow: hidden; border-radius: 16px; background: #edf2f6; box-shadow: 0 8px 28px rgba(16,43,70,.14); }
.tepe-map-status { padding: 18px; color: #607181; }
.tepe-ai-vat-hidden { display: none !important; }
.select2-container, .select2-container .select2-selection--single { max-width: 100%; }
.select2-container .select2-selection--single { min-height: 44px; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.tepe-ai-privacy { width: min(980px, calc(100% - 32px)); margin: 38px auto 58px; }
.tepe-ai-privacy > div { max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; }

body.tepe-ai-frontend-ready .tepe-home > .tepe-whatsapp,
.tepe-home > .tepe-whatsapp { display: none !important; }
body.tepe-ai-frontend-ready .tepe-searchbar,
.tepe-searchbar { display: none !important; }
body.tepe-ai-header-active .tepe-home > .tepe-whatsapp { display: none !important; }
body.tepe-ai-header-active .tepe-searchbar { display: none !important; }
body.tepe-ai-frontend-ready #thaps-search-box,
body.tepe-ai-frontend-ready .aws-header-search,
body.tepe-ai-header-active #thaps-search-box,
body.tepe-ai-header-active .aws-header-search { display: none !important; }

/* Keep SelectWoo's native accessible select from inheriting full-width theme rules. */
.select2-hidden-accessible,
#billing_country.select2-hidden-accessible,
#shipping_country.select2-hidden-accessible,
#billing_state.select2-hidden-accessible,
#shipping_state.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tepe-ai-card-description {
    display: -webkit-box;
    min-height: 2.6em;
    margin: -5px 0 12px;
    overflow: hidden;
    color: #5f6670;
    font-size: 13px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tk-card-title {
    display: -webkit-box !important;
    flex: none !important;
    min-height: 2.7em;
    margin-bottom: 12px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3 !important;
}

@media (min-width: 1024px) {
    .tk-layout {
        grid-template-columns: 208px minmax(0, 1fr) !important;
        gap: 18px !important;
        max-width: 1600px !important;
        padding-right: 1.5% !important;
        padding-left: 1.5% !important;
    }
}

/* Enrich the existing WooCommerce product template without replacing its data. */
.tepe-ai-product-enhanced .sp-info,
.tepe-ai-product-enhanced .sp-gallery,
.tepe-ai-product-enhanced .sp-related-card { border-color: #dfe4eb; }
.tepe-ai-product-enhanced .sp-price-wrap { padding: 14px 16px; border: 1px solid #e1e5ea; border-radius: 6px; background: #f7f9fb; }
.tepe-ai-product-sale { display: inline-flex; margin: 0 0 10px; padding: 6px 10px; border-radius: 3px; background: #b5121b; color: #fff; font-size: 12px; font-weight: 850; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.tepe-ai-product-enhanced .sp-table { overflow: hidden; border: 1px solid #dfe4eb; border-radius: 6px; background: #fff; }
.tepe-ai-product-enhanced .sp-table-row,
.tepe-ai-product-enhanced .tepe-collie-black-row { margin: 0 !important; padding: 12px 14px !important; border-bottom: 1px solid #e8ebef !important; }
.tepe-ai-product-enhanced .sp-table-row:last-child,
.tepe-ai-product-enhanced .tepe-collie-black-row:last-child { border-bottom: 0 !important; }
.tepe-ai-product-usps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: min(1190px, calc(100% - 32px)); margin: 24px auto 34px; overflow: hidden; border: 1px solid #dce2e9; border-radius: 7px; background: #081426; color: #fff; box-shadow: 0 6px 20px rgba(8,20,38,.08); }
.tepe-ai-product-usps > div { min-width: 0; padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.16); }
.tepe-ai-product-usps > div:last-child { border-right: 0; }
.tepe-ai-product-usps strong,
.tepe-ai-product-usps span { display: block; }
.tepe-ai-product-usps strong { margin-bottom: 5px; color: #fff; font-size: 14px; line-height: 1.25; }
.tepe-ai-product-usps span { color: #d8e0ea; font-size: 12px; line-height: 1.45; }
.tepe-ai-product-enhanced .sp-related { margin-top: 32px; }
.tepe-ai-product-enhanced .sp-related-header { color: #081426; text-transform: none; }
.tepe-ai-product-enhanced .sp-related-card { border: 1px solid #e0e4e9; border-radius: 6px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tepe-ai-product-enhanced .sp-related-card:hover { border-color: #b5121b; box-shadow: 0 8px 22px rgba(8,20,38,.1); transform: translateY(-2px); }

@media (max-width: 767px) {
    .tepe-ai-header__inner { padding: 0 12px 10px; }
    .tepe-ai-header__bar { grid-template-columns: minmax(90px, 1fr) auto auto; gap: 7px; min-height: 68px; }
    .tepe-ai-header__logo img { max-width: 125px; height: 46px; }
    .tepe-ai-header__logo { grid-column: 1; grid-row: 1; }
    .tepe-ai-header__toggle { grid-column: 2; grid-row: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 48px; min-height: 50px; padding: 4px; border: 0; background: transparent; color: #111827; font-size: 10px; font-weight: 750; cursor: pointer; }
    .tepe-ai-header__actions { grid-column: 3; grid-row: 1; gap: 5px; }
    .tepe-ai-header__action { min-width: 60px; min-height: 50px; padding: 4px 2px; border: 0; font-size: 8.5px; }
    .tepe-ai-header__action > span:not(.tepe-ai-header__cart-count) { max-width: 64px; white-space: nowrap; }
    .tepe-ai-header__cart-count { top: 0; right: 0; }
    .tepe-ai-header__nav { display: none; grid-column: 1 / -1; grid-row: 2; padding: 5px 0 10px; border-top: 1px solid #e7e9ec; }
    .tepe-ai-header.is-menu-open .tepe-ai-header__nav { display: block; }
    .tepe-ai-header__nav .menu { display: block; }
    .tepe-ai-header__nav a { padding: 11px 8px; border-bottom: 1px solid #f0f1f3; }
    .tepe-ai-search { margin-top: 2px; }
    .tepe-ai-search__input { height: 48px; padding: 0 12px; }
    .tepe-ai-search__submit { min-width: 84px; height: 48px; padding: 0 12px; font-size: 12px; }
    .tepe-ai-search__result { grid-template-columns: 52px minmax(0, 1fr); min-height: 68px; padding: 7px 9px; }
    .tepe-ai-search__image { width: 52px; height: 52px; }
    html body { padding-bottom: 0 !important; }
    html body .tepe-bottom,
    html body #tepe-mobile-nav-v6,
    html body #tepe-mobile-menu-v6,
    html body #top-store-mobile-bar { display: none !important; }
    .tepe-ai-whatsapp { right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); min-width: 50px; width: 50px; height: 50px; padding: 0; justify-content: center; }
    .tepe-ai-product-detail .tepe-ai-whatsapp { bottom: calc(122px + env(safe-area-inset-bottom, 0px)); }
    .tepe-ai-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .tepe-ai-footer { padding: 38px 20px 0; }
    .tepe-ai-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; }
    .tepe-ai-footer__bottom { display: block; padding: 19px 0 82px; }
    .tepe-ai-footer__bottom p + p { margin-top: 5px; }
    .tepe-ai-dealers-page > h1 { margin-top: 30px; padding: 0 16px; }
    #tepe-dealers-v1 { padding: 0 16px 95px; }
    .tepe-dealers-layout { grid-template-columns: 1fr; }
    .tepe-dealers-map { position: relative; top: auto; order: -1; height: 390px; }
    .tepe-ai-product-usps { grid-template-columns: 1fr; width: calc(100% - 24px); margin: 18px auto 26px; }
    .tepe-ai-product-usps > div { padding: 15px 17px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
    .tepe-ai-product-usps > div:last-child { border-bottom: 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tepe-ai-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.tepe-ai-production .header,
body.tepe-ai-production #search-modal,
body.tepe-ai-production .floating_btn {
    display: none !important;
}
