/* Clasico Next 1.1.30 HOTFIX64 — single-thumb mobile bottom bar and bottom-sheet menu.
   Intentionally scoped to <= 767px; existing tablet, laptop and desktop stay unchanged.
   Progressive enhancement: the old menu remains available if JS does not load. */
.cn64-bottom-nav,.cn64-menu-extras,.cn64-menu-bottom{display:none!important}
@media(max-width:767px){
  body.cn64-ready{--cn64-nav-height:66px;--cn64-nav-space:calc(var(--cn64-nav-height) + env(safe-area-inset-bottom,0px));--cn64-buy-space:0px}
  body.cn64-ready:not(.cn64-nav-hidden):not(.cn64-menu-keyboard){padding-bottom:var(--cn64-nav-space)!important}
  body.cn64-ready.cn64-nav-hidden:not(.cn64-menu-keyboard){padding-bottom:var(--cn64-nav-space)!important}
  body.cn64-ready #cn64-bottom-nav.cn64-bottom-nav{
    display:grid!important;position:fixed!important;z-index:1290!important;
    bottom:0!important;left:0!important;right:0!important;
    width:100%!important;height:var(--cn64-nav-space)!important;
    grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:0;
    padding:5px max(4px,env(safe-area-inset-left,0px)) env(safe-area-inset-bottom,0px) max(4px,env(safe-area-inset-right,0px));
    box-sizing:border-box;border-top:1px solid #dce8f8;border-radius:17px 17px 0 0;
    background:rgba(252,254,255,.98);box-shadow:0 -5px 22px rgba(23,46,88,.13);
    -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
    transform:translate3d(0,0,0);transition:transform .20s ease;
  }
  body.cn64-ready.cn64-nav-hidden #cn64-bottom-nav{transform:translate3d(0,110%,0)!important;pointer-events:none!important}
  body.cn64-ready.cn-menu-open #cn64-bottom-nav{transform:translate3d(0,110%,0)!important;pointer-events:none!important}
  #cn64-bottom-nav .cn64-nav-item{
    position:relative;display:flex!important;flex-direction:column;justify-content:center;align-items:center;
    gap:1px;height:56px;min-height:48px;min-width:0;padding:3px 1px;
    border:0;border-radius:12px;box-shadow:none;background:transparent;color:#3b5579;
    text-decoration:none;font-family:inherit;font-size:9px;line-height:1.15;font-weight:700;text-align:center;
    cursor:pointer;white-space:normal;overflow-wrap:normal;touch-action:manipulation;
  }
  #cn64-bottom-nav .cn64-nav-item>i{display:block;font-size:25px;line-height:28px;color:#315783}
  #cn64-bottom-nav .cn64-nav-item>span:last-child{display:block;min-width:0;white-space:nowrap;letter-spacing:-.13px}
  #cn64-bottom-nav .cn64-nav-item:hover,#cn64-bottom-nav .cn64-nav-item:focus-visible{background:#edf5ff;color:#204ca1}
  #cn64-bottom-nav .cn64-nav-item.is-current:not(.cn64-nav-cart){color:#235cba;background:#eaf3ff}
  #cn64-bottom-nav .cn64-nav-cart{height:59px;margin-top:-7px;border-radius:14px;background:#2c6fd2;color:white;box-shadow:0 3px 11px #265eaa35}
  #cn64-bottom-nav .cn64-nav-cart>span:last-child{color:white;font-size:10px}
  #cn64-bottom-nav .cn64-nav-cart .cn64-cart-icon{display:grid;place-items:center;position:relative;height:29px}
  #cn64-bottom-nav .cn64-nav-cart .cn64-cart-icon i{font-size:25px;color:white;line-height:28px}
  #cn64-bottom-nav .cn64-nav-cart:hover,#cn64-bottom-nav .cn64-nav-cart:focus-visible{background:#2459ae;color:white}
  #cn64-bottom-nav .cn64-cart-count:not([hidden]){display:flex;align-items:center;justify-content:center;position:absolute;right:-11px;top:-3px;background:#ee675d;color:#fff;min-width:15px;height:15px;border-radius:12px;font-size:9px;font-weight:800;padding:0 2px}
  /* The mobile header keeps search and logo; remove only its redundant hamburger. */
  body.cn64-ready #header .cn-header-main .cn-mobile-menu-button{display:none!important}
  body.cn64-ready #header .cn-header-main{grid-template-columns:minmax(0,1fr) auto!important}
  /* Do not stack a second sticky TOP toolbar on a phone. */
  body.cn64-ready [data-cn-sticky-topbar]{display:none!important}
  /* EXISTING cnmenu drawer becomes a real bottom sheet; its own category tree remains intact. */
  body.cn64-ready #cn-navigation.cn-drawer-mode{
    inset:auto 0 0 0!important;top:auto!important;left:0!important;right:0!important;bottom:0!important;
    width:100%!important;max-width:100%!important;height:min(90dvh,760px)!important;max-height:90dvh!important;
    display:none!important;flex-direction:column!important;overflow:hidden!important;
    border-radius:24px 24px 0 0!important;border:1px solid #d9e5f5!important;border-bottom:0!important;
    padding:9px 14px calc(10px + env(safe-area-inset-bottom,0px))!important;
    box-shadow:0 -14px 46px rgba(16,34,62,.26)!important;z-index:1850!important;
    background:#f9fbff!important;
  }
  body.cn64-ready #cn-navigation.cn-drawer-mode.is-open{display:flex!important}
  body.cn64-ready #cn-navigation.cn-drawer-mode>.cn-mobile-menu-head{
    flex:0 0 auto;min-height:49px;position:relative!important;top:auto!important;
    padding:1px 4px 9px!important;margin:0 0 8px!important;background:transparent!important;
  }
  body.cn64-ready #cn-navigation.cn-drawer-mode>.cn-mobile-menu-head strong{font-size:19px;font-weight:800;color:#243d61}
  body.cn64-ready #cn-navigation.cn-drawer-mode>.cn-mobile-menu-head:before{
    content:'';position:absolute;top:-6px;left:calc(50% - 25px);width:50px;height:4px;
    border-radius:4px;background:#bbcde2;
  }
  body.cn64-ready #cn-navigation.cn-drawer-mode>.cn-mobile-menu-head button{min-width:40px;min-height:40px;color:#395c86}
  body.cn64-ready #cn-navigation.cn-drawer-mode>.cn64-menu-extras{
    display:block!important;flex:0 0 auto;overflow:hidden!important;margin:0 0 9px;padding:1px 0 7px;
    border-bottom:1px solid #e3ebf6;
  }
  #cn64-menu-extras .cn64-menu-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  #cn64-menu-extras .cn64-menu-shortcuts>a{display:flex;min-width:0;flex-direction:column;justify-content:center;align-items:center;min-height:56px;gap:3px;background:white;border:1px solid #dce7f5;border-radius:12px;font-weight:700;font-size:10px;line-height:1.2;color:#304d77;text-decoration:none;text-align:center}
  #cn64-menu-extras .cn64-menu-shortcuts>a>i{font-size:22px;color:#3767ad}
  body.cn64-ready #cn-navigation.cn-drawer-mode>.cn-mobile-tree{
    display:block!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:2px 2px 8px!important;
  }
  body.cn64-ready #cn-navigation.cn-drawer-mode>.cn64-menu-bottom{
    display:block!important;flex:0 0 auto;background:#f9fbff;padding:8px 0 0;border-top:1px solid #dce7f5;
  }
  #cn64-menu-bottom .cn64-menu-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:9px}
  #cn64-menu-bottom .cn64-menu-actions>a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:49px;border:1px solid #deebf8;background:#fff;border-radius:12px;color:#304f7a;text-decoration:none;font-weight:750;font-size:10px}
  #cn64-menu-bottom .cn64-menu-actions>a i{font-size:20px;color:#3b6db7}
  #cn64-menu-bottom .cn64-menu-close{display:flex;align-items:center;justify-content:center;gap:9px;min-height:49px;width:100%;background:#315d99;border:0;border-radius:14px;color:#fff;font-size:15px;font-weight:800;cursor:pointer;touch-action:manipulation}
  #cn64-menu-bottom .cn64-menu-close i{font-size:22px}
  body.cn64-ready .cn-menu-shade:not([hidden]){z-index:1790!important;background:rgba(19,34,55,.57)!important}
  /* Product sticky purchase bar sits above nav when visible; shifts to screen edge when nav hides. */
  body.cn64-ready#product .cn-sticky-buy:not([hidden]){bottom:var(--cn64-nav-space)!important;z-index:1280!important;padding-bottom:9px!important}
  body.cn64-ready.cn64-nav-hidden#product .cn-sticky-buy:not([hidden]){bottom:0!important}
  body.cn64-ready.cn-sticky-buy-visible#product{padding-bottom:calc(var(--cn64-nav-space) + var(--cn-sticky-height,100px))!important}
  body.cn64-ready.cn-sticky-buy-visible#product.cn64-nav-hidden{padding-bottom:calc(var(--cn64-nav-space) + var(--cn-sticky-height,100px))!important}
  /* Keep WhatsApp ABOVE the purchase CTA, never above menu or buttons. */
  body.cn64-ready:not(#product) .cn-whatsapp{bottom:calc(var(--cn64-nav-space) + 15px)!important}
  body.cn64-ready#product.cn-sticky-buy-visible .cn-whatsapp{bottom:calc(var(--cn64-nav-space) + var(--cn-sticky-height,100px) + 16px)!important}
  body.cn64-ready.cn64-nav-hidden:not(#product) .cn-whatsapp{bottom:18px!important}
  body.cn64-ready.cn64-nav-hidden#product.cn-sticky-buy-visible .cn-whatsapp{bottom:calc(var(--cn-sticky-height,100px) + 16px)!important}
  body.cn64-ready.cn-menu-open .cn-whatsapp{visibility:hidden!important;pointer-events:none!important}
  :is(#cn64-bottom-nav,#cn-navigation.cn-drawer-mode) a:focus-visible,
  :is(#cn64-bottom-nav,#cn-navigation.cn-drawer-mode) button:focus-visible{outline:3px solid #78aaf3!important;outline-offset:2px}
  body.cn64-ready.cn64-menu-keyboard #cn64-bottom-nav{display:none!important}
  body.cn64-ready.cn64-menu-keyboard#product .cn-sticky-buy{display:none!important}
}
@media(max-width:360px){
  #cn64-bottom-nav .cn64-nav-item{font-size:8px!important}
  #cn64-bottom-nav .cn64-nav-item>i{font-size:22px!important}
  body.cn64-ready{--cn64-nav-height:63px}
}
@media(prefers-reduced-motion:reduce){
  #cn64-bottom-nav{transition:none!important}
}

/* HOTFIX65: Fix the ACTUAL whatsappdestek widget class, not just .cn-whatsapp.
   Preserve the provider's appearance, close control and animation. */
@media(max-width:767px){
  /* This is the preferred fixed, persistent navigation; visual-viewport keyboards remain special. */
  body.cn64-ready:not(.cn64-menu-keyboard):not(.cn-menu-open) #cn64-bottom-nav{
    visibility:visible!important;
  }
  body.cn64-ready:not(.cn64-nav-hidden) .whatsappdestek-wrap:not([hidden]){
    bottom:calc(var(--cn64-nav-space) + max(28px,var(--whatsappdestek-y,25px)) + 18px)!important;
  }
  body.cn64-ready.cn64-nav-hidden .whatsappdestek-wrap:not([hidden]),
  body.cn64-ready.cn64-menu-keyboard .whatsappdestek-wrap:not([hidden]){
    bottom:max(25px,var(--whatsappdestek-y,25px))!important;
  }
  /* The product page's existing purchase strip is stacked above bottom navigation. */
  body.cn64-ready#product.cn-sticky-buy-visible .whatsappdestek-wrap:not([hidden]),
  body.cn64-ready#product.cn64-buy-active .whatsappdestek-wrap:not([hidden]){
    bottom:calc(var(--cn64-nav-space) + var(--cn-sticky-height,100px) + 26px)!important;
  }
  body.cn64-ready#product.cn64-nav-hidden.cn-sticky-buy-visible .whatsappdestek-wrap:not([hidden]),
  body.cn64-ready#product.cn64-nav-hidden.cn64-buy-active .whatsappdestek-wrap:not([hidden]){
    bottom:calc(var(--cn-sticky-height,100px) + 26px)!important;
  }
  body.cn64-ready.cn-menu-open .whatsappdestek-wrap{
    visibility:hidden!important;pointer-events:none!important;
  }
  /* Prevent confusing floating WhatsApp overlap with rightmost menu button. */
  body.cn64-ready .whatsappdestek-wrap{z-index:1450!important;}
}

