header {
    padding-top: 1em;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 1em;
    position: relative;
}

.search-profile-cart img {
    cursor: pointer;
}


.shop-name a {
    text-decoration: none;
    color: inherit;
}


.shop-name {
    padding-left: 2em;
    font-size: 40px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
}


nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2em;
    font-size: 20px;
    white-space: nowrap;
}


.ham-menu {
    display: none;
}

.search-profile-cart {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

.nav-item-track {
    display: flex;
    border: 1px solid #A35709;
    justify-content: center;
    padding: 0.5em 1em;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    right: -30px;
    top: -30px;
    background-color: #ff8303;
    color: white;
    z-index: 2000;
    font-family: monospace;
    height: 30px;
    width: 30px;
    text-align: center;
    border-radius: 15px;
    display: none;
}

@media screen and (max-width:1300px) {
    header {
        position: relative;
    }

    .shop-name {
        justify-content: center;
        grid-column-start: 2;
    }


    .search-profile-cart {
        padding-top: 0.5em;
        align-items: baseline;
        padding-right: 2em;
    }


    nav {
        position: absolute;
        padding-top: 5em;
        font-size: 30px;
        grid-column-start: 1;
        grid-row-start: 1;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background-color: #ff8303;
        padding-left: 2em;
        padding-bottom: 2em;
        z-index: 1000;
    }


    .ham-menu::before,
    .ham-menu::after,
    .ham-menu input {
        content: "";
        width: 50px;
        height: 5px;
        background-color: black;
        transform-origin: left center;
        transform-origin: left center;
        transition: opacity 250ms ease-in-out, width 250ms ease-in-out;
    }

    .ham-menu {
        display: flex;
        flex-direction: column;
        padding-top: 1em;
        padding-left: 2em;
        padding-left: 2em;
        justify-content: flex-start;
        grid-column-start: 1;
        grid-row-start: 1;
        gap: 0.5em;
        width: max-content;
        height: max-content;
        cursor: pointer;
        z-index: 1001;
    }

    .ham-menu input {
        appearance: none;
        margin: 0;
        padding: 0;
        outline: none;
        pointer-events: none;
    }


    .ham-menu input:checked {
        opacity: 0;
        width: 0;
    }

    .ham-menu:has(input:checked)::before {
        rotate: 45deg;
    }


    .ham-menu:has(input:checked)::after {
        rotate: -45deg;
    }


    .ham-menu:has(input:checked)+nav {
        translate: 0;
    }

    .ham-menu:has(input:not(:checked))+nav {
        translate: -100%;
    }
}