/* Autohandel24 V3 — fresh blue/white design layer; Epsilon PHP functionality retained. */
:root{--ah-blue:#1267b1;--ah-blue-dark:#0b3f78;--ah-blue-soft:#eaf3fb;--ah-ink:#172536;--ah-muted:#64748b;--ah-line:#e2eaf2;--ah-bg:#f5f8fc;--ah-white:#fff;--ah-radius:16px;--ah-shadow:0 8px 28px rgba(15,45,75,.08)}
html{scroll-behavior:smooth}body{background:var(--ah-bg)!important;color:var(--ah-ink)!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;font-size:15px;line-height:1.55}
a{color:var(--ah-blue)}a:hover{color:var(--ah-blue-dark)}
.container{width:min(1280px,calc(100% - 40px))!important;max-width:1280px!important}
header{position:relative!important;z-index:50;background:#fff!important;border-bottom:1px solid var(--ah-line)!important;box-shadow:0 4px 22px rgba(20,50,80,.06)!important}
header .container.cmain{min-height:82px!important;display:flex;align-items:center;gap:24px}
header .logo{display:flex;align-items:center;min-width:180px}header .logo img{display:block;max-width:230px!important;max-height:58px!important;width:auto!important;height:auto!important;object-fit:contain}
header .links{display:flex;align-items:center;gap:10px;margin-left:auto}
header .links .btn,header .menu.btn{border-radius:11px!important;min-height:42px;padding:10px 16px!important;font-weight:700!important;border:1px solid var(--ah-line)!important;box-shadow:none!important;transition:.2s ease}
header .links .publish.btn{background:var(--ah-blue)!important;border-color:var(--ah-blue)!important;color:#fff!important}header .links .publish.btn:hover{background:var(--ah-blue-dark)!important;transform:translateY(-1px)}
header .links .account,header .links .btn-white{background:#fff!important;color:var(--ah-ink)!important}header .links .account:hover,header .links .btn-white:hover{background:var(--ah-blue-soft)!important}
header .links a svg{vertical-align:middle}header .links .account img{width:30px;height:30px;border-radius:50%;object-fit:cover}
/* Homepage hero */
body#home{background:var(--ah-bg)!important}body#home .home-search{background:linear-gradient(120deg,#0b3f78 0%,#1267b1 60%,#2388d1 100%)!important;padding:56px 0 42px!important;position:relative;overflow:visible!important;border:0!important;box-shadow:none!important}
body#home .home-search:before{content:"";position:absolute;right:-100px;top:-210px;width:540px;height:540px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 110px rgba(255,255,255,.025);pointer-events:none}
body#home .home-search>.container{position:relative;z-index:1}body#home .home-search>.container:after{opacity:.12!important;filter:grayscale(1) brightness(2)}
body#home .home-search .box{max-width:100%!important}body#home .home-search h1{color:#fff!important;font-size:clamp(30px,4vw,48px)!important;line-height:1.12!important;font-weight:850!important;letter-spacing:-1.4px!important;margin:0 0 24px!important}
body#home .home-search h1 div span{color:#dceeff!important;-webkit-text-fill-color:#dceeff!important;background:none!important;font-weight:850!important}
body#home .home-search form{display:flex!important;align-items:center!important;gap:8px!important;max-width:900px!important;padding:9px!important;background:#fff!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:15px!important;box-shadow:0 18px 48px rgba(0,24,55,.22)!important}
body#home .home-search form .input-box{flex:1!important;width:auto!important;margin:0!important}body#home .home-search input[name=sPattern]{height:54px!important;width:100%!important;border:0!important;outline:0!important;box-shadow:none!important;padding:0 17px!important;border-radius:10px!important;font-size:16px!important;color:var(--ah-ink)!important}
body#home .home-search form .btn{height:54px!important;min-width:145px!important;width:auto!important;float:none!important;margin:0!important;border:0!important;border-radius:11px!important;background:var(--ah-blue)!important;color:#fff!important;font-weight:800!important;font-size:15px!important;box-shadow:none!important}
body#home .home-search form .btn:hover{background:var(--ah-blue-dark)!important}
body#home .home-search .latest-search{max-width:900px!important;margin:14px 0 0!important}body#home .home-search .latest-search a{display:inline-block;color:#fff!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:30px!important;padding:6px 12px!important;margin:0 6px 6px 0!important}
body#home #home-cat{max-width:1050px!important;margin:28px 0 0!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important}
body#home #home-cat a{width:118px!important;margin:0!important;padding:13px 8px!important;border-radius:14px!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.18)!important;transition:.2s ease!important}
body#home #home-cat a:hover{background:rgba(255,255,255,.2)!important;transform:translateY(-3px)}body#home #home-cat a>div{width:54px!important;height:54px!important;border-radius:13px!important;background:rgba(255,255,255,.16)!important;box-shadow:none!important}
body#home #home-cat a>div img,body#home #home-cat a>div svg{max-width:34px!important;max-height:34px!important;filter:brightness(0) invert(1)!important}body#home #home-cat a>div i{color:#fff!important}
body#home #home-cat a>h3 span{color:#fff!important;font-size:12px!important;font-weight:750!important}body#home #home-cat a.all{background:#fff!important;border-color:#fff!important}body#home #home-cat a.all>div{background:var(--ah-blue)!important}body#home #home-cat a.all>h3 span{color:var(--ah-blue)!important}
/* Content sections and listing cards */
body#home .home-premium,body#home .home-location,body#home .home-cap-makes,body#home .home-cap-models{background:transparent!important;box-shadow:none!important;padding:34px 0!important}
body#home .home-premium .container,body#home .home-location .container,body#home .home-cap-makes .container,body#home .home-cap-models .container{max-width:1280px!important}
body#home .block>h2,body#home .home-premium .block>h2,body#home .home-location .block>h2{color:var(--ah-ink)!important;font-size:25px!important;font-weight:850!important;letter-spacing:-.5px!important;margin:0 0 20px!important}
.simple-prod{background:#fff!important;border:1px solid var(--ah-line)!important;border-radius:15px!important;overflow:hidden!important;box-shadow:0 4px 18px rgba(15,45,75,.055)!important;transition:transform .2s ease,box-shadow .2s ease!important}
.simple-prod:hover{transform:translateY(-3px);box-shadow:var(--ah-shadow)!important}.simple-prod .img-wrap{background:#edf3f8!important}.simple-prod .img-wrap>a.img img{object-fit:cover}.simple-prod .data{padding:14px!important}.simple-prod .title{color:var(--ah-ink)!important;font-weight:800!important}.simple-prod .price{color:var(--ah-blue)!important;font-weight:850!important}.simple-prod .info,.simple-prod .extra{color:var(--ah-muted)!important}.simple-prod .favorite,.simple-prod .svi-save-btn{color:var(--ah-blue)!important}
/* Search and inner pages */
body#search .container.primary,body#item .container.primary,body#user .container.primary,body#custom .container.primary{padding-top:28px!important;padding-bottom:40px!important}
body#search #search-menu,body#search .filter-menu{background:#fff!important;border:1px solid var(--ah-line)!important;border-radius:16px!important;box-shadow:0 5px 20px rgba(15,45,75,.045)!important}
body#search .filter-menu .row input,body#search .filter-menu .row select,body#search .filter-menu .row .input-box{border-radius:9px}
input,select,textarea{border-color:#d8e2ec!important;border-radius:9px!important}input:focus,select:focus,textarea:focus{border-color:var(--ah-blue)!important;box-shadow:0 0 0 3px rgba(18,103,177,.1)!important;outline:0!important}
button,.btn,input[type=submit]{border-radius:10px!important}button.btn,input[type=submit],.btn:not(.btn-white):not(.btn-transparent){background:var(--ah-blue)!important;border-color:var(--ah-blue)!important;color:#fff!important;font-weight:750!important}button.btn:hover,input[type=submit]:hover,.btn:not(.btn-white):not(.btn-transparent):hover{background:var(--ah-blue-dark)!important}
/* Item detail */
body#item #item-main,body#item #item-sidebar,body#item .item-content,body#item .item-user{border-radius:15px!important}body#item .item-content,body#item #item-sidebar{background:#fff!important;border:1px solid var(--ah-line)!important;box-shadow:0 5px 22px rgba(15,45,75,.05)!important}
/* Footer */
footer{background:#102b46!important;color:#d9e7f4!important;margin-top:35px!important}footer a{color:#fff!important}footer h4{color:#fff!important;font-weight:800!important}footer .container{padding-top:35px!important;padding-bottom:24px!important}footer .logo img{max-width:210px!important;max-height:60px!important;object-fit:contain;background:#fff;border-radius:7px;padding:5px}
.promo{background:var(--ah-blue-dark)!important;color:#fff!important}.promo .btn{background:#fff!important;color:var(--ah-blue-dark)!important;border-radius:9px!important}
/* Responsive */
@media(max-width:900px){.container{width:calc(100% - 28px)!important}header .container.cmain{min-height:70px!important;gap:12px}header .logo{min-width:0}header .logo img{max-width:185px!important;max-height:48px!important}header .links{gap:6px}header .links .btn{padding:9px 11px!important}}
@media(max-width:767px){body#home .home-search{padding:35px 0 28px!important}body#home .home-search h1{font-size:29px!important;letter-spacing:-.7px!important;margin-bottom:18px!important}body#home .home-search form{display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:8px!important;gap:7px!important}body#home .home-search form .input-box{width:100%!important}body#home .home-search input[name=sPattern],body#home .home-search form .btn{height:49px!important;width:100%!important;min-width:0!important}body#home #home-cat{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}body#home #home-cat a{width:auto!important;padding:10px 4px!important}body#home #home-cat a>div{width:46px!important;height:46px!important}body#home #home-cat a>h3 span{font-size:11px!important}body#home .home-premium,body#home .home-location{padding:22px 0!important}body#home .block>h2{font-size:21px!important}header .container.cmain{flex-wrap:wrap;padding-top:10px;padding-bottom:10px}header .links{margin-left:auto}header .links .publish.btn:not(.mini){font-size:0!important;padding:9px!important}header .links .publish.btn:not(.mini) svg{margin:0!important}footer .container{padding-top:25px!important}}
