@import url('themes/_variables.css');
@import Url('shared/bottleeffect.css');
:root {
    --cat-icon-url: url('/images/icons/categuryblack.svg');
}
[data-theme="dark"] {
   
    --cat-icon-url: url('/images/icons/categury.svg');
}
.pcat-main {
    position:relative;
    background-color: var(--bg-primary);
    width: 98%;
    height: auto;
    border-radius: 24px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    align-items: flex-start;
    box-sizing: border-box;
}

.pcat-cat-continer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    width: 100%;
}

.pcat-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pcat-titr {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pca-titr-back-img {
    background-image: var(--cat-icon-url);
    background-size: contain;
    background-repeat: no-repeat;
    height: 3rem;
    width: 3rem;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}




.pcat-titr p {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 500;
}

.pcat-titr b {
    color: rgba(37,99,235,1);
    margin-left: 5px;
    font-size: 32px;
}

.pcat-category-item {
    background-color: var(--link-color) ;
    width: 8rem;
    height: 8rem;
    border-radius: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-top: 3rem;
}

    .pcat-category-item p {
        position: relative;
        color: var(--text-primary);
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.4;
    }

    .pcat-category-item:hover {
        background-color: var(--link-hover-color);
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

    .pcat-category-item img {
        position: relative;
        transform: rotate(10deg);
    }

/* تنظیمات خاص برای هر تصویر - حفظ شده از کد اصلی */
.i1-img {
    width: 2.5rem;
    height: 9rem;
}

.i2-img {
    width: 2.5rem;
    height: 9rem;
    margin-top: 2rem;
}

.i3-img {
    width: 2.4rem;
    height: 9rem;
}

.i4-img {
    width: 2.5rem;
    height: 8rem;
    margin-top: 3rem;
}

.i5-img {
    width: 9rem;
    height: 10rem;
    margin-left: 4rem;
    margin-bottom: 0.8rem;
    transform: rotate(1deg);
}

.i6-img {
    width: 9rem;
    height: 9rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.i7-img {
    width: 8rem;
    height: 8rem;
    margin-top: 2rem;
    transform: rotate(0deg);
}

.i8-img {
    width: 6rem;
    height: 8.3rem;
    margin-left: 3rem;
    transform: rotate(1deg);
}

/* انیمیشن‌ها */
.pcat-category-item:hover img {
    animation: spin 1.5s infinite alternate;
}

@keyframes spin {
    from {
        transform: rotate(-5deg);
    }

    to {
        transform: rotate(5deg);
    }
}

.pcat-button {
    width: 180px;
    height: 50px;
   
    background-color: rgba(37,99,235,1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1px 15px;
    margin-right: auto;
    top:-50px;
    position: relative;
    z-index: 1;
}

    .pcat-button:hover {
        background-color: rgba(37,99,235,1);
    }

        .pcat-button:hover img {
            animation: bounce 0.5s infinite alternate;
        }

@keyframes bounce {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-5px);
    }
}

.pcat-button p {
    color: white;
    font-size: 1.2rem;
    font-weight: bolder;
    text-align: center;
    justify-self:center;
    margin-top:1rem;
    position: relative;
}

.pcat-button img {
    position: relative;
    width: 33px;
    height: 33px;
}

/* رسپانسیو برای تبلت */
@media (max-width: 1024px) {
    .pcat-cat-continer {
        gap: 40px;
    }

    .pcat-category-item {
        width: 7rem;
        height: 7rem;
        margin-bottom: 3.5rem;
        padding-top: 2.5rem;
    }

    /* تنظیمات تصاویر برای تبلت */
    .i1-img, .i2-img {
        width: 2.2rem;
        height: 8rem;
    }

    .i3-img {
        width: 2.1rem;
        height: 8rem;
    }

    .i4-img {
        width: 2.2rem;
        height: 7rem;
    }

    .i5-img {
        width: 8rem;
        height: 9rem;
        margin-left: 3.5rem;
    }

    .i6-img {
        width: 8rem;
        height: 8rem;
    }

    .i7-img {
        width: 7rem;
        height: 7rem;
    }

    .i8-img {
        width: 5.3rem;
        height: 7.5rem;
        margin-left: 2.6rem;
    }

    .pcat-category-item p {
        font-size: 20px;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .pcat-main {
        width: 95%;
        padding: 15px;
    }

    .pcat-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .pcat-cat-continer {
        gap: 30px;
        margin-bottom: 40px;
    }

    .pcat-category-item {
        width: 6rem;
        height: 6rem;
        margin-bottom: 3rem;
        padding-top: 2rem;
        gap: 1.5rem;
    }

    /* تنظیمات تصاویر برای موبایل */
    .i1-img, .i2-img {
        width: 2rem;
        height: 7rem;
    }

    .i2-img {
        margin-top: 1.5rem;
    }

    .i3-img {
        width: 1.8rem;
        height: 7rem;
        margin-top: 1.5rem;
    }

    .i4-img {
        width: 2rem;
        height: 6.5rem;
        margin-top: 2rem;
    }

    .i5-img {
        width: 8rem;
        height: 8rem;
        margin-left: 4rem;
        margin-bottom: 0.6rem;
    }

    .i6-img {
        width: 7rem;
        height: 7rem;
        margin-top: 3.5rem;
        margin-bottom:0rem;
    }

    .i7-img {
        width: 6rem;
        height: 6rem;
        margin-top: 3.5rem;
    }

    .i8-img {
        width: 4.5rem;
        height: 6.2rem;
        margin-left: 2.2rem;
        margin-top: 2rem;
        margin-bottom: -0.4rem;
    }

    .pcat-category-item p {
        font-size: 18px;
    }

    .pcat-titr p {
        font-size: 24px;
    }

    .pcat-titr b {
        font-size: 28px;
    }

    .pcat-button {
        width: 160px;
        height: 45px;
        top: -40px;
        margin-right:auto;
       
    }

        .pcat-button p {
            font-size: 16px;
        }
}

/* رسپانسیو برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .pcat-main {
        width:fit-content;
       
        border-radius: 16px;
    }

    .pcat-cat-continer {
        gap: 20px;
        margin-bottom: 30px;
    }

    .pcat-category-item {
        width: 5.5rem;
        height: 5.5rem;
        margin-bottom: 2.5rem;
        padding-top: 1.5rem;
        gap: 1rem;
    }

   
    .i1-img {
        width: 1.8rem;
        height: 6.5rem;
    }
    .i2-img {
        width: 1.7rem;
        height: 6.5rem;
        margin-top: 0rem;
    }



    .i3-img {
        width: 1.6rem;
        height: 6.5rem;
        margin-top: 0rem;
    }

    .i4-img {
        width: 1.7rem;
        height: 5.5rem;
        margin-top: 1.8rem;
    }

    .i5-img {
        width: 6.5rem;
        height: 6.5rem;
        margin-left: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .i6-img {
        width: 6.5rem;
        height: 6.5rem;
        margin-top: 1.2rem;
    }

    .i7-img {
        width: 5.5rem;
        height: 5.5rem;
        margin-top: 1.5rem;
    }

    .i8-img {
        width: 4.8rem;
        height: 6.2rem;
        margin-left: 1.8rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .pcat-category-item p {
        font-size: 12px;
    }

    .pcat-titr {
        font-size:0.6rem;
        gap: 10px;
    }

    .pca-titr-back-img {
        width: 2rem;
        height: 2rem;
    }

    

    .pcat-titr p {
        font-size:0.9rem;
    }

    .pcat-titr b {
        font-size:1rem;
    }

    .pcat-button {
        width:7.5rem;
        height: 2rem;
        top: -30px;
    }

        .pcat-button p {
            font-size: 0.6rem;
            font-weight:bolder;
        }

        .pcat-button img {
            width: 28px;
            height: 28px;
        }
}
