/* =====================================================================
   Promo strip
   ===================================================================== */
.tm-promo { background: var(--gold); color: var(--gold-ink); font-size: 13.5px; }
.tm-promo__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.tm-promo__msg { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tm-promo__msg strong { font-weight: 800; }
.tm-promo__links { display: flex; align-items: center; gap: 20px; list-style: none; font-weight: 600; }
.tm-promo__links li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tm-promo__links a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1100px) { .tm-promo__links li:nth-child(-n+2) { display: none; } }
@media (max-width: 760px) {
  .tm-promo__in { justify-content: center; min-height: 34px; text-align: center; }
  .tm-promo__links, .tm-promo__extra { display: none; }
}

/* =====================================================================
   Masthead
   ===================================================================== */
.tm-mast {
  position: sticky; top: 0; z-index: 100;
  background: var(--mast); color: #fff;
  transition: box-shadow .2s ease;
}
.tm-mast.is-stuck { box-shadow: 0 4px 18px rgba(0, 0, 0, .22); }
.tm-mast__in {
  display: flex; align-items: center; gap: 18px;
  height: var(--mast-h);
}
.tm-mast__menu {
  display: none;
  width: 42px; height: 42px; margin-left: -8px;
  border: 0; border-radius: 50%; background: transparent; color: #fff;
  align-items: center; justify-content: center;
}
.tm-mast__menu:hover { background: rgba(255, 255, 255, .1); }

.tm-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: #fff; }
.tm-logo:hover { color: #fff; }
.tm-logo .tm-logo__mark { width: 40px; height: 40px; flex-shrink: 0; }
.tm-logo__word { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.tm-logo__word i { font-style: normal; color: var(--gold); }
.tm-logo--dark { color: var(--ink); }
.tm-logo--dark:hover { color: var(--ink); }

.tm-shipto {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 7px 12px; border-radius: var(--pill);
  color: #fff; line-height: 1.15;
}
.tm-shipto { background: var(--navy-2); }
.tm-shipto:hover { background: var(--navy); color: #fff; }
.tm-shipto .tm-i { color: var(--gold); }
.tm-shipto small { display: block; font-size: 12px; opacity: .72; }
.tm-shipto strong { display: block; font-size: 14px; font-weight: 700; }

.tm-search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 820px; }
.tm-search input {
  width: 100%; height: 46px;
  padding: 0 58px 0 22px;
  border: 2px solid transparent; border-radius: var(--pill);
  background: #fff; color: var(--ink);
  font-size: 16px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tm-search input::placeholder { color: #74767c; }
.tm-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 194, 32, .45); }
.tm-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.tm-search__go {
  position: absolute; top: 4px; right: 4px;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  transition: background-color .15s ease;
}
.tm-search__go:hover { background: var(--navy-2); }

.tm-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.tm-tool {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 14px;
  color: #fff; line-height: 1.15;
}
.tm-tool:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tm-tool__ico { position: relative; display: inline-flex; }
.tm-tool__txt small { display: block; font-size: 12px; opacity: .72; }
.tm-tool__txt strong, .tm-tool__sub { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; }
.tm-tool__sub .woocommerce-Price-amount { font-weight: 700; }
.tm-tool__badge {
  position: absolute; top: -7px; right: -9px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; border: 2px solid var(--mast);
  background: var(--gold); color: var(--gold-ink);
  font-size: 11px; font-weight: 800; line-height: 15px; text-align: center;
}
.tm-tool__badge[data-count="0"] { display: none; }
.tm-tool__badge.is-bumped { animation: tm-bump .45s ease; }
@keyframes tm-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* =====================================================================
   Department bar
   ===================================================================== */
.tm-sub { background: var(--mast-2); color: var(--ink); position: relative; z-index: 90; border-bottom: 1px solid var(--line); }
.tm-sub__in { display: flex; align-items: center; gap: 6px; height: 50px; }
.tm-dept { position: relative; flex-shrink: 0; }
.tm-dept__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 12px;
  border: 0; border-radius: var(--pill);
  background: transparent; color: var(--ink);
  font-size: 14.5px; font-weight: 700;
}
.tm-dept__btn:hover, .tm-dept.is-open .tm-dept__btn { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-3); }
.tm-dept__btn .tm-i:last-child { transition: transform .2s ease; }
.tm-dept.is-open .tm-dept__btn .tm-i:last-child { transform: rotate(180deg); }

.tm-dept__panel {
  position: absolute; top: calc(100% + 7px); left: 0;
  width: min(1060px, calc(100vw - 48px));
  padding: 22px 24px 18px;
  border-radius: var(--r-lg);
  background: #fff; color: var(--ink);
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.tm-dept.is-open .tm-dept__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease; }
.tm-dept__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.tm-dept__h { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tm-dept__col ul { list-style: none; }
.tm-dept__col a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500;
}
.tm-dept__col a:hover { background: var(--soft); }
.tm-dept__col em { font-style: normal; font-size: 13px; color: var(--faint); }
.tm-dept__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.tm-dept__foot span { display: inline-flex; align-items: center; gap: 6px; }

