/* section-01-header: promo bar, top bar, main header, category nav — matched to the live reference (1440 / 390) */
.mk-promo { min-height: 41px; font-size: 14px; }
.mk-promo > .mk-container { padding-top: 0; padding-bottom: 0; gap: 18px; }
.mk-rating { gap: 4px; }
.mk-rating img { width: 18px; height: 18px; }
.mk-promo .mk-rating .fa-star, .mk-promo .mk-rating .fa-star-half-stroke { font-size: 15px; color: #F5B301; margin-left: 1px; }
.mk-rating i:first-of-type { margin-left: 4px; }

.mk-topbar { min-height: 34px; border-bottom: 1px solid #D5D5D3; }
.mk-topbar > .mk-container { min-height: 33px; padding-top: 0; padding-bottom: 0; }
.mk-topbar span, .mk-topbar a { display: inline-flex; align-items: center; }
.mk-topbar nav { gap: 26px; }
.mk-topbar .mk-tb-ico { display: block; flex: none; margin-right: 10px; object-fit: contain; }
.mk-topbar a.mk-red .mk-tb-ico { margin-right: 13px; }
.mk-topbar a[href*="#sav"] .mk-tb-ico { margin-right: 12px; }
.mk-topbar a:not(.mk-red):not([href*="#sav"]) .mk-tb-ico { margin-right: 8px; }

.mk-header .mk-header-main { padding: 0; min-height: 111px; gap: 0; }
.mk-header .mk-logo img { width: 282px; height: 41px; }
.mk-header .mk-header-main .mk-search { flex: 0 1 629px; max-width: 629px; margin-left: 28px; }
.mk-header .mk-search .input { background: #E6E6E6; height: 42px; min-height: 42px; font-size: 16px; padding-left: 12px; border-radius: 5px 0 0 5px; }
.mk-header .mk-search .input::placeholder { color: #757575; }
/* iOS Safari draws type=search as a native pill (searchfield appearance ignores border-radius): force a plain box */
.mk-header .mk-search .input { -webkit-appearance: none; appearance: none; box-sizing: border-box; margin: 0; outline-offset: 0; }
.mk-header .mk-search .input::-webkit-search-decoration, .mk-header .mk-search .input::-webkit-search-results-decoration { -webkit-appearance: none; }
.mk-header .mk-search .btn { -webkit-appearance: none; appearance: none; margin: 0; }
/* DaisyUI .join-item:focus sets isolation:isolate: the field was lifted over the button (+1px wider, text re-rendered) on click */
.mk-header .mk-search .join-item:focus, .mk-header .mk-search .join-item:focus-visible { isolation: auto; z-index: auto; }
.mk-header .mk-search .btn { background: #565656; width: 48px; height: 42px; min-height: 42px; border-radius: 0 5px 5px 0; font-size: 20px; }
.mk-header .mk-icons { gap: 30px; margin-left: auto; }
.mk-header .mk-icon { gap: 12px; color: #565656; font-size: 13px; line-height: 16px; white-space: nowrap; }
.mk-header .mk-icon .mk-ico { width: auto; height: 38px; border: 0; align-items: flex-end; }
.mk-header .mk-icon .mk-ico img { display: block; }
/* routine 1: account - wishlist - cart, counters stuck to the icon corner, hidden at 0 */
.mk-header .mk-icon-wish .mk-ico { font-size: 31px; line-height: 1; color: #565656; padding-bottom: 1px; }
.mk-header .mk-badge { top: 0; right: -3px; min-width: 19px; height: 19px; padding: 0 4px; border: 0; background: #D7323C; font-size: 12px; line-height: 1; }
.mk-header .mk-icon-wish .mk-badge { top: -2px; right: -9px; }
.mk-header .mk-badge.mk-zero { display: none; }
.mk-header .mk-icon span.hidden.lg\:inline { margin-top: 0; }

.mk-nav > .mk-container { max-width: 1328px; padding: 0 0 0 16px; }
.mk-nav li.mk-nav-cat { display: none; }
.mk-nav a { height: 68px; padding: 0 14px; gap: 14px; font-size: 16px; font-weight: 700; }
.mk-nav li:first-child + li { flex: 0 0 146px; }
.mk-nav .mk-nav-hot { background: #D7323C; padding: 0; }
.mk-nav .mk-nav-last { background: #313130; padding: 0 15px 0 12px; }
.mk-nav li:last-child { flex: 0 0 131px; }
.mk-nav .mk-cat-svg { width: 22px; height: 27px; flex: none; fill: none; stroke: #E20612; stroke-width: 1; }
.mk-nav .mk-cat-img { flex: none; height: 25px; width: auto; }
.mk-nav .mk-chev { width: 13px; height: 8px; flex: none; margin-left: 11px; fill: none; stroke: #fff; stroke-width: 2.4; }

@media (min-width: 1024px) {
  .mk-promo > .mk-container, .mk-topbar > .mk-container, .mk-header > .mk-container { max-width: 1280px; padding-left: 7px; padding-right: 16px; }
}

@media (max-width: 1023px) {
  .mk-promo { min-height: 35px; font-size: 14px; }
  .mk-header > .mk-container { padding: 0; max-width: none; }
  .mk-header .mk-header-main { display: grid; grid-template-columns: 47px minmax(0, 1fr) auto; grid-template-rows: 48px 56px; min-height: 0; gap: 0; padding: 0; border-bottom: 1px solid #D5D5D3; }
  .mk-header .mk-header-main > div:first-child { display: contents; }
  .mk-header .mk-logo { grid-row: 1; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #D5D5D3; }
  .mk-header .mk-logo img { width: 158px; height: 23px; }
  .mk-header .mk-mburger { grid-row: 2; grid-column: 1; width: 47px; height: 56px; min-height: 0; padding: 0; border-radius: 0; border-right: 1px solid #D5D5D3 !important; }
  .mk-header .mk-mburger img { width: 16px; height: 15px; }
  .mk-header .mk-header-main .mk-search { grid-row: 2; grid-column: 2; order: 0; flex: none; max-width: none; width: auto; margin: 4px 0 0; padding: 0 12px 0 13px; align-self: start; }
  .mk-header .mk-search .btn { width: 36px; font-size: 18px; }
  .mk-header .mk-search .input { font-size: 17px; padding-left: 11px; }
  .mk-header .mk-search .input::placeholder { color: #9B9B9B; }
  /* suggestions use the full header width on mobile (names not clamped to a 70px column) */
  .mk-header .mk-header-main { position: relative; }
  .mk-header .mk-header-main .mk-search { position: static; }
  .mk-header .mk-suggest { top: 104px; left: 0; right: 0; }
  .mk-header .mk-header-main .mk-icons { grid-row: 2; grid-column: 3; justify-self: stretch; justify-content: center; margin: 0; gap: 0; height: 56px; padding: 0 6px; border-left: 1px solid #D5D5D3; }
  /* routine 9: row 1 = burger | logo (left) | account-wishlist-cart, row 2 = full-width search */
  .mk-header .mk-header-main { grid-template-rows: 56px 54px; }
  .mk-header .mk-mburger { grid-row: 1; }
  .mk-header .mk-logo { grid-row: 1; grid-column: 2; justify-content: flex-start; padding-left: 12px; border-bottom: 0; min-width: 0; }
  .mk-header .mk-logo img { width: 170px; height: 25px; }
  .mk-header .mk-header-main .mk-icons { grid-row: 1; border-left: 0; }
  .mk-header .mk-header-main .mk-search { grid-row: 2; grid-column: 1 / -1; margin: 0; padding: 0 12px; align-self: stretch; display: flex; align-items: center; border-top: 1px solid #D5D5D3; }
  .mk-header .mk-header-main .mk-search .join { width: 100%; }
  .mk-header .mk-suggest { top: 110px; }
  .mk-header .mk-icon { height: 56px; padding: 0 7px; justify-content: center; }
  .mk-header .mk-icon .mk-ico { height: auto; width: auto; }
  .mk-header .mk-icon-account .mk-ico img { width: 24px; height: 24px; }
  .mk-header .mk-icon-wish .mk-ico { font-size: 21px; padding: 0; }
  .mk-header .mk-icon-cart .mk-ico img { width: 26px; height: 22px; }
  .mk-header .mk-badge { top: -9px; right: -8px; min-width: 15px; height: 15px; padding: 0 3px; font-size: 10px; }
  .mk-header .mk-icon-wish .mk-badge { top: -9px; right: -9px; }
}
