/* ============================================================
   CAT-OH HEADER 2026 v3 — CSS
   ============================================================ */
:root {
    --co-t:    #308e95;
    --co-td:   #236970;
    --co-tl:   #e0f5f6;
    --co-or:   #FF6D26;
    --co-ord:  #e55a1a;
    --co-dk:   #273B42;
    --co-gray: #54595F;
    --co-border: #e0e0e0;
    --co-f:    'Nunito', 'Poppins', system-ui, sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────── */
#catoh-header, #catoh-header * { box-sizing: border-box; margin: 0; padding: 0; }
#catoh-header { font-family: var(--co-f); width: 100%; position: relative; z-index: 9999; }

/* ─── FRANJA NARANJA ─────────────────────────────────────── */
.catoh-topbar {
    background: var(--co-or);
    color: #fff;
    text-align: center;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
}
.catoh-topbar strong { font-weight: 900; }

/* ─── BARRA PRINCIPAL ────────────────────────────────────── */
.catoh-main-bar { background: var(--co-t); width: 100%; }
.catoh-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ─── HAMBURGUESA ────────────────────────────────────────── */
.catoh-ham {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.catoh-ham span {
    display: block;
    width: 24px; height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.catoh-ham.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.catoh-ham.is-open span:nth-child(2) { opacity: 0; }
.catoh-ham.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── LOGO ───────────────────────────────────────────────── */
.catoh-logo { flex-shrink: 0; display: block; }
.catoh-logo img { height: 55px; width: auto; max-width: 160px; object-fit: contain; display: block; }

/* ─── BUSCADOR ───────────────────────────────────────────── */
.catoh-search { flex: 1; }
.catoh-search .dgwt-wcas-search-wrapp,
.catoh-search form { background: #fff !important; border-radius: 8px !important; }

/* ─── CUENTA + CARRITO ───────────────────────────────────── */
.catoh-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.catoh-btn-acc {
    display: flex; align-items: center; gap: 8px;
    color: #fff; text-decoration: none;
    padding: 5px 8px; border-radius: 8px;
    transition: background .15s;
}
.catoh-btn-acc:hover { background: rgba(255,255,255,.15); }
.catoh-btn-acc-text { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.catoh-acc-hi  { font-size: 11px; font-weight: 600; opacity: .82; }
.catoh-acc-si  { font-size: 13.5px; font-weight: 800; }
.catoh-btn-acc i { font-size: 22px; }
.catoh-btn-cart {
    display: flex; align-items: center; gap: 6px;
    background: #fff; border: none; color: var(--co-t);
    border-radius: 8px; padding: 8px 13px;
    font-size: 14px; font-weight: 800;
    font-family: var(--co-f); text-decoration: none;
    position: relative; transition: all .15s; white-space: nowrap;
}
.catoh-btn-cart:hover { background: #f0fbfc; }
.catoh-btn-cart i { font-size: 20px; color: var(--co-t); }
.catoh-cart-total { color: var(--co-dk); }
.catoh-cart-badge {
    position: absolute; top: -7px; right: -7px;
    background: var(--co-or); color: #fff;
    font-size: 10px; font-weight: 900;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--co-t);
}

/* ─── NAV DESKTOP ────────────────────────────────────────── */
.catoh-nav-bar {
    background: var(--co-t);
    border-top: 1px solid rgba(255,255,255,.18);
    display: flex;
    justify-content: center;
}
#catoh-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1400px;
    width: 100%;
}
.catoh-nav-item { position: relative; }

/* Todos los links: mismo color blanco, mismo tamaño */
.catoh-nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 13px;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
    transition: background .15s;
    font-family: var(--co-f);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}
/* Hover naranja */
.catoh-nav-link:hover,
.catoh-nav-item.is-open > .catoh-nav-link {
    background: var(--co-or) !important;
}
.catoh-nav-link.catoh-promo { color: #FFE44D !important; }
.catoh-nav-link.catoh-promo:hover { color: #fff !important; }

/* Ícono circular */
.catoh-nav-icon-wrap {
    width: 30px; height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.catoh-nav-icon-wrap img,
.catoh-nav-link img.menu-image {
    width: 20px !important; height: 20px !important;
    object-fit: contain !important;
    background: none !important;
}

/* Flecha */
.catoh-arrow {
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
    margin-left: 2px;
    transition: transform .2s;
    flex-shrink: 0;
}
.catoh-nav-item.is-open > .catoh-nav-link .catoh-arrow { transform: rotate(180deg); }

/* ─── MEGA MENÚ ──────────────────────────────────────────── */
.catoh-mega-wrap {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    z-index: 10000;
    border-top: 3px solid var(--co-or);
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    overflow: hidden;
    min-width: 560px;
    background: #fff;
}
.catoh-nav-item.is-open > .catoh-mega-wrap { display: block; }

.catoh-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
}
.catoh-mega-col {
    padding: 16px 18px;
    border-right: 1px solid #e8e8e8;
}
.catoh-mega-col:last-child { border-right: none; }

.catoh-mega-col-head {
    background: var(--co-t);
    border-radius: 6px;
    margin-bottom: 10px;
}
.catoh-mega-col-head a {
    display: block;
    padding: 7px 11px;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--co-f);
}
.catoh-mega-col-list { list-style: none; }
.catoh-mega-col-list li a {
    display: block;
    padding: 5px 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--co-dk);
    text-decoration: none;
    border-radius: 5px;
    font-family: var(--co-f);
    transition: all .12s;
}
.catoh-mega-col-list li a:hover {
    background: var(--co-or);
    color: #fff !important;
    padding-left: 10px;
}

/* Barra de marcas */
.catoh-brands-bar {
    border-top: 1px solid #e8e8e8;
    padding: 10px 18px;
    background: #f8fafb;
}
.catoh-brands-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--co-gray);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
    font-family: var(--co-f);
}
.catoh-brands-row {
    display: flex;
    align-items: center;
    gap: 7px;
}
.catoh-brands-track {
    display: flex;
    gap: 7px;
    overflow: hidden;
    flex: 1;
}
.catoh-brand-logo {
    width: 64px; height: 36px;
    object-fit: contain;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
    padding: 3px;
    background: #fff;
    flex-shrink: 0;
    transition: all .15s;
    filter: grayscale(15%);
    cursor: pointer;
}
.catoh-brand-logo:hover {
    filter: none;
    border-color: var(--co-or);
    transform: scale(1.05);
}
.catoh-car-btn {
    background: var(--co-t);
    border: none;
    color: #fff;
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    transition: background .15s;
}
.catoh-car-btn:hover { background: var(--co-or); }
.catoh-ver-todo {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--co-t);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid var(--co-t);
    font-family: var(--co-f);
    transition: all .15s;
}
.catoh-ver-todo:hover { background: var(--co-t); color: #fff; }

/* ─── SUBMENÚ SIMPLE ─────────────────────────────────────── */
.catoh-submenu {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    z-index: 10000;
    background: #fff;
    border-top: 3px solid var(--co-or);
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    list-style: none;
    min-width: 200px;
    padding: 6px 0;
    overflow: hidden;
}
.catoh-nav-item:nth-last-child(-n+2) .catoh-submenu {
    left: auto; right: 0;
    border-radius: 12px 0 12px 12px;
}
.catoh-nav-item.is-open > .catoh-submenu { display: block; }
.catoh-submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--co-dk);
    text-decoration: none;
    border-left: 2px solid transparent;
    font-family: var(--co-f);
    transition: all .12s;
}
.catoh-submenu li a:hover {
    background: var(--co-or);
    color: #fff !important;
    border-left-color: var(--co-or);
}

