/* ============================================================================
   UADepot — shared storefront shell (original design).
   Two-row full-bleed header: brand + search + account/bag/currency, then a
   centered department nav with hover mega-panels, plus a mobile drawer.
   Loaded AFTER uadepot.css; owns every .ua-shell / .ua-drawer / .ua-overlay
   rule. Page bodies keep their own containers.
   ========================================================================== */

/* Respect the hidden attribute on shell-injected panels/drawers. */
[hidden] { display: none !important; }

#ua-header { position: sticky; top: 0; z-index: 100; }

.ua-shell {
  background: #fff;
  border-bottom: 1px solid var(--border, #eef1f5);
  width: 100%;
}
.ua-shell-in {
  max-width: var(--container-max, 1320px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Row 1 ---------- */
.ua-row1 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.ua-burger {
  display: none;
  font-size: 20px;
  color: var(--text-dark, #0e0e11);
  padding: 6px;
}
.ua-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #111;
}
.ua-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #111;
  color: var(--gold, #d4af37);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  border-radius: 6px;
}
.ua-brand__word {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
  color: #111;
}
.ua-brand__image{display:block;width:auto;max-width:125px;height:36px;object-fit:contain}

/* Search — rectangular, outlined (not a pill) */
.ua-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 528px;
  width: 100%;
  margin: 0 auto;
  border: 1.5px solid #111;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px 0 14px;
  height: 44px;
}
.ua-search__icon { color: #111; font-size: 15px; }
.ua-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  height: 100%;
}
.ua-search__input::placeholder { color: #9aa0a6; }
.ua-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #eef1f5;
  color: #555;
  font-size: 12px;
}
.ua-search__clear[hidden] { display: none !important; }
.ua-search__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Search suggestions panel */
.ua-search__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-dark, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
  padding: 6px;
}
.ua-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.ua-search__item:hover, .ua-search__item.active { background: var(--bg-blue, #f2f6fc); }
.ua-search__item img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; background: #eef1f5; }
.ua-search__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ua-search__name { font-size: 13px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ua-search__brand { font-size: 12px; color: #6b7280; }
.ua-search__price { font-size: 13px; font-weight: 700; color: var(--primary, #00438B); }
.ua-search__empty { padding: 20px; text-align: center; color: #6b7280; font-size: 13px; }

/* Row 1 right actions */
.ua-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ua-act { position: relative; display: inline-flex; }
.ua-act__btn, .ua-act--plain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #111;
  text-decoration: none;
  padding: 4px;
  cursor: pointer;
}
.ua-act__icon { font-size: 19px; }
.ua-act__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.ua-act__txt small { font-size: 11px; color: #6b7280; font-weight: 400; }
.ua-act__txt b { font-size: 13px; font-weight: 700; }
.ua-act__caret { font-size: 10px; color: #6b7280; }
.ua-currency-note { padding: 7px 16px; text-align: center; background: #f1f5f9; color: #334155; font-size: 12px; line-height: 1.4; }
.ua-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red, #e60b09);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ha-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #111; color: var(--gold, #d4af37);
  font-size: 13px; font-weight: 700;
}

/* Small action menus (account / currency) */
.ua-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border-dark, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
  padding: 6px;
  z-index: 200;
}
.ua-menu a, .ua-menu button.ua-cur, .ua-menu button#uaLogoutBtn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #161616;
  text-decoration: none;
  background: none;
  border: none;
  border-radius: 7px;
  text-align: left;
}
.ua-menu a i, .ua-menu button i { width: 16px; color: #6b7280; }
.ua-menu a:hover, .ua-menu button:hover { background: var(--bg-blue, #f2f6fc); color: var(--primary, #00438B); }
.ua-menu__div { height: 1px; background: var(--border, #eef1f5); margin: 5px 4px; }
.ua-cur { justify-content: space-between; }
.ua-cur.is-active { background: var(--bg-blue, #f2f6fc); color: var(--primary, #00438B); font-weight: 700; }

/* ---------- Row 2 (department nav) ---------- */
.ua-row2 { border-top: 1px solid var(--border, #eef1f5); }
.ua-nav {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ua-drop { position: static; display: flex; align-items: stretch; }
.ua-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 4px 13px 14px;
  max-width: 190px;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
a.ua-nav__link { color: #222; }
.ua-nav__link:hover, .ua-drop:hover > a.ua-nav__link { color: var(--primary, #00438B); }
.ua-nav__link--all { color: #111; }
.ua-nav__caret { font-size: 9px; margin-left: 2px; }
.ua-nav__toggle {
  width: 25px;
  flex: none;
  padding: 0 8px 0 0;
  background: none;
  border: 0;
  color: #222;
  cursor: pointer;
  font-size: 9px;
}
.ua-nav__toggle:hover { color: var(--primary, #00438B); }
.ua-nav__plain .ua-nav__link { padding-right: 14px; }
.ua-nav__plain .ua-nav__link { color: var(--gold-dark, #b8860b); }

/* Mega panels */
.ua-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: calc(100vw - 32px);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-dark, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  padding: 18px 20px;
  z-index: 190;
}
.ua-panel--wide { width: min(1080px, calc(100vw - 32px)); min-width: 0; }
.ua-panel--wide .ua-panel__cols--3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.ua-panel--wide .ua-panel__col ul a { white-space: normal; }
.ua-panel__cols { display: flex; flex-direction: column; gap: 4px; }
.ua-panel__cols--2 { flex-direction: row; gap: 28px; }
.ua-panel__cols--3 { flex-direction: row; gap: 40px; }
.ua-panel__col h6 {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #9aa0a6; margin-bottom: 8px;
}
.ua-panel__col ul { list-style: none; margin: 0; padding: 0; }
.ua-panel__col ul a {
  display: block; padding: 6px 4px; font-size: 13.5px;
  color: #222; text-decoration: none; overflow-wrap: anywhere;
}
.ua-panel__col ul a:hover { color: var(--primary, #00438B); padding-left: 8px; }
.ua-panel__chips { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border, #eef1f5); }
.ua-panel__chips a { font-size: 13px; font-weight: 600; color: var(--primary, #00438B); text-decoration: none; }
.ua-panel__foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border, #eef1f5); }
.ua-panel__foot a { font-size: 13px; font-weight: 700; color: var(--primary, #00438B); text-decoration: none; }
.ua-panel__empty { font-size: 13px; color: #6b7280; padding: 4px; }

/* ---------- Mobile drawer ---------- */
.ua-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 190; opacity: 1;
}
.ua-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 320px; max-width: 86vw;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,.25);
  overflow-y: auto;
}
.ua-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border, #eef1f5);
}
.ua-drawer__close { font-size: 20px; color: #111; }
.ua-search--drawer { margin: 14px 16px 0; max-width: none; }
.ua-drawer__links { display: flex; flex-direction: column; padding: 10px 18px; border-bottom: 1px solid var(--border, #eef1f5); }
.ua-drawer__links a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 14px; font-weight: 600; color: #222; text-decoration: none;
}
.ua-drawer__body { padding: 8px 18px 24px; }
.ua-acc { border-bottom: 1px solid var(--border, #eef1f5); }
.ua-drawer__primary, .ua-acc__row > a {
  display: block;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ua-drawer__primary { border-bottom: 1px solid var(--border, #eef1f5); }
.ua-acc__row { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; }
.ua-acc__row > a { min-width: 0; flex: 1; }
.ua-acc__row > button { width: 32px; flex: none; background: none; border: 0; color: #6b7280; cursor: pointer; }
.ua-acc__row > button i { font-size: 11px; transition: transform .2s; }
.ua-acc.open .ua-acc__row > button i { transform: rotate(180deg); }
.ua-acc__head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 0; font-size: 14px; font-weight: 700; color: #111;
  background: none; border: none; cursor: pointer;
}
.ua-acc__head i { font-size: 11px; color: #6b7280; transition: transform .2s; }
.ua-acc.open .ua-acc__head i { transform: rotate(180deg); }
.ua-acc__body { display: none; }
.ua-acc.open .ua-acc__body { display: block; }
.ua-acc__body ul { list-style: none; margin: 0 0 10px; padding: 0; }
.ua-acc__body ul a { display: block; padding: 8px 4px; font-size: 13.5px; color: #333; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ua-row1 .ua-brand__word { display: none; }
}
@media (max-width: 991px) {
  .ua-row1 { grid-template-columns: auto auto minmax(0,1fr) auto; gap: 12px; }
  .ua-burger { display: inline-flex; }
  .ua-actions { gap: 12px; }
  .ua-act__txt small, .ua-act__txt b { display: none; }
  #uaCurrencyBtn .ua-act__txt b { display: block; }
  .ua-row2 { display: none; }
}
@media (max-width: 767px) {
  .ua-shell-in { padding: 0 14px; }
  .ua-row1 { grid-template-columns: auto auto 1fr; padding: 10px 0; }
  .ua-brand__word { display: none; }
  .ua-search { order: 3; grid-column: 1 / -1; margin: 0; }
  .ua-search__go { padding: 0 10px; }
}
