/* assets/css/header.css: from betoniera_files/site.css (split by selector). */
.b-sentinel{position:absolute;top:140px;left:0;width:1px;height:1px}
.b-header{position:sticky;top:0;z-index:60;height:110px;padding:14px var(--gutter) 0;pointer-events:none}
.b-header.is-open{z-index:86}
.b-bar{pointer-events:auto;position:relative;margin:0 auto;max-width:760px;border-radius:18px;background:rgba(244,240,233,.38);-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4),0 1px 2px rgba(28,25,22,.04);transition:max-width .8s var(--ease),background .5s,box-shadow .6s,border-radius .8s var(--ease)}
.b-header.is-solid .b-bar{background:rgba(244,240,233,.5);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4),0 14px 34px -20px rgba(28,25,22,.4)}
.b-header.is-open .b-bar{max-width:1280px;background:rgba(244,240,233,.82);border-radius:22px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),0 40px 90px -30px rgba(28,25,22,.5)}
.b-bar__row{height:96px;transition:height .6s var(--ease);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:0 10px}
.b-bar__left{justify-self:start}
.b-bar__right{justify-self:end;display:flex;align-items:center;gap:2px}
.b-burger{display:inline-flex;align-items:center;gap:12px;height:44px;padding:0 14px 0 11px;border-radius:12px;font-size:14px;font-weight:700;transition:background .3s}
.b-burger:hover{background:rgba(28,25,22,.07)}
.b-burger__icon{position:relative;width:22px;height:14px;display:block}
.b-burger__icon i{position:absolute;left:0;width:100%;height:1.6px;border-radius:2px;background:currentColor;transform-origin:center;transition:transform .6s var(--ease),opacity .3s,top .6s var(--ease)}
.b-burger__icon i:nth-child(1){top:0}
.b-burger__icon i:nth-child(2){top:6.2px;transform-origin:left}
.b-burger__icon i:nth-child(3){top:12.4px}
.b-burger:hover .b-burger__icon i:nth-child(2){transform:scaleX(.55)}
.is-open .b-burger__icon i:nth-child(1){top:6.2px;transform:rotate(45deg)}
.is-open .b-burger__icon i:nth-child(2){opacity:0;transform:scaleX(0)}
.is-open .b-burger__icon i:nth-child(3){top:6.2px;transform:rotate(-45deg)}
.b-burger__label{min-width:68px;text-align:left}
.b-logo{justify-self:center;display:block;line-height:0}
.b-logo span{font-family:var(--sans);font-size:10px;font-weight:700;letter-spacing:.3em;text-transform:uppercase}
.b-logo__img{display:block;height:84px;width:auto;transition:height .6s var(--ease)}
.b-header.is-solid .b-bar__row{height:72px}
.b-header.is-solid .b-logo__img{height:62px}
.b-header.is-open .b-bar__row{height:96px}
.b-header.is-open .b-logo__img{height:84px}
.b-logo__img--footer{height:104px}
.b-cartbtn{position:relative}
.b-bar__panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .8s var(--ease)}
.is-open .b-bar__panel{grid-template-rows:1fr}
.b-bar__inner{min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s linear .8s}
.is-open .b-bar__inner{visibility:visible;transition:none}
.b-panel{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1.25fr);gap:44px;margin:0 10px;padding:30px 18px 6px;border-top:1px solid rgba(28,25,22,.1)}
.b-panel > *,.b-panel__foot{opacity:0;transform:translateY(18px);transition:opacity .4s,transform .6s var(--ease)}
.is-open .b-panel > *,.is-open .b-panel__foot{opacity:1;transform:none;transition:opacity .6s var(--ease),transform .8s var(--ease)}
.is-open .b-panel > :nth-child(1){transition-delay:.2s}
.is-open .b-panel > :nth-child(2){transition-delay:.28s}
.is-open .b-panel > :nth-child(3){transition-delay:.36s}
.is-open .b-panel__foot{transition-delay:.44s}
.b-panel__nav{display:flex;flex-direction:column}
.b-panel__nav a{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:6px 0;font-family:var(--sans);font-weight:500;font-size:26px;line-height:1.2;letter-spacing:-.02em;transition:transform .5s var(--ease),color .3s}
.b-panel__nav a small{font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--ink-2)}
.b-panel__nav a:hover{transform:translateX(8px);color:var(--wine)}
.b-panel__h{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-2);margin:8px 0 14px}
.b-panel__cats ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.b-panel__cats a{display:flex;align-items:center;gap:14px;padding:6px;border-radius:14px;transition:background .3s}
.b-panel__cats a:hover{background:rgba(28,25,22,.06)}
.b-panel__cats img{width:60px;height:60px;border-radius:10px;object-fit:cover;flex:none;transition:transform .6s var(--ease)}
.b-panel__cats a:hover img{transform:scale(1.06) rotate(-2deg)}
.b-panel__t strong{display:block;font-weight:700;font-size:15px}
.b-panel__t span{display:block;font-size:13px;color:var(--ink-2)}
.b-panel__cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:start}
.b-pcard{position:relative;display:block;border-radius:14px;overflow:hidden;aspect-ratio:3/4;background:var(--stone)}
.b-pcard img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
.b-pcard:hover img{transform:scale(1.06)}
.b-pcard span{position:absolute;left:10px;right:10px;bottom:10px;padding:10px 12px;border-radius:10px;background:rgba(244,240,233,.93);font-size:14px;font-weight:700;line-height:1.3}
.b-pcard span small{display:block;font-size:12px;font-weight:500;color:var(--ink-2)}
.b-panel__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin:24px 10px 0;padding:16px 8px 18px;border-top:1px solid rgba(28,25,22,.1);font-size:14px}
.b-panel__search{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;min-width:280px;padding:0 18px;border-radius:999px;background:rgba(28,25,22,.05);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px rgba(28,25,22,.2);font-weight:600;color:var(--ink-2);transition:box-shadow .3s,color .3s}
.b-panel__search:hover{box-shadow:inset 0 0 0 1px var(--ink);color:var(--ink)}
.b-panel__meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px;color:var(--ink-2)}
@media (max-width:1180px){
  .b-panel{gap:28px}
  .b-panel__nav a{font-size:24px}
}
@media (max-width:960px){
  .b-header{height:84px;padding:10px 10px 0}
  .b-bar,.b-header.is-open .b-bar{max-width:none}
  .b-bar__row,.b-header.is-solid .b-bar__row,.b-header.is-open .b-bar__row{height:74px;padding:0 4px;gap:4px}
  .b-burger{padding:0 10px;gap:0}
  .b-burger__label{display:none}
  .b-logo__img,.b-header.is-solid .b-logo__img,.b-header.is-open .b-logo__img{height:62px}
  .b-logo__img--footer{height:84px}
  .is-open .b-bar__inner{overflow-y:auto;max-height:calc(100vh - 96px);overscroll-behavior:contain}
  .b-panel{grid-template-columns:1fr;gap:26px;margin:0 4px;padding:18px 10px 4px}
  .b-panel__nav a{font-size:22px;padding:7px 0}
  .b-panel__cats ul{grid-template-columns:1fr 1fr;gap:10px}
  .b-panel__cats a{flex-direction:column;align-items:stretch;gap:8px;padding:0}
  .b-panel__cats img{width:100%;height:auto;aspect-ratio:4/3}
  .b-panel__t span{display:none}
  .b-panel__cards{grid-template-columns:1fr 1fr;gap:10px}
  .b-pcard{aspect-ratio:4/5}
  .b-pcard span{font-size:13px;padding:8px 10px}
  .b-panel__foot{margin:18px 4px 0;padding:14px 10px 16px}
  .b-panel__search{min-width:0;width:100%}
}
.has-story .b-header{position:fixed;top:0;left:0;right:0;color:var(--ink);font-family:var(--sans)}
.has-story .b-header .b-bar{background:rgba(236,231,223,.8)}
.has-story .b-header.is-solid .b-bar{background:rgba(236,231,223,.86)}
.has-story .b-header.is-open .b-bar{background:rgba(244,240,233,.9)}
.single-product .b-header{position:sticky}
@media (min-width:641px) and (max-width:960px){
  .b-panel__cats ul{grid-template-columns:repeat(4,minmax(0,1fr))}
  .b-panel__cards{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px}
  .b-pcard{aspect-ratio:4/3}
}

