/* Navegação de Produtos: lista simples ou painel editorial configurável no ACF. */
.products-mega-menu[hidden] { display: none !important; }
.desktop-product-menu { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.desktop-product-menu__toggle { display: grid; width: 22px; height: 26px; place-items: center; padding: 0; color: inherit; border: 0; background: transparent; cursor: pointer; }
.desktop-product-menu__toggle > span:last-child { display: block; font-size: 1rem; line-height: 1; transition: transform .2s ease; }
.desktop-product-menu.is-open .desktop-product-menu__toggle > span:last-child { transform: rotate(180deg); }
.products-mega-menu { position: fixed; z-index: 120; top: 84px; left: 50%; display: grid; width: min(1120px,calc(100vw - 48px)); grid-template-columns: 260px minmax(0,1fr); overflow: hidden; color: #f7f5ef; background: #08241b; box-shadow: 0 26px 65px rgba(2,18,13,.32); transform: translateX(-50%); }
.site-header.is-scrolled .products-mega-menu { top: 70px; }
.products-mega-menu__intro { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 30px; background: linear-gradient(150deg,#0c3d2c,#09241c); }
.products-mega-menu__intro p { margin: 0 0 12px; color: var(--mint); font-size: .61rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.products-mega-menu__intro strong { max-width: 190px; font-family: var(--display); font-size: 1.75rem; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.products-mega-menu__intro a { display: inline-flex; gap: 8px; margin-top: auto; padding-bottom: 5px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.44); font-size: .69rem; font-weight: 700; text-decoration: none; }
.products-mega-menu__intro a:hover { color: var(--mint); }
.products-mega-menu__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.12); }
.mega-product-line { position: relative; display: flex; min-height: 132px; align-items: flex-end; overflow: hidden; padding: 17px; color: #fff; opacity: 1; background: linear-gradient(140deg,#1c3930,#31594a); text-decoration: none; isolation: isolate; }
.mega-product-line::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(150deg,rgba(5,21,16,.8) 0%,rgba(5,21,16,.2) 68%,rgba(5,21,16,.05) 100%); transition: opacity .22s ease; }
.mega-product-line:hover::after,.mega-product-line:focus-visible::after { opacity: .58; }
.mega-product-line:hover img,.mega-product-line:focus-visible img { transform: translate3d(-1px,-4px,0) scale(1.035); }
.mega-product-line--cocoa { background: linear-gradient(140deg,#28150f,#784126); }
.mega-product-line--dairy { background: linear-gradient(140deg,#10354a,#477c8d); }
.mega-product-line--protein { background: linear-gradient(140deg,#12372c,#45715f); }
.mega-product-line--savory { background: linear-gradient(140deg,#46371d,#9d7435); }
.mega-product-line--caramel { background: linear-gradient(140deg,#48230f,#9f5a26); }
.mega-product-line--neutral { background: linear-gradient(140deg,#20342d,#536d60); }
.mega-product-line__index { position: absolute; top: 14px; left: 17px; color: rgba(255,255,255,.56); font-size: .56rem; font-weight: 800; letter-spacing: .09em; }
.mega-product-line img { position: absolute; z-index: -1; right: -12px; bottom: -15px; width: 56%; height: 112%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 13px 15px rgba(0,0,0,.25)); transition: transform .28s ease; }
.mega-product-line > span:last-of-type { max-width: 120px; font-family: var(--display); font-size: 1.02rem; font-weight: 600; letter-spacing: -.025em; line-height: .98; }
.mega-product-line b { position: absolute; right: 15px; bottom: 15px; font-size: .84rem; }
.desktop-product-menu__toggle:focus-visible,.mega-product-line:focus-visible,.products-mega-menu__intro a:focus-visible { outline: 2px solid var(--mint); outline-offset: -4px; }

.mobile-products-menu { border-bottom: 1px solid var(--line); }
.mobile-products-menu summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; font-weight: 600; cursor: pointer; list-style: none; }
.mobile-products-menu summary::-webkit-details-marker { display: none; }
.mobile-products-menu summary span { font-size: 1.05rem; transition: transform .2s ease; }
.mobile-products-menu[open] summary span { transform: rotate(45deg); }
.mobile-products-menu > div { padding: 1px 0 16px; }
.mobile-nav .mobile-products-menu__all { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; color: var(--green); border: 0; font-size: .77rem; }
.mobile-products-menu__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.mobile-nav .mobile-products-menu__grid a { min-height: 48px; padding: 10px 0; font-size: .72rem; line-height: 1.2; }

@media (max-width:1150px) and (min-width:901px) {
  .products-mega-menu { width: min(960px,calc(100vw - 36px)); grid-template-columns: 220px minmax(0,1fr); }
  .products-mega-menu__intro { padding: 29px 24px; }
  .products-mega-menu__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mega-product-line { min-height: 112px; }
}

@media (max-width:900px) {
  .desktop-product-menu,.products-mega-menu { display: none; }
}

/* O painel usa as embalagens como amostras do catálogo, sem recortes decorativos. */
.site-header .desktop-nav { align-items: center; }
.site-header .desktop-product-menu { position: static; align-items: center; gap: 2px; line-height: 1; }
.site-header .desktop-product-menu > a { display: inline-flex; min-height: 32px; align-items: center; line-height: 1; }
.site-header .desktop-product-menu__toggle { width: 28px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; }
.site-header .desktop-product-menu__toggle svg { width: 12px; height: 12px; transition: transform .18s ease; }
.site-header .desktop-product-menu.is-open .desktop-product-menu__toggle svg { transform: rotate(180deg); }
.site-header .products-mega-menu { position: absolute; top: 100%; width: min(1120px,calc(100vw - 64px)); grid-template-columns: 210px minmax(0,1fr); padding: 24px; gap: 28px; border: 1px solid rgba(164,221,206,.2); border-radius: 0 0 14px 14px; background: #0a2921; max-height: calc(100dvh - 120px); overflow-y: auto; }
.site-header .products-mega-menu__intro { padding: 14px 0; background: none; }
.site-header .products-mega-menu__intro strong { font-size: 1.55rem; line-height: 1.12; }
.site-header .products-mega-menu__intro a { opacity: 1; margin-top: 26px; }
.site-header .products-mega-menu__grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; background: none; }
.site-header .mega-product-line { min-height: 156px; padding: 12px; border-radius: 8px; background: #14362d; opacity: 1; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 9px; transition: background-color .18s ease; }
.site-header .mega-product-line:hover,.site-header .mega-product-line:focus-visible { background: #20483c; }
.site-header .mega-product-line::after,.site-header .mega-product-line__index,.site-header .mega-product-line b { display: none; }
.site-header .mega-product-line img { position: static; z-index: auto; width: 100%; height: 94px; object-fit: contain; object-position: center; filter: drop-shadow(0 6px 5px rgba(0,0,0,.22)); }
.site-header .mega-product-line > span:last-of-type { max-width: none; min-height: 30px; font-family: inherit; font-size: .76rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
@media (min-width:901px) and (max-width:1100px) {
  .site-header .products-mega-menu { grid-template-columns: 170px minmax(0,1fr); gap: 20px; padding: 20px; }
}
@media (max-width:900px) {
  .site-header .desktop-product-menu,.site-header .products-mega-menu { display: none; }
  .site-header .mobile-nav { max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (prefers-reduced-motion:reduce) {
  .site-header .mega-product-line,.site-header .mega-product-line img,.site-header .desktop-product-menu__toggle svg { transition: none; }
}
body.admin-bar .site-header { top: var(--vilac-admin-offset, 32px); }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: var(--vilac-admin-offset, 46px); }
}
