/* ==========================================================================
   SHOPSYSTEM HEADER — OPTIMIZED & ACCESSIBLE CORE STYLES
   ========================================================================== */

@font-face {
  font-family: "DoranFaNum";
  src: url("../assets/font/DoranFaNum-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Dynamic bridging with the core theme palette to maintain 100% color consistency */
  --yh-primary: var(--yarsa-tan, #c2773d);
  --yh-primary-dark: var(--yarsa-green, #1e6253);
  --yh-ink: var(--yarsa-green, #1e6253);
  --yh-text: var(--yarsa-green, #1e6253);
  --yh-muted: rgba(30, 98, 83, 0.72);
  --yh-line: rgba(30, 98, 83, 0.16);
  --yh-soft: rgba(30, 98, 83, 0.045);
  --yh-white: #ffffff;
  --yh-radius-sm: 8px;
  --yh-radius: 14px;
  --yh-shadow: 0 10px 30px rgba(30, 98, 83, 0.12);
  --yh-transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Reset & Isolation (Never overrides FontAwesome glyphs) */
.yh-header-shell,
.yh-header-shell * {
  box-sizing: border-box;
}

.yh-header-shell {
  direction: rtl;
  color: var(--yh-text);
  font-size: 15px;
  line-height: 1.65;
}

.yh-header-shell *:not(i):not([class*="fa-"]):not([class*="dashicons"]) {
  font-family: "DoranFaNum", Tahoma, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.yh-header-shell a {
  color: inherit;
  text-decoration: none;
  transition: color var(--yh-transition), background-color var(--yh-transition), opacity var(--yh-transition);
}

.yh-header-shell button,
.yh-header-shell input {
  font: inherit;
  margin: 0;
}

.yh-header-container {
  width: min(100%, 1265px);
  margin-inline: auto;
  padding-inline: clamp(14px, 2.2vw, 28px);
}

/* ==========================================================================
   2. PROMO BAR & NOTIFICATION LINE
   ========================================================================== */
.yh-promo-bar {
  background-color: var(--yh-primary-dark) !important;
  background-image: none !important;
  color: var(--yh-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yh-promo-content {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--yh-white);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: -0.1px;
}

.yh-promo-content i {
  font-size: 16px;
}

.yh-promo-content[href]:hover {
  color: var(--yh-white);
  opacity: 0.9;
}

/* ==========================================================================
   3. HEADER MAIN SECTION & SEARCH SYSTEM
   ========================================================================== */
.yh-header {
  position: sticky;
  top: 0;
  z-index: 990;
  width: 100%;
  background: var(--yh-white);
  box-shadow: 0 1px 0 rgba(30, 98, 83, 0.10);
}

.yh-header-main-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: clamp(13px, 2vw, 28px);
}

.yh-site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 116px;
}

.yh-site-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 43px;
  object-fit: contain;
}

.yh-site-name {
  color: var(--yh-ink);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

/* Search bar styling with premium focus interactions */
.yh-search-wrap {
  flex: 1 1 410px;
  max-width: 570px;
}

.yh-live-search {
  position: relative;
  width: 100%;
}

.yh-search-form {
  width: 100%;
  min-height: 46px;
  display: flex;
  direction: rtl;
  overflow: hidden;
  border: 1px solid rgba(30, 98, 83, 0.22);
  border-radius: var(--yh-radius-sm);
  background: var(--yh-white);
  transition: border-color var(--yh-transition), box-shadow var(--yh-transition);
}

.yh-search-form:focus-within {
  border-color: var(--yh-primary);
  box-shadow: 0 0 0 3px rgba(194, 119, 61, 0.15);
}

.yh-search-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--yh-text) !important;
  padding: 0 15px !important;
  font-size: 15px !important;
  line-height: 44px !important;
  box-shadow: none !important;
}

.yh-search-input::placeholder {
  color: rgba(30, 98, 83, 0.55);
  opacity: 1;
}

.yh-search-submit {
  width: 46px;
  min-width: 46px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--yh-primary) !important;
  color: var(--yh-white) !important;
  cursor: pointer;
  transition: background-color var(--yh-transition), transform var(--yh-transition);
}

.yh-search-submit:hover,
.yh-search-submit:focus-visible {
  background: var(--yh-primary-dark) !important;
}

.yh-search-submit:active {
  transform: scale(0.96);
}

.yh-search-results {
  position: absolute;
  z-index: 1005;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  border: 1px solid var(--yh-line);
  border-radius: var(--yh-radius-sm);
  background: var(--yh-white);
  box-shadow: var(--yh-shadow);
}

.yh-search-results[hidden] {
  display: none !important;
}

.yh-search-results__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
}

.yh-search-results__item + .yh-search-results__item {
  border-top: 1px solid var(--yh-line);
}

.yh-search-results__link {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 9px 12px;
  color: var(--yh-text) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  text-align: right;
}

.yh-search-results__link:hover,
.yh-search-results__link:focus-visible,
.yh-search-results__link.is-active {
  color: var(--yh-primary-dark) !important;
  background: var(--yh-soft);
}

.yh-search-results__status {
  margin: 0;
  padding: 12px 14px;
  color: var(--yh-muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.yh-search-results__list:not(:empty) + .yh-search-results__status:empty {
  display: none;
}

/* ==========================================================================
   4. ACCOUNT & CART HEADER ACTIONS
   ========================================================================== */
.yh-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin-inline-start: auto;
}

.yh-action-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 98, 83, 0.17);
  border-radius: var(--yh-radius-sm);
  color: var(--yh-ink) !important;
  background: var(--yh-white);
  font-size: 17px;
  transition: all var(--yh-transition);
}

.yh-action-link:hover,
.yh-action-link:focus-visible {
  border-color: var(--yh-primary);
  background: rgba(194, 119, 61, 0.08);
  color: var(--yh-primary) !important;
  transform: translateY(-1px);
}

.yh-cart-count {
  position: absolute;
  top: -7px;
  left: -6px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--yh-white);
  border-radius: 100px;
  background: var(--yh-primary);
  color: var(--yh-white);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

/* ==========================================================================
   5. NAVIGATION BAR & MAIN MENU (DESKTOP)
   ========================================================================== */
.yh-navigation-bar {
  min-height: 48px;
  border-top: 1px solid var(--yh-line);
  border-bottom: 1px solid rgba(30, 98, 83, 0.10);
  background: var(--yh-white);
}

.yh-navigation-inner {
  min-height: 47px;
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.yh-navigation-divider {
  width: 1px;
  height: 21px;
  align-self: center;
  background: rgba(30, 98, 83, 0.18);
}

.yh-category-menu {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

.yh-category-trigger {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 1px;
  border: 0 !important;
  outline: 0;
  color: var(--yh-ink) !important;
  background: transparent !important;
  font-size: 12.5px !important;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.yh-category-trigger > .fa-bars-staggered {
  color: var(--yh-ink);
  font-size: 15px;
}

.yh-category-caret {
  color: rgba(30, 98, 83, 0.70);
  font-size: 10px;
  transition: transform var(--yh-transition);
}

.yh-category-trigger[aria-expanded="true"] .yh-category-caret {
  transform: rotate(180deg);
}

.yh-main-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.yh-main-nav ul {
  display: flex !important;
  align-items: stretch;
  gap: 1px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.yh-main-nav li {
  display: flex;
  margin: 0 !important;
  padding: 0 !important;
}

.yh-main-nav a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 0 clamp(7px, 1.05vw, 13px);
  color: var(--yh-ink) !important;
  font-size: 12px !important;
  font-weight: 700;
  white-space: nowrap;
}

.yh-main-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--yh-primary);
  transition: width var(--yh-transition), right var(--yh-transition);
}

.yh-main-nav a i {
  color: var(--yh-primary);
  font-size: 12px;
}

.yh-main-nav a:hover,
.yh-main-nav a:focus-visible {
  background: rgba(194, 119, 61, 0.06);
  color: var(--yh-primary) !important;
}

.yh-main-nav a:hover::after,
.yh-main-nav a:focus-visible::after {
  right: 0;
  width: 100%;
}

/* ==========================================================================
   6. WOOCOMMERCE DUAL-COLUMN MEGA MENU (DESKTOP)
   ========================================================================== */
.yh-mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  width: min(970px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(30, 98, 83, 0.16);
  border-radius: 0 0 var(--yh-radius) var(--yh-radius);
  background: var(--yh-white);
  box-shadow: var(--yh-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px);
  transform-origin: top right;
  transition: opacity var(--yh-transition), visibility var(--yh-transition), transform var(--yh-transition);
  z-index: 1000;
}

.yh-category-menu.is-open .yh-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.yh-mega-tabs {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  border-bottom: 1px solid var(--yh-line);
  scrollbar-width: thin;
  background: rgba(30, 98, 83, 0.035);
}

.yh-mega-tab {
  position: relative;
  min-height: 49px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 0 !important;
  outline: 0;
  color: rgba(30, 98, 83, 0.74) !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.yh-mega-tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  content: "";
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.yh-mega-tab:hover,
.yh-mega-tab:focus-visible {
  color: var(--yh-ink) !important;
  background: var(--yh-white) !important;
}

.yh-mega-tab.is-active {
  color: var(--yh-primary) !important;
  background: var(--yh-white) !important;
}

.yh-mega-tab.is-active::after {
  background: var(--yh-primary);
}

.yh-mega-panels {
  padding: 17px 22px 22px;
}

.yh-mega-panel[hidden] {
  display: none !important;
}

.yh-mega-parent-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--yh-ink) !important;
  font-size: 13px;
  font-weight: 900;
}

.yh-mega-parent-link i {
  color: var(--yh-primary);
  font-size: 11px;
  transition: transform var(--yh-transition);
}

.yh-mega-parent-link:hover {
  color: var(--yh-primary) !important;
}

.yh-mega-parent-link:hover i {
  transform: translateX(-3px);
}

.yh-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 18px 22px;
  max-height: min(48vh, 410px);
  overflow-y: auto;
  padding-left: 4px;
}

