
/* ==========================================
   INVOMIZE AMAZON FBA — SLEEK GLOBAL HEADER
   ========================================== */

.iv-header,
.iv-header * {
    box-sizing: border-box;
}

.iv-header {
    position: relative;
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1425px;
    margin: 10px auto 0;
    background: #16232B;
    border-radius: 13px;
}

/* Compact centered layout */

.iv-header__inner {
    width: 100%;
    min-height: 75px;
    padding: 10px 14px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */

.iv-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
}

.iv-header__logo-icon {
    display: block;
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.iv-header__logo-text {
    display: block;
    width: auto;
    height: 27px;
    max-width: 215px;
    object-fit: contain;
}

/* Right actions */

.iv-header__actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-shrink: 0;
}

/* CTA Button */

.iv-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    min-width: 218px;
    padding: 12px 25px;

    background: #F5C842;
    border: 1px solid #F5C842;
    border-radius: 100px;

    color: #16232B;
    font-family: var(--iaf-font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.iv-header__cta:hover,
.iv-header__cta:focus-visible {
    background: transparent;
    color: #F5C842;
    text-decoration: none;
}

/* Globe */

.iv-header__globe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.iv-header__globe svg {
    display: block;
    width: 37px;
    height: 37px;
}

/* Tablet */

@media (max-width: 1024px) {

    .iv-header {
        width: calc(100% - 32px);
    }

    .iv-header__inner {
        min-height: 70px;
        padding: 10px 14px;
    }

    .iv-header__actions {
        gap: 18px;
    }

    .iv-header__cta {
        min-width: auto;
        padding: 12px 19px;
        font-size: 14px;
    }
}

/* Mobile */

@media (max-width: 767px) {

    .iv-header {
        width: calc(100% - 20px);
        margin-top: 10px;
        border-radius: 10px;
    }

    .iv-header__inner {
        min-height: 64px;
        padding: 10px 12px;
        gap: 10px;
    }

    .iv-header__brand {
        gap: 5px;
    }

    .iv-header__logo-icon {
        width: 34px;
        height: 34px;
    }

    .iv-header__logo-text {
        height: 20px;
        max-width: 135px;
    }

    .iv-header__actions {
        gap: 12px;
    }

    .iv-header__cta {
        min-height: 35px;
        padding: 9px 12px;
        font-size: 11px;
    }

    .iv-header__globe,
    .iv-header__globe svg {
        width: 27px;
        height: 27px;
    }
}

/* Small screens */

@media (max-width: 390px) {

    .iv-header__inner {
        padding: 9px;
    }

    .iv-header__logo-icon {
        width: 30px;
        height: 30px;
    }

    .iv-header__logo-text {
        height: 17px;
        max-width: 105px;
    }

    .iv-header__actions {
        gap: 7px;
    }

    .iv-header__cta {
        padding: 8px;
        font-size: 10px;
    }

    .iv-header__globe,
    .iv-header__globe svg {
        width: 23px;
        height: 23px;
    }
}

.iv-header a:focus-visible {
    outline: 2px solid #F5C842;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .iv-header__cta {
        transition: none;
    }
}



/* ==========================================================
   INVOMIZE AMAZON FBA — STICKY SHRINKING HEADER
   ========================================================== */

.iv-header {
    position: sticky;
    top: 10px;
    z-index: 9999;

    transition:
        top 0.3s ease,
        margin-top 0.3s ease,
        box-shadow 0.3s ease;
}

.iv-header__inner {
    transition:
        min-height 0.3s ease,
        padding 0.3s ease;
}

.iv-header__logo-icon,
.iv-header__logo-text {
    transition:
        width 0.3s ease,
        height 0.3s ease,
        max-width 0.3s ease;
}

.iv-header__cta,
.iv-header__globe,
.iv-header__globe svg {
    transition:
        width 0.3s ease,
        height 0.3s ease,
        min-height 0.3s ease,
        min-width 0.3s ease,
        padding 0.3s ease,
        font-size 0.3s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

/* ==========================================================
   COMPACT STATE — AFTER SCROLL
   ========================================================== */

.iv-header.iv-header--scrolled {
    top: 6px;
    margin-top: 6px;

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
}

.iv-header--scrolled .iv-header__inner {
    min-height: 60px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.iv-header--scrolled .iv-header__logo-icon {
    width: 34px;
    height: 34px;
}

.iv-header--scrolled .iv-header__logo-text {
    height: 22px;
}

.iv-header--scrolled .iv-header__cta {
    min-height: 38px;
    min-width: 185px;
    padding: 10px 20px;
    font-size: 14px;
}

.iv-header--scrolled .iv-header__globe,
.iv-header--scrolled .iv-header__globe svg {
    width: 30px;
    height: 30px;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1024px) {

    .iv-header--scrolled .iv-header__inner {
        min-height: 58px;
    }

    .iv-header--scrolled .iv-header__cta {
        min-width: auto;
        padding: 9px 15px;
        font-size: 12px;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .iv-header {
        top: 10px;
    }

    .iv-header--scrolled .iv-header__inner {
        min-height: 54px;
        padding: 7px 10px;
        gap: 8px;
    }

    .iv-header--scrolled .iv-header__logo-icon {
        width: 29px;
        height: 29px;
    }

    .iv-header--scrolled .iv-header__logo-text {
        height: 17px;
        max-width: 115px;
    }

    .iv-header--scrolled .iv-header__actions {
        gap: 9px;
    }

    .iv-header--scrolled .iv-header__cta {
        min-height: 32px;
        min-width: auto;
        padding: 8px 11px;
        font-size: 10px;
    }

    .iv-header--scrolled .iv-header__globe,
    .iv-header--scrolled .iv-header__globe svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 390px) {

    .iv-header--scrolled .iv-header__inner {
        padding-left: 8px;
        padding-right: 8px;
    }

    .iv-header--scrolled .iv-header__brand {
        gap: 4px;
    }

    .iv-header--scrolled .iv-header__logo-icon {
        width: 26px;
        height: 26px;
    }

    .iv-header--scrolled .iv-header__logo-text {
        height: 15px;
        max-width: 95px;
    }

    .iv-header--scrolled .iv-header__actions {
        gap: 6px;
    }

    .iv-header--scrolled .iv-header__cta {
        padding: 7px 9px;
        font-size: 9px;
    }

    .iv-header--scrolled .iv-header__globe,
    .iv-header--scrolled .iv-header__globe svg {
        width: 21px;
        height: 21px;
    }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .iv-header,
    .iv-header__inner,
    .iv-header__logo-icon,
    .iv-header__logo-text,
    .iv-header__cta,
    .iv-header__globe,
    .iv-header__globe svg {
        transition: none;
    }
}
