body {
    padding: 0px;
    margin: 0px;
}

.nav-margin {
    color: black;
    align-self: center;
}

.nav-margin>a {
    font-size: 16px;
    margin-left: 2em;
}

.nav-margin>.black-btn {
    margin-right: 5em;
}

.foot-nav-icon {
    margin-left: 5em;
    height: 80px;
    width: auto;
    margin-bottom: 4px;
}

.nav-btn {
    padding: 12px;
    padding-right: 20px;
    padding-left: 20px;
    border-style: hidden;
    border-radius: 7px;
    background-color: #fff;
    color: #000;
}

.nav-btn:hover {
    background-color: grey;
    color: #fff;
}

.black-btn {
    padding: 12px;
    padding-right: 20px;
    padding-left: 20px;
    border-style: hidden;
    border-radius: 7px;
    background-color: #000;
    color: #fff;
}

.top-nav {
    font-family: "inter";
    width: 100%;
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    justify-content: space-between;
    background-color: #fff;
}

.screenmsg {
    display: none;
}

/* Small-screen responsive layout */
@media (max-width: 1000px) {
    .screenmsg {
        display: none;
    }

    .top-nav,
    .base {
        display: block;
    }

    .top-nav {
        position: sticky;
        top: 0;
        padding: 10px 16px;
        align-items: center;
        gap: 12px;
    }

    .foot-nav-icon {
        margin-left: 0;
        height: 56px;
    }

    .nav-margin {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }

    .nav-margin>a {
        margin-left: 0;
        font-size: 14px;
    }

    .base {
        padding-top: 80px;
        padding-right: 16px;
        padding-left: 16px;
        padding-bottom: 24px;
    }

    .frontPageimg {
        height: 46vh;
        text-align: center;
    }

    .frontPageimg>h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .frontPageimg>h2 {
        letter-spacing: 4px;
        font-size: 16px;
    }

    .trendingSec {
        margin-top: 48px;
    }

    .trendFlex {
        flex-direction: column;
    }

    .itemCard {
        margin-right: 0px;
        margin-bottom: 16px;
        flex: 100%;
    }

    .CategoriesSec {
        padding-top: 40px;
    }

    .Categoriesflex {
        flex-direction: column;
    }

    .bigcard,
    .smlcard,
    .inneritem {
        flex: 100%;
        margin-right: 0;
    }

    .endflex {
        flex-direction: column;
        gap: 24px;
    }

    .endlogo,
    .endcard {
        flex: 100%;
    }
}

.base {
    font-family: "inter";
    padding-top: 85px;
    padding-right: 5em;
    padding-left: 5em;
    padding-bottom: 30px;
}

.frontPageimg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-style: hidden;
    border-radius: 7px;
    background-image: url(https://res.cloudinary.com/dbxsbnvja/image/upload/v1716460211/FootWear%20Central/jakob-owens-Np_nvRuhpUo-unsplash_yhwid5.jpg);
    background-size: cover;
    width: 100%;
    height: 60vh;
}

.frontPageimg>h1 {
    line-height: 0px;
    font-size: 64px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.frontPageimg>h2 {
    font-weight: 300;
    letter-spacing: 10px;
}

.trendingSec {
    margin-top: 100px;
}

.trendingSec>h1 {
    font-weight: 600;
    font-size: 44px;
}

.trendFlex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.itemImg {
    border-style: hidden;
    border-radius: 7px;
    width: 100%;
    height: 70%;
}

#lastitem {
    margin-right: 0px;
}

.itemCard {
    margin-right: 20px;
    flex: 30%;
}

.CategoriesSec {
    padding-top: 80px;
}

.CategoriesSec>h1 {
    line-height: 20px;
    font-weight: 600;
    font-size: 44px;
}

.CategoriesSec>h2 {
    color: grey;
    font-weight: 400;
    font-size: 32px;
}

.Categoriesflex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.bigcard {
    margin-right: 20px;
    flex: 60%;
}

.bigimg {
    height: auto;
    width: 100%;
    border-style: hidden;
    border-radius: 7px;
}

.smlcard {
    flex: 34%
}

.innerflex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.inneritem {
    flex: 100%;
}

.men {
    margin-top: 20px;
}

.endSed {
    margin-top: 20px;
}

.endflex {
    display: flex;

}

.endlogo {
    flex: 50%;
}

.endinflex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.endinflex>h1 {
    margin-bottom: 80px;
}

i {
    font-size: 32px;
    margin-right: 12px;
    color: grey;
}

.endcard {
    flex: 50%;
    display: flex;
}

.endcarditem {
    flex: 33%;
}

.endcarditem>p {
    color: grey;
}

.priceflex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.priceflex>div>p {
    line-height: 10px;
}

.priceflex>div>i {
    margin-top: 10px;
}

#heart {
    color: grey;
}

#heart:hover {
    color: pink;
}

.grey {
    color: grey;
}

a,
 a:link,
 a:hover,
 a:visited {
    text-decoration: none;
}

/* Utility: small badge for cart count */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    margin-left: 8px;
    border-radius: 9px;
    font-size: 12px;
    background-color: #ff3b3b;
    color: #fff;
}

/* Clickable icon buttons used for cart and like */
.icon-btn {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
}

/* Liked heart state */
.liked {
    color: pink !important;
}

/* Modal styles */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    margin: 10vh auto;
    max-width: 720px;
    width: calc(100% - 32px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 20px;
    font-family: "inter";
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.cart-items {
    max-height: 40vh;
    overflow: auto;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.cart-item-row .meta {
    display: flex;
    flex-direction: column;
}

.cart-empty {
    color: grey;
}