/* ElectroJC header 1:1 (section-01-header lane). Loaded after theme.css / oc-shell.css.
   Measures from qa/visual-sections/ref-desktop-01-header.png (1440) and ref-mobile-01-header.png (390 @2x). */

/* ---------- shared ---------- */
.mk-header { box-shadow: none; } /* the sticky shadow tinted the yellow nav border; promo top shading is drawn by .mk-promo itself */
.mk-header .mk-burger-ic { display: flex; flex-direction: column; justify-content: space-between; width: 20px; height: 14px; }
.mk-header .mk-burger-ic span { display: block; height: 2px; background: #fff; border-radius: 1px; }
/* routine 1: account — wishlist — cart, count badge only (no sum), no badge/toast animation */
.mk-header .mk-act-wish { display: flex !important; }
.mk-header .mk-cart-total { display: none !important; }
.mk-header .mk-act .mk-count { transition: none !important; animation: none !important; line-height: 18px; }
.mk-header .mk-act-wish .mk-count { right: -6px; }
#mk-toast.mk-toast > *, #mk-toast .alert { animation: none !important; transition: none !important; opacity: 1 !important; }
#mk-toast .alert { box-sizing: border-box; width: 380px; max-width: calc(100vw - 24px); min-width: 0; white-space: normal; }
#mk-toast .alert span { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 1023px) { #mk-toast.mk-toast.toast { padding: 12px 0; width: calc(100vw - 24px); } #mk-toast .alert { width: 100%; } }
.mk-header .mk-act .mk-ic { width: 24px; height: 24px; display: block; }
.mk-header .mk-cart-total { display: block; color: var(--mk-muted, #b0b0b0); font-size: 10px; font-weight: 700; line-height: 12px; text-transform: none; }
.mk-header .mk-cp-icon svg { width: 20px; height: 20px; }
.mk-header .mk-cp-caret { display: inline-block; vertical-align: middle; margin: -2px 0 0 2px; }

.mk-header .mk-search .join > .btn { border: 0 !important; box-shadow: none; outline: 0; }
/* nav */
.mk-nav .menu > li > a .mk-nav-caret { margin-left: 6px; opacity: .85; flex: 0 0 auto; }
.mk-nav .menu > li > a { letter-spacing: .3px; }

/* promo + trustpilot */
.mk-promo .mk-promo-l2 { margin-left: 8px; }
.mk-promo .fa-circle-check { font-size: 16px; margin: 0 8px 0 8px; vertical-align: -2px; }
.mk-promo .mk-promo-l3 .fa-circle-check { margin: 0 0 0 9px; }
.mk-promo .mk-tp { gap: 0; font-family: Arial, Helvetica, sans-serif; color: #191919; }
.mk-tp .mk-tp-ex { font-size: 16px; }
.mk-tp .mk-tp-sc { font-size: 14px; margin-left: 12px; }
.mk-tp .mk-tp-logo { display: inline-flex; align-items: center; gap: 2px; margin-left: 9px; font-size: 13px; font-weight: 700; letter-spacing: -.3px; }

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .mk-header .mk-topbar.navbar { min-height: 83px; height: 83px; padding: 0 32px 0 40px; gap: 0; align-items: center; }
  .mk-header .mk-burger { display: none; }
  .mk-header .mk-logo { flex: 0 0 auto; }
  .mk-header .mk-slogan { font-size: 12px; line-height: 16px; margin-top: 0; }
  .mk-header .mk-topbar .mk-search { flex: 0 1 508px; max-width: 508px; margin: 0 0 0 33px; }
  .mk-header .mk-search .join { height: 40px; border-radius: 8px; }
  .mk-header .mk-search .input { height: 36px; min-height: 36px; padding-left: 16px; font-size: 14px; }
  .mk-header .mk-search .input::placeholder { color: #8f8f8f; }
  .mk-header .mk-search .btn { padding: 0 14px 0 10px; color: #555; font-size: 11px; }
  .mk-header .mk-cp { flex: 0 0 231px; min-width: 231px; height: 59px; margin-left: 17px; padding: 0 10px; gap: 10px; border-radius: 12px; border-color: #d9d9d9; }
  .mk-header .mk-cp-icon { width: 34px; height: 34px; border-radius: 8px; flex: 0 0 34px; }
  .mk-header .mk-cp small { font-size: 10px; line-height: 13px; letter-spacing: .2px; }
  .mk-header .mk-cp strong { font-size: 14px; line-height: 17px; }
  .mk-header .mk-cp span span, .mk-header .mk-cp > span > span { font-size: 12px; line-height: 15px; }
  .mk-header .mk-actions { margin-left: 25px; gap: 32px; align-self: flex-start; margin-top: 24px; align-items: flex-start; }
  .mk-header .mk-act { gap: 1px; font-size: 10px; line-height: 12px; }
  .mk-header .mk-act-cart i { font-size: 13px; height: 14px; line-height: 14px; margin-bottom: 5px; }
  .mk-header .mk-act-cart .mk-cart-total { margin-top: 3px; }
  .mk-header .mk-act .mk-count { top: -8px; right: -4px; }

  .mk-nav { min-height: 0; padding: 0; border-top: 3px solid #f5c518; }
  .mk-nav .menu { gap: 1px 0; }
  .mk-nav > .mk-container { padding: 0 16px; }
  .mk-nav .menu > li > a { height: 30px; min-height: 30px; padding: 0 16px; display: flex; align-items: center; gap: 0; font-size: 14px; line-height: 30px; border-radius: 0; }
  .mk-nav .menu > li.mk-nav-li-hl { margin-left: 9px; }
  .mk-nav .menu > li > a.mk-nav-hl.btn { height: 30px; min-height: 30px; padding: 0 16px; border-radius: 4px; font-size: 13px; letter-spacing: 0; }
  .mk-nav .menu > li.mk-nav-li-b2b > a.mk-nav-hl.btn { padding: 0 14px; }

  /* 1px light line + 4px dark gap + soft top shadow exactly as captured on the live site */
  .mk-promo { min-height: 0; height: 45px; padding: 5px 54px 0 24px; gap: 42px; flex-wrap: nowrap; white-space: nowrap; font-size: 14px; color: #333;
    background: linear-gradient(#e6e6e6 0 1px, #2b2b2b 1px 5px, #e0e0e0 5px, #e7e7e7 10px) #e7e7e7; }
}
@media (min-width: 1280px) {
  .mk-header .mk-logo img { width: 286px; }
}

/* ---------- mobile ---------- */
@media (max-width: 1023px) {
  .mk-header .mk-topbar.navbar { min-height: 0; height: 56px; padding: 14px 12px 0; gap: 0; align-items: center; }
  .mk-header .mk-burger.btn { width: 40px; height: 40px; min-height: 40px; padding: 0; margin-left: 12px; justify-content: center; }
  .mk-header .mk-logo { flex: 1 1 auto; align-items: flex-start; }
  .mk-header .mk-logo img { width: 200px; }
  .mk-header .mk-actions { gap: 16px; margin-right: 19px; align-self: flex-start; margin-top: 4px; align-items: flex-start; }
  .mk-header .mk-act { gap: 0; font-size: 9px; line-height: 11px; }
  .mk-header .mk-act-account .mk-lbl { display: none !important; margin-top: 0; } /* routine 9: icons only on mobile */
  .mk-header .mk-act-cart .mk-lbl { display: none !important; }
  .mk-header .mk-act-cart i { font-size: 13px; height: 14px; line-height: 14px; margin: 6px 0 6px; }
  .mk-header .mk-cart-total { font-size: 9px; line-height: 11px; }
  .mk-header .mk-mob-slogan { margin-top: -3px; padding: 0 0 0 11px; text-align: left; font-size: 10px; line-height: 12px; white-space: nowrap; }
  .mk-header .mk-mob-search { padding: 7px 24px 11px; }
  .mk-header .mk-mob-search .join { height: 40px; border-radius: 8px; }
  .mk-header .mk-mob-search .input { height: 36px; min-height: 36px; padding-left: 16px; font-size: 14px; }
  .mk-header .mk-mob-search .input::placeholder { color: #8f8f8f; }
  .mk-header .mk-mob-search .btn { padding: 0 14px 0 10px; color: #555; font-size: 12px; }
  .mk-header .mk-geo { height: 42px; padding: 0 22px 0 25px; gap: 0; justify-content: flex-start; background: #2c2c2c; border-top: 1px solid #292929; font-size: 13px; font-weight: 400; }
  .mk-header .mk-geo-pin { flex: 0 0 16px; margin-right: 8px; }
  .mk-header .mk-geo-txt strong { font-weight: 700; }
  .mk-header .mk-geo-sub { text-decoration: underline; text-underline-offset: 2px; }
  .mk-header .mk-geo-chev { margin-left: auto; font-size: 20px; font-weight: 700; line-height: 1; }

  .mk-promo { min-height: 0; padding: 9px 14px; gap: 0; font-size: clamp(12px, 3.6vw, 14px); line-height: 1.6; color: #333; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(#dfdfdf, #e7e7e7 5px) #e7e7e7; }
  /* r32: lines are centered inside the bar and may wrap instead of overflowing the right edge */
  .mk-promo .mk-promo-msg { display: block; width: 100%; max-width: 100%; min-width: 0; text-align: center; }
  .mk-promo .mk-promo-l1, .mk-promo .mk-promo-l2 { display: block; margin: 0; white-space: normal; text-wrap: balance; }
  .mk-promo .mk-promo-l2 .fa-circle-check { margin: 0 0 0 8px; }
  .mk-promo .mk-promo-l3, .mk-promo .mk-tp { display: none; }
}

/* ---- routine 2: core ul.breadcrumb (sitemap, brands, compare, 404, account sub-pages) = .mk-crumbs: one line, house icon first ---- */
ul.breadcrumb { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 14px 0; margin: 0; list-style: none; font-size: 13px; line-height: 19.5px; color: #666; overflow: hidden; white-space: nowrap; }
ul.breadcrumb > li { display: flex; align-items: center; flex: 0 0 auto; margin: 0; padding: 0; }
ul.breadcrumb > li + li::before { content: "\203A"; margin-right: 6px; color: #999; }
ul.breadcrumb > li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; color: #000; font-weight: 600; }
ul.breadcrumb > li:last-child > a { display: block; overflow: hidden; text-overflow: ellipsis; }
ul.breadcrumb a { color: inherit; text-decoration: none; }
ul.breadcrumb a:hover { color: #000; }
ul.breadcrumb .fa-home, ul.breadcrumb .fa-house { font-size: 13px; line-height: 1; }
body.mk-dark ul.breadcrumb { color: #ccc; }
body.mk-dark ul.breadcrumb > li:last-child, body.mk-dark ul.breadcrumb a:hover { color: #fff; }
/* routine 2: core pages without pages.css (sitemap, brands, compare, 404) — same container as .mk-container so crumbs line up */
.mk-main > .container { max-width: 1440px; margin: 0 auto; padding: 0 24px 40px; }
@media (max-width: 767px) { .mk-main > .container { padding: 0 14px 30px; } }
/* ---- routine 9 (mobile): icon-only actions of equal size in one row, 16px search (no iOS zoom) ---- */
@media (max-width: 1023px) {
  .mk-header .mk-actions { align-items: center; }
  .mk-header .mk-act { position: relative; justify-content: center; width: 26px; height: 26px; }
  .mk-header .mk-act .mk-ic { width: 24px; height: 24px; }
  .mk-header .mk-act-cart i { font-size: 21px; height: 24px; line-height: 24px; margin: 0; }
  .mk-header .mk-act-cart .mk-count { top: -8px; right: -8px; }
  .mk-header .mk-mob-search .input { font-size: 16px; }
}
/* fix: no underline anywhere (incl. hover/focus); important inline links never break mid-phrase */
a, a:hover, a:focus, a:active, a:visited,
button, button:hover, .link, .link:hover, u, ins,
[class*="underline"], .mk-cc-note a, .mk-cc-btn.is-min, .mk-cc-reopen,
.mk-prose a, .mk-r8 a, .mk-f-toggle, .mk-f-links a, .mk-acc-login, .mk-promo a, .mk-form .mk-err a,
.mk-header .mk-geo-sub, .mk-faq-bf a, .mk-trust-bf a { text-decoration: none !important; }
p a, label a, small a, figcaption a, td a, .mk-cc-note a, .mk-promo a, .mk-form .mk-err a, .mk-prose li a { white-space: nowrap; }
/* routine 43: on phones a long nowrap link (FAQ "Ver todas las preguntas y ofertas...") widened the page to 355px -> mobile browser zoomed in, side scroll. Let text links wrap; short phrases stay together via NBSP (typo event) */
@media (max-width: 767px) { p a, label a, small a, figcaption a, td a, .mk-cc-note a, .mk-form .mk-err a, .mk-prose li a { white-space: normal; overflow-wrap: anywhere; } }
@media (max-width: 319px) { body .mk-header .mk-actions { gap: 10px; margin-right: 8px; } body .mk-f2 .mk-f2-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } body .mk-f2 .mk-f2-grid > nav a { overflow-wrap: anywhere; } }
/* routine 44: "zoomed in, can't zoom out" on phones.
   1) iOS Safari zooms into any focused field with font-size < 16px and keeps the zoom -> all form fields 16px on mobile;
   2) no automatic text inflation; 3) header/cards fit down to 200px; 4) safety net: nothing may widen the page sideways. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 1023px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
  select, textarea { font-size: 16px !important; }
}
@media (max-width: 767px) { html, body { max-width: 100%; overflow-x: clip; } h1, h2, h3, h4, .mk-page-title { overflow-wrap: break-word; } }
@media (max-width: 299px) {
  body .mk-header .mk-topbar.navbar { padding-right: 0; }
  body .mk-header .mk-burger.btn { width: 34px; flex: 0 0 34px; }
  body .mk-header .mk-logo { flex: 1 1 0; min-width: 0; margin-right: 6px; justify-content: flex-start; }
  body .mk-header .mk-logo img { width: 100% !important; max-width: 165px; height: auto !important; aspect-ratio: 4.125; }
  body .mk-header .mk-actions { flex: 0 0 auto; gap: 8px; margin-left: 6px; margin-right: 6px; }
  body .mk-header .mk-mob-search { padding-left: 8px; padding-right: 8px; }
  body .mk-usp, body .mk-auth, body .mk-r8-cards { grid-template-columns: minmax(0, 1fr) !important; }
  body .mk-ct-item > * { min-width: 0; overflow-wrap: anywhere; }
  body .mk-r8-cta .btn { white-space: normal; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; max-width: 100%; }
  body .mk-pactions, body .mk-buyrow { flex-wrap: wrap; }
  body .mk-ptitle { overflow-wrap: anywhere; }
}
/* search field shrinks instead of pushing the magnifier button out of the bar on narrow phones */
@media (max-width: 1023px) { .mk-header .mk-mob-search .join { min-width: 0; } .mk-header .mk-mob-search .join .input { flex: 1 1 auto; min-width: 0; width: auto; } .mk-header .mk-mob-search .join .btn { flex: 0 0 auto; } }
/* header counters: anchor badge to the icon (not to label width) so wish and cart badges sit identically */
.mk-header .mk-act .mk-count, .mk-header .mk-act-wish .mk-count, .mk-header .mk-act-cart .mk-count { top: -7px; right: auto; left: calc(50% + 5px); }
