.ac-topbar {
  background: linear-gradient(90deg, var(--brand-blue-dark) 0%, var(--brand-blue) 72%);
  color: rgba(237, 245, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ac-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
}

.ac-topbar__message {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(237, 245, 255, 0.78);
}

.ac-topbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ac-topbar__link {
  font-family: var(--font-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.ac-topbar__link:hover {
  color: #ffffff;
  opacity: 0.86;
}

.ac-header {
  position: relative;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 59, 122, 0.08);
  transition: box-shadow var(--base), transform var(--base);
}

@media (min-width: 1024px) {
  .ac-header {
    position: sticky;
    top: 0;
    z-index: 998;
  }
}

.ac-header.is-sticky {
  box-shadow: 0 18px 40px rgba(0, 59, 122, 0.12);
}

.ac-header__main {
  background:
    linear-gradient(180deg, rgba(246, 249, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
}

.ac-header__main-inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  min-height: 96px;
}

.ac-header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ac-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-blue-dark);
  box-shadow: var(--shadow-xs);
}

.ac-header__menu-toggle svg,
.ac-header__menu-toggle svg rect {
  fill: currentColor;
}

.ac-header__menu-toggle:hover {
  border-color: rgba(var(--brand-rgb), 0.3);
  color: var(--brand-red);
}

.ac-header__logo .custom-logo-link,
.ac-mmenu__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.ac-header__logo img,
.ac-mmenu__brand img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

.ac-header__logo-text {
  color: var(--brand-blue-dark);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ac-header__search .woocommerce-product-search,
.ac-header__search form.woocommerce-product-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin: 0;
  align-items: center;
}

.ac-header__search label {
  display: none;
}

.ac-header__search input[type="search"] {
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid rgba(var(--brand-deep-rgb), 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.95rem;
  box-shadow: 0 10px 22px rgba(0, 59, 122, 0.08);
}

.ac-header__search input[type="search"]::placeholder {
  color: var(--text-3);
}

.ac-header__search button[type="submit"] {
  min-height: 52px;
  min-width: 150px;
  padding: 0 1.2rem;
  border-radius: 14px;
}

.ac-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.ac-header__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  border: 1px solid rgba(var(--brand-deep-rgb), 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: var(--brand-blue-dark);
  box-shadow: 0 10px 22px rgba(0, 59, 122, 0.08);
  transition: border-color var(--fast), color var(--fast), transform var(--fast);
}

.ac-header__icon svg,
.ac-header__icon svg path {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.ac-header__icon:hover {
  border-color: rgba(var(--brand-rgb), 0.28);
  color: var(--brand-red);
  transform: translateY(-1px);
}

a.ac-header__icon.ac-account-link {
  width: auto;
  padding: 0 0.95rem 0 0.7rem;
  gap: 0.55rem;
}

.ac-header__account-label {
  max-width: 122px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ac-header__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.35rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.ac-mini-cart {
  position: relative;
}

.ac-mini-cart__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(0, 59, 122, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
}

.ac-mini-cart.is-open .ac-mini-cart__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ac-header__nav-wrap {
  border-top: 1px solid rgba(var(--brand-deep-rgb), 0.08);
  border-bottom: 3px solid var(--brand-red);
  background: linear-gradient(90deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%);
}

.ac-header__nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 56px;
}

.ac-header__departments {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ac-header__categories-shortcode {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ac-header__categories-shortcode > * {
  margin: 0;
}

.ac-header__categories-shortcode .ac-header__departments,
.ac-header__categories-shortcode a,
.ac-header__categories-shortcode button,
.ac-header__categories-shortcode .button,
.ac-header__categories-shortcode [class*="cats"],
.ac-header__categories-shortcode [class*="sidecat"] {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  padding: 0 1rem;
  border: none;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
}

.ac-header__categories-shortcode a:hover,
.ac-header__categories-shortcode button:hover,
.ac-header__categories-shortcode .button:hover,
.ac-header__categories-shortcode [class*="cats"]:hover,
.ac-header__categories-shortcode [class*="sidecat"]:hover {
  background: var(--brand-red-2);
  color: #ffffff;
  transform: none;
}

.ac-header__categories-shortcode svg,
.ac-header__categories-shortcode svg path,
.ac-header__departments svg,
.ac-header__departments svg path {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ac-header__departments:hover {
  background: var(--brand-red-2);
  color: #ffffff;
}

.ac-header__categories-shortcode ul,
.ac-header__categories-shortcode ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-header__categories-shortcode .sub-menu,
.ac-header__categories-shortcode ul ul {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 220px;
  padding: 0.55rem;
  border: 1px solid rgba(var(--brand-deep-rgb), 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(0, 59, 122, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
  z-index: 40;
}

.ac-header__categories-shortcode li {
  position: relative;
}

.ac-header__categories-shortcode li:hover > .sub-menu,
.ac-header__categories-shortcode li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ac-header__categories-shortcode .sub-menu a,
.ac-header__categories-shortcode ul ul a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
}

.ac-header__categories-shortcode .sub-menu a:hover,
.ac-header__categories-shortcode ul ul a:hover {
  background: var(--brand-soft);
  color: var(--brand-red);
}

.ac-header__nav {
  flex: 1;
}

.ac-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-nav-menu > li {
  position: relative;
}

.ac-nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 0.95rem;
  color: #ffffff;
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ac-nav-menu > li:hover > a,
.ac-nav-menu > li.current-menu-item > a,
.ac-nav-menu > li.current-menu-ancestor > a {
  color: #ffffff;
  opacity: 0.82;
}

.ac-nav-menu .sub-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.55rem;
  list-style: none;
  border: 1px solid rgba(var(--brand-deep-rgb), 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(0, 59, 122, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
}

.ac-nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ac-nav-menu .sub-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 0.88rem;
}

.ac-nav-menu .sub-menu a:hover {
  background: var(--brand-soft);
  color: var(--brand-red);
}

.ac-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.ac-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.ac-mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 76, 0.58);
}

.ac-mobile-menu__drawer {
  position: relative;
  width: min(92vw, 390px);
  height: 100%;
  overflow-y: auto;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 18%, #f4f7fb 100%);
  box-shadow: 18px 0 36px rgba(0, 59, 122, 0.2);
  transform: translateX(-100%);
  transition: transform 0.26s ease;
}

.ac-mobile-menu.is-open .ac-mobile-menu__drawer {
  transform: translateX(0);
}

body.ac-mobile-menu-open {
  overflow: hidden;
}

.ac-mmenu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
}

.ac-mmenu__brand-name {
  color: var(--brand-blue-dark);
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ac-mmenu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-blue-dark);
}

.ac-mmenu__search {
  padding: 1rem;
}

.ac-mmenu__search .woocommerce-product-search,
.ac-mmenu__search form.woocommerce-product-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.ac-mmenu__search label {
  display: none;
}

.ac-mmenu__quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.ac-mmenu__quick-link {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  padding: 0.95rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--brand-blue-dark);
  text-align: center;
  font-family: var(--font-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}

.ac-mmenu__quick-link svg,
.ac-mmenu__quick-link svg path {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ac-mmenu__divider {
  height: 8px;
  background: rgba(var(--brand-deep-rgb), 0.05);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ac-mmenu__nav {
  padding: 0.35rem 0;
}

.ac-mobile-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-mobile-nav > li {
  position: relative;
}

.ac-mobile-nav > li > a {
  display: block;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(var(--brand-deep-rgb), 0.08);
  color: var(--text);
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ac-mobile-nav .sub-menu {
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
}

.ac-mobile-nav .sub-menu a {
  display: block;
  padding: 0.7rem 1rem 0.7rem 1.7rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

.ac-mobile-submenu-toggle {
  position: absolute;
  top: 0.62rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--brand-red);
}

.ac-mobile-submenu-toggle span {
  line-height: 1;
  font-size: 1.1rem;
}

.ac-mmenu__section-title {
  padding: 1rem 1rem 0.4rem;
  color: var(--brand-red);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ac-mmenu__categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.6rem 1rem 1rem;
}

.ac-mmenu__cat-item {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.ac-mmenu__cat-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--brand-deep-rgb), 0.10) 0%, rgba(var(--brand-rgb), 0.10) 100%);
  overflow: hidden;
}

.ac-mmenu__cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-mmenu__cat-icon svg,
.ac-mmenu__cat-icon svg path {
  width: 28px;
  height: 28px;
  fill: var(--brand-red);
}

.ac-mmenu__cat-name {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.ac-mmenu__see-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 1rem 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ac-mmenu__see-all svg,
.ac-mmenu__see-all svg path {
  fill: currentColor;
}
