/* Header do catálogo e carrinho, com as medidas e cores da página principal.
   Carregar depois de catalogo.css ou carrinho.css.
   A fonte DM Sans já é carregada por essas folhas. */

.cp-header {
    box-sizing: border-box;
    width: 100%;
    height: 82px;
    padding: 0;
    background: rgba(8, 8, 8, .72);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-family: 'DM Sans', sans-serif;
}

.cp-header *,
.cp-header *::before,
.cp-header *::after {
    box-sizing: border-box;
}

.cp-header .cp-header-inner {
    width: min(calc(100% - 48px), 1240px);
    height: 100%;
    min-height: 0;
    margin-inline: auto;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cp-header .cp-header-inner > a:first-child {
    display: block;
    flex-shrink: 0;
}

.cp-header .cp-logo {
    display: block;
    width: 138px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cp-header .cp-main-nav {
    display: flex;
    width: auto;
    order: 0;
    align-items: center;
    justify-content: initial;
    gap: 36px;
}

.cp-header .cp-main-nav a {
    position: relative;
    padding: 8px 0;
    border: 0;
    color: rgba(255, 255, 255, .66);
    font: 600 13px 'DM Sans', sans-serif;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.cp-header .cp-main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ff6800;
    transition: width 300ms cubic-bezier(.2, .8, .2, 1);
}

.cp-header .cp-main-nav a:hover,
.cp-header .cp-main-nav a[aria-current="page"] {
    color: #fff;
}

.cp-header .cp-main-nav a:hover::after,
.cp-header .cp-main-nav a[aria-current="page"]::after {
    width: 100%;
}

.cp-header .cp-whatsapp {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 9px;
    padding: 12px 17px;
    border: 1px solid rgba(37, 211, 102, .25);
    border-radius: 999px;
    background: rgba(37, 211, 102, .09);
    color: #fff;
    font: 700 13px 'DM Sans', sans-serif;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 180ms ease, background-color 180ms ease;
}

.cp-header .cp-whatsapp span {
    color: #25d366;
    font-size: 10px;
}

.cp-header .cp-whatsapp:hover {
    transform: translateY(-2px);
    background: rgba(37, 211, 102, .17);
}

.cp-header a:focus-visible {
    outline: 2px solid #ff6800;
    outline-offset: 5px;
}

@media (max-width: 1050px) {
    .cp-header .cp-main-nav {
        gap: 24px;
    }
}

@media (max-width: 820px) {
    .cp-header {
        height: 70px;
    }

    .cp-header .cp-header-inner {
        width: min(calc(100% - 32px), 1240px);
    }

    .cp-header .cp-logo {
        width: 115px;
    }

    /* O menu da página principal também fica oculto nesta largura. */
    .cp-header .cp-main-nav {
        display: none;
    }
}

@media (max-width: 560px) {
    .cp-header .cp-whatsapp {
        padding: 10px 13px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-header .cp-main-nav a,
    .cp-header .cp-main-nav a::after,
    .cp-header .cp-whatsapp {
        transition: none;
    }

    .cp-header .cp-whatsapp:hover {
        transform: none;
    }
}
