/* Layout corrections and storefront polish layered over the legacy theme. */
.header-main:before,.header-main:after,.utility-inner:before,.utility-inner:after,
.trust-grid:before,.trust-grid:after,.footer-grid:before,.footer-grid:after,
.footer-bottom .container:before,.footer-bottom .container:after{display:none!important;content:none!important}

.header-main{min-height:100px;grid-template-columns:240px minmax(360px,1fr) auto;gap:34px}
.site-logo{justify-self:start}
.site-logo img{width:230px;max-height:82px}
.site-search{width:100%;min-width:0}
.site-search input{min-width:0;padding:0 60px 0 18px!important;font-size:14px!important;line-height:normal!important}
.site-search input::placeholder{color:#78869a;opacity:1}
.site-search button{display:flex;align-items:center;justify-content:center;padding:0}
.account-nav{justify-self:end;justify-content:flex-end;white-space:nowrap}

.categories{min-height:48px}
.categories .navbar-collapse{height:auto!important;overflow:visible!important}
.categories .nav{justify-content:center;flex-wrap:wrap;margin:0;overflow:visible}
.categories .nav>li{flex:0 0 auto}
.categories .nav>li>a{padding:15px 12px!important;white-space:nowrap}

.content .slider{width:min(1350px,100%);min-height:0;margin:0 auto;background:#eef4fa}
.rslides,.rslides li{margin:0!important;padding:0!important}
.rslides img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:1350/350;object-fit:cover}
.callbacks_nav{z-index:20}

.featured{padding-top:46px}
.featuredbox{min-height:270px;padding:22px}
.featuredbox img{height:215px}
.featuredbox h4{font-size:16px}
.featured>.container-fluid>ul{width:100%;margin:0;padding:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.featured>.container-fluid>ul>li{min-height:405px;margin:0!important;padding:18px!important;float:none!important}
.featured li img{height:240px;max-height:none}
.featured li h4{min-height:72px;font-size:14px}

.cartitems{margin:0!important;padding:0!important;list-style:none}
.cartitems>li{margin:0!important;padding:24px 0!important}
.cartitems>li:first-child{padding-top:6px!important}
.cartitems>li:last-child{padding-bottom:6px!important;border-bottom:0}
.cart-product-image img{height:155px;padding:10px;border:1px solid #edf1f6;border-radius:12px;background:#fafcff}
.cart-product-info{padding-top:2px}
.carttitle{width:auto!important;font-size:15px;line-height:1.5}
.cart-actions{flex-wrap:wrap}
.price-details{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px;padding-bottom:18px!important}
.price-details span,.price-details span.total{width:auto!important;float:none!important;padding:0!important}
.price-details span.total{text-align:right;white-space:nowrap}
.price-details .clearfix{display:none}
.cart-grand-total{display:flex;align-items:center;justify-content:space-between;padding-top:17px;border-top:1px solid var(--line)}
.cart-grand-total .last-price,.cart-grand-total .final{width:auto!important;margin:0;padding:0!important;float:none!important}

.address-page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:5px 0 26px;padding:24px 28px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 3px 12px rgba(18,49,95,.07)}
.address-page-header h1{margin:2px 0 0;font-size:25px}
.checkout-step{color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.address-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.addressradio{min-height:0;margin:0;padding:24px;color:var(--ink)}
.addressradio strong{display:block;margin-bottom:7px;font-size:16px}
.addressradio .btn{margin-top:18px}
#addressform{float:none!important;margin-top:4px;margin-bottom:35px}

.website-field{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.public-site a.btn-primary,.public-site a.btn-info,.public-site a.btn-success,.public-site a.btn-danger,
.public-site a.btn-primary:hover,.public-site a.btn-info:hover,.public-site a.btn-success:hover,.public-site a.btn-danger:hover{color:#fff!important}

.trust-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.trust-grid>div{min-width:0}
.trust-grid strong,.trust-grid span{overflow-wrap:normal;word-break:normal}
.trust-grid strong{display:inline;margin-right:4px}

@media(max-width:1100px){
  .header-main{grid-template-columns:205px minmax(260px,1fr) auto;gap:22px}
  .site-logo img{width:200px}
  .featured>.container-fluid>ul{grid-template-columns:repeat(3,minmax(0,1fr))}
  .address-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:767px){
  .header-main{min-height:142px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:78px 54px;gap:0 14px}
  .site-logo img{width:185px;max-height:70px}
  .account-nav{justify-self:end}
  .site-search{height:48px}
  .site-search input{height:48px!important;font-size:14px!important}
  .categories .navbar-collapse{overflow:visible}
  .categories .nav{display:block;max-height:65vh;overflow-y:auto}
  .rslides img{height:150px;min-height:150px;max-height:150px;aspect-ratio:auto;object-fit:cover}
  .featuredbox{min-height:0}
  .featured>.container-fluid>ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .featured>.container-fluid>ul>li{min-height:330px}
  .featured li img{height:180px}
  .featured li h4{min-height:62px;font-size:13px}
  .cart-product-image{margin-bottom:16px}
  .cart-product-info{padding-left:15px}
  .address-page-header{align-items:flex-start;padding:20px;flex-direction:column}
  .address-page-header .btn{width:100%}
  .address-grid{grid-template-columns:1fr}
  .trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:420px){
  .site-logo img{width:165px}
  .featured>.container-fluid>ul{grid-template-columns:1fr}
  .featured>.container-fluid>ul>li{min-height:0}
  .featured li img{height:230px}
  .trust-grid{grid-template-columns:1fr}
}
