/* Classic TaLim Default header (measured from the classic storefront, 29 Oct 2026). */
.tt-header { padding: 14px 24px; background: var(--tt-header-bg); color: var(--tt-header-fg); }
.tt-header--border { box-shadow: inset 0 -1px 0 #ececee; }
/* sticky on the section wrapper: an inner box can only stick inside its own (same-height) parent */
.tt-section:has(> .tt-header--sticky-always) { position: sticky; top: 0; z-index: 20; }
.tt-header__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; width: 100%; max-width: 1320px; margin: 0 auto; }
.tt-header__logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.tt-header__logo-img { height: var(--tt-logo-height); width: auto; }
.tt-header__brand-img { display: block; width: auto; max-width: 220px; object-fit: contain; border-radius: 8px; }
.tt-header__shop-name { font-size: 20px; font-weight: 800; line-height: 1.5; letter-spacing: -0.02em; white-space: nowrap; }
.tt-header__search { position: relative; display: flex; align-items: center; gap: 9px; width: 44%; max-width: 520px; height: 40px; margin: 0; padding: 0 14px; background: var(--tt-header-search-bg); border-radius: 6px; }
.tt-header__search-icon { width: 18px; height: 18px; stroke: #9aa3ad; stroke-width: 2; }
.tt-header__search-input { flex: 1 1 auto; min-width: 0; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; line-height: normal; outline: none; }
.tt-header__actions { display: flex; align-items: center; gap: 12px; }
.tt-header__action { position: relative; display: flex; align-items: center; color: inherit; line-height: 0; }
.tt-header__action--cart { margin-right: 10px; }
.tt-header__icon-wish { width: 22px; height: 22px; stroke-width: 2; }
.tt-header__icon-cart { width: 23px; height: 23px; stroke-width: 2; }
.tt-header__icon-account { width: 19px; height: 19px; stroke-width: 2; }
.tt-header__icon-menu { width: 26px; height: 26px; stroke-width: 2; }
.tt-header__badge { position: absolute; top: -8px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--tt-header-badge); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; }
.tt-header__account { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid #f3f4f8; border-radius: 6px; color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.tt-header__menu-toggle { display: none; padding: 0; border: 0; background: none; color: inherit; line-height: 0; cursor: pointer; }
@media (max-width: 640px) {
  .tt-header__shop-name { font-size: 16px; }
  .tt-header__search { order: 99; width: 100%; max-width: none; margin-top: 4px; background: #f3f4f8; }
  .tt-header__action--wish, .tt-header__account { display: none; }
  .tt-header__menu-toggle { display: flex; margin-left: 6px; }
}
/* phone menu drawer — the classic right-hand panel (measured 29 Oct 2026) */
.tt-header__overlay { z-index: 190; background: rgba(10,22,40,.42); }
.tt-header__drawer { z-index: 200; display: flex; flex-direction: column; width: 300px; max-width: 84vw; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); background: #ffffff; color: #0A1628; border: 0; box-shadow: -10px 0 44px rgba(10,22,40,0.18); overscroll-behavior: contain; transition: transform .34s cubic-bezier(.32,.72,0,1); }
.tt-header__drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; padding-bottom: 14px; box-shadow: inset 0 -1px 0 #EEF0F3; }
.tt-header__drawer-brand { margin: 0; color: #0A1628; font-size: 17px; font-weight: 800; line-height: 1.5; letter-spacing: -0.02em; }
.tt-header__drawer-close { display: inline-flex; padding: 0; border: 0; background: none; color: #5A6B7B; line-height: 0; cursor: pointer; }
.tt-header__drawer-x { width: 23px; height: 23px; stroke-width: 2; }
.tt-header__drawer-menu { margin: 0; padding: 0; list-style: none; }
.tt-header__drawer-menu ul { margin: 0; padding: 0 0 8px 12px; list-style: none; }
.tt-header__drawer-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; box-shadow: inset 0 -1px 0 #EEF0F3; color: #0A1628; font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; list-style: none; }
.tt-header__drawer-link::-webkit-details-marker { display: none; }
.tt-header__drawer-sublink { display: block; padding: 10px 0; color: #0A1628; font-size: 15px; font-weight: 600; text-decoration: none; }
.tt-header__chev { flex-shrink: 0; width: 18px; height: 18px; color: #B4BCC7; stroke-width: 2; transition: transform .15s; }
details[open] > summary .tt-header__chev { transform: rotate(180deg); }
.tt-header__drawer-bottom { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; }
.tt-header__drawer-account { box-sizing: border-box; display: flex; flex-grow: 1; justify-content: center; align-items: center; gap: 9px; height: 48px; border: 1px solid #E6E8EC; border-radius: 8px; color: #0A1628; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.tt-header__drawer-account span { line-height: 1.5; }
.tt-header__drawer-user { width: 20px; height: 20px; stroke-width: 2; }
.tt-header__drawer-icon { position: relative; display: flex; flex-shrink: 0; justify-content: center; align-items: center; width: 48px; height: 48px; color: #0A1628; }
.tt-header__drawer-ico { width: 23px; height: 23px; stroke-width: 2; }
.tt-header__drawer-badge { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 4px; background: #D6006E; border-radius: 999px; color: #ffffff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; }
/* predictive search list (assets/components/predictive-search.js) */
.tt-psearch { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 70vh; overflow-y: auto; padding: 6px 0; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 12px 32px -12px rgba(0,0,0,0.25); color: #14171f; }
.tt-psearch[hidden] { display: none; }
.tt-psearch__head { margin: 6px 14px 4px; color: #6b7280; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tt-psearch__row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: inherit; font-size: 14px; text-decoration: none; }
.tt-psearch__row:hover, .tt-psearch__row.is-hot { background: #f4f4f5; }
.tt-psearch__row img, .tt-psearch__noimg { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #f4f4f5; }
.tt-psearch__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-psearch__price { flex: 0 0 auto; font-weight: 600; }
.tt-psearch__all { border-top: 1px solid #f0f1f3; margin-top: 4px; font-weight: 600; }
.tt-psearch__empty { margin: 8px 14px; color: #6b7280; font-size: 14px; }