.yh-mega-group {
  min-width: 0;
}

.yh-mega-group-title {
  display: block;
  min-height: 24px;
  margin-bottom: 7px;
  padding-right: 9px;
  border-right: 3px solid var(--yh-primary);
  color: var(--yh-ink) !important;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 24px;
}

.yh-mega-group-title:hover {
  color: var(--yh-primary) !important;
}

.yh-mega-group ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.yh-mega-group li a {
  display: block;
  overflow: hidden;
  padding: 4px 0;
  color: rgba(30, 98, 83, 0.75) !important;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yh-mega-group li a:hover,
.yh-mega-group li a:focus-visible {
  padding-right: 4px;
  color: var(--yh-primary) !important;
}

/* ==========================================================================
   7. INTERACTIVE MOBILE DRAWER & NAVIGATION
   ========================================================================== */
.yh-mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid rgba(30, 98, 83, 0.17) !important;
  border-radius: var(--yh-radius-sm);
  color: var(--yh-ink);
  background: var(--yh-white) !important;
  cursor: pointer;
}

.yh-mobile-menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  transition: transform var(--yh-transition), opacity var(--yh-transition);
}

.yh-mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.yh-mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.yh-mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Smooth faded overlays (No more display none jumpcuts) */
.yh-drawer-overlay {
  position: fixed;
  z-index: 1004;
  inset: 0;
  display: block !important;
  pointer-events: none;
  background: rgba(30, 98, 83, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), visibility 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.yh-drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* High-performance mobile drawer with GPU Acceleration */
.yh-mobile-drawer {
  position: fixed;
  z-index: 1005;
  top: 0;
  right: 0;
  width: min(89vw, 390px);
  height: 100vh;
  height: 100dvh;
  overflow: hidden auto;
  border-left: 1px solid rgba(30, 98, 83, 0.17);
  background: var(--yh-white);
  box-shadow: -14px 0 35px rgba(30, 98, 83, 0.17);
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(103%, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
}

.yh-mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.yh-drawer-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid var(--yh-line);
  color: var(--yh-ink);
  background: var(--yh-white);
  font-size: 14px;
}

.yh-drawer-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 98, 83, 0.18) !important;
  border-radius: var(--yh-radius-sm);
  color: var(--yh-ink) !important;
  background: var(--yh-white) !important;
  cursor: pointer;
  transition: all var(--yh-transition);
}

