/* Pinocchio Storefront — header: one-line top bar and the mobile menu drawer. */

/* ---------- Top bar: always one line, 44px, nothing overlaps ---------- */
.pt-topbar { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid #efe8e2; color: #242424; font-size: 13px; line-height: 1.2; }
.pt-topbar ul { list-style: none; margin: 0; padding: 0; }
.pt-topbar__inner { display: flex; align-items: center; gap: 20px; box-sizing: border-box; max-width: 1410px; height: 44px; margin: 0 auto; padding: 0 16px; }
.pt-topbar a { color: inherit; text-decoration: none; }
.pt-topbar .pt-icon { flex: none; width: 18px; height: 18px; color: #990000; }

/* brand logos: only from 1200px, where they fit beside the messages */
.pt-topbar__brands { display: none; flex: none; align-items: center; gap: 16px; }
.pt-topbar__brands a { display: flex; align-items: center; height: 44px; transition: transform .15s ease; }
.pt-topbar__brands a:hover { transform: translateY(-1px); }
.pt-topbar__brands img { display: block; width: auto !important; height: 20px !important; max-width: 90px; object-fit: contain; }

/* value proposition: every message that fits on the first line, the rest wrap out of view */
.pt-topbar__usp { position: relative; display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 26px; min-width: 0; height: 44px; overflow: hidden; }
.pt-topbar__msg { display: flex; align-items: center; height: 44px; white-space: nowrap; }
.pt-topbar__msg + .pt-topbar__msg::before { content: ""; width: 4px; height: 4px; margin-right: 26px; border-radius: 50%; background: #d8cfc8; }
.pt-topbar__msg a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.pt-topbar__msg a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pt-topbar a:focus-visible { outline: 2px solid #990000; outline-offset: -2px; border-radius: 4px; }

.pt-topbar__tools { display: flex; flex: none; align-items: center; gap: 14px; height: 44px; }
.pt-topbar__tools .xnx-translate { display: flex; align-items: center; min-height: 44px; }
.pt-topbar__account { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.pt-topbar__account .pt-icon { color: #242424; }

@media (min-width: 1200px) {
  .pt-topbar__brands { display: flex; }
  .pt-topbar__usp { justify-content: center; }
}
/* small screens: one message at a time (rotated by header.js), language switcher on the right */
@media (max-width: 767px) {
  .pt-topbar__inner { gap: 10px; padding: 0 12px; }
  .pt-topbar__account { display: none; }
  .pt-topbar__usp { display: block; }
  .pt-topbar__msg { position: absolute; inset: 0 auto 0 0; max-width: 100%; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
  .pt-topbar__msg + .pt-topbar__msg::before { content: none; }
  .pt-topbar__msg.is-current { opacity: 1; pointer-events: auto; transform: none; }
  .pt-topbar__msg a { min-width: 0; max-width: 100%; }
  .pt-topbar__msg span { overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Mobile header: real tap target for the hamburger ---------- */
body.pt-storefront-enabled .mean-bar .sidebarBtn { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-end; box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 10px 4px; border-radius: 8px; }
body.pt-storefront-enabled .mean-bar .sidebarBtn .bar { background: #fff !important; }
body.pt-storefront-enabled .mean-bar .sidebarBtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.pt-storefront-enabled.pt-nav-ready .rt-slide-nav { display: none; }

/* ---------- Drawer ---------- */
.pt-nav[hidden] { display: none !important; }
/* above the cookie banner (z 9999999), which would otherwise sit on top of the open drawer while inert */
.pt-nav { position: fixed; inset: 0; z-index: 2147483000; color: #242424; font-size: 16px; line-height: 1.4; }
.pt-nav__overlay { position: absolute; inset: 0; background: rgb(28 12 8 / 55%); opacity: 0; transition: opacity .25s ease; }
.pt-nav__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; box-sizing: border-box; width: min(420px, 90vw); height: 100%; height: 100dvh; background: #fbf7f2; box-shadow: -12px 0 40px rgb(0 0 0 / 22%); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); outline: none; }
.pt-nav.is-open .pt-nav__overlay { opacity: 1; }
.pt-nav.is-open .pt-nav__panel { transform: none; }
.pt-nav ul { list-style: none; margin: 0; padding: 0; }
.pt-nav a { color: inherit; text-decoration: none; }
.pt-nav :is(a, button, input):focus-visible { outline: 2px solid #990000; outline-offset: 2px; }
.pt-nav .pt-icon { flex: none; width: 20px; height: 20px; color: #990000; }
.pt-nav__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* head: the shop's red awning */
.pt-nav__head { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 18px; background: #990000; color: #fff; }
.pt-nav__head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: radial-gradient(circle at 12px 0, #990000 11.5px, transparent 12px) 0 0 / 24px 12px repeat-x; }
.pt-nav__home { display: flex; align-items: flex-end; gap: 8px; min-height: 44px; margin-right: auto; color: #fff !important; }
.pt-nav__logo img { display: block; width: auto !important; height: 42px !important; }
.pt-nav__since { padding-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.pt-nav__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); margin: 0; }
.pt-nav__close { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #242424; cursor: pointer; box-shadow: 0 2px 0 rgb(0 0 0 / 15%); }
.pt-nav__close .pt-icon { width: 22px; height: 22px; color: #242424; stroke-width: 2.2; }
.pt-nav__close:hover { background: #fff1ec; }
.pt-nav__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.pt-nav__body { display: flex; flex-direction: column; gap: 22px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); }
.pt-nav__body > * { flex: none; }

/* search first */
.pt-nav__search { position: relative; display: flex; align-items: center; margin: 0; }
.pt-nav__search input[type="search"] { box-sizing: border-box; width: 100%; height: 52px; margin: 0; padding: 0 60px 0 18px; border: 2px solid #e4dbd3; border-radius: 999px; background: #fff; color: #242424; font-size: 16px; -webkit-appearance: none; appearance: none; }
.pt-nav__search input[type="search"]:focus { border-color: #990000; outline: none; }
.pt-nav__search button { position: absolute; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #990000; cursor: pointer; }
.pt-nav__search button .pt-icon { color: #fff; }

/* account / wishlist / cart */
.pt-nav__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-nav__quick a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; border: 1px solid #ece3db; border-radius: 14px; background: #fff; font-size: 14px; font-weight: 600; }
.pt-nav__quick a:hover { border-color: #990000; }
.pt-nav__count { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #990000; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* main navigation (copied from the theme menu by header.js) */
.pt-nav__menu { border-radius: 16px; background: #fff; border: 1px solid #ece3db; overflow: hidden; }
.pt-nav__menu > ul > li + li { border-top: 1px solid #f1ebe5; }
.pt-nav__menu > ul > li > a, .pt-nav__toggle--row { display: flex; align-items: center; box-sizing: border-box; width: 100%; min-height: 56px; margin: 0; padding: 0 18px; border: 0; background: none; color: #242424; font: inherit; font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; }
.pt-nav__menu > ul > li > a::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-top: 2px solid #b9aca2; border-right: 2px solid #b9aca2; transform: rotate(45deg); }
.pt-nav__toggle--row::after { content: ""; width: 8px; height: 8px; margin: -4px 2px 0 auto; border-right: 2px solid #990000; border-bottom: 2px solid #990000; transform: rotate(45deg); transition: transform .2s ease; }
.pt-nav__toggle--row[aria-expanded="true"] { color: #990000; }
.pt-nav__toggle--row[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
.pt-nav__split { display: flex; flex-wrap: wrap; }
.pt-nav__split > a { flex: 1 1 auto; }
.pt-nav__split > a::after { display: none; }
.pt-nav__split > .pt-nav__toggle { width: 56px; min-height: 56px; border: 0; background: none; }
.pt-nav__split > .pt-nav__sub { flex-basis: 100%; }
.pt-nav__sub { position: static !important; display: block; width: auto !important; margin: 0 !important; padding: 0 0 10px !important; border: 0 !important; background: none !important; box-shadow: none !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }
.pt-nav__sub[hidden] { display: none !important; }
.pt-nav__sub a { display: flex; align-items: center; min-height: 44px; padding: 0 18px 0 30px; color: #3d3935; font-size: 15px; font-weight: 500; }
.pt-nav__sub a:hover, .pt-nav__menu a[aria-current="page"] { color: #990000; }
.pt-nav__group + .pt-nav__group { margin-top: 6px; }
.pt-nav__label { display: block; padding: 10px 18px 2px 30px; color: #8a7f76; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pt-nav__group > .pt-nav__sub { padding-bottom: 0 !important; }
.pt-nav__fallback a { display: flex; align-items: center; min-height: 56px; padding: 0 18px; font-weight: 700; }

/* brands */
.pt-nav__brands h3, .pt-nav__contact strong { display: block; margin: 0 0 10px; color: #242424; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pt-nav__brands ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-nav__brands a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #e4dbd3; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; }
.pt-nav__brands a:hover { border-color: #990000; color: #990000; }

/* trust */
.pt-nav__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 16px; border-radius: 16px; background: #f3ebe2; }
.pt-nav__trust li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.35; }

/* contact */
.pt-nav__contact { font-style: normal; }
.pt-nav__contact a { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.pt-nav__contact a span { text-decoration: underline; text-decoration-color: #d8cfc8; text-underline-offset: 3px; }

body.pt-nav-open .floating-whatsapp-button { visibility: hidden; pointer-events: none; }
/* Google "Store quality" badge is fixed at the maximum z-index: hide it while the drawer is open */
body.pt-nav-open #google-merchantwidget-iframe-wrapper { visibility: hidden !important; pointer-events: none !important; }

@media (prefers-reduced-motion: reduce) {
  .pt-nav__overlay, .pt-nav__panel, .pt-topbar__msg, .pt-nav__toggle--row::after { transition: none !important; }
}
