/* =========================================================================
   Header Comfy 2026  (escopado ao page layout comfy_2026)
   Carregado so' nas paginas que usam o layout -> nao afeta V1/A-B.
   ========================================================================= */
:root{
  --cmfy-h-bg:#f5f3ed;
  --cmfy-h-fg:#1f2d2b;
  --cmfy-h-muted:#5b6664;
  --cmfy-h-offer-bg:#14302e;
  --cmfy-h-offer-fg:#f3efe6;
  --cmfy-h-accent:#c8754f;
  --cmfy-h-border:rgba(31,45,43,.10);
  --cmfy-h-height:74px;
}

/* ----- Faixa de oferta (slider de texto no topo) ----- */
.cmfy-offerbar{overflow:hidden;max-height:42px;transition:max-height .35s ease}
/* Rolou: faixa desliza pra CIMA e colapsa o espaco. No topo: reaparece de cima->baixo */
.cmfy-h-scrolled .cmfy-offerbar{max-height:0}
.cmfy-h-scrolled .cmfy-topbar{opacity:0;}
.cmfy-topbar{position:relative;background:#163a43;color:#fff;border-bottom:1px solid rgba(255,255,255,.10);transition:all .35s ease;will-change:transform;opacity: 1;}
.cmfy-topbar__inner{position:relative;margin:0 auto;max-width:800px;padding:0 44px}
.cmfy-topbar__swiper{overflow:hidden}
.cmfy-topbar .swiper-slide{height:auto}
.cmfy-topbar .swiper-slide p{
  display:flex;align-items:center;justify-content:center;
  height:34px;margin:0;padding:0 16px;text-align:center;
  font-size:11.5px;font-weight:700;text-transform:uppercase;
  letter-spacing:.14em;line-height:1.4;color:rgba(255,255,255,.86);
}
.cmfy-topbar .swiper-slide {
    font-family: var(--font-sans);
}
/* prefixo do layout p/ vencer o swiper-button-lock (display:none) sem !important */
.page-layout-comfy_2026 .cmfy-topbar__nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:10;
  display:inline-flex;align-items:center;justify-content:center;
  width:fit-content;height:28px;border:0;background:none;cursor:pointer;
  color:#c9785b;border-radius:50%;transition:color .15s ease;padding:0 10px;outline: 0;
}
.page-layout-comfy_2026 .cmfy-topbar__nav.swiper-button-lock{display:inline-flex}
.page-layout-comfy_2026 .cmfy-topbar__nav:hover{color:rgba(201,120,91,.78)}
.cmfy-topbar__nav svg{width:16px;height:16px}
.cmfy-topbar__prev{left:4px}
.cmfy-topbar__next{right:4px}
@media (max-width:1023px){.cmfy-topbar__prev{left:2px}.cmfy-topbar__next{right:2px}}

/* Esconde restos do header nativo da Luma (wrapper vazio + nav-toggle).
   Prefixo do layout vence o display:grid do tema (l.2337) sem !important. */
.page-layout-comfy_2026 .page-header .header.content{display:none}
.page-layout-comfy_2026 .cmfy-h__logo .nav-toggle{display:none}

/* O conjunto faixa+header gruda no topo; a faixa colapsa dentro dele no scroll */
.page-layout-comfy_2026 .page-header{position:sticky;top:0;z-index:120;background:transparent;height: fit-content;}
.cmfy-h-scrolled .page-header{box-shadow:0 6px 22px rgba(20,48,46,.08)}

/* ----- Header ----- */
.cmfy-h{
  position:relative;
  background:transparent;
  border-bottom:1px solid var(--cmfy-h-border);
  font-family:inherit;
}
/* Fundo frosted numa pseudo-camada: evita que o backdrop-filter crie um
   containing-block que prenderia o minicart (position:fixed) dentro do header. */
.cmfy-h::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:rgba(245,243,237,.82);   /* --cmfy-h-bg com opacidade */
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
.cmfy-h__inner{
  max-width:1280px;margin:0 auto;
  height:var(--cmfy-h-height);
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:0 24px;
}

/* Logo */
.cmfy-h__logo{flex:0 0 auto;width:fit-content;display:flex;align-items:center}
/* height definido (nao max-height): SVG com viewBox sem width/height intrinseco
   precisa de uma dimensao definida p/ o browser calcular a outra pelo ratio. */