.yh-drawer-close:hover,
.yh-drawer-close:focus-visible {
  border-color: var(--yh-primary) !important;
  color: var(--yh-primary) !important;
}

.yh-drawer-content {
  padding: 9px 15px 25px;
}

.yh-drawer-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 8px;
  color: var(--yh-ink);
  font-size: 13px;
  font-weight: 900;
}

.yh-drawer-section-title i {
  color: var(--yh-primary);
}

.yh-mobile-category {
  border-bottom: 1px solid rgba(30, 98, 83, 0.12);
}

.yh-mobile-category summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--yh-text);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.yh-mobile-category summary::-webkit-details-marker {
  display: none;
}

.yh-mobile-category summary i {
  color: rgba(30, 98, 83, 0.65);
  font-size: 11px;
  transition: transform var(--yh-transition);
}

.yh-mobile-category[open] summary i {
  transform: rotate(180deg);
}

.yh-mobile-category-content {
  padding: 0 8px 12px;
}

.yh-mobile-all-link {
  display: block;
  margin-bottom: 7px;
  color: var(--yh-primary) !important;
  font-size: 12px;
  font-weight: 800;
}

.yh-mobile-category-content ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.yh-mobile-child-link {
  display: block;
  padding: 6px 0;
  color: var(--yh-ink) !important;
  font-size: 12px;
  font-weight: 700;
}