/* ===== Theme additions: announcement top bar (template-parts/topbar.php) ===== */
.b-topbar{position:relative;z-index:61;height:40px;background:var(--night);color:var(--paper);overflow:hidden;transition:height .5s var(--ease),opacity .4s}
.b-topwrap{position:relative;z-index:61;transition:height .5s var(--ease)}
.b-topwrap.is-closed .b-topbar{height:0;opacity:0;visibility:hidden;transition:height .5s var(--ease),opacity .3s,visibility 0s linear .5s}
.b-topbar__viewport{height:100%;display:flex;align-items:center;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.b-topbar__track{display:flex;width:max-content;color:inherit;text-decoration:none;animation:b-topbar-run 42s linear infinite}
.b-topbar:hover .b-topbar__track,.b-topbar:focus-within .b-topbar__track{animation-play-state:paused}
.b-topbar__group{display:flex;flex-shrink:0}
.b-topbar__item{display:inline-flex;align-items:center;gap:12px;padding:0 30px;font-size:13px;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.b-topbar__text em{font-family:var(--serif);font-style:italic;font-weight:400;font-size:15px;letter-spacing:0;color:var(--gold-soft)}
.b-topbar__truck{flex:none;width:36px;height:20px;color:var(--gold-soft);transform:scaleX(-1);animation:b-topbar-bump .7s ease-in-out infinite}
.b-topbar .b-truck{--truck-bg:var(--night)}
.b-topbar .b-truck__drum{animation:b-truck-mix 1.8s ease-in-out infinite}
.b-topbar__spark{flex:none;color:var(--gold-soft);animation:b-topbar-twinkle 2.6s ease-in-out infinite}
.b-topbar__item:nth-child(even) .b-topbar__spark{animation-delay:1.3s}
a.b-topbar__track:hover .b-topbar__text{text-decoration:underline;text-underline-offset:3px}
.b-topbar__close{position:absolute;top:50%;right:10px;transform:translateY(-50%);width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--night);color:var(--paper);box-shadow:-14px 0 14px var(--night);transition:background .3s}
.b-topbar__close:hover{background:var(--night-2)}
.b-topbar__close:focus-visible{outline:2px solid var(--gold-soft);outline-offset:2px}
@keyframes b-topbar-run{to{transform:translateX(-50%)}}
@keyframes b-topbar-bump{0%,100%{transform:scaleX(-1) translateY(0)}50%{transform:scaleX(-1) translateY(-1px)}}
@keyframes b-topbar-twinkle{0%,100%{opacity:.35;transform:scale(.7) rotate(0)}50%{opacity:1;transform:scale(1.15) rotate(45deg)}}
@media (max-width:640px){
  .b-topbar{height:36px}
  .b-topbar__item{padding:0 22px;font-size:12px;gap:10px}
  .b-topbar__text em{font-size:14px}
  .b-topbar__truck{width:30px;height:17px}
  .b-topbar__track{animation-duration:34s}
}
/* Reduced motion: one static, centred message (no scrolling, no wobble). */
@media (prefers-reduced-motion:reduce){
  .b-topbar__viewport{justify-content:center;padding:0 44px;-webkit-mask-image:none;mask-image:none}
  .b-topbar__track,.b-topbar__truck,.b-topbar .b-truck__drum,.b-topbar__spark{animation:none}
  .b-topbar__group + .b-topbar__group,.b-topbar__item + .b-topbar__item{display:none}
  .b-topbar__item{white-space:normal;text-align:center}
}
/* Closed: a little tab hanging from the top edge, where the × was; it opens the ribbon again. */
.b-topbar__open{position:absolute;top:0;right:var(--gutter);z-index:2;display:flex;align-items:center;justify-content:center;width:58px;height:30px;padding:0 0 3px;border-radius:0 0 16px 16px;background:var(--night);color:var(--gold-soft);box-shadow:0 10px 22px -12px rgba(28,25,22,.55);cursor:pointer;transform:translateY(-110%);opacity:0;visibility:hidden;transition:transform .5s var(--ease),opacity .3s,visibility 0s linear .5s,height .3s var(--ease)}
.b-topbar__open .b-topbar__truck{width:32px;height:18px}
.b-topwrap.is-closed .b-topbar__open{transform:none;opacity:1;visibility:visible;transition:transform .55s var(--ease) .2s,opacity .3s .2s,visibility 0s,height .3s var(--ease)}
.b-topbar__open:hover,.b-topbar__open:focus-visible{height:36px}
.b-topbar__open:hover .b-topbar__truck{animation-duration:.35s}
.b-topbar__open:focus-visible{outline:2px solid var(--gold-soft);outline-offset:2px}
.b-topbar__open .b-truck{--truck-bg:var(--night)}
.b-topbar__open .b-truck__drum{animation:b-truck-mix 1.8s ease-in-out infinite}
/* ≤960px the header bar spans the width: the tab gets its own room above it. */
@media (max-width:960px){
  .b-topwrap.is-closed{height:30px}
  .b-topbar__open{right:calc(var(--gutter) + 6px);width:52px;height:28px}
  .b-topbar__open:hover,.b-topbar__open:focus-visible{height:30px}
}
@media (prefers-reduced-motion:reduce){
  .b-topbar__open,.b-topwrap.is-closed .b-topbar__open{transition:none}
  .b-topbar__open .b-topbar__truck,.b-topbar__open .b-truck__drum{animation:none}
}

/* ===== Theme additions: panel categories in 2 columns (desktop), 02/12/2026 ===== */
/* The categories column takes room from the (short) nav words so two columns breathe. */
@media (min-width:961px){
  .b-panel{grid-template-columns:minmax(0,.85fr) minmax(0,1.55fr) minmax(0,1fr)}
  .b-panel__cats ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}
  .b-panel__cats a{gap:12px}
  .b-panel__cats img{width:54px;height:54px}
  .b-panel__t{min-width:0}
  .b-panel__t span{font-size:12.5px;line-height:1.35;margin-top:2px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
}
@media (min-width:961px) and (max-width:1180px){
  .b-panel{grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr) minmax(0,1.15fr)}
  .b-panel__cats ul{gap:4px 6px}
  .b-panel__cats a{gap:10px}
  .b-panel__t strong{line-height:1.25}
  .b-panel__cats img{width:46px;height:46px}
  .b-panel__t strong{font-size:14px}
  .b-panel__t span{display:none}
}

/* ===== Theme additions: focused checkout header (only the logo), 03/12/2026 ===== */
.b-header--focus .b-bar,.b-header--focus.is-solid .b-bar{max-width:300px}
.b-header--focus .b-bar__row{justify-content:center;grid-template-columns:1fr}
.b-header--focus .b-logo{margin:0 auto}
@media (max-width:960px){
  .b-header--focus .b-bar,.b-header--focus.is-solid .b-bar{max-width:240px;margin:0 auto}
}
