/* ==========================================================================
   NOSEAMS — Header global limpo
   Usado em todas as páginas.
   Desktop: menu esquerdo, logo centrado, ações/carrinho à direita.
   Mobile: hamburguer esquerdo, logo centrado, carrinho direito.
   ========================================================================== */

:root {
    --ns-header-desktop-height: 132px;
    --ns-header-mobile-height: 58px;
    --ns-header-font-weight: 500;
    --ns-header-font-shadow: none;

    /* Fonte única para o posicionamento desktop do header.
       Estes valores eram os que estavam a fazer o header da homepage parecer correto.
       Agora vivem apenas no header.css para todas as páginas. */
    --ns-side-space: clamp(42px, 3.1vw, 60px);
    --ns-left-nav-width: clamp(125px, 8vw, 154px);
    --ns-right-nav-width: clamp(165px, 9.8vw, 190px);
}


.ns-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    min-height: clamp(120px, 7vw, 140px) !important;
    color: var(--ns-black, #231f20) !important;
    font-family: var(--ns-font-main, inherit) !important;
    font-weight: var(--ns-header-font-weight, 500) !important;
    pointer-events: none !important;
    background: transparent !important;
    transition: color 0.2s ease !important;
}

body.admin-bar .ns-header {
    top: 32px !important;
}

