html{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
*, *::after, *::before {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}
body {
    font-family: "ProductSans-Regular","Delius", monospace;
    min-height: 100vh;

    background: linear-gradient(rgba(0, 0, 0, 0.200)), linear-gradient(to top, #1a0033, #33004d, #1a1a1a);
    background-attachment: fixed;
}
input,button,textarea{
    font-family: "ProductSans-Regular","Delius" , monospace;
    border: none;
    outline: none;
    text-decoration: none;
    padding: none;
    margin: none;
}
.container {
    width: 80rem;
    max-width: 95%;
    margin: 0 auto;
}
/* --- استایل‌های سربرگ (Header) --- */
.header {
    z-index: 1000;
    width: 100%;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 7rem;
    position: sticky;
    top: 1rem;
    border-radius: 1rem;
    background-color: rgba(59, 59, 59, 0.184);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px -2px black;
    margin-bottom: 2rem;
}
.header-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    color: white;
}
.header-icon__name{
    font-size: 2.5rem;
}
.header-icon__img{
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}
.header-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.h__item {
    text-decoration: none;
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    transition: color,transform 0.3s ease;
    position: relative;
}
.h__item:hover {
    color: #00AEEF;
    transform: scale(0.9);
}
.h__shop::after{
    content: "";
    width: 100%;
    height: 4px;
    position: absolute;
    right: 0;
    bottom: -10px;
    border-radius: 1rem;
    background-color: #00AEEF;
}

/* main */

.main{

    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
.shop__title{
    text-align: center;
    font-size: 2.5rem;
    margin-top: 5rem;
    color: #00AEEF;
    text-shadow: 0 0 10px rgba(0, 131, 179, 0.5);
    animation: letter-spacing 10s infinite linear;    
}
@keyframes letter-spacing{
    0%{
        letter-spacing: normal;
    }
    40%{
        letter-spacing: 0.1rem;
    }
    100%{
        letter-spacing: normal;
    }
}
.main-box-container{
    width: 64.1rem;
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding-left: auto;
    padding-right: auto;
    
}


/* box desing  */
.main__box{
    width: 20rem;
    height: 27rem;
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    border-radius: 10%;
    box-shadow: 0 0 10px rgba(106, 27, 154, 0.3); 
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease; 
    border: 1px solid rgba(255, 255, 255, 0.15);

}
.main__box::before{
    content: "";
    position: absolute;
    top: -2px;
    right: 0;
    left: 0;
    width: 80%;
    margin: 0 auto;
    height: 5px;
    background-color: #00AEEF;
    transform: scaleX(0);
    border-radius: 2rem;
}
.popular::before{
    background-color: #957f00;
}

.main__box:hover {
    box-shadow: 0 5px 15px 5px rgba(0, 174, 239, 0.5);
    transform: translateY(-5px);

}
.main__box:hover::before{
    animation: border-top 800ms ease-in both 2ms;
}

.top-tag{
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 0;
    border-radius: 1rem;
    font-size: 1rem;
    background-color: #6A1B9A; 
    color: white;
    text-align: center;
    width: 5rem;
    height: auto;
    padding: 0.2rem 0.5rem;
}
@keyframes border-top {
    0%{
        transform: scale(0);
    }
    50%{
        transform: scale(1);
    }
    100%{
        transform: scale(0);
    }
}

.box__img{
    width: 4rem;
    height: 4rem;
    position: absolute;
    top: 2rem;
    animation: star 2s infinite linear;
}
@keyframes star{
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.1);
    }
    100%{
        transform: scale(1);
    }
}
.box__value{
    font-size: 5rem;
    margin-top: 4rem;
    color: #00AEEF; 
    text-shadow: 0 0 10px rgba(0, 136, 204, 0.5);
}

.box__subtitle{
    margin-top: 10%;
    text-align: center;
    color: #cccccc; 
}

.box-price{
    margin-top: 10%;
    font-size: 2.5rem;
    color: #6A1B9A; 

}