.yh-mobile-grandchildren {
  margin: 0 8px 4px 0 !important;
  padding: 0 10px 0 0 !important;
  border-right: 1px solid rgba(30, 98, 83, 0.16);
}

.yh-mobile-grandchildren a {
  display: block;
  padding: 4px 0;
  color: rgba(30, 98, 83, 0.76) !important;
  font-size: 11.5px;
}

.yh-mobile-grandchildren a:hover,
.yh-mobile-child-link:hover,
.yh-mobile-all-link:hover {
  color: var(--yh-primary) !important;
}

.yh-main-nav--mobile {
  display: block;
}

.yh-main-nav--mobile ul {
  display: block !important;
}

.yh-main-nav--mobile li {
  display: block;
  border-bottom: 1px solid rgba(30, 98, 83, 0.12);
}

.yh-main-nav--mobile a {
  min-height: 45px;
  display: flex !important;
  padding: 0 3px;
  font-size: 13px !important;
}

.yh-main-nav--mobile a::after {
  display: none;
}

html.yh-scroll-lock,
html.yh-scroll-lock body {
  overflow: hidden !important;
}

/* ==========================================================================
   8. SYSTEM RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

/* --- Category Tree Layout (Desktop min-width: 900px) --- */
@media (min-width: 900px) {
  .yh-mega-menu {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    min-height: 350px;
    max-height: min(68vh, 560px);
  }
  .yh-mega-tabs {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    overflow: auto;
    border-bottom: 0;
    border-left: 1px solid var(--yh-line);
    background: rgba(30, 98, 83, 0.035);
  }
  .yh-mega-tab {
    width: 100%;
    min-height: 68px;
    flex: 0 0 auto;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(30, 98, 83, 0.09) !important;
    color: var(--yh-ink) !important;
    font-size: 14px !important;
    font-weight: 900;
    text-align: right;
    white-space: normal;
  }
  .yh-mega-tab::after {
    top: 16px;
    right: auto;
    bottom: 16px;
    left: -1px;
    width: 3px;
    height: auto;
    border-radius: 4px 0 0 4px;
  }
  .yh-mega-tab:hover,
  .yh-mega-tab:focus-visible {
    color: var(--yh-primary) !important;
    background: rgba(194, 119, 61, 0.08) !important;
  }
  .yh-mega-tab.is-active {
    color: var(--yh-white) !important;
    background: var(--yh-primary) !important;
  }
  .yh-mega-tab.is-active::after {
    background: var(--yh-ink);
  }
  .yh-mega-panels {
    min-width: 0;
    overflow: auto;
    padding: 22px 25px 27px;
  }
  .yh-mega-parent-link {
    margin-bottom: 18px;
    font-size: 14px;
  }
  .yh-mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    gap: 22px 28px;
  }
  .yh-mega-group-title {
    min-height: 28px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 28px;
  }
  .yh-mega-group li a {
    padding: 4px 0;
    font-size: 12.5px;
    white-space: normal;
  }
}

