/* Common top-bar design for 3DS and the Cup S React navigation. */
.shop-header-actions { position:fixed; z-index:101; top:14px; right:max(14px,calc((100% - 1240px)/2)); width:220px; height:72px; display:flex; align-items:center; justify-content:flex-start; gap:8px; margin:0; }
.shop-header-actions .cart-link { box-sizing:border-box; flex-shrink:0; height:42px; font:800 12px/20px Arial,Helvetica,sans-serif; white-space:nowrap; }
@media(max-width:900px) {
  .shop-header-actions { gap:8px; }
}
@media(max-width:380px) {
  .shop-header-actions .cart-link { padding-inline:6px; gap:4px; font-size:11px; }
}
.site-header,
#root .cp-header > .cp-header-inner {
  width:min(1240px,calc(100% - 28px));
  min-height:72px;
  height:72px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:10px 12px 10px 18px;
  border:1px solid #ffffff1c;
  border-radius:22px;
  background:rgba(19,20,18,.84);
  box-shadow:0 14px 45px #00000047;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
#root .cp-header { inset:14px 0 auto; padding:0 !important; }
#root .cp-header > .cp-header-inner { margin-inline:auto; }
#root .cp-header .cups-company-link { min-height:0; padding:0; border:0; border-radius:0; background:transparent; }
.site-header .brand,
#root .cp-header .cups-company-link-logo { position:relative; display:block; width:190px; aspect-ratio:4.55/1; overflow:hidden; flex:0 0 auto; mix-blend-mode:normal; }
.site-header .brand img,
#root .cp-header .cups-company-link-logo img { position:absolute; top:0; left:0; width:120%; height:auto; max-width:none; transform:translate(-10.8%,-35.5%); }
#root .cp-header .cp-desktop-nav { margin-inline-start:auto; }
#root .cp-desktop-nav { gap:6px; }
.site-header .desktop-nav > a,
.site-header .brands-menu > button,
#root .cp-header .cp-header-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  height:48px;
  min-height:48px;
  padding:14px 17px;
  border:0;
  border-radius:13px;
  font:650 14.4px/20px Arial,Helvetica,sans-serif;
  text-decoration:none;
}
#root .cp-header-link {
  min-height:44px;
  height:44px;
  box-sizing:border-box;
  padding:14px 17px;
  border:0;
  border-radius:13px;
  color:#ffffffb3;
  background:transparent;
  font:650 14.4px Arial,Helvetica,sans-serif;
  line-height:1.5;
  text-decoration:none;
  transition:background .25s,color .25s;
}
#root .cp-header-link:hover { color:white; background:#ffffff17; }
#root .cp-header-link.is-active { color:#ffac62; background:#f5822018; box-shadow:inset 0 -2px #f58220; }
#root .cp-header-language { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:auto; min-height:42px; height:42px; padding:0 11px; border-radius:11px; font-size:12px; white-space:nowrap; }
#root .cp-header-language .is-current { color:#ffac62; }
#root .cp-header-language .cp-language-divider { color:#ffffff5c; }
#root .cp-header-language:hover { border-color:#f58220; background:#ffffff0d; }
#root .cp-header-language:focus-visible { outline:2px solid #f58220; outline-offset:2px; }
#root .cp-menu-trigger { width:48px; height:48px; padding:14px; border:0; border-radius:14px; background:#17181a; }
#root .cp-menu-trigger span { display:block; width:100%; height:2px; margin:4px 0; border-radius:2px; background:white; transition:transform .25s,opacity .25s; }
#root .cp-menu-trigger[aria-expanded="true"] span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
#root .cp-menu-trigger[aria-expanded="true"] span:nth-child(2) { opacity:0; }
#root .cp-menu-trigger[aria-expanded="true"] span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
#root .cp-header-actions { gap:6px; flex-shrink:0; }
#root .cp-mobile-panel { top:98px; inset-inline:max(14px,calc((100vw - 1240px)/2)); border-radius:18px; background:rgba(19,20,18,.97); }
@media(max-width:600px) {
  #root .cp-header { inset-block-start:max(8px,env(safe-area-inset-top)); }
  #root .cp-header > .cp-header-inner { width:calc(100% - 16px); min-height:65px; padding:10px 12px 10px 14px; border-radius:18px; gap:6px; }
  #root .cp-menu-trigger { width:43px; height:43px; padding:12px; }
  #root .cp-header-actions { gap:6px; }
  #root .cp-mobile-panel { top:81px; inset-inline:8px; }
}
@media(max-width:600px) {
  .site-header { width:calc(100% - 16px); min-height:65px; padding-left:14px; border-radius:18px; }
  .site-header .brand,
  #root .cp-header .cups-company-link-logo { width:145px; }
}
.site-header.scrolled { background:rgba(17,18,16,.96); box-shadow:0 14px 45px #0000006b; }
.site-header[data-company-header] { transition:transform .24s ease,background .24s ease,box-shadow .24s ease; will-change:transform; }
.site-header[data-company-header].is-scroll-hidden { transform:translateY(calc(-100% - 20px)) !important; pointer-events:none; }
@media (prefers-reduced-motion:reduce) {
  .site-header[data-company-header] { transition:none; }
}
/* Contact keeps the original Cup S pill treatment across both headers. */
.site-header[data-header] :is(.desktop-nav,.mobile-nav,.header-actions) > a[href*="/contact/"],
#root .cp-header .cups-contact-trigger {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  min-height:44px;
  height:44px;
  min-width:100px;
  box-sizing:border-box;
  padding:0 18px;
  border:1px solid #f58220;
  border-radius:999px;
  color:#17120b;
  background:linear-gradient(120deg,#ffa34d,#f58220);
  font:700 13px/20px Arial,Helvetica,sans-serif;
  white-space:nowrap;
  text-decoration:none;
  box-shadow:none;
  transition:none;
}
.site-header[data-header] :is(.desktop-nav,.mobile-nav,.header-actions) > a[href*="/contact/"]:hover,
#root .cp-header .cups-contact-trigger:hover { color:#17120b; background:linear-gradient(120deg,#ffb366,#ff963d); }
.site-header[data-header] :is(.desktop-nav,.mobile-nav,.header-actions) > a[href*="/contact/"]:focus-visible,
#root .cp-header .cups-contact-trigger:focus-visible {
  color:#17120b;
  background:linear-gradient(120deg,#ffb366,#ff963d);
  outline:2px solid #f2eee7;
  outline-offset:3px;
  box-shadow:none;
}
.site-header[data-header] :is(.desktop-nav,.mobile-nav,.header-actions) > a[href*="/contact/"]:active,
#root .cp-header .cups-contact-trigger:active { color:#17120b; background:linear-gradient(120deg,#f59a44,#eb7618); box-shadow:none; }
.site-header .mobile-nav > a[href*="/contact/"] { margin-top:10px; }
@media(max-width:600px) {
  .site-header[data-header] :is(.desktop-nav,.mobile-nav,.header-actions) > a[href*="/contact/"],
  #root .cp-header .cups-contact-trigger { min-width:86px; padding:0 14px; font-size:12px; }
}
@media(max-width:600px) {
  .site-header,
  #root .cp-header > .cp-header-inner { height:65px; min-height:65px; }
}
@media(min-width:601px) and (max-width:767px) {
  #root .cp-header > .cp-header-inner { height:72px; min-height:72px; }
}
@media(max-width:1100px) {
  #root .cp-header .cp-desktop-nav { display:none !important; }
  #root .cp-header .cp-menu-trigger { display:block !important; }
  #root .cp-header .cp-header-language { display:none; }
  #root .cp-mobile-panel { padding:12px; }
  #root .cp-mobile-link { min-height:44px; padding:15px 14px; border:0; border-radius:10px; font:700 14.4px/20px Arial,Helvetica,sans-serif; }
  #root .cp-mobile-link.is-active { color:#ffac62; background:#f5822018; box-shadow:inset 0 -2px #f58220; }
}
@media(min-width:1101px) {
  #root .cp-header .cp-desktop-nav { display:flex !important; }
  #root .cp-header .cp-menu-trigger { display:none !important; }
}
@media(min-width:601px) and (max-width:767px) {
  #root .cp-header .cups-company-link-logo { width:145px; }
  #root .cp-header .cups-contact-trigger { min-width:86px; padding-inline:14px; }
}
/* Navigation and commerce are separate groups on one centered row. */
.site-header[data-company-header] { width:min(1240px,calc(100% - 28px)); left:0; right:0; margin-inline:auto; transform:none; }
@media(max-width:1100px) {
  .site-header[data-company-header] .desktop-nav { display:none; }
  .site-header[data-company-header] .menu-toggle { display:block; }
  .site-header[data-company-header] .mobile-nav {
    position:absolute; top:calc(100% + 8px); left:0; width:100%; padding:12px;
    display:grid; border:1px solid #ffffff1f; border-radius:18px;
    background:rgba(18,19,17,.98); box-shadow:0 24px 50px #0006;
    opacity:0; visibility:hidden; transform:translateY(-12px); transition:.25s var(--ease);
  }
  .site-header[data-company-header] .mobile-nav.open { opacity:1; visibility:visible; transform:translateY(0); }
  .site-header[data-company-header] .mobile-nav > a { padding:15px 14px; border-radius:10px; color:#e4e0d7; font-size:.9rem; font-weight:700; }
}
@media(max-width:1100px) {
  .shop-header-actions { z-index:99; }
}
@media(max-width:600px) {
  .site-header[data-company-header] { width:calc(100% - 16px); padding-inline:10px; }
  .site-header[data-company-header] .brand { width:clamp(98px,34vw,145px); }
  .shop-header-actions { top:8px; right:8px; width:88px; height:65px; gap:4px; }
  .shop-header-actions .cart-link { width:42px; min-width:42px; height:42px; padding:0; gap:0; }
  .shop-header-actions :is([data-account-label],.cart-label) { display:none; }
  .shop-header-actions .cart-count { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 3px; font-size:10px; }
}

#root .cp-header > .cp-header-inner { width:min(1240px,calc(100% - 28px)); margin-inline:auto; transform:none; }
@media(max-width:600px) { #root .cp-header > .cp-header-inner { width:calc(100% - 16px); } }
/* Shared header: logo | centered tabs | account + cart + Contact (same on every page). */
.site-header .desktop-nav, #root .cp-header .cp-desktop-nav { margin-inline:auto; }
.site-header .header-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.header-commerce { display:inline-flex; align-items:center; }
.header-commerce .shop-header-actions { position:static; width:auto; height:auto; gap:6px; }
.header-commerce .shop-header-actions .cart-link { position:relative; width:42px; min-width:42px; height:42px; padding:0; gap:0; justify-content:center; }
.header-commerce .shop-header-actions :is([data-account-label],.cart-label) { display:none; }
.header-commerce .shop-header-actions .cart-count { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 3px; font-size:10px; }
#root .cp-header .cp-lang-icon { box-sizing:border-box; width:42px; min-width:42px; height:42px; padding:0; gap:0; justify-content:center; color:#f58220; font:800 15px/1 Arial,Helvetica,sans-serif; text-transform:lowercase; cursor:pointer; }
#root .cp-header .cp-lang-icon:hover, #root .cp-header .cp-lang-icon:focus-visible { color:#16130f; }
@media(max-width:420px) { #root .cp-header .cp-lang-icon { width:36px; min-width:36px; height:36px; } }
@media(max-width:1100px) {
  .site-header .header-actions, #root .cp-header .cp-header-actions { margin-inline-start:auto; }
  .site-header .header-actions > a.header-contact { display:none; }
}
@media(max-width:420px) {
  .header-commerce .shop-header-actions .cart-link { width:36px; min-width:36px; height:36px; }
}

.shop-header-actions .cart-link { text-decoration:none; }
.shortcut-rail-list { display:flex; box-sizing:border-box; width:44px; flex-direction:column; align-items:center; gap:4px; padding:0 2px; }
body:has(.cp-mobile-overlay) > .shop-header-actions { visibility:hidden; pointer-events:none; }
@media(max-width:1100px) {
  .has-commerce-actions .site-carousel { padding-top:100px; }
  .has-commerce-actions :is(.auth-shell,.checkout-shell,.legal-content) { padding-top:120px; }
}
@media(max-width:600px) {
  #root .cp-header > .cp-header-inner { width:calc(100% - 16px); padding-inline:8px; }
  #root .cp-header .cups-company-link-logo { width:clamp(90px,28vw,130px); }
  #root .cp-header .cups-contact-trigger { width:58px; min-width:58px; padding:0 6px; font-size:10.5px; }
  .has-commerce-actions .site-carousel { padding-top:90px; }
}
@media(max-width:380px) {
  #root .cp-header .cups-company-link-logo { width:76px; }
}

/* Centre Cup S navigation on the page axis, independent of side-control widths. */
@media(min-width:1101px) {
  #root .cp-header > .cp-header-inner { position:relative; }
  #root .cp-header .cp-desktop-nav { position:absolute; left:50%; transform:translateX(-50%); margin:0; }
  #root .cp-header .cp-header-actions { margin-inline-start:auto; }
}

/* Company pages: account and cart remain available beside the page while the header scrolls. */
body:has([data-company-header]) > .shop-header-actions { position:fixed; z-index:101; top:50%; right:max(12px,env(safe-area-inset-right)); box-sizing:border-box; width:46px; height:auto; display:flex; flex-direction:column; align-items:center; gap:0; margin:0; padding:0; border:1px solid #f5822055; border-radius:14px; background:rgba(19,20,18,.95); box-shadow:0 12px 32px #0006,0 0 16px #f5822038; backdrop-filter:blur(16px); transform:translateY(-50%); }
body:has([data-company-header]) > .shop-header-actions .cart-link { position:relative; display:flex; align-items:center; justify-content:center; width:40px; min-width:40px; height:40px; padding:0; }
body:has([data-company-header]) > .shop-header-actions .company-shortcut-whatsapp { color:#25d366; background:#25d36614; }
body:has([data-company-header]) > .shop-header-actions .company-shortcut-whatsapp svg { width:23px; height:23px; filter:drop-shadow(0 0 5px #25d36655); }
body:has([data-company-header]) > .shop-header-actions :is([data-account-label],.cart-label) { display:none; }
body:has([data-company-header]) > .shop-header-actions .cart-count { position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 3px; font-size:10px; }
body:has([data-company-header] .mobile-nav.open) > .shop-header-actions { visibility:hidden; pointer-events:none; }
@media(max-width:1100px) { body:has([data-company-header]) > .shop-header-actions { right:max(6px,env(safe-area-inset-right)); } }

/* Social shortcuts keep their own brand colors, independently of orange actions. */
.shortcut-socials { display:flex; flex:none; flex-direction:column; align-items:center; gap:4px; width:100%; }
.shortcut-socials[hidden] { display:none; }
.social-shortcut-instagram { --social-color:#e1306c; --social-tint:#e1306c1f; }
.social-shortcut-facebook { --social-color:#0866ff; --social-tint:#0866ff24; }
.social-shortcut-linkedin { --social-color:#0a66c2; --social-tint:#0a66c224; }
.social-shortcut-youtube { --social-color:#ff0000; --social-tint:#ff00001c; }
.social-shortcut-tiktok { --social-color:#25f4ee; --social-tint:#25f4ee18; }
.social-shortcut-x { --social-color:#fff; --social-tint:#ffffff14; }
.company-shortcut-whatsapp,.cups-shortcut-whatsapp { --social-color:#25d366; --social-tint:#25d36620; }
body .shortcut-rail-list .cart-link:is(.social-shortcut,.company-shortcut-whatsapp,.cups-shortcut-whatsapp) { color:#c4c1b6; border-color:#ffffff24; background:#1c1e19; box-shadow:none; }
body .shortcut-rail-list .cart-link:is(.social-shortcut,.company-shortcut-whatsapp,.cups-shortcut-whatsapp) svg { color:inherit; filter:none; }
body .shortcut-rail-list .cart-link:is(.social-shortcut,.company-shortcut-whatsapp,.cups-shortcut-whatsapp):is(:hover,:focus-visible) { color:var(--social-color); border-color:var(--social-color); background:var(--social-tint); box-shadow:none; }
body .shortcut-rail-list .cart-link:is(.social-shortcut,.company-shortcut-whatsapp,.cups-shortcut-whatsapp):focus-visible { outline:2px solid var(--social-color); outline-offset:-3px; }
.social-shortcut .social-logo-brand { display:none; }
.social-shortcut:is(:hover,:focus-visible) .social-logo-default { display:none; }
.social-shortcut:is(:hover,:focus-visible) .social-logo-brand { display:block; }
/* Keep every configured profile reachable without covering the navigation. */
body:has([data-company-header]) > .shop-header-actions,.cups-shortcuts { max-height:calc(100svh - 200px); overflow:hidden; }
.shortcut-rail-list { min-height:0; max-height:calc(100svh - 202px); overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:none; padding-block:4px; }
.shortcut-rail-list::-webkit-scrollbar { display:none; }
.shortcut-rail-list > .cart-link,.shortcut-socials > .cart-link { flex-shrink:0; }
.social-shortcuts-fallback { position:fixed; z-index:110; top:50%; right:max(6px,env(safe-area-inset-right)); width:46px; height:auto; max-height:calc(100svh - 200px); display:flex; flex-direction:column; padding:0; border:1px solid #ffffff24; border-radius:14px; background:rgba(19,20,18,.95); overflow:hidden; transform:translateY(-50%); }
.social-shortcuts-fallback .cart-link { display:flex; width:40px; min-width:40px; height:40px; padding:0; }

/* Account + cart pills beside Contact: same orange pill, slightly smaller.
   Shared by the 3D header (.site-header) and the Cup S header (#root .cp-header). */
.site-header .header-commerce, #root .cp-header .cp-header-commerce { display:inline-flex; align-items:center; gap:6px; }
:is(.site-header, #root .cp-header) .header-pill,
.site-header[data-header] .header-actions > a.header-contact,
#root .cp-header .cups-contact-trigger { height:38px; min-height:38px; }
.site-header[data-header] .header-actions > a.header-contact,
#root .cp-header .cups-contact-trigger { min-width:0; padding:0 16px; font-size:12px; }
:is(.site-header, #root .cp-header) .header-pill { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:6px; box-sizing:border-box; padding:0 13px; border:1px solid #f58220; border-radius:999px; color:#17120b; background:linear-gradient(120deg,#ffa34d,#f58220); font:700 12px/20px Arial,Helvetica,sans-serif; white-space:nowrap; text-decoration:none; cursor:pointer; }
:is(.site-header, #root .cp-header) .header-pill svg { width:16px; height:16px; flex-shrink:0; }
:is(.site-header, #root .cp-header) .header-pill:hover { color:#17120b; background:linear-gradient(120deg,#ffb366,#ff963d); }
:is(.site-header, #root .cp-header) .header-pill:focus-visible { color:#17120b; background:linear-gradient(120deg,#ffb366,#ff963d); outline:2px solid #f2eee7; outline-offset:3px; }
:is(.site-header, #root .cp-header) .header-pill:active { background:linear-gradient(120deg,#f59a44,#eb7618); }
:is(.site-header, #root .cp-header) .header-cart-count { position:absolute; top:-5px; right:-5px; border:1px solid #f58220; min-width:18px; height:18px; padding:0 4px; box-sizing:border-box; border-radius:9px; color:#ffac62; background:#17120b; font:800 10px/18px Arial,Helvetica,sans-serif; text-align:center; }
.customer-auth-page .site-header .header-account { display:none; }
/* Icon-only pills at every width (the label stays for screen readers via aria-label). */
:is(.site-header, #root .cp-header) .header-pill { width:38px; padding:0; }
:is(.site-header, #root .cp-header) .header-pill-label { display:none; }
@media(max-width:600px) {
  /* Cup S keeps Contact in the bar on phones; stay compact next to the pills. */
  #root .cp-header .cups-contact-trigger { width:58px; min-width:58px; padding:0 6px; font-size:10.5px; }
}
@media(max-width:420px) {
  :is(.site-header, #root .cp-header) .header-pill { width:34px; height:34px; min-height:34px; }
}