.box__button{
    position: absolute;
    bottom: 1rem;
    width: 70%;
    height: 3rem;
    font-size: 1.5rem;
    border-radius: 0.75rem;

    background-color: #6A1B9A; 
    color: white;
    cursor: pointer;
    transition: all 200ms ease 2ms;
}

.box__button:hover{
    background-color: #00AEEF; 
    box-shadow: 0 5px 15px rgba(0, 174, 239, 0.7); 
    color: black;
    transform: translateY(-0.3rem);
}
.popular{
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    background-color: rgba(255, 217, 0, 0.150);
}
.popular:hover{
    box-shadow: 0 0 15px 5px #e6be8aac;
}
.popular .top-tag{
    background-color: #957f00;
}
.popular .box__value{
    color: #957f00;
}
.popular .box__button:hover{
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.4);
    background-color: #e6be8a;
}



@media (max-width: 1200px) {
    .header {
        padding: 1rem 5rem;
    }
    .shop__title{
        margin-top: 1rem;
    }
    .main-box-container{
        width: 58.1rem;
    }
    .main__box{
        width:18rem;
        height: 24.3rem;
    }
    .box__img{

    }
    .box__value{
        font-size: 4rem;
    }

}
@media (max-width: 992px) {
    .header {
        padding: 1rem 2rem;
    }
    .header-item {
        gap: 1rem;
    }
    .main{
        justify-content: flex-start;
    }
    .shop__title{
        margin-top: 2rem;
    }
    .main-box-container{
        width: 43.1rem;
    }
    .main__box{
        width: 13rem;
        height: 17.6rem;
    }
    .box__img{
        top: 1rem;
        width: 3rem;
        height: 3rem;
    }
    .box__value{
        font-size: 2.5rem;
        margin-top: 2.8rem;
    }
    .box__subtitle{
        font-size: 0.8rem;
        margin-top: 0.1rem;
    }
    .box-price{
        font-size: 2rem;
    }
    .box__button{
        height: 2.3rem;
        font-size: 1rem;
    }

}
@media (max-width: 768px) {
    .container{
        padding-top: 0;
    }
    .header {
        flex-direction: column;
        height: 5rem;
        margin: auto;
        width: 70%;
        padding: 1rem;
        align-items: center;
        position: none;
        border-radius: 2rem;
        margin-bottom: 2rem;
    }
    .header-icon__name{
        font-size: 2.5rem;
    }
    .header-icon {
        margin-bottom: 0.5rem;
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        /* gap: 1rem; */
    }
    .header-item {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        display: none;
    }
    .h__item {
        font-size: 0.9rem;
    }
    .h__home::after{
        bottom: -5px;
        height: 2px;
    }

    .main{
        justify-content: flex-start;
    }
    .shop__title{
        margin-top: 1.5rem;
    }
    .main-box-container{
        width: 30.1rem;
        gap: 2rem;
    }
    .main__box{
        width: 14rem;
        height: 17.6rem;
    }    

}

@media(max-width: 520px){
    .header{
        width: 100%;
    }
    .header-icon__name{
        font-size: 2rem;
    }
    .shop__title{
        margin-top: 1.5rem;
    }
    .main-box-container{
        width: 23.6rem;
        gap: 1.5rem;
    }
    .main__box{
        width: 11rem;
        height: 14.85rem;
    }
    .top-tag{
        width: 4rem;
        font-size: 0.8rem;
    }
    .box__img{
        top: 0.9rem;
        width: 2rem;
        height: 2rem;
    }
    .box__value{
        font-size: 2rem;
        margin-top: 2.1rem;
    }
    .box__subtitle{
        font-size: 0.6rem;
        margin-top: 0.3rem;
    }
    .box-price{
        font-size: 1.6rem;
    }
    .box__button{
        height: 2rem;
        font-size: 1rem;
    }
}

@media(max-width: 400px){
    .main-box-container{
        width: 21.1rem;
        gap: 1rem;
    }
    .main__box{
        width: 10rem;
        height: 13.5rem;
    }
    .box__subtitle{
        margin-top: 0.2rem;
    }
    .box-price{
        margin-top: 0.5rem;
    }
    .box__button{
        height: 1.8rem;
    }
}