@font-face {
    font-family: 'iranyekan';
    src: url('font/woff/iranyekanwebregularfanum.woff') format('woff');
}
@font-face {
    font-family: 'iranyekan';
    src: url('font/woff/iranyekanweblightfanum.woff') format('woff');
    font-weight: 300;
}
@font-face {
    font-family: 'iranyekan';
    src: url('font/woff/iranyekanwebboldfanum.woff') format('woff');
    font-weight: bold;
}
html {
    scrollbar-width: none;
}
body {
    font-family: 'iranyekan';
    margin: 0;
    padding: 0;
    background: white;
    color: black;
    font-size: 16px;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: black;
    transition: 0.3s;
}
a:hover {
    color: #4e4e4e;
}
nav {
    justify-content: space-between;
    padding: 12px 25px;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid black;
    z-index: 1001;
}
.nav-1, .nav-2 {
    gap: 10px;
}
.flex-align-items {
    display: flex;
    align-items: center;
}
.nav-form input {
    font-family: 'iranyekan';
    width: 300px;
    height: -webkit-fill-available;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 12px;
    outline: none;
    background: rgb(178 178 178 / 37%);
}
.nav-form button {
    border: none;
    height: -webkit-fill-available;
    background: rgb(178 178 178 / 37%);
    border-radius: 8px 0 0 8px;
}
.box-nav, .box-nav img {
    width: 30px;
}
.nav-icon, .box-nav, .box-nav img {
    height: 30px;
}
.nav-icon img {
    width: 195px;
}
.mobile {
    display: none;
}
.background-icon {
    background: rgb(178 178 178 / 37%);
    border-radius: 100%;
    padding: 8px;
}
main {
    margin: 64px auto;
    max-width: 1300px;
}
.story-list {
    display: flex;
    justify-content: space-evenly;
    overflow-x: auto;
    padding: 30px;
    gap: 30px;
}
.story-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #ff006a;
    padding: 3px;
}
.story-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:#000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99900;
}
.story-popup.hidden {
    display: none;
}
.story-inner {
    width: auto;
    max-width: 1080px;
    height: 100%;
    max-height: 1920px;
    position: relative;
}
#storyImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.progress-container {
    position: absolute;
    top: 10px;
    left: 0;
    width: -webkit-fill-available;
    display: flex;
    gap: 5px;
    padding: 0 10px;
}
.progress-bar {
    height: 3px;
    background: rgba(255,255,255,0.4);
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}
.progress-bar-inner {
    height: 100%;
    width: 0%;
    background: white;
    transition: width linear;
}
.box-image {
    background: repeating-linear-gradient(135deg, #000000a8, #000000a8 6px, #000000cf 0px, #000000cf 10px);
    height: 400px;
    width: -webkit-fill-available;
    border-radius: 10px;
}
.amazing-offer {
    background: linear-gradient(225deg, #d22c4e, #ee384e 41.68%, #ef5662);
    border-radius: 16px;
    padding: 20px 0;
    margin: 15px 0;
}
.over-offer {
    display: flex;
    gap: 10px;
    margin: 0 20px;
    align-items: stretch;
}
.offer-one {
    color: white;
    width: 140px;
    text-align: center;
    flex-shrink: 0;
    margin: auto;
    line-height: 2;
}
.offer-one h3 {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}
.offer-one img {
    width: 110px;
    height: 110px;
}
.offer-one a {
    color: white;
    font-size: 13px;
}
.offer-slider {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}
.offer-slider::-webkit-scrollbar {
    height: 6px;
}
.offer-slider::-webkit-scrollbar-thumb {
    background: #ffffff55;
    border-radius: 10px;
}
.offer-two {
    background: white;
    padding: 8px;
    border-radius: 8px;
    min-width: 155px;
    max-width: 155px;
    box-shadow: 0 0 4px #00000010;
    text-align: center;
    flex-shrink: 0;
}
.offer-two img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
}
.offer-two h5 {
    margin: 10px 0;
    line-height: 1.7;
    overflow: hidden;
    text-align: right;
}
.offer-two span {
    font-size: 15px;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 4px;
}
.offer-two span img {
    width: 14px;
    height: 14px;
}
.boxes-image {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.box-image {
    width: -webkit-fill-available;
    max-height: 250px;
    padding: 10px;
    text-align: center;
    height: auto;
}
.box-image img {
    max-width: 250px;
    max-height: 250px;
}
.category {
    margin-bottom: 30px;
}
.categories {
    display: flex;
    gap: 25px;
    justify-content: space-evenly;
    overflow-x: auto;
}
.categories a {
    display: grid;
    text-align: center;
    gap: 10px;
}
.categories a img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.category h2, .favorite-brands h2 {
    text-align: center;
    margin: 30px 0;
    font-weight: 400;
}
.foo-1 {
    max-width: 180px;
    max-height: 60px;
}
.favorite-brands {
    background: #ffbb009c;
    box-shadow: 0 0 20px #ffbb00;
    padding: 15px;
    margin: 20px 0;
    border-radius: 25px;
}
.brands-logos {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 15px;
}
.brands-logos a img {
    width: 70px;
    height: 70px;
    filter: grayscale(50%);
    opacity: 0.8;
    transition: all 0.3s;
}
.brands-logos a img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
@media (max-width: 1330px) {
    main {
        margin: 64px 20px;
    }
    .boxes-image {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 10px;
    }
    .box-image {
        height: auto;
        text-align: -webkit-center;
    }
    .box-image img {
        width: 100%;
        display: block;
        object-fit: cover;
        height: auto;
    }
    .categories {
        margin: 0 10px;
    }
    .favorite-brands {
        border-radius: 0;
    }
}
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    nav {
        padding: 10px 20px;
        gap: 10px;
    }
    .nav-2, .nav-icon {
        display: none;
    }
    .nav-1, .nav-form, .nav-form input {
        width: -webkit-fill-available;
    }
    .nav-form button {
        border-radius: 50px 0 0 50px;
    }
    .mobile {
        display: block;
    }
    .nav-form button img {
        padding-left: 5px;
    }
    .nav-form input {
        padding-right: 18px;
        border-radius: 0 50px 50px 0;
    }
    main {
        margin: 64px 0;
    }
    .story-list {
        padding: 15px;
        gap: 15px;
    }
    .story-inner {
        width: 100%;
    }
    .amazing-offer {
        border-radius: 0;
        margin: 10px 0;
    }
    .over-offer {
        margin: 0 10px;
        gap: 5px;
    }
    .offer-one {
        width: 80px;
    }
    .offer-one h3 {
        font-size: 15px;
    }
    .offer-one img {
        width: 80px;
        height: 80px;
    }
    .offer-two {
        border-radius: 4px;
        min-width: 130px;
        max-width: 130px;
    }
    .offer-two img {
        width: 100px;
        height: 100px;
    }
    .categories, .offer-slider, .story-list {
        scrollbar-width: none;
    }
    .category h2, .favorite-brands h2 {
        text-align: right;
        margin: 20px;
        font-size: 20px;
    }
    .categories a img {
        width: 70px;
        height: 70px;
    }
}