/* ============================================================
   HEADER — service strip, brand-colour masthead, white category bar
   ============================================================ */

/* Service strip */
.hs-strip { background: var(--hs-brand-dark); color: rgba(255,255,255,.92); font-size: 12.5px; }
.hs-strip__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; }
.hs-strip__perks { display: flex; align-items: center; gap: 22px; min-width: 0; }
.hs-strip__perks span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hs-strip__perks svg { color: var(--hs-accent-light); }
.hs-strip__links { display: flex; gap: 18px; flex-shrink: 0; }
.hs-strip__links a { color: rgba(255,255,255,.92); }
.hs-strip__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Sticky block */
.hs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .2s;
}
.hs-header.is-stuck { box-shadow: 0 6px 20px rgba(20, 30, 45, .12); }
.admin-bar .hs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hs-header { top: 0; } }

.hs-main { background: var(--hs-brand); color: #fff; }
.hs-main__in { display: flex; align-items: center; gap: 26px; height: 74px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--hs-ink); }
.brand:hover { color: var(--hs-ink); }
.brand .brand__mark { width: auto; height: 38px; max-width: none; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 22px; font-weight: 800; letter-spacing: .06em; }
.brand__tag {
  margin-top: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--hs-brand);
}
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__tag { color: var(--hs-accent-light); }

/* Search pill */
.hs-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 4px;
  border-radius: var(--pill);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.hs-search:focus-within { box-shadow: 0 0 0 3px var(--hs-accent-light); }
.hs-search .hs-search__field {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0 14px 0 18px;
  border: 0 !important;
  border-radius: var(--pill);
  background: transparent;
  font-size: 15px;
  color: var(--hs-ink);
  box-shadow: none !important;
}
.hs-search .hs-search__field::placeholder { color: var(--hs-gray); }
.hs-search .hs-search__field::-webkit-search-cancel-button { display: none; }
.hs-search__go {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hs-accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s, transform .15s;
}
.hs-search__go:hover { background: var(--hs-accent-dark); transform: scale(1.05); }
.hs-search__go svg { stroke-width: 2.3; }

/* Tools */
.hs-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hs-tool {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 66px;
  padding: 6px 8px;
  border-radius: var(--r-2);
  color: #fff;
  transition: background-color .15s;
}
.hs-tool:hover { background: rgba(255,255,255,.14); color: #fff; }
.hs-tool__ico { position: relative; display: inline-flex; }
.hs-tool__l { font-size: 12px; font-weight: 700; line-height: 1.1; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-tool__total, .hs-tool__total .amount { font-weight: 800; }

.hs-tool__badge,
.hs-tool__dot {
  position: absolute;
  top: -7px;
  right: -11px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--pill);
  background: var(--hs-accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--hs-brand);
}
.hs-tool__dot[data-count="0"] { display: none; }
.hs-tool__badge.is-bumped { animation: hs-bump .45s ease; }
@keyframes hs-bump { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }

.hs-icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--hs-ink);
  flex-shrink: 0;
}
.hs-icon-btn:hover { background: var(--hs-tint); }
.hs-main .hs-icon-btn { color: #fff; }
.hs-main .hs-icon-btn:hover { background: rgba(255,255,255,.14); }

.hs-only-mobile { display: none; }
.hs-msearch { display: none; }

/* White category bar */
.hs-nav { background: #fff; border-bottom: 1px solid var(--hs-line); }
.hs-nav__in { display: flex; align-items: center; gap: 10px; height: 50px; }
.hs-nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1 1 auto;
}
.hs-nav__links::-webkit-scrollbar { display: none; }
.hs-nav__links a {
  display: block;
  padding: 7px 13px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--hs-ink);
  transition: background-color .15s, color .15s;
}
.hs-nav__links a:hover { background: var(--hs-brand-50); color: var(--hs-brand-dark); }
.hs-nav__links a[aria-current] { background: var(--hs-brand-50); color: var(--hs-brand-dark); }
.hs-nav__deal { color: var(--hs-accent-dark) !important; }
.hs-nav__deal:hover { background: var(--hs-accent-50) !important; }
.hs-nav__help {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--hs-ink-2);
}
.hs-nav__help strong { color: var(--hs-ink); font-weight: 700; }
.hs-nav__help-ico {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--hs-accent-50); color: var(--hs-accent-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.hs-nav__help:hover strong { color: var(--hs-brand); }

.hs-dept { position: relative; flex-shrink: 0; }
.hs-dept__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--pill);
  background: var(--hs-brand-50);
  color: var(--hs-brand-dark);
  font-size: 14px;
  font-weight: 800;
  transition: background-color .15s;
}
.hs-dept__btn:hover,
.hs-dept.is-open .hs-dept__btn { background: var(--hs-brand-100); }
.hs-dept__btn svg:last-child { transition: transform .15s; }
.hs-dept.is-open .hs-dept__btn svg:last-child { transform: rotate(180deg); }