/* ─── OVERLAY ────────────────────────────────────────────── */
.catoh-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99998; }
.catoh-overlay.is-visible { display: block; }

/* ─── PANEL MÓVIL ────────────────────────────────────────── */
.catoh-mobile-panel {
    position: fixed;
    top: 0; left: 0;
    width: 300px; height: 100%;
    background: #fff;
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}
.catoh-mobile-panel[hidden] { display: block; }
.catoh-mobile-panel.is-open { transform: translateX(0); }

.catoh-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--co-t);
    padding: 16px 20px;
}
.catoh-mobile-head span { font-size: 16px; font-weight: 900; color: #fff; font-family: var(--co-f); }
.catoh-mobile-head button { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; }

/* Nav mobile */
.catoh-mobile-nav { list-style: none; }
.catoh-mobile-nav li { border-bottom: 1px solid #f0f0f0; }

/* Nivel 1 */
.catoh-mobile-nav > li > a,
.catoh-mobile-nav > li > span.catoh-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 800;
    color: var(--co-dk);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-family: var(--co-f);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
}
.catoh-mobile-nav > li > a:hover,
.catoh-mobile-nav > li > span.catoh-mobile-toggle:hover { color: var(--co-or); }

.catoh-mobile-arrow {
    font-size: 18px;
    color: var(--co-t);
    transition: transform .2s;
    flex-shrink: 0;
}
.catoh-mobile-nav > li.is-open > span.catoh-mobile-toggle .catoh-mobile-arrow { transform: rotate(90deg); }

/* Menu Icons en mobile */
.catoh-mobile-nav img.menu-image { width: 26px !important; height: 26px !important; object-fit: contain !important; flex-shrink: 0; }

/* Submenú mobile */
.catoh-mobile-nav .sub-menu {
    display: none;
    list-style: none;
    background: #e8f5f6;
    border-left: 3px solid var(--co-t);
}
.catoh-mobile-nav li.is-open > .sub-menu { display: block; }
.catoh-mobile-nav .sub-menu li a {
    display: block;
    padding: 13px 32px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--co-dk);
    text-decoration: none;
    font-family: var(--co-f);
    transition: color .12s;
}
.catoh-mobile-nav .sub-menu li a:hover { color: var(--co-or); }
.catoh-mobile-nav .sub-menu .sub-menu li a { padding-left: 44px; font-size: 13px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .catoh-nav-bar { display: none; }
    .catoh-ham { display: flex; }
    .catoh-inner { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
    .catoh-logo  { order: 1; }
    .catoh-actions { order: 2; margin-left: auto; }
    .catoh-search { order: 3; flex: 0 0 100%; }
    .catoh-logo img { height: 44px; }
    .catoh-btn-acc-text { display: none; }
    .catoh-btn-acc i { font-size: 24px; }
    .catoh-btn-cart { padding: 7px 11px; font-size: 13px; }
    .catoh-cart-total { display: none; }
}

/* Suprimir header nativo de Astra */
.ast-above-header-bar,
.ast-main-header-bar-wrap,
.ast-primary-header-bar { display: none !important; }