/* ==========================================================================
   Tiki Blog header — promo strip + Tiki.vn bar + blue TikiBlog bar
   (Figma "D-Header" 1440px: strip 42px / tiki bar 88px / blog bar 72px)
   ========================================================================== */

.amlab-tk-header { font-family: var(--wp--preset--font-family--inter); letter-spacing: -0.02em; }
.amlab-tk-header a { color: inherit; text-decoration: none; }
.amlab-tk-header img { display: block; }
.amlab-tk-header ul { list-style: none; margin: 0; padding: 0; }

/* ----- 1. Promo strip ----- */
.amlab-tk-promo {
	display: flex; align-items: center; justify-content: center; gap: 4px;
	padding: 12px 16px; background: #effff4;
	color: #00ab56; font-size: 12px; font-weight: 600; line-height: 18px;
}

/* ----- 2. Tiki.vn bar ----- */
.amlab-tk-bar { background: #fff; padding: 8px 0; }
.amlab-tk-bar__in { display: flex; gap: 48px; align-items: flex-start; width: min(100%, 1440px); margin: 0 auto; padding: 0 24px; }
.amlab-tk-bar__logo { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.amlab-tk-bar__logo span { margin-top: 7px; font-size: 14px; line-height: 16px; font-weight: 600; color: #003ea1; }
.amlab-tk-bar__main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.amlab-tk-bar__row { display: flex; align-items: center; }
.amlab-tk-bar__row--links { justify-content: space-between; align-items: flex-start; }

.amlab-tk-search { flex: 1 1 0; min-width: 0; display: flex; align-items: center; height: 40px; border: 1px solid #dddde3; border-radius: 8px; overflow: hidden; }
.amlab-tk-search__icon { margin-left: 18px; flex: 0 0 auto; }
.amlab-tk-search__input { flex: 1 1 0; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 8px; font: inherit; font-size: 14px; color: #27272a; background: #fff; }
.amlab-tk-search__input::placeholder { color: #808089; }
.amlab-tk-search__btn { flex: 0 0 92px; height: 38px; border: 0; border-left: 1px solid #dddde3; background: #fff; color: #0a68ff; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; border-radius: 0; }
.amlab-tk-search__btn:hover { background: #f2f7ff; }

.amlab-tk-account { display: flex; align-items: center; padding-left: 48px; flex: 0 0 auto; }
.amlab-tk-account__item { display: flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 8px; font-size: 14px; line-height: 21px; color: #808089; }
.amlab-tk-account__item:hover { background: #f2f7ff; color: #27272a; }
.amlab-tk-account__cart { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 24px; border-radius: 8px; }
.amlab-tk-account__cart::before { content: ""; position: absolute; left: -12px; top: 10px; width: 1px; height: 20px; background: #ebebf0; }
.amlab-tk-account__badge { position: absolute; top: -4px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff424f; color: #fff; font-size: 10px; line-height: 16px; font-weight: 700; text-align: center; }

.amlab-tk-quick { display: flex; flex-wrap: wrap; gap: 0 12px; height: 24px; overflow: hidden; }
.amlab-tk-quick a { font-size: 14px; line-height: 21px; color: #808089; }
.amlab-tk-quick a:hover { color: #27272a; }
.amlab-tk-deliver { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 14px; line-height: 21px; color: #808089; }
.amlab-tk-deliver a { color: #27272a; font-weight: 500; text-decoration: underline; text-underline-position: from-font; }

/* ----- 3. Blog bar ----- */
.amlab-tk-blogbar { background: #3381ff; color: #fff; }
.amlab-tk-blogbar__in { display: flex; align-items: center; gap: 16px; height: 72px; width: min(100%, 1440px); margin: 0 auto; padding: 0 24px; }
.amlab-tk-blogbar__logo { flex: 0 0 auto; }
.amlab-tk-blogbar__logo img { width: 100px; height: auto; }
.amlab-tk-blogbar__nav { flex: 1 1 0; min-width: 0; padding: 0 14px; }
.amlab-tk-blogbar__toggle { display: none; }

.amlab-tk-nav { display: flex; align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.amlab-tk-nav::-webkit-scrollbar { display: none; }
.amlab-tk-nav__item { position: relative; flex: 0 0 auto; }
.amlab-tk-nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px; border-radius: 3000px; font-size: 14px; line-height: 1.3; font-weight: 600; white-space: nowrap; }
.amlab-tk-nav__link:hover, .amlab-tk-nav__item.is-active > .amlab-tk-nav__link { background: rgba(255, 255, 255, 0.16); }
.amlab-tk-nav__chev { transition: transform 0.2s ease; }
.amlab-tk-nav__item:hover .amlab-tk-nav__chev, .amlab-tk-nav__item.is-open .amlab-tk-nav__chev { transform: rotate(180deg); }
.amlab-tk-nav__sub {
	position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px;
	padding: 8px; border-radius: 12px; background: #fff; color: #27272a;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.amlab-tk-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.amlab-tk-nav__item:hover > .amlab-tk-nav__sub, .amlab-tk-nav__item.is-open > .amlab-tk-nav__sub { opacity: 1; visibility: visible; transform: none; }
.amlab-tk-nav__sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 1.4; }
.amlab-tk-nav__sub a:hover { background: #f2f7ff; color: #0a68ff; }

.amlab-tk-blogsearch { flex: 0 0 240px; display: flex; align-items: center; justify-content: space-between; height: 40px; padding-left: 16px; border-radius: 30px; background: #fff; border: 0.4px solid #fff; overflow: hidden; }
.amlab-tk-blogsearch__input { flex: 1 1 0; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 12px; color: #27272a; background: transparent; }
.amlab-tk-blogsearch__input::placeholder { color: #737373; }
.amlab-tk-blogsearch__btn { flex: 0 0 40px; height: 40px; border: 0; border-radius: 999px; background: #0a68ff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.amlab-tk-blogsearch__btn:hover { background: #0b74e5; }

/* ----- Sticky (advanced options toggle) ----- */
body:not(.amlab-sticky-off) .amlab-tk-blogbar { position: sticky; top: 0; z-index: 40; }
body.admin-bar:not(.amlab-sticky-off) .amlab-tk-blogbar { top: 32px; }
body.amlab-stuck.amlab-sticky-shadow .amlab-tk-blogbar { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); }

/* ----- Responsive ----- */
@media (max-width: 1023px) {
	.amlab-tk-bar__in { gap: 24px; }
	.amlab-tk-account { padding-left: 16px; }
	.amlab-tk-account__item { padding: 8px; }
	.amlab-tk-deliver, .amlab-tk-bar__logo span { display: none; }
}
@media (max-width: 781px) {
	.amlab-tk-promo { font-size: 11px; padding: 8px 12px; }
	.amlab-tk-bar__in { gap: 12px; padding: 0 16px; align-items: center; }
	.amlab-tk-bar__logo img { width: 64px; height: auto; }
	.amlab-tk-bar__row--links, .amlab-tk-account__item { display: none; }
	.amlab-tk-account { padding-left: 0; }
	.amlab-tk-account__cart { margin-left: 8px; }
	.amlab-tk-account__cart::before { display: none; }
	.amlab-tk-search__btn { flex-basis: 72px; }

	.amlab-tk-blogbar__in { height: auto; min-height: 56px; padding: 0 16px; gap: 8px; flex-wrap: wrap; }
	.amlab-tk-blogbar__logo img { width: 84px; }
	.amlab-tk-blogbar__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; margin-left: auto; padding: 8px; border: 0; background: transparent; cursor: pointer; order: 3; }
	.amlab-tk-blogbar__toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; }
	.amlab-tk-blogsearch { flex: 0 0 auto; width: 40px; padding-left: 0; order: 2; }
	.amlab-tk-blogsearch__input { display: none; }
	.amlab-tk-blogbar__nav { display: none; flex: 1 0 100%; order: 4; padding: 0 0 8px; }
	.amlab-tk-blogbar__nav.is-open { display: block; }
	.amlab-tk-nav { flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; }
	.amlab-tk-nav__link { justify-content: space-between; border-radius: 8px; }
	.amlab-tk-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; background: rgba(255, 255, 255, 0.12); color: #fff; margin: 2px 0 6px; }
	.amlab-tk-nav__item.is-open > .amlab-tk-nav__sub { display: block; }
	.amlab-tk-nav__sub a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
	body.admin-bar:not(.amlab-sticky-off) .amlab-tk-blogbar { top: 46px; }
}