/* --- Large Tablet Mode (max-width: 1100px) --- */
@media (max-width: 1100px) {
  .yh-header-main-inner {
    gap: 15px;
  }
  .yh-site-logo img {
    max-width: 150px;
  }
  .yh-main-nav a {
    padding-inline: 8px;
    font-size: 11.5px !important;
  }
  .yh-main-nav a i {
    display: none;
  }
  .yh-mega-menu {
    width: min(880px, calc(100vw - 28px));
  }
}

/* --- Small Tablet Mode (max-width: 899px) --- */
@media (max-width: 899px) {
  .yh-site-logo {
    min-width: 98px;
  }
  .yh-site-logo img {
    max-width: 126px;
    max-height: 36px;
  }
  .yh-header-main-inner {
    gap: 11px;
  }
  .yh-navigation-inner {
    gap: 9px;
  }
  .yh-main-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .yh-main-nav::-webkit-scrollbar {
    display: none;
  }
  .yh-main-nav a {
    padding-inline: 7px;
  }
  .yh-mega-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }
}

/* --- Mobile / Tablet Navigation Mode (max-width: 899px) --- */
@media (max-width: 899px) {
  .yh-promo-content {
    min-height: 35px;
    font-size: 11px;
  }
  .yh-promo-content i {
    font-size: 13px;
  }
  .yh-header-main-inner {
    min-height: auto;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding-block: 9px 10px;
  }
  .yh-mobile-menu-toggle {
    display: inline-flex;
    order: 1;
  }
  .yh-site-logo {
    order: 2;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  .yh-site-logo img {
    max-width: 135px;
    max-height: 34px;
  }
  .yh-site-name {
    font-size: 16px;
  }
  .yh-header-actions {
    order: 3;
    margin-inline-start: 0;
    gap: 4px;
  }
  .yh-action-link {
    width: 44px;
    height: 44px;
  }
  .yh-search-wrap {
    order: 4;
    width: 100%;
    max-width: none;
    flex: 1 0 100%;
  }
  .yh-search-results {
    max-height: min(360px, 52vh);
  }
  .yh-search-form {
    min-height: 43px;
  }
  .yh-search-input {
    padding-inline: 12px !important;
    font-size: 16px !important;
    line-height: 41px !important;
  }
  .yh-search-submit {
    width: 43px;
    min-width: 43px;
    min-height: 41px;
  }
  .yh-navigation-bar,
  .yh-category-menu--desktop {
    display: none !important;
  }
}

/* --- Mobile Compact Mode (max-width: 380px) --- */
@media (max-width: 380px) {
  .yh-header-container {
    padding-inline: 10px;
  }
  .yh-header-main-inner {
    gap: 7px;
  }
  .yh-site-logo img {
    max-width: 104px;
  }
  .yh-site-name {
    font-size: 14px;
  }
  .yh-action-link,
  .yh-mobile-menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .yh-header-actions {
    gap: 3px;
  }
  .yh-cart-count {
    top: -6px;
    left: -5px;
  }
}

/* ==========================================================================
   9. SYSTEM ACCESS & HARDWARE CONTROLS
   ========================================================================== */
.yh-header-shell :focus-visible {
  outline: 2px solid var(--yh-primary) !important;
  outline-offset: 2px;
}

.yh-header-shell .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .yh-header-shell *,
  .yh-header-shell *::before,
  .yh-header-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
