/* Scoped navigation and footer improvements. */
#header .container-nav2{background:#fff;border-bottom:1px solid #e7e8de;box-shadow:0 3px 12px #00000005;width:100%}
#header .container-nav2>.container>.hidden-sm-down{display:flex;align-items:center;gap:24px;justify-content:space-between}
#header #_desktop_logo{float:none;flex:0 0 auto;margin:0;padding:12px 0}
#header #_desktop_logo img{width:145px;max-width:100%;height:auto}
#header .header-nav{float:none;min-width:0}
#header #_desktop_top_menu_owl{float:none}
#header #_desktop_top_menu_owl #top-menu{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px;margin:0}
#header #top-menu>li>a{font-size:14px;line-height:1.4;text-transform:none;padding:13px 12px;min-height:44px;display:flex;align-items:center;border-radius:5px}
#header #top-menu>li>a:hover{background:#f3f4ed;color:#303828}
#header #top-menu>li>a[href$="tienda-3"]{background:#424b31;color:#fff!important;padding:13px 22px;font-weight:600}
#header a:focus-visible,#header button:focus-visible,.truffal-footer a:focus-visible{outline:2px solid #a4a878;outline-offset:4px}
#header .truffal-nav-fixed{position:fixed;top:0;left:0;right:0;z-index:1000}
#header #menu-icon{border:0;background:transparent;min-width:44px;min-height:44px;color:inherit;padding:8px;cursor:pointer}
.truffal-footer.footer-container{background:#242a20!important;color:#e8ebdf;padding:44px 0 22px!important;margin:0}
.truffal-footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.1fr;gap:36px}
.truffal-footer h2{font-family:inherit;font-size:15px;font-weight:600;line-height:1.4;color:#fff;margin:0 0 14px;text-transform:none;letter-spacing:0}
.truffal-footer ul{list-style:none;padding:0;margin:0}
.truffal-footer a{color:#e8ebdf!important;font-size:14px;line-height:1.6;display:inline-block;padding:5px 0;text-decoration:none}
.truffal-footer a:hover{text-decoration:underline;text-underline-offset:4px;color:#fff!important}
.truffal-footer p{color:#c6cdbb;font-size:14px;line-height:1.7;margin:12px 0}
.truffal-footer-brand img{max-width:180px;width:100%;height:auto}
.truffal-footer .truffal-footer-phone{font-size:20px;font-weight:600;color:#fff!important}
.truffal-footer .truffal-footer-small{font-size:12px;margin-top:18px}
.truffal-footer-legal{border-top:1px solid #ffffff26;margin-top:28px;padding-top:16px;display:flex;gap:24px;flex-wrap:wrap}
.truffal-footer-legal a{font-size:12px;color:#c6cdbb!important}
.g-footer .footer-before{background:#f3f4ed;padding:24px 0}
@media(max-width:1100px) and (min-width:768px){#header #top-menu>li>a{padding:10px 8px;font-size:13px}#header #_desktop_logo img{width:115px}#header .container-nav2>.container>.hidden-sm-down{gap:16px}.truffal-footer-grid{gap:22px}}
@media(max-width:767px){#header .container-nav2>.container>.hidden-sm-down{display:none!important}#header .mobile{padding:8px 16px}#header .top-logo img{max-width:120px;height:auto}#header #mobile_top_menu_wrapper{margin:0;padding:12px 16px;max-height:calc(100dvh - 140px);overflow-y:auto}#header #mobile_top_menu_wrapper #top-menu>li>a{min-height:48px;padding:12px 16px}#header #_mobile_top_menu_owl{width:100%}.truffal-footer.footer-container{padding:28px 0 20px!important}.truffal-footer-grid{grid-template-columns:1fr 1fr;gap:24px 18px}.truffal-footer-brand{grid-column:1/-1}.truffal-footer a{min-height:40px}.truffal-footer-grid>section:last-child{grid-column:1/-1}.truffal-footer-legal{gap:12px 20px}}
@media(prefers-reduced-motion:reduce){#header *, .truffal-footer *{scroll-behavior:auto!important;transition:none!important}}

/* v2: override the theme's white menu text and excessive header padding. */
#header .container-nav2{color:#303828!important;padding:0!important;}
#header #top-menu>li>a,#header #top-menu>li>a span{color:#303828!important;text-transform:none!important;}
#header #top-menu>li>a[href$="tienda-3"],#header #top-menu>li>a[href$="tienda-3"] span{color:#fff!important;}
#header #_desktop_logo img.truffal-header-logo,#header #_mobile_logo img.truffal-header-logo{filter:grayscale(1) invert(1) contrast(1.6);}
#header #menu-icon{color:#303828!important;}
#header #mobile_top_menu_wrapper{background:#fff;color:#303828;}
.truffal-footer p,.truffal-footer a{text-transform:none!important;}

/* v3: center the desktop row and remove Jiko's internal vertical offsets. */
@media(min-width:768px){
 #header .container-nav2{height:auto!important;min-height:76px;}
 #header .container-nav2>.container>.hidden-sm-down{min-height:76px;height:auto!important;padding:10px 0;box-sizing:border-box;}
 #header #_desktop_logo{padding:0!important;}
 #header #_desktop_logo img{display:block;}
 #header .header-nav{height:auto!important;align-self:center;}
 #header #_desktop_top_menu_owl{padding:0!important;height:auto!important;}
 #header #_desktop_top_menu_owl #top-menu{height:auto!important;}
 #header #_desktop_top_menu_owl #top-menu>li>a>span{padding:0!important;line-height:inherit;transform:none!important;}
}

/* v4: taller initial header; retain the compact sticky header. */
@media(min-width:768px){
 #header .container-nav2:not(.truffal-nav-fixed){min-height:100px!important;}
 #header .container-nav2:not(.truffal-nav-fixed)>.container>.hidden-sm-down{min-height:100px!important;padding:20px 0;}
}

.truffal-footer-payments{margin-top:28px;padding-top:24px;border-top:1px solid #ffffff26;}
.truffal-footer .truffal-payment-logos{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0;padding:0;list-style:none;}
.truffal-footer .truffal-payment-logos li{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:5px;width:110px;height:48px;padding:8px 10px;box-sizing:border-box;}
.truffal-footer .truffal-payment-logos img{display:block;width:90px;height:32px;max-width:100%;object-fit:contain;}

/* v6: discreet white payment marks and Tienda at the left of the desktop row. */
.truffal-footer .truffal-payment-logos{gap:22px;}
.truffal-footer .truffal-payment-logos li{background:transparent;border-radius:0;width:auto;height:32px;padding:0;}
.truffal-footer .truffal-payment-logos img{width:54px;height:24px;filter:brightness(0) invert(1);opacity:.9;}
.truffal-shop-left{display:none;}
@media(min-width:768px){
 #header .container-nav2>.container{width:100%;max-width:none;padding-left:24px;padding-right:24px;}
 #header .container-nav2>.container>.hidden-sm-down{gap:24px;}
 #header .truffal-shop-left{display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:#424b31;color:#fff!important;border-radius:5px;min-height:44px;padding:13px 22px;font-size:14px;font-weight:600;line-height:1.4;}
 #header #_desktop_top_menu_owl #top-menu>li:has(>a[href$="tienda-3"]){display:none!important;}
 #header .header-nav{margin-left:auto;}
}
@media(min-width:768px) and (max-width:1100px){#header .container-nav2>.container>.hidden-sm-down{gap:16px;}#header .truffal-shop-left{padding:10px 16px;}}

/* v7: remove Medios from both header menus and the empty newsletter band. */
#header #top-menu>li:has(>a[href$="/medios"]),#header #top-menu>li:has(>a[href$="/medios/"]){display:none!important;}
.g-footer .footer-before:not(:has(.container>*)){display:none!important;}
@media(min-width:768px){
 #header .container-nav2>.container{padding-left:0!important;padding-right:24px;}
 #header .truffal-shop-left{border-top-left-radius:0;border-bottom-left-radius:0;}
}

/* v8: logo left, centered links, Tienda right with comfortable outer spacing. */
.truffal-shop-right{display:none;}
@media(min-width:768px){
 #header .container-nav2>.container{width:100%;max-width:1320px;margin-left:auto;margin-right:auto;padding-left:32px!important;padding-right:32px!important;box-sizing:border-box;}
 #header .container-nav2>.container>.hidden-sm-down{display:grid;grid-template-columns:145px minmax(0,1fr) 145px;gap:24px;}
 #header #_desktop_logo{justify-self:start;}
 #header .header-nav{margin-left:0;justify-self:stretch;}
 #header #_desktop_top_menu_owl #top-menu{justify-content:center;}
 #header .truffal-shop-right{display:flex;align-items:center;justify-content:center;justify-self:end;background:#424b31;color:#fff!important;border-radius:5px;min-height:44px;padding:13px 22px;font-size:14px;font-weight:600;line-height:1.4;}
}
@media(min-width:768px) and (max-width:1100px){
 #header .container-nav2>.container{padding-left:24px!important;padding-right:24px!important;}
 #header .container-nav2>.container>.hidden-sm-down{grid-template-columns:115px minmax(0,1fr) 115px;gap:16px;}
 #header .truffal-shop-right{padding:10px 16px;}
}

/* v9: mobile header contrast, alignment and compact search. */
@media(max-width:767px){
 #header .container-nav2>.mobile{display:flex;align-items:center;gap:10px;height:auto!important;min-height:72px;padding:10px 16px!important;background:#fff!important;box-shadow:none;box-sizing:border-box;}
 #header .container-nav2>.mobile>.clearfix{display:none;}
 #header .container-nav2>.mobile #menu-icon{order:0;float:none!important;flex:0 0 44px;margin:0!important;padding:8px;color:#303828!important;}
 #header .container-nav2>.mobile .top-logo{order:1;flex:1;min-width:0;text-align:left;}
 #header .container-nav2>.mobile .top-logo a{display:inline-block;}
 #header .container-nav2>.mobile .top-logo img{display:block;width:120px;max-width:100%;height:auto;max-height:44px;object-fit:contain;}
 #header .container-nav2>.mobile #_mobile_user_info{order:2;float:none!important;flex:0 0 auto;}
 #header .container-nav2>.mobile #_mobile_cart{order:3;float:none!important;flex:0 0 auto;}
 #header .mobile .user-info a,#header .mobile .blockcart a,#header .mobile .blockcart .material-icons{color:#303828!important;}
 #header .mobile .user-info a{padding:8px;display:inline-block;}
 #header #_mobile_search_widget{background:#f3f4ed!important;padding:10px 16px!important;box-sizing:border-box;}
 #header #_mobile_search_widget .search-widget,#header #_mobile_search_widget .dropdown-menu{background:transparent!important;padding:0!important;margin:0!important;}
 #header #_mobile_search_widget form{position:relative;margin:0;}
 #header #_mobile_search_widget input[type=text]{height:44px!important;width:100%;min-width:0;padding:10px 46px 10px 14px!important;background:#fff!important;border:1px solid #e0e3d8!important;border-radius:6px!important;font-size:16px;box-sizing:border-box;color:#303828!important;}
 #header #_mobile_search_widget button[type=submit]{color:#424b31!important;right:4px;bottom:0;min-width:44px;min-height:44px;}
}