.hs-dept__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  width: min(1060px, calc(100vw - 2 * var(--gutter)));
  padding: 24px 26px 18px;
  background: #fff;
  color: var(--hs-ink);
  border-radius: var(--r-3);
  box-shadow: var(--sh-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.hs-dept.is-open .hs-dept__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .15s, transform .15s;
}
.hs-dept__cols { display: grid; grid-template-columns: 1.7fr .8fr 1.3fr 1fr 1fr; gap: 28px; }
.hs-dept__col:first-child ul,
.hs-dept__col:nth-child(3) ul { columns: 2; column-gap: 18px; }
.hs-dept__t { font-size: 15px; font-weight: 800; color: var(--hs-ink); margin-bottom: 8px; }
.hs-dept__col ul { list-style: none; }
.hs-dept__col li { break-inside: avoid; }
.hs-dept__col a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--hs-ink-2);
}
.hs-dept__col a:hover { color: var(--hs-brand); }
.hs-dept__n { font-size: 12px; color: var(--hs-gray); font-weight: 500; }
.hs-dept__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: var(--pill);
  background: var(--hs-brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.hs-dept__all:hover { background: var(--hs-brand-dark); color: #fff; }

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 22, 32, .5);
  opacity: 0; transition: opacity .25s;
}
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 210;
  width: min(360px, 88vw);
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 12px 16px;
  background: var(--hs-brand);
}
.drawer__head .brand { color: #fff; }
.drawer__head .brand .brand__mark { height: 30px; filter: brightness(0) invert(1); }
.drawer__head .brand__name { font-size: 18px; }
.drawer__head .brand__tag { color: var(--hs-accent-light); }
.drawer__head .hs-icon-btn { color: #fff; }
.drawer__head .hs-icon-btn:hover { background: rgba(255,255,255,.14); }
.drawer__body { overflow-y: auto; flex: 1; padding-bottom: 24px; }
.drawer__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px; background: var(--hs-brand-50); }
.drawer__quick a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-2);
  background: #fff;
  font-size: 14px; font-weight: 700;
  color: var(--hs-ink);
}
.drawer__quick svg { color: var(--hs-brand); }
.drawer__section { border-top: 1px solid var(--hs-line); }
.drawer__toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-size: 15px; font-weight: 800;
  color: var(--hs-ink);
}
.drawer__toggle svg { transition: transform .2s; }
.drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer__panel { display: none; padding: 0 16px 12px; }
.drawer__panel.is-open { display: block; }
.drawer__sub { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; color: var(--hs-ink-2); }
.drawer__section--links { padding: 8px 0; }
.drawer__link { display: block; padding: 11px 16px; font-size: 15px; font-weight: 600; }
.drawer__link:hover, .drawer__sub:hover { color: var(--hs-brand); }

/* Add-to-cart confirmation */
.hs-added {
  position: fixed;
  z-index: 150;
  top: 168px;
  right: max(16px, calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: var(--r-3);
  box-shadow: var(--sh-pop);
  padding: 12px 16px 16px;
  animation: hs-drop .22s ease;
}
.hs-added[hidden] { display: none; }
@keyframes hs-drop { from { opacity: 0; transform: translateY(-8px); } }
.hs-added__head { display: flex; align-items: center; justify-content: space-between; }
.hs-added__ok { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--hs-green); }
.hs-added__item { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.hs-added__item img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-2); background: var(--hs-tint); }
.hs-added__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--hs-ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-added__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .hs-nav__help { display: none; }
  .hs-strip__opt { display: none; }
}

@media (max-width: 1023px) {
  .hs-strip__links { display: none; }
  .hs-strip__in { justify-content: center; height: 30px; }
  .hs-strip__perks { gap: 16px; font-size: 12px; }
  /* Only the coloured bar (logo, cart, search) stays pinned on phones. */
  .hs-header { display: contents; }
  .hs-main { position: sticky; top: 0; z-index: 100; }
  .hs-only-mobile { display: inline-flex; }
  .hs-main__in { height: 58px; gap: 6px; }
  .hs-main__in > .hs-search { display: none; }
  .hs-msearch { display: block; padding-bottom: 10px; }
  .hs-search { height: 42px; }
  .hs-search__go { width: 34px; height: 34px; }
  .brand .brand__mark { height: 30px; }
  .brand__name { font-size: 18px; }
  .brand__tag { font-size: 8px; margin-top: 4px; }
  .hs-tools { margin-left: auto; }
  .hs-tool { min-width: 0; padding: 6px; }
  .hs-tool__l { display: none; }
  .hs-tool--wish { display: none; }
  .hs-dept, .hs-nav__help { display: none; }
  .hs-nav__in { height: 48px; }
  .hs-nav__links { gap: 6px; }
  .hs-nav__links a { font-size: 13.5px; padding: 6px 12px; background: var(--hs-tint); }
  .hs-added { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
}

@media (max-width: 480px) {
  .hs-strip__perks span:nth-child(2) { display: none; }
  .brand__tag { display: none; }
}