.tm-sub__links { display: flex; align-items: center; gap: 2px; list-style: none; min-width: 0; overflow: hidden; }
.tm-sub__links a {
  display: block; padding: 7px 12px; border-radius: var(--pill);
  font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--ink);
}
.tm-sub__links a:hover { background: var(--tint); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tm-sub__help {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto; flex-shrink: 0;
  padding: 7px 12px; border-radius: var(--pill);
  font-size: 14px; color: var(--ink-2);
}
.tm-sub__help:hover { background: var(--tint); color: var(--ink); }

@media (max-width: 1320px) {
  .tm-shipto { display: none; }
  .tm-sub__help span { display: none; }
}
@media (max-width: 1180px) {
  .tm-tool--saved .tm-tool__txt, .tm-tool--acct .tm-tool__txt { display: none; }
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 1000px) {
  :root { --mast-h: 60px; }
  .tm-sub { display: none; }
  .tm-mast {
    /* The whole masthead is sticky but parks its first row above the
       viewport: only the search row stays on screen while scrolling. */
    top: -60px;
  }
  .tm-mast__in {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "menu logo tools" "search search search";
    column-gap: 4px; row-gap: 0;
    height: auto; padding-bottom: 10px;
  }
  .tm-mast__menu { display: inline-flex; grid-area: menu; }
  .tm-logo { grid-area: logo; height: 60px; }
  .tm-logo .tm-logo__mark { width: 34px; height: 34px; }
  .tm-logo__word { font-size: 23px; }
  .tm-tools { grid-area: tools; }
  .tm-tool { padding: 8px; }
  .tm-tool__txt { display: none; }
  .tm-search { grid-area: search; max-width: none; }
  .tm-search input { height: 44px; }
  .tm-search__go { width: 36px; height: 36px; }
}
@media (max-width: 420px) {
  .tm-tool--saved { display: none; }
  .tm-logo__word { font-size: 22px; }
}

/* =====================================================================
   Drawer (phones)
   ===================================================================== */
.tm-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 300;
  width: min(88vw, 380px);
  display: flex; flex-direction: column;
  background: #fff; color: var(--ink);
  transform: translateX(-102%);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  box-shadow: var(--sh-3);
}
.tm-drawer.is-open { transform: none; }
.tm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.tm-drawer__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.tm-drawer__body { flex: 1; overflow-y: auto; padding: 8px 0 calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.tm-drawer__all { display: flex; align-items: center; gap: 10px; margin: 8px 16px 6px; padding: 13px 16px; border-radius: var(--r); background: var(--mast); color: #fff; font-weight: 700; }
.tm-drawer__all:hover { color: #fff; }
.tm-drawer__all .tm-i { color: var(--gold); }
.tm-drawer .tm-logo__word { color: var(--brand); }
.tm-drawer__grp { border-bottom: 1px solid var(--line-2); }
.tm-drawer__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 52px; padding: 0 18px; border: 0; background: none;
  font-size: 16px; font-weight: 700; text-align: left;
}
.tm-drawer__toggle > span { display: inline-flex; align-items: center; gap: 10px; }
.tm-drawer__toggle > .tm-i { transition: transform .2s; }
.tm-drawer__toggle[aria-expanded="true"] > .tm-i { transform: rotate(180deg); }
.tm-drawer__list { display: none; list-style: none; padding: 0 10px 10px; }
.tm-drawer__list.is-open { display: block; }
.tm-drawer__list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px 0 38px; border-radius: var(--r-sm); font-size: 15.5px; }
.tm-drawer__list a:hover { background: var(--soft); }
.tm-drawer__list em { font-style: normal; font-size: 13px; color: var(--faint); }
.tm-drawer__help { list-style: none; padding: 12px 10px 0; }
.tm-drawer__help a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: var(--r-sm); font-size: 15.5px; color: var(--ink-2); }
.tm-drawer__help a:hover { background: var(--soft); }

/* =====================================================================
   Added-to-cart flyout
   ===================================================================== */
.tm-added {
  position: fixed; top: 96px; right: 24px; z-index: 400;
  width: 360px; padding: 16px;
  border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-3);
  animation: tm-pop .22s ease;
}
.tm-added[hidden] { display: none; }
@keyframes tm-pop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.tm-added__head { display: flex; align-items: center; justify-content: space-between; }
.tm-added__ok { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ok); }
.tm-added__x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.tm-added__item { display: flex; align-items: center; gap: 12px; margin: 12px 0 14px; font-size: 14.5px; line-height: 1.35; }
.tm-added__item img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-sm); background: var(--soft); flex-shrink: 0; }
.tm-added__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-added__btns .tm-btn { height: 44px; }
@media (max-width: 760px) {
  .tm-added { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; }
}
.tm-drawer[hidden] { display: none; }
.tm-tool--cart { gap: 15px; }

/* =====================================================================
   Big-box details
   ===================================================================== */
.tm-logo__word i { color: var(--gold); }
.tm-tool { border-radius: var(--pill); }
.tm-tool:hover { background: var(--navy-2); }
.tm-tool__txt small { opacity: .9; font-weight: 500; }
.tm-tool__badge { color: var(--ink); }
.tm-search input { height: 44px; border-width: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.tm-search input:focus { box-shadow: 0 0 0 3px rgba(255, 194, 32, .7); }
.tm-search__go { top: 4px; right: 4px; width: 36px; height: 36px; }
.tm-dept__btn { font-weight: 800; }
.tm-dept__panel { border: 1px solid var(--line); }
.tm-dept__col a:hover { background: var(--tint); }
.tm-dept__h { color: var(--brand-h); }
