﻿body {
    max-width: 100vw;
    overflow-x: hidden;
}
/* جلوگیری از بزرگ‌کردن خودکار متن در iOS */
html, body {
    -webkit-text-size-adjust: 100%;
}
.container {
    width: 100% !important;
    padding: 16px !important;
    margin: 0 auto !important;
}


@media(min-width:992px) {
    .container {
        width: 85% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        max-width: 1440px;
    }

}

/*product detail*/
.product-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 28px;
}

.product-container-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #99999999;
    transition: opacity .25s ease, transform .25s ease;
    will-change: opacity, transform;
}
    .product-container-right.fade-out {
        opacity: 0;
        transform: translateY(6px);
    }

    .product-container-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

.product-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-description {
    flex: 1;
    height: auto;
}

.product-feature {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #99999999;
}

.cart {
    display: none;
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    border: 1px solid #99999999;
}

.product-like-box {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 10px;
    right: 10px;
    gap: 10px;
}


@media(min-width:576px) {
    .product-container-right {
        flex-direction: row;
    }

    .product-img {
        flex: 30;
        max-width: 250px;
        max-height: 250px;
    }

    .product-description {
        flex: 70;
        padding: 10px;
    }
}

@media(min-width:992px) {
    .cart {
        padding: 20px;
        max-width: 450px;
        display: block;
    }
}

@media(min-width:1280px) {
    .product-container {
        flex-direction: row;
    }

    .product-container-right {
        flex: 75;
    }

    .product-container-left {
        flex: 25;
    }

    .product-img {
        flex: 30;
        max-width: 400px;
        max-height: 400px;
    }

    .product-description {
        flex: 70;
    }
}

[data-group='product-feature'] {
    color: #000000;
    border: 1px solid #99999999;
    font-weight: normal;
}

    [data-group='product-feature'].active {
        color: #3F72AF;
        border: 2px solid #3F72AF;
        font-weight: bold;
    }


.special-product {
    flex: 0 0 220px;
    aspect-ratio: 10 / 14;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 576px) {
    .special-product {
        flex: 0 0 240px;
        max-height: 400px;
    }
}

@media (min-width: 768px) {
    .special-product {
        flex: 0 0 260px;
        max-height: 400px;
    }
}

.special-product-img {
    width: 90%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .special-product-img div {
        width: 100%;
        height: 100%;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

.arrow {
    width: 40px;
}

.mobile-cart {
    position: fixed;
    bottom: 0;
    left: 0px;
    width: 100%;
    padding: 10px 16px;
    background-color: white;
    z-index: 400;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.primary-btn {
    padding: 10px 12px;
    font-size: 14px;
    color: white;
    background-color: rgb(63,114,175);
    border-radius: 5px;
}

.discount {
    width: 30px;
    font-size: 12px;
    height: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(63,114,175);
    color: white;
}

@media(min-width:576px) {
/*    .mobile-cart {
        padding: 12px calc(1.5%+16px) !important;
    }*/

}
@media(min-width:992px) {
    .mobile-cart {
        display: none;
    }
}

.font-10 {
    font-size: 10px
}

.font-14 {
    font-size: 14px;
}

.font-12 {
    font-size: 12px;
}

.font-16 {
    font-size: 16px
}

.font-18{
    font-size:18px;
}
.font-20{
    font-size:20px;
}
@media(min-width:768px) {
    .font-md-10 {
        font-size: 10px;
    }

    .font-md-12 {
        font-size: 12px;
    }

    .font-md-14 {
        font-size: 14px;
    }

    .font-md-16 {
        font-size: 16px
    }
    .font-md-18 {
        font-size: 18px;
    }
    .font-md-20 {
        font-size: 20px;
    }
}

@media(min-width:992px) {
    .font-lg-10 {
        font-size: 10px;
    }

    .font-lg-12 {
        font-size: 12px;
    }

    .font-lg-14 {
        font-size: 14px;
    }

    .font-lg-16 {
        font-size: 16px;
    }
    .font-lg-18 {
        font-size: 18px;
    }
    .font-lg-20 {
        font-size: 20px;
    }
}
.text-primary-color {
    color: rgb(63,114,175);
}
#products-rare {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* موبایل: ۲ ستون */
    gap: 8px;
    padding: 0 8px;
}

@media (min-width: 768px) {
    #products-rare {
        grid-template-columns: repeat(3, 1fr); /* تبلت: ۳ ستون */
    }
}

@media (min-width: 1024px) {
    #products-rare {
        grid-template-columns: repeat(4, 1fr); /* دسکتاپ: ۴ ستون */
    }
}

@media (min-width: 1280px) {
    #products-rare {
        grid-template-columns: repeat(5, 1fr);
    }
}
.best-seller-item {
    background-color: white;
    margin-bottom: 10px;
    flex-shrink: 0; /* flex-shrink-0 */
    width: 150px; /* w-[150px] برای موبایل */
}

/* برای صفحه‌های sm (≥640px) */
@media (min-width: 640px) {
    .best-seller-item {
        width: 230px; /* sm:w-[220px] */
        margin-bottom: 30px; /* sm:mb-[30px] */
    }
}

/* برای صفحه‌های lg (≥1024px) */
@media (min-width: 1024px) {
    .best-seller-item {
        width: 257px; /* lg:w-[257px] */
        margin-bottom: 42px; /* lg:mb-[42px] */
    }
}
#products-shop {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* موبایل: ۲ ستون */
    gap: 8px;
    padding: 0 8px;
}

@media (min-width: 768px) {
    #products-shop {
        grid-template-columns: repeat(3, 1fr); /* تبلت: ۳ ستون */
    }
}

@media (min-width: 1024px) {
    #products-shop {
        grid-template-columns: repeat(4, 1fr); /* دسکتاپ: ۴ ستون */
    }
}

@media (min-width: 1280px) {
    #products-shop {
        grid-template-columns: repeat(5, 1fr);
    }
}


.product-content{
    padding:10px;
}


#header-cart-badge {
    right:-15px;
    top:-10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgb(63,114,175);
}

.image-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

    .image-container .img-item {
        flex:1;
        aspect-ratio:3/1;
    }

@media (min-width: 992px) {
    .image-container {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .image-container {
        flex-direction: row;
    }
}