.ns-header.is-black {
    color: var(--ns-black, #231f20) !important;
}

.ns-header.is-white {
    color: var(--ns-white, #fff) !important;
}

.ns-header a,
.ns-header button {
    color: inherit !important;
    pointer-events: auto !important;
    font-weight: var(--ns-header-font-weight, 500) !important;
}

.ns-header__mobile-toggle {
    display: none !important;
}

/* Desktop */
.ns-header__nav--left {
    position: absolute !important;
    top: clamp(22px, 1.8vw, 34px) !important;
    left: var(--ns-side-space) !important;
    width: var(--ns-left-nav-width) !important;
}

.ns-header__logo {
    position: absolute !important;
    top: clamp(20px, 1.7vw, 32px) !important;
    left: 50% !important;
    display: block !important;
    width: clamp(285px, 22.1vw, 425px) !important;
    line-height: 0 !important;
    text-align: center !important;
    transform: translateX(-50%) !important;
}

.ns-header__logo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 81px !important;
    object-fit: contain !important;
    transition: filter 0.2s ease !important;
}

.ns-header.is-black .ns-header__logo img {
    filter: none !important;
}

.ns-header.is-white .ns-header__logo img {
    filter: brightness(0) invert(1) !important;
}

.ns-header__right {
    position: absolute !important;
    top: clamp(22px, 1.8vw, 34px) !important;
    right: var(--ns-side-space) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    width: var(--ns-right-nav-width) !important;
    pointer-events: none !important;
}

.ns-header__right a,
.ns-header__right button {
    pointer-events: auto !important;
}

.ns-header__nav--right {
    text-align: right !important;
}

.ns-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ns-menu--right {
    align-items: flex-end !important;
}

.ns-menu a,
.ns-menu button {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-family: var(--ns-font-main, inherit) !important;
    font-size: clamp(11px, 0.62vw, 12px) !important;
    line-height: 1.08 !important;
    font-weight: var(--ns-header-font-weight, 500) !important;
    letter-spacing: 0.23em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-shadow: var(--ns-header-font-shadow, 0.25px 0 currentColor) !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
    cursor: pointer !important;
}



@media (min-width: 961px) {
    .ns-header__nav .ns-menu a,
    .ns-header__nav .ns-menu button {
        font-weight: 500 !important;
        text-shadow: none !important;
    }
}

.ns-header__basket {
    position: relative !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 14px !important;
    color: currentColor !important;
}

.ns-header__basket-icon {
    display: block !important;
    overflow: clip !important;
}

.ns-header__basket-icon path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.ns-header__basket-count {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    color: currentColor !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-shadow: var(--ns-header-font-shadow, 0.25px 0 currentColor) !important;
    transform: translate(-50%, -35%) !important;
}

/* Conteúdo abaixo do header em todas as páginas normais */
body:not(.home) .ns-main {
    padding-top: var(--ns-header-desktop-height) !important;
}

body.home .ns-main {
    padding-top: 0 !important;
}

/* Mobile menu overlay */
.ns-mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1200 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 32px !important;
    background: var(--ns-white, #fff) !important;
    color: var(--ns-black, #231f20) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.35s ease !important;
}

.ns-mobile-menu.is-open {
    transform: translateX(0) !important;
}

.ns-mobile-menu__close {
    position: absolute !important;
    top: 20px !important;
    right: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ns-black, #231f20) !important;
    font-family: var(--ns-font-main, inherit) !important;
    font-size: 42px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}


.ns-mobile-menu__nav {
    width: 100% !important;
    margin-top: clamp(68px, 12vh, 96px) !important;
}

.ns-mobile-menu__image {
    display: block !important;
    width: min(72vw, 330px) !important;
    max-width: 330px !important;
    margin: 34px 0 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
    line-height: 0 !important;
}

.ns-mobile-menu__image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain !important;
}

.ns-mobile-menu__list {
    display: grid !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ns-mobile-menu__list a,
.ns-mobile-menu__list button {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ns-black, #231f20) !important;
    font-family: var(--ns-font-main, inherit) !important;
    font-size: 18px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-shadow: var(--ns-header-font-shadow, 0.25px 0 currentColor) !important;
    text-align: left !important;
    cursor: pointer !important;
}

body.ns-menu-open {
    overflow: hidden !important;
}

/* Mobile header */
@media (max-width: 960px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .ns-header {
        height: var(--ns-header-mobile-height) !important;
        min-height: var(--ns-header-mobile-height) !important;
        padding: 0 !important;
    }

    body.admin-bar .ns-header {
        top: 46px !important;
    }

    body:not(.home) .ns-main {
        padding-top: var(--ns-header-mobile-height) !important;
    }

    .ns-header__nav--left,
    .ns-header__nav--right,
    .ns-header__right .ns-header__nav,
    .ns-header__right .ns-menu {
        display: none !important;
    }

    .ns-header__mobile-toggle {
        position: absolute !important;
        top: 17px !important;
        left: 16px !important;
        z-index: 3 !important;
        display: block !important;
        width: 30px !important;
        height: 22px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: currentColor !important;
        pointer-events: auto !important;
    }

    .ns-header__mobile-toggle span {
        display: block !important;
        width: 30px !important;
        height: 1px !important;
        margin: 0 0 7px !important;
        background: currentColor !important;
    }

    .ns-header__mobile-toggle span:last-child {
        margin-bottom: 0 !important;
    }

    .ns-header__logo {
        top: 50% !important;
        left: 50% !important;
        z-index: 2 !important;
        width: clamp(150px, 42vw, 210px) !important;
        max-width: 210px !important;
        transform: translate(-50%, -50%) !important;
    }

    .ns-header__logo img {
        max-height: 34px !important;
    }

    .ns-header__right {
        top: 12px !important;
        right: 16px !important;
        z-index: 3 !important;
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .ns-header__basket {
        display: inline-flex !important;
        width: 28px !important;
        height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ns-header__basket-icon {
        width: 22px !important;
        height: 27px !important;
    }

    .ns-header__basket-count {
        font-size: 8px !important;
        font-weight: 700 !important;
        transform: translate(-50%, -34%) !important;
    }

    .ns-mobile-menu {
        padding: 28px 22px !important;
    }

    .ns-mobile-menu__nav {
        margin-top: 66px !important;
    }

    .ns-mobile-menu__image {
        width: min(74vw, 300px) !important;
        margin-top: 32px !important;
    }

    .ns-mobile-menu__close {
        top: 14px !important;
        right: 18px !important;
    }
}

@media (max-width: 390px) {
    .ns-header__logo {
        width: clamp(140px, 40vw, 185px) !important;
    }

    .ns-header__mobile-toggle {
        left: 14px !important;
    }

    .ns-header__right {
        right: 14px !important;
    }

    .ns-mobile-menu__nav {
        margin-top: 60px !important;
    }

    .ns-mobile-menu__image {
        width: min(78vw, 280px) !important;
        margin-top: 28px !important;
    }
}


/* About page: remove the global header spacer so the page controls its own top rhythm. */
body.ns-about-active:not(.home) .ns-main {
    padding-top: 0 !important;
}



/* ==========================================================
   Product page final spacing fixes
   Loaded in header.css because this stylesheet is enqueued last.
   ========================================================== */
@media (min-width: 961px) {
    body.single-product .ns-main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.single-product .ns-single-product--design {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__gallery {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__main-image:first-child {
        min-height: 100svh !important;
        height: 100svh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 960px) {
    body.single-product .ns-single-product--design .ns-single-product__title {
        margin-top: 22px !important;
        margin-bottom: 2px !important;
        line-height: 1.04 !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__price {
        margin-top: 0 !important;
        margin-bottom: 3px !important;
        line-height: 1.04 !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__purchase {
        padding-top: 0 !important;
        padding-bottom: 16px !important;
        margin-top: 0 !important;
    }

    body.single-product .ns-single-product--design form.cart,
    body.single-product .ns-single-product--design .variations_form.cart,
    body.single-product .ns-single-product--design table.variations {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.single-product .ns-single-product--design table.variations tr {
        margin-bottom: 10px !important;
    }

    body.single-product .ns-single-product--design table.variations label {
        margin-bottom: 6px !important;
    }

    body.single-product .ns-single-product--design .ns-product-option-button {
        min-height: 44px !important;
    }

    body.single-product .ns-single-product--design .single_add_to_cart_button,
    body.single-product .ns-single-product--design .button,
    body.single-product .ns-single-product--design button.button,
    body.single-product .ns-single-product--design .ns-wishlist-button--single {
        min-height: 34px !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__short-description {
        margin-bottom: 4px !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__short-description p {
        margin-bottom: 6px !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__short-description p:last-child {
        margin-bottom: 0 !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__meta-list {
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__shipping-copy {
        margin-top: 6px !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__shipping-copy p {
        margin-bottom: 6px !important;
    }

    body.single-product .ns-single-product--design .ns-single-product__service-links {
        margin-top: 12px !important;
    }
}


/* v1.1.61 — Desktop: align the cart icon with the right-side header links.
   The basket stays inside the right header column, so its right edge lines up
   with SEARCH / ACCOUNT / MY SELECTION. Mobile keeps its original layout. */
@media (min-width: 961px) {
    .ns-header__right .ns-header__basket {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        align-self: flex-end !important;
        width: 26px !important;
        height: 31px !important;
        margin-top: 14px !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    .ns-header__right .ns-header__basket-icon {
        width: 26px !important;
        height: 31px !important;
    }
}