/* HOTFIX66 — fixed WA gap, independent of WhatsApp plugin's own offset;
   no overlay/large unused gap above mobile nav or product CTA. */
@media(max-width:767px){
  #cn64-bottom-nav .cn66-icon{display:block!important;width:25px!important;height:27px!important;flex:0 0 auto!important;stroke:#315783!important;fill:none!important;overflow:visible!important}
  #cn64-bottom-nav .cn64-nav-cart .cn66-icon{stroke:#fff!important;width:26px!important;height:28px!important}
  #cn64-bottom-nav .cn64-cart-count[hidden]{display:none!important}
  #cn64-bottom-nav .cn64-nav-item>span:last-child{overflow:hidden;text-overflow:clip;max-width:100%;letter-spacing:-.22px;font-size:9px;white-space:normal!important;line-height:1.05!important;max-height:24px}
  body.cn64-ready:not(.cn64-nav-hidden):not(.cn64-menu-keyboard):not(.cn-menu-open) .whatsappdestek-wrap:not([hidden]){
    bottom:calc(var(--cn64-nav-space) + 11px)!important;
  }
  body.cn64-ready.cn64-nav-hidden:not(.cn-menu-open) .whatsappdestek-wrap:not([hidden]),
  body.cn64-ready.cn64-menu-keyboard:not(.cn-menu-open) .whatsappdestek-wrap:not([hidden]){
    bottom:16px!important;
  }
  body.cn64-ready#product.cn-sticky-buy-visible:not(.cn64-nav-hidden):not(.cn64-menu-keyboard) .whatsappdestek-wrap:not([hidden]),
  body.cn64-ready#product.cn64-buy-active:not(.cn64-nav-hidden):not(.cn64-menu-keyboard) .whatsappdestek-wrap:not([hidden]){
    bottom:calc(var(--cn64-nav-space) + var(--cn-sticky-height,100px) + 11px)!important;
  }
  body.cn64-ready#product.cn64-nav-hidden.cn-sticky-buy-visible .whatsappdestek-wrap:not([hidden]),
  body.cn64-ready#product.cn64-nav-hidden.cn64-buy-active .whatsappdestek-wrap:not([hidden]){
    bottom:calc(var(--cn-sticky-height,100px) + 11px)!important;
  }
  /* Place the button away from the bottom-menu button on the far right: it still
     stays just above the menu, and can be fully accessed with one thumb. */
  body.cn64-ready .whatsappdestek-wrap{z-index:1450!important}
}

/* HOTFIX67 — hamburger drawer quick action icons are actual SVG, not font glyphs. */
@media(max-width:767px){
  #cn64-menu-extras .cn64-menu-shortcuts>a>.cn67-drawer-icon{
    display:block!important;width:23px!important;height:23px!important;min-width:23px!important;
    stroke:#3767ad!important;fill:none!important;flex:0 0 auto!important;
  }
  #cn64-menu-bottom .cn64-menu-actions>a>.cn67-drawer-icon{
    display:block!important;width:21px!important;height:21px!important;min-width:21px!important;
    stroke:#3b6db7!important;fill:none!important;flex:0 0 auto!important;
  }
  #cn64-menu-bottom .cn64-menu-close>.cn67-drawer-icon{
    display:block!important;width:22px!important;height:22px!important;stroke:#fff!important;fill:none!important;flex:0 0 auto!important;
  }
}