.cmfy-h__logo img{height:30px;width:auto;max-width:none;display:block}
.cmfy-h__logo .logo{
  display: flex;
  align-items: center;
  margin: 0;
  max-width: unset;
  width: fit-content;
}
/* ----- Navegacao desktop ----- */
.cmfy-h__nav{flex:0 0 auto;width:fit-content;display:flex;align-items:center}
.cmfy-h__menu{
  display:flex;align-items:center;gap:30px;
  list-style:none;margin:0;padding:0;
}
.cmfy-h__menu>li{position:relative}
.cmfy-h__menu>li>a{
  display:inline-flex;align-items:center;gap:6px;
  height:var(--cmfy-h-height);          /* altura via flex (sem line-height alto) */
  color:rgba(46,52,56,.86);             /* foreground/86 */
  font-size:15px;font-weight:500;letter-spacing:.01em;line-height:1;
  text-decoration:none;white-space:nowrap;transition:color .15s ease;
}
.cmfy-h__menu>li>a:hover{color:#163a43} /* primary */
/* seta (chevron) para categorias com filhos — centralizada pelo flex */
.cmfy-h__menu>li.parent>a:after{
  content:"";display:inline-block;width:7px;height:7px;
  position:relative;top:-2px;            /* alinhamento optico do caret com o texto */
  border-right:1.5px solid var(--cmfy-h-accent);border-bottom:1.5px solid var(--cmfy-h-accent);
  transform:rotate(45deg);opacity:.55;
  transition:transform .2s ease, top .2s ease, opacity .2s ease;
}
.cmfy-h__menu>li.parent:hover>a:after{transform:rotate(-135deg);top:1px;opacity:.9}
.cmfy-h__menu>li>a:after {display: none;}
/* Dropdown (1 nivel) */
.cmfy-h__menu .submenu{
  position:absolute;top:100%;left:0;
  min-width:220px;
  background:#fff;border:1px solid var(--cmfy-h-border);
  border-radius:12px;box-shadow:0 14px 40px rgba(20,48,46,.14);
  list-style:none;margin:0;padding:8px;
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
  z-index:50;
}
.cmfy-h__menu .submenu li:last-child {
    margin:0;
}
.cmfy-h__menu>li:hover>.submenu{opacity:1;visibility:visible;transform:translateY(0)}
.cmfy-h__menu .submenu a{
  display:block;padding:9px 12px;border-radius:8px;
  color:var(--cmfy-h-fg);font-size:14px;text-decoration:none;
}
.cmfy-h__menu .submenu a:hover{background:rgba(200,117,79,.10);color:var(--cmfy-h-accent)}
/* trava em 1 nivel: esconde subniveis mais profundos (classes proprias) */
.cmfy-h__menu .submenu .submenu{display:none}

/* ----- Atalhos a direita ----- */
.cmfy-h__actions{flex:0 0 auto;width:fit-content;display:flex;align-items:center;gap:18px}
.cmfy-h__ico{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none !important;
  border: 0 !important;
  cursor: pointer;
  padding: 0;
  color: var(--cmfy-h-fg);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .02em;
  transition: color .15s ease;
  outline: 0 !important;
  box-shadow: none !important;
}
.cmfy-h__ico:hover,
.cmfy-h .showcart:hover{
  color: var(--cmfy-h-accent);
  background: transparent;
  border: 0;
}
.cmfy-h__ico svg{width:23px;height:23px}
/* design usa icones SEM rotulo de texto */
.cmfy-h__ico-label{display:none}

/* O tema pinta a:visited de azul (#1979c3). Mantem a cor original dos links do
   header (V2). Prefixo do layout vence o a:visited do tema sem !important. */
.page-layout-comfy_2026 .cmfy-h__ico:visited{color:var(--cmfy-h-fg)}
.page-layout-comfy_2026 .cmfy-h__menu>li>a:visited{color:rgba(46,52,56,.86)}
.page-layout-comfy_2026 .cmfy-h__menu .submenu a:visited{color:var(--cmfy-h-fg)}

/* Minicart (Premier QuickCart): icone limpo com badge.
   Prefixo .page-layout-comfy_2026 (classe do body na V2) eleva a especificidade
   acima das regras do tema -> dispensa !important e fica isolado na V2. */
.cmfy-h__cart{position:relative}
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper{margin:0;position:relative;width:auto;background:transparent;padding:0}
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart,
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart:hover,
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart:focus{
  position:relative;background:none;border:0;box-shadow:none;
  padding:0;margin:0;min-width:0;width:auto;height:auto;line-height:1;border-radius:0;
  display:flex;align-items:center;justify-content:center;color:var(--cmfy-h-fg);
}
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart:hover{color:var(--cmfy-h-accent)}
/* esconde o texto amarelo "Meu Carrinho" do tema */
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart .text{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;background:none;
}
/* icone do carrinho = SVG inline injetado no .showcart pelo JS (comfy-header-2026.js).
   Esconde o :before do tema e dimensiona o SVG. */
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart:before{display:none}
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart svg{display:block;width:24px;height:24px}
/* badge de quantidade */
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart .counter.qty{
  position:absolute;top:-7px;right:-9px;bottom:auto;left:auto;margin:0;
  min-width:18px;width:auto;height:18px;background:var(--cmfy-h-accent);color:#fff;
  border-radius:9px;font-size:11px;font-weight:700;line-height:18px;padding:0 5px;text-align:center;display:block;clip:auto;
}
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart .counter.qty .counter-number {
    left: unset;
    bottom: unset;
    right: 50%;
    top: 50%;
    background: transparent;
    padding: 0;
    line-height: 0;
}
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart .counter.qty.empty{display:none}
.page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart .counter.qty .counter-label{display:none}
/* Painel do minicart cobre a viewport inteira. O dropdownDialog seta um 'top'
   INLINE baseado no gatilho (que a faixa empurra pra baixo); so' !important vence
   estilo inline. Sem isso o rodape/botao corta na V2. */
.page-layout-comfy_2026 .cmfy-h__cart .block-quickcart{top:0 !important;height:100dvh}
#minicart-content-wrapper .viewcart {
    display:flex;
    justify-content:center;
    align-items:center
}
/* ----- Busca: form nativo (amsearch) direto no header; dropdown abaixo do header ----- */
.page-layout-comfy_2026 .cmfy-h .block-search{position:static;width:auto;margin:0;padding:0;float:none}
.page-layout-comfy_2026 .cmfy-h .block-search .block-title{display:none}      /* sem o "Pesquisar" colapsavel */
/* dropdown: escondido por padrao, abre no .active (toggle pela lupa) */
.page-layout-comfy_2026 .cmfy-h .block-search .block-content{
  display: none;position: absolute;left: 50%;top: 100%;z-index: 60;background: var(--cmfy-h-bg);border-top: 1px solid var(--cmfy-h-border);box-shadow: 0 14px 32px rgba(20, 48, 46, .12);padding: 15px 15px;margin: 0;width: 1200px;max-width: 80vw;border-radius: 10px;height: auto;
}
.page-layout-comfy_2026 .cmfy-h .block-search .block-content.active{display:block}
.page-layout-comfy_2026 .cmfy-h .block-search #search_mini_form {position: relative;margin: 0 auto;padding: 0;}
.page-layout-comfy_2026 .cmfy-h .block-search .field.search{margin:0;padding:0}
.page-layout-comfy_2026 .cmfy-h .block-search .label,
.page-layout-comfy_2026 #search_mini_form>.actions {display: none;}
.page-layout-comfy_2026 .cmfy-h .block-search .control{border:0;margin:0;padding:0}
.page-layout-comfy_2026 .cmfy-h .block-search #search{
  width:100%;height:48px;padding:0;box-sizing:border-box;border:0;border-radius:12px;background:#fff;font-size:15px;color:var(--cmfy-h-fg);outline:0;box-shadow: unset;
}
.page-layout-comfy_2026 .search-autocomplete.-bottom-position {width: 100% !important;}
.page-layout-comfy_2026 .amsearch-form-container.-opened .amsearch-wrapper-input {max-width: unset;width: 100% !important;position: relative;}
.page-layout-comfy_2026 .cmfy-h .block-search #search:focus{border-color:var(--cmfy-h-accent)}
.page-layout-comfy_2026 .cmfy-h .block-search .actions{position:absolute;right:0;top:0;margin:0}
.page-layout-comfy_2026 .cmfy-h .block-search .action.search{position:absolute;right:0;top:0;height:48px;width:48px;background:none;border:0;cursor:pointer;color:var(--cmfy-h-muted);opacity:1;}
.page-layout-comfy_2026 .cmfy-h .block-search .action.search:before{font-size:20px;line-height:48px}
.page-layout-comfy_2026 .cmfy-h .block-search .action.search span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.amsearch-wrapper-content {max-height: 65vh;}
#search_autocomplete {border-radius: 10px;}
.amsearch-form-container.-large .amsearch-wrapper-content .product-item-actions {display: none;}
.amsearch-autocomplete-image {display: flex;}
/* ----- Popup Atendimento ----- */
div.atendimento-container {transition: ease .5s;border-radius: 10px;}
.atendimento-content {border-radius: 10px;}
/* ========================== MOBILE ========================== */
.cmfy-h__burger{display:none;background:none;border:0;cursor:pointer;color:var(--cmfy-h-fg);padding:4px}
.cmfy-h__burger svg{width:26px;height:26px}
.cmfy-h__overlay{position:fixed;inset:0;background:rgba(15,28,26,.45);z-index:200;opacity:0;transition:opacity .25s ease}
.cmfy-h__overlay.is-open{opacity:1}
.cmfy-h__drawer{
  position:fixed;top:0;left:0;height:100dvh;width:86%;max-width:360px;
  background:var(--cmfy-h-bg);z-index:210;
  transform:translateX(-100%);transition:transform .28s ease;
  display:flex;flex-direction:column;overflow-y:auto;
}
.cmfy-h__drawer.is-open{transform:translateX(0)}
.cmfy-h__drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--cmfy-h-border)}
.cmfy-h__drawer-title{font-weight:600;font-size:17px;color:var(--cmfy-h-fg)}
.cmfy-h__drawer-close{background:none;border:0;cursor:pointer;color:var(--cmfy-h-fg)}
.cmfy-h__drawer-close svg{width:24px;height:24px}
.cmfy-h__drawer-search{padding:16px 20px;border-bottom:1px solid var(--cmfy-h-border)}
.cmfy-h__drawer-form{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--cmfy-h-border);border-radius:10px;padding:6px 10px}
.cmfy-h__drawer-form input{flex:1 1 auto;border:0;outline:0;background:none;font-size:15px;color:var(--cmfy-h-fg)}
.cmfy-h__drawer-form button{background:none;border:0;cursor:pointer;color:var(--cmfy-h-muted);display:flex}
.cmfy-h__drawer-form button svg{width:20px;height:20px}
.cmfy-h__drawer-menu{list-style:none;margin:0;padding:0}
.cmfy-h__drawer-menu>li{border-bottom:1px solid var(--cmfy-h-border);margin: 0;}
.cmfy-h__drawer-menu>li>a{display:block;padding:15px 20px;color:var(--cmfy-h-fg);text-decoration:none;font-size:16px}
.cmfy-h__drawer-menu .submenu{list-style:none;margin:0;padding:0;max-height:0;overflow:hidden;transition:max-height .3s ease;background:rgba(31,45,43,.03)}
.cmfy-h__drawer-menu>li.is-open>.submenu{max-height:600px}
.cmfy-h__drawer-menu .submenu a{display:block;padding:11px 32px;color:var(--cmfy-h-muted);text-decoration:none;font-size:15px;border-bottom: 1px solid #dfdfd9;}
.cmfy-h__drawer-menu .submenu li {margin: 0;}
.cmfy-h__drawer-menu .submenu li:last-child a {border: 0;}
.cmfy-h__drawer-menu .submenu .submenu{display:none}
/* botao de expandir submenu no mobile */
.cmfy-h__drawer-menu>li.parent>a:after{
  content:"";float:right;width:8px;height:8px;margin-top:6px;
  border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;
  transform:rotate(45deg);transition:transform .25s ease;opacity:.55;
}
.cmfy-h__drawer-menu>li.parent.is-open>a:after{transform:rotate(225deg)}
.cmfy-h__drawer-extra{margin-top:auto;padding:16px 20px;border-top:1px solid var(--cmfy-h-border);display:flex;flex-direction:column;gap:4px}
.cmfy-h__drawer-extra a,.cmfy-h__drawer-extra button{
  text-align:left;background:none;border:0;cursor:pointer;
  padding:10px 0;color:var(--cmfy-h-fg);text-decoration:none;font-size:16px
}

@media (max-width:1023px){
  :root{--cmfy-h-height:60px}
  .cmfy-h__burger{display:block}
  .cmfy-h__nav{display:none}
  .cmfy-h__actions .cmfy-h__ico--desk{display:none}
  .cmfy-h__logo{flex:1 1 auto;justify-content:center}
  .cmfy-h__inner{gap:8px;padding:0 14px}
  .cmfy-h__searchbar{display:none}
  header .cmfy-h__logo .logo img {position: unset;margin: 0 auto;max-width: 150px;width: 30vw;height: unset;}
  .cmfy-topbar .swiper-slide p {font-size: calc(1vw + 5px);height: calc(2vw + 15px);}
  .page-layout-comfy_2026 .cmfy-topbar__nav {padding: 0;height: auto;top: 40%;}
  .cmfy-topbar__inner {padding: 0 20px;}
  .page-layout-comfy_2026 .cmfy-h__cart .minicart-wrapper .action.showcart .counter.qty .counter-number {top: 0;right: 0;}
}
@media (min-width:1024px){
  .page-layout-comfy_2026 .cmfy-h__drawer,.page-layout-comfy_2026 .cmfy-h__overlay{display:none}
}
