﻿
/* ===================================
   PUNTOMIX - HEADER
   =================================== */

/* Barra superior */

.top-bar {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 500;
}

/* Encabezado principal */

.main-header {
    background: white;
    padding: 18px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logotipo */

.logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--color-primary);
    white-space: nowrap;
}

    .logo span {
        color: var(--color-text);
    }

    .logo:hover {
        color: var(--color-primary);
    }

/* Buscador */

.search-box {
    display: flex;
    flex: 1;
    max-width: 550px;
    height: 46px;
    background: #F7F7F7;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

    .search-box:focus-within {
        border-color: var(--color-primary);
    }

    .search-box input {
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent;
        padding: 0 16px;
        font-size: 14px;
        color: var(--color-text);
    }

        .search-box input::placeholder {
            color: #999;
        }

    .search-box button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 55px;
        border: none;
        background: var(--color-primary);
        color: white;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .search-box button:hover {
            background: #E85B28;
        }

        .search-box button svg {
            width: 21px;
            height: 21px;
            stroke-width: 2;
        }

/* Cuenta y carrito */

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

    .header-action svg {
        width: 23px;
        height: 23px;
        stroke-width: 1.8;
    }

    .header-action:hover {
        color: var(--color-primary);
    }

/* Navegación */

.main-nav {
    background: white;
    border-top: 1px solid #F0F0F0;
    border-bottom: 1px solid #EEEEEE;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

    .nav-content a {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        transition: color 0.2s ease;
    }

        .nav-content a svg {
            width: 18px;
            height: 18px;
            stroke-width: 1.8;
        }

        .nav-content a:hover {
            color: var(--color-primary);
        }

        /* Enlace activo */

        .nav-content a:first-child {
            color: var(--color-primary);
        }

/* ===================================
   CONTADOR DEL CARRITO
   =================================== */

.contador-carrito {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 50px;
    background: #FF6B35;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

    .contador-carrito[hidden] {
        display: none !important;
    }

/* BOTÓN CERRAR SESIÓN */
.header-actions form {
    display: flex;
    align-items: center;
    margin: 0;
}

.header-actions button.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .header-actions button.header-action svg {
        width: 23px;
        height: 23px;
        stroke-width: 1.8;
    }

    .header-actions button.header-action:hover {
        color: var(--color-primary);
    }