:root {
    /* Colores base (ajustables si quieres exactos del brand) */
    --shama-blue: #0a2540;
    --shama-blue-dark: #083b78;
    --shama-gray: #efeeec;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-search input::placeholder {
    color: #9ca3af;
    /* gris suave */
    opacity: 1;
    /* evita que algunos navegadores lo aclaren */
}



.search-btn {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-btn .icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: fill .2s ease, transform .2s ease;
}

.search-btn:hover .icon {
    fill: #007bff;
    /* mismo hover azul que RRSS */
    transform: scale(1.1);
}


.top-header__right {
    display: flex;
    align-items: center;
    min-width: max-content;
    /* 🔑 evita colapso */
}

.envios {
    font-size: 18px;
    font-family: revert;
    color: var(--shama-blue);
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
}

.flag-chile {
    width: 40px;
    /* 👈 fuerza ancho real */
    min-width: 40px;
    /* 👈 evita que flex lo esconda */
    height: auto;
    display: block;
}




.header-social .logo-shama svg {
    width: 100px;
    height: auto;
}

.top-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: #efeeec;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 64px;
    height: 70px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.top-header__center {
    display: flex;
    justify-content: center;
}

.top-header__center .header-search {
    width: 100%;
    max-width: 420px;
}

.header-search input[type="search"] {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
    min-width: 220px;
    margin-right: -6px;
}


/* IZQUIERDA: RRSS */
.top-header__left {
    display: flex;
    gap: 14px;
}

.top-header__left a img {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-header__left a:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* DERECHA: BUSCADOR */
.top-header__right form {
    display: flex;
    align-items: center;
}


.top-header__right input:focus {
    border-color: var(--shama-blue);
}

.top-header__center button {
    height: 36px;
    padding: 0 16px;
    border: none;
    background: var(--shama-blue);
    color: #fff;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.top-header__center button:hover {
    background: var(--shama-blue-dark);
}

/* Empuja el contenido hacia abajo */
body {
    padding-top: 60px;
}


.header-social {
    display: flex;
    gap: 14px;
}

.header-social a {
    display: flex;
    align-items: center;
}

.header-social .icon {
    width: 22px;
    height: 22px;
    fill: #0a2540;
    /* color base */
    transition: fill 0.3s ease, transform 0.2s ease;
}

.header-social a:hover .icon {
    fill: #007bff;
    /* hover azul */
    transform: scale(1.1);
}

@media (max-width: 768px) {

    .top-header {
        grid-template-columns: 1fr;
        padding: 8px 16px;
        height: auto;
    }

    .top-header__left,
    .top-header__right {
        display: none;
    }

    .top-header__center {
        width: 100%;
    }

    .top-header__center .header-search {
        max-width: 100%;
    }
}

/* Contenedor */
.main-menu {
background: #01132a;
}

/* Nivel principal */
.menu {
list-style: none;
display: flex;
gap: 24px;
padding: 0;
margin: 0;
}

.menu > li {
position: relative;
}

.menu a {
text-decoration: none;
font-weight: 600;
color: #fefefe;
padding: 10px 14px;
display: inline-block;
}

/* Hover principal */
.menu a:hover {
color: #0ea5e9;
}

/* Submenu */
.submenu {
position: absolute;
top: 100%;
left: 0;
background: #fff;
list-style: none;
padding: 8px 0;
margin: 0;
min-width: 200px;
border-radius: 12px;
box-shadow: 0 15px 40px rgba(0,0,0,.12);

opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: all .25s ease;
z-index: 99;
}

/* Mostrar submenu */
.has-submenu:hover .submenu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

/* Items submenu */
.submenu li a {
padding: 10px 16px;
display: block;
font-weight: 500;
color: #0f172a;
}

.submenu li a:hover {
background: #f1f5f9;
color: #0ea5e9;
}