/* Clasico Next 1.1.8 – fixed sticky-header drawer, search and compact footer */
/* Drawer is lifted into document.body on every device: no off-screen/stacking ancestor. */
#cn-navigation.cn-drawer-mode {
  position:fixed!important;inset:0 auto 0 0!important;
  width:min(88vw,390px)!important;max-width:100vw!important;box-sizing:border-box!important;
  height:100dvh!important;max-height:100dvh!important;
  display:none!important;flex:none!important;overflow-y:auto!important;
  overscroll-behavior:contain;z-index:1800!important;
  margin:0!important;padding:18px 18px calc(20px + env(safe-area-inset-bottom))!important;
  border:0!important;background:#fff!important;
  box-shadow:14px 0 38px #101b2b38!important;
}
#cn-navigation.cn-drawer-mode.is-open{display:block!important}
#cn-navigation.cn-drawer-mode>.cn-mobile-menu-head{display:flex!important;align-items:center;justify-content:space-between;gap:12px;position:relative;border-bottom:1px solid #e6edf5;padding:3px 0 15px;margin:0 0 10px}
#cn-navigation.cn-drawer-mode>.cn-mobile-menu-head strong{font-size:19px;color:#172741}
#cn-navigation.cn-drawer-mode>.cn-top-categories,#cn-navigation.cn-drawer-mode>.cn-catalog-extra{display:none!important}
#cn-navigation.cn-drawer-mode>.cn-mobile-tree{display:block!important;list-style:none;margin:0!important;padding:0!important;width:100%;max-width:100%}
#cn-navigation.cn-drawer-mode .cn-mobile-tree,.cn-drawer-mode .cn-mobile-tree ul{list-style:none!important}
#cn-navigation.cn-drawer-mode .cn-mobile-row{display:flex;align-items:center;gap:4px;min-height:48px;border-bottom:1px solid #edf1f7}
#cn-navigation.cn-drawer-mode .cn-mobile-label,#cn-navigation.cn-drawer-mode .cn-mobile-leaf{
  display:flex;align-items:center;flex:1;min-width:0;text-align:left;padding:12px 7px;
  color:#263a53;font-size:14px;font-weight:600;line-height:1.4;
  background:transparent;border:0;text-decoration:none;cursor:pointer;
}
#cn-navigation.cn-drawer-mode .cn-mobile-chevron{display:flex;align-items:center;justify-content:center;width:43px;height:43px;flex:none;background:#f3f7ff;border:0;border-radius:9px;color:#225fbd;cursor:pointer}
#cn-navigation.cn-drawer-mode .cn-mobile-children[hidden]{display:none!important}
#cn-navigation.cn-drawer-mode .cn-mobile-children{display:block;margin:0 0 4px 10px;padding:2px 0 5px 12px;border-left:2px solid #e5edfa}
#cn-navigation.cn-drawer-mode .cn-mobile-all a{display:block;font-size:12px;font-weight:650;color:#225fbd;padding:9px 4px}
#cn-navigation.cn-drawer-mode .cn-mobile-chevron[aria-expanded="true"] i{transform:rotate(90deg)}
body>.cn-menu-shade:not([hidden]){display:block!important;position:fixed!important;inset:0!important;background:#101a2ba3!important;z-index:1750!important;cursor:pointer!important;border:0!important;padding:0!important}
body.cn-menu-open{overflow:hidden!important}
body.cn-menu-open .cn-sticky-topbar{z-index:1250!important}

/* Magnifier remains visible on the compact bar at all widths. */
.cn-sticky-topbar .cn-sticky-search-button{border:0;background:transparent;cursor:pointer;color:#1d2b40}
.cn-sticky-topbar .cn-sticky-search-button i{font-size:24px;line-height:1}
.cn-sticky-topbar .cn-sticky-search-panel{
 position:absolute;left:50%;top:100%;width:min(calc(100% - 24px),630px);transform:translateX(-50%);
 background:#fff;border:1px solid #dbe4f3;box-shadow:0 14px 25px #192d4a26;
 border-radius:0 0 14px 14px;padding:14px;z-index:1300;
}
.cn-sticky-topbar .cn-sticky-search-panel[hidden]{display:none!important}
.cn-sticky-topbar .cn-sticky-search-label{display:block;font-size:12px;font-weight:700;color:#304561;margin:0 0 8px}
.cn-sticky-topbar .cn-sticky-search-form-row{display:flex;gap:8px;align-items:stretch}
.cn-sticky-topbar .cn-sticky-search-form-row input{flex:1;min-width:0;min-height:42px;border:1px solid #ccd9ee;border-radius:9px;background:#fff;padding:8px 12px;font-size:14px}
.cn-sticky-topbar .cn-sticky-search-form-row button{width:48px;border:0;border-radius:9px;background:var(--cn-primary,#356cf3);color:#fff;cursor:pointer}
.cn-sticky-topbar .cn-sticky-search-form-row button i{font-size:23px}
@media(max-width:767px){
 .cn-sticky-topbar .cn-sticky-topbar-actions{gap:2px}
 .cn-sticky-topbar .cn-sticky-topbar-link{padding:5px}
 .cn-sticky-topbar .cn-sticky-topbar-link i{font-size:23px}
 .cn-sticky-topbar .cn-sticky-topbar-logo{max-width:41vw}
}

/* WhatsApp is repositioned by the product JS based on actual sticky purchase height. */
body#product.cn-sticky-buy-visible .cn-whatsapp,
body.cn-sticky-buy-visible .cn-whatsapp{bottom:calc(var(--cn-sticky-height,100px) + 30px)!important}

/* Compact mobile / tablet footer. Keep all standard module links and consent. */
@media(max-width:1023px){
 #footer .cn-footer-layout{padding-top:16px!important;padding-bottom:8px!important;min-height:0!important}
 #footer .cn-footer-brand{margin-bottom:14px!important;padding-bottom:14px!important;gap:14px!important;min-height:0!important}
 #footer .cn-footer-brand p{margin:6px 0!important;line-height:1.45}
 #footer .cn-footer-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px 22px!important;align-items:start}
 #footer .cn-footer-links>.links:first-child{grid-column:1/-1}
 #footer .cn-footer-links>.links .row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 18px!important;margin:0!important}
 #footer .cn-footer-links>.links .row>.wrapper{width:auto!important;min-width:0;float:none!important}
 #footer .cn-footer-links>.links,#footer .cn-footer-links>.block-contact{margin:0!important;padding:0!important;min-width:0!important;width:auto!important}
 #footer .cn-footer-links .h3,#footer .cn-footer-links .h4,#footer .cn-footer-links .block-contact-title{font-size:13px!important;line-height:1.4!important;margin:0 0 9px!important;padding:0!important}
 #footer .cn-footer-links li{margin:0 0 5px!important;padding:0!important;line-height:1.5!important}
 #footer .cn-footer-links li a{font-size:12px!important;line-height:1.5!important}
 #footer .cn-footer-social{margin-top:9px!important;padding-top:9px!important;min-height:0!important}
 #footer .cn-footer-bottom>.container{min-height:42px!important;padding-top:7px!important;padding-bottom:7px!important;gap:8px!important}
 #footer .cn-newsletter{padding-top:13px!important;padding-bottom:13px!important}
}
@media(max-width:767px){
 #footer .cn-footer-layout{padding-top:12px!important;padding-bottom:7px!important}
 #footer .cn-footer-brand{margin-bottom:12px!important;padding-bottom:12px!important}
 #footer .cn-footer-links{column-gap:12px!important;row-gap:14px!important}
 #footer .cn-footer-links>.links .row{column-gap:12px!important;row-gap:10px!important}
 #footer .cn-footer-links .h3,#footer .cn-footer-links .h4,#footer .cn-footer-links .block-contact-title{font-size:12px!important}
 #footer .cn-footer-links li a{font-size:11px!important}
 #footer .cn-footer-links li{margin-bottom:4px!important}
 #footer .cn-footer-bottom>.container{justify-content:center!important;align-items:center!important;text-align:center!important;gap:7px!important}
 #footer .cn-footer-copyright{justify-content:center!important;text-align:center!important;gap:5px!important}
}
