/**
 * Base redesigned header presentation.
 * Applies only when the shared design switch adds body.kcv9-active.
 * Functional menu, Polylang, cart, messaging and WSS widgets remain owned by
 * the existing theme/plugins. No global layout tokens are changed.
 */
body.kcv9-active {
  --kcv9-bg: #520b19;
  --kcv9-bg-dark: #390710;
  --kcv9-gold: #deb77d;
  --kcv9-ivory: #faf2e7;
  --kupetz-header-bar-height: 68px;
  padding-top: 18px;
}
body.kcv9-active .kupetz-site-header {
  height: var(--kupetz-header-bar-height);
  background: var(--kcv9-bg);
  border-bottom: 1px solid rgba(222, 183, 125, .55);
  box-shadow: 0 3px 14px rgba(44, 6, 12, .12);
}
body.kcv9-active .kupetz-site-header__bar { background: var(--kcv9-bg); }
body.kcv9-active .kupetz-site-header__bar > .container { max-width: 1470px; padding-inline: clamp(16px, 2.4vw, 40px); }
body.kcv9-active .kupetz-primary-nav { min-height: 68px; height: 68px; gap: clamp(8px, 1.25vw, 20px); align-items: center; }
body.kcv9-active .kupetz-primary-menu { flex: 1 1 auto; min-width: 0; width: auto; }
body.kcv9-active .kupetz-menu-list { flex: 1; width: auto; max-width: 960px; gap: clamp(0px, .3vw, 8px); align-items: center; }
body.kcv9-active .kupetz-menu-list > li { flex: 0 0 auto; }
body.kcv9-active .kupetz-menu-list > li > a {
  color: var(--kcv9-ivory);
  font-family: var(--kupetz-font-body, Arial, sans-serif);
  font-size: clamp(11px, .79vw, 13px);
  font-weight: 600;
  letter-spacing: .065em;
  line-height: 68px;
  padding-inline: clamp(6px, .8vw, 12px);
  position: relative;
  transition: color .18s ease;
}
body.kcv9-active .kupetz-menu-list > li > a::after {
  background: var(--kcv9-gold);
  bottom: 11px;
  content: '';
  height: 1px;
  left: 12px;
  position: absolute;
  right: 12px;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .18s ease;
}
body.kcv9-active .kupetz-menu-list > li > a:hover,
body.kcv9-active .kupetz-menu-list > li > a:focus-visible,
body.kcv9-active .kupetz-menu-list > li.current-menu-item > a,
body.kcv9-active .kupetz-menu-list > li.current-menu-parent > a { background: none; color: var(--kcv9-gold); }
body.kcv9-active .kupetz-menu-list > li > a:hover::after,
body.kcv9-active .kupetz-menu-list > li > a:focus-visible::after,
body.kcv9-active .kupetz-menu-list > li.current-menu-item > a::after { transform: scaleX(1); }
body.kcv9-active .kupetz-top-logo { flex: 0 0 90px; min-width: 0; justify-content: center; }
body.kcv9-active .kupetz-top-logo img { display: block; height: 48px; max-width: 88px; width: auto; object-fit: contain; }
body.kcv9-active .kupetz-header-actions { flex: 0 0 auto; gap: 2px; align-items: center; }
body.kcv9-active .kupetz-header-action__pulse { display: none; }
body.kcv9-active .kupetz-header-action__link--whatsapp,
body.kcv9-active .kupetz-header-action__link--telegram,
body.kcv9-active .kupetz-header-action__link--phone { animation: none; height: 37px; width: 37px; margin-right: 0; border-radius: 50%; background-size: 30px 30px; background-position: center; }
body.kcv9-active .kupetz-header-action__link--cart { height: 37px; width: 37px; margin-right: 0; background-size: 32px 32px; background-position: center; }
body.kcv9-active .kupetz-header-cart__count { right: -4px; top: -4px; background: var(--kcv9-gold); border: 1px solid var(--kcv9-bg); color: var(--kcv9-bg); font-size: 10px; }
body.kcv9-active .kupetz-language-switcher { margin-left: 5px; height: 37px; width: 37px; }
body.kcv9-active .kupetz-language-switcher__link { height: 37px; width: 37px; padding: 0; box-sizing: border-box; background: var(--kcv9-bg-dark); border: 1px solid rgba(222,183,125,.32); }
body.kcv9-active .kupetz-header-action__link:focus-visible,
body.kcv9-active .kupetz-language-switcher__link:focus-visible,
body.kcv9-active .kupetz-menu-list > li > a:focus-visible,
body.kcv9-active .kupetz-top-logo:focus-visible { outline: 2px solid var(--kcv9-gold); outline-offset: 3px; }
/* The WSS shortcode is rendered server-side; it keeps all existing AJAX handlers. */
body.kcv9-active .kcv9-header-search { flex: 0 1 218px; width: 218px; min-width: 160px; position: relative; z-index: 5; }
body.kcv9-active .kcv9-header-search .wss-woo-search__form { min-height: 38px; }
body.kcv9-active .kcv9-header-search .wss-woo-search__input {
  height: 38px; min-height: 38px; border-radius: 2px; font-size: 12px;
  color: var(--kcv9-ivory); background: rgba(32,3,10,.12);
  border: 1px solid rgba(222,183,125,.45);
  padding: 6px 67px 6px 12px;
}
body.kcv9-active .kcv9-header-search .wss-woo-search__input::placeholder { color: #e0c7b2; opacity: 1; }
body.kcv9-active .kcv9-header-search .wss-woo-search__input:focus { border-color: var(--kcv9-gold); box-shadow: 0 0 0 1px rgba(222,183,125,.2); outline: none; }
body.kcv9-active .kcv9-header-search .wss-woo-search__input:focus-visible { outline: 2px solid #deb77d; outline-offset: 2px; }
body.kcv9-active .kcv9-header-search .wss-woo-search__submit,
body.kcv9-active .kcv9-header-search .wss-woo-search__clear { width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 5px; background: transparent; color: var(--kcv9-gold); }
body.kcv9-active .kcv9-header-search .wss-woo-search__dropdown { min-width: 280px; color: #38232a; }
body.kcv9-active .kcv9-mobile-brand { display: none; }
@media (max-width: 1379px) and (min-width: 992px) {
  body.kcv9-active .kcv9-header-search { display: none; }
  body.kcv9-active .kupetz-menu-list { justify-content: center; gap: 2px; }
  body.kcv9-active .kupetz-menu-list > li > a { font-size: 12px; padding-inline: 8px; letter-spacing: .025em; }
}
@media (max-width: 991px) {
  body.kcv9-active { --kupetz-header-bar-height: 50px; padding-top: 0; }
  body.kcv9-active .kupetz-site-header { height: 50px; }
  body.kcv9-active .kupetz-site-header__bar > .container { padding-inline: 9px; max-width: none; }
  body.kcv9-active .kupetz-primary-nav { height: 50px; min-height: 50px; gap: 5px; justify-content: flex-start; }
  body.kcv9-active .kupetz-nav-toggle-wrap { flex: 0 0 40px; height: 50px; }
  body.kcv9-active .kupetz-nav-toggle-icon { width: 40px; height: 50px; }
  body.kcv9-active button.kupetz-nav-toggle::before { height: 2px; left: 10px; top: 17px; width: 22px; box-shadow: 0 7px 0 0 var(--kcv9-ivory), 0 14px 0 0 var(--kcv9-ivory); }
  body.kcv9-active .kupetz-primary-menu { flex: none; width: var(--kupetz-mobile-menu-width); }
  body.kcv9-active .kupetz-primary-menu.kupetz-menu-is-open { background: #fff9f1; }
  body.kcv9-active .kupetz-menu-list > li > a::after { content: none; }
  body.kcv9-active .kcv9-header-search { display: none; }
  body.kcv9-active .kcv9-mobile-brand { display: flex; flex: 0 0 54px; height: 45px; align-items: center; justify-content: center; }
  body.kcv9-active .kcv9-mobile-brand img { height: 31px; width: auto; max-width: 51px; object-fit: contain; }
  body.kcv9-active .kupetz-header-actions { margin-left: auto; gap: 1px; }
  body.kcv9-active .kupetz-header-action__link--whatsapp,
  body.kcv9-active .kupetz-header-action__link--telegram,
  body.kcv9-active .kupetz-header-action__link--phone,
  body.kcv9-active .kupetz-header-action__link--cart { width: 33px; height: 34px; background-size: 27px 27px; }
  body.kcv9-active .kupetz-language-switcher { width: 33px; height: 34px; margin-left: 3px; }
  body.kcv9-active .kupetz-language-switcher__link { width: 33px; height: 34px; font-size: 11px; }
  body.kcv9-active .kupetz-header-cart__count { font-size: 9px; right: -4px; top: -6px; }
}
@media (max-width: 359px) {
  body.kcv9-active .kcv9-mobile-brand { flex-basis: 41px; }
  body.kcv9-active .kupetz-header-action__link--whatsapp,
  body.kcv9-active .kupetz-header-action__link--telegram,
  body.kcv9-active .kupetz-header-action__link--phone,
  body.kcv9-active .kupetz-header-action__link--cart { width: 30px; height: 32px; background-size: 25px 25px; }
  body.kcv9-active .kupetz-language-switcher { margin-left: 1px; width: 30px; height: 32px; }
  body.kcv9-active .kupetz-language-switcher__link { width: 30px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  body.kcv9-active .kupetz-menu-list > li > a,
  body.kcv9-active .kupetz-menu-list > li > a::after { transition: none; }
}
