/* ============================================================
   KSM Amazon-style header - PrestaShop 9.1.5 (ES)
   Portado desde /en/ OpenCart (ksm-brand.css), 2026-10-06
   Solo selectores de cabecera. Sin bento, sin footer.
   ============================================================ */

:root {
  --ksm-color-primary: #131A22;
  --ksm-color-nav: #232F3E;
  --ksm-color-nav-hover: #37475A;
  --ksm-color-accent: #facc15;
  --ksm-color-accent-hover: #eab308;
  --ksm-color-text: #111827;
  --ksm-color-muted: #6b7280;
  --ksm-color-brand: #0055aa;
  --ksm-color-brand-dark: #003d7a;
  --ksm-color-bg-light: #F1F5F9;
  --ksm-color-border: #d1d5db;
  --ksm-radius-sm: .375rem;
  --ksm-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body { font-family: var(--ksm-font-family); color: var(--ksm-color-text); background: #fff; }

/* Hide hummingbird parent header elements if they slip through */
.header-top, .header-nav, .header-bottom, .header-banner { display: none !important; }

.ksm-header { background: var(--ksm-color-primary); padding: .3rem 0; }
.ksm-header .container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 .75rem; }
.ksm-header-inner { display: flex; align-items: center; gap: .6rem; }

.ksm-ship-to {
  display: inline-flex; align-items: flex-end; gap: .35rem;
  color: #fff !important; text-decoration: none !important;
  padding: .2rem .5rem; border: 1px solid transparent; border-radius: 3px;
  line-height: 1.15; flex: 0 0 auto;
}
.ksm-ship-to:hover { border-color: #fff; }
.ksm-ship-to i { color: var(--ksm-color-accent); font-size: 1rem; margin-right: .1rem; }
.ksm-ship-to .ksm-action-sm { color: #ddd; font-size: .68rem; }
.ksm-ship-to .ksm-action-lg { color: #fff; font-weight: 700; font-size: .82rem; }

.ksm-brand {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: .15rem .35rem; border: 1px solid transparent; border-radius: 3px;
}
.ksm-brand:hover { border-color: #fff; }
.ksm-brand img { max-height: 36px; width: auto; background: #fff; padding: .15rem .3rem; border-radius: 3px; }
.ksm-brand-text { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }

.ksm-search {
  flex: 1 1 auto; display: flex; align-items: stretch;
  height: 34px; border-radius: 4px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 0 var(--ksm-color-accent); transition: box-shadow .15s ease;
}
.ksm-search:focus-within { box-shadow: 0 0 0 3px var(--ksm-color-accent); }
.ksm-search-cat {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #E6E6E6; color: #111; font-size: .8rem; font-weight: 500;
  padding: 0 .75rem; border: 0; border-right: 1px solid #ccc;
  white-space: nowrap; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.ksm-search-cat:hover { background: #d6d6d6; }
.ksm-search-input { flex: 1 1 auto; border: 0; padding: 0 .75rem; font-size: .95rem; color: #111; min-width: 0; }
.ksm-search-input:focus { outline: none; }
.ksm-search-btn {
  background: var(--ksm-color-accent); border: 0; padding: 0 1.1rem;
  color: #111; font-size: 1.05rem; cursor: pointer; transition: background .15s ease;
}
.ksm-search-btn:hover { background: var(--ksm-color-accent-hover); }

.ksm-header-actions { display: flex; align-items: center; gap: .25rem; flex: 0 0 auto; }
.ksm-action {
  display: inline-flex; flex-direction: column; color: #fff !important; text-decoration: none !important;
  padding: .2rem .5rem; border: 1px solid transparent; border-radius: 3px;
  cursor: pointer; line-height: 1.15; white-space: nowrap; background: transparent;
}
.ksm-action:hover { border-color: #fff; }
.ksm-action-sm { font-size: .68rem; color: #ddd; line-height: 1.1; }
.ksm-action-lg { font-size: .82rem; font-weight: 700; line-height: 1.15; }
.ksm-action-toggle {
  display: inline-flex; flex-direction: column; color: #fff; background: transparent;
  border: 0; cursor: pointer; padding: 0; line-height: 1.15; text-align: left; font: inherit;
}
.ksm-contact-phone { flex-direction: row; align-items: center; gap: .4rem; }
.ksm-contact-icon { font-size: 1rem; }
.ksm-contact-wa i, .ksm-contact-viber i { font-size: 1.2rem; }
.ksm-contact-wa i { color: #25D366; }
.ksm-contact-viber i { color: #7360F2; }

.ksm-cart { flex-direction: row; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; position: relative; }
.ksm-cart i { font-size: 1.1rem; }
.ksm-cart-label { font-size: .88rem; }
.ksm-cart-count {
  display: inline-block; min-width: 1.1rem; padding: 0 .3rem; margin-left: .15rem;
  background: var(--ksm-color-accent); color: #111; border-radius: 10px;
  font-size: .72rem; font-weight: 700; line-height: 1.3; text-align: center;
}

.ksm-action.dropdown { position: relative; }
.ksm-action.dropdown .dropdown-menu {
  position: absolute; top: 100%; right: 0; display: none;
  background: #fff; color: var(--ksm-color-text);
  border: 1px solid var(--ksm-color-border); border-radius: var(--ksm-radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,.15); padding: .35rem 0;
  min-width: 200px; list-style: none; margin: 0; z-index: 1000;
}
.ksm-action.dropdown:hover .dropdown-menu,
.ksm-action.dropdown.show .dropdown-menu { display: block; }
.ksm-action.dropdown .dropdown-item {
  color: var(--ksm-color-text); padding: .5rem 1rem; font-size: .9rem;
  display: block; text-decoration: none;
}
.ksm-action.dropdown .dropdown-item:hover { background: var(--ksm-color-bg-light); color: var(--ksm-color-brand); }

.ksm-navbar { background: var(--ksm-color-nav); padding: 0; }
.ksm-navbar .container {
  width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 .75rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.ksm-navbar-inner { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; flex: 1 1 auto; }
.ksm-nav-item {
  color: #fff !important; text-decoration: none !important;
  padding: .4rem .75rem; font-size: .82rem; font-weight: 500;
  border: 1px solid transparent; border-radius: 3px;
  transition: background .15s ease; white-space: nowrap;
}
.ksm-nav-item:hover { background: var(--ksm-color-nav-hover); border-color: #fff; }
.ksm-nav-all { font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }

@media (max-width: 767px) {
  .ksm-header-inner { flex-wrap: wrap; }
  .ksm-search { order: 3; width: 100%; margin-top: .5rem; flex-basis: 100%; }
  .ksm-action-sm { display: none; }
  .ksm-brand img { max-height: 40px; }
  .ksm-navbar-inner { overflow-x: auto; flex-wrap: nowrap; }
  .ksm-ship-to .ksm-action-lg { font-size: .75rem; }
  .ksm-search-cat { display: none; }
  .ksm-contact-phone .ksm-action-lg { display: none; }
  .ksm-header-actions { flex-wrap: wrap; }
  .ksm-header-actions .ksm-lang-switcher {
    order: 10; flex-basis: 100%; justify-content: center;
    margin-left: 0; padding-left: 0; border-left: none;
    border-top: 1px solid rgba(255,255,255,.15); padding-top: .35rem; margin-top: .35rem;
  }
}
@media (max-width: 991px) {
  .ksm-ship-to .ksm-action-sm { display: none; }
}

/* ---------- Language switcher ---------- */
.ksm-lang-switcher {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ksm-lang-switcher li { margin: 0; padding: 0; }
.ksm-lang-switcher a,
.ksm-lang-switcher > li.active > span {
  color: #ddd !important;
  text-decoration: none;
  font-weight: 500;
  font-size: .82rem;
  padding: .2rem .5rem;
  border-radius: .25rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: background .15s ease;
}
.ksm-lang-switcher a:hover {
  background: rgba(255,255,255,.1);
  color: #fff !important;
  text-decoration: none;
}
.ksm-lang-switcher > li.active > span {
  background: rgba(255,255,255,.18);
  color: #fff !important;
  cursor: default;
}
.ksm-lang-switcher .fi { width: 1.1rem; height: .8rem; border-radius: 2px; }

.ksm-header-actions .ksm-lang-switcher {
  gap: .15rem;
  padding-left: .35rem;
  border-left: 1px solid rgba(255,255,255,.15);
  margin-left: .35rem;
}
.ksm-header-actions .ksm-lang-switcher a,
.ksm-header-actions .ksm-lang-switcher > li.active > span {
  font-size: .75rem;
  padding: .15rem .35rem;
}
.ksm-header-actions .ksm-lang-switcher .fi {
  width: 1rem;
  height: .7rem;
}


/* ---------- Footer (6-col modular) ---------- */
.ksm-footer{background:#F1F5F9;color:#111827;padding:32px 0 16px;font-size:14px;margin-top:40px;}
.ksm-footer__inner{max-width:1400px;margin:0 auto;padding:0 24px;}
.ksm-footer__cols{display:grid;grid-template-columns:repeat(6,1fr);gap:24px;align-items:start;padding-bottom:24px;border-bottom:1px solid #E5E7EB;}
.ksm-footer__cols .ksm-footer-col{display:flex;flex-direction:column;gap:8px;line-height:1.5;}
.ksm-footer__cols .ksm-footer-col p{margin:0 0 6px;}
.ksm-footer__cols .ksm-footer-col ul{list-style:none;padding:0;margin:0;}
.ksm-footer__cols .ksm-footer-col li{margin:0 0 4px;}
.ksm-footer__cols a{color:#111827;text-decoration:underline;}
.ksm-footer__cols a:hover{color:#0055aa;}
.ksm-footer__cols .ksm-social{display:flex;gap:14px;align-items:center;justify-content:center;margin:8px 0;flex-wrap:nowrap;}
.ksm-footer__cols .ksm-social a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;color:#333;transition:color 0.2s;text-decoration:none;}
.ksm-footer__cols .ksm-social a:hover{color:#0055aa !important;}
.ksm-footer__cols .ksm-social i,.ksm-footer__cols .ksm-social span{font-size:28px;}
.ksm-footer__bottom{display:flex;justify-content:space-between;align-items:center;padding-top:16px;font-size:13px;color:#374151;flex-wrap:wrap;gap:8px;}
.ksm-footer__bottom a{color:#0055aa;}
@media(max-width:1100px){.ksm-footer__cols{grid-template-columns:repeat(3,1fr);}}
@media(max-width:700px){.ksm-footer__cols{grid-template-columns:repeat(2,1fr);}.ksm-footer__bottom{flex-direction:column;align-items:flex-start;}}

/* Hide hummingbird default footer wrappers (we fully replace via override) */
.footer.footer__main, .footer.footer__before { display: none !important; }

/* ============================================
   Offcanvas mobile menu (ES)
   ============================================ */
.ksm-menu-toggle{display:none;background:transparent;border:none;color:#fff;padding:.35rem .6rem;font-size:1.3rem;cursor:pointer;border-radius:3px;line-height:1;margin-right:.3rem}
.ksm-menu-toggle:hover,.ksm-menu-toggle:focus-visible{background:rgba(255,255,255,.12);outline:none}
.ksm-menu-toggle i{pointer-events:none}

.ksm-offcanvas-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:1040}
body.ksm-offcanvas-open .ksm-offcanvas-overlay{opacity:1;pointer-events:auto}

.ksm-offcanvas{position:fixed;top:0;left:0;height:100vh;width:85vw;max-width:360px;background:#fff;z-index:1050;overflow-y:auto;transform:translateX(-100%);transition:transform .25s ease;box-shadow:2px 0 12px rgba(0,0,0,.15);display:flex;flex-direction:column}
.ksm-offcanvas.ksm-offcanvas-active{transform:translateX(0)}

.ksm-offcanvas-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid #eee;flex:0 0 auto}
.ksm-offcanvas-title{font-size:1.1rem;margin:0;color:#111;font-weight:700}
.ksm-offcanvas-close{background:transparent;border:none;color:#111;font-size:1.4rem;padding:.4rem .55rem;cursor:pointer;border-radius:3px;line-height:1}
.ksm-offcanvas-close:hover,.ksm-offcanvas-close:focus-visible{background:#f0f0f0;outline:none}

.ksm-offcanvas-body{padding:1rem;flex:1 1 auto;overflow-y:auto}
.ksm-offcanvas-group{margin-bottom:1.25rem}
.ksm-offcanvas-group:last-child{margin-bottom:0}
.ksm-offcanvas-group-title{font-size:.8rem;text-transform:uppercase;letter-spacing:.5px;color:#666;margin:0 0 .5rem;font-weight:600}
.ksm-offcanvas-list{list-style:none;margin:0;padding:0}
.ksm-offcanvas-item{margin:0}
.ksm-offcanvas-item a,.ksm-offcanvas-item>span{display:flex;align-items:center;gap:.6rem;padding:.6rem 0;color:#111 !important;text-decoration:none !important;font-size:.95rem;border-bottom:1px solid #f0f0f0}
.ksm-offcanvas-item a:hover,.ksm-offcanvas-item a:focus-visible{color:#0055aa !important;outline:none}
.ksm-offcanvas-item a i,.ksm-offcanvas-item>span i{width:1.3rem;text-align:center;color:#0055aa;font-size:1rem}
.ksm-offcanvas-item .fi{width:1.2rem;height:.85rem;border-radius:2px;flex:0 0 auto}
.ksm-offcanvas-item-active>span{color:#666 !important;cursor:default}

body.ksm-offcanvas-open{overflow:hidden}

@media(max-width:767px){
  .ksm-menu-toggle{display:inline-flex;align-items:center;justify-content:center}
}
