﻿#calculator {
    width: 100%;
    min-height: 70vh;
    background: url("../img/calculator-background-9idet8pma9adeqd5.jpg") top center;
    background-size: cover;
    position: relative;
}

#calculator:before {
    content: "";
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

#calculator .container {
    position: relative;
    padding-top: 74px;
    text-align: center;
}

#calculator h1 {
    margin: 0;
    font-size: 50px;
    font-weight: 700;
    line-height: 64px;
    color: #fff;
    font-family: "irsans", irsans, sans-serif;
}

    #calculator h1 span {
        color: #BE0032;
    }

#calculator h2 {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 0 0;
    font-size: 24px;
}

#calculator .icon-box {
    padding: 30px 20px;
    transition: ease-in-out 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
    text-align: center;
}

    #calculator .icon-box i {
        font-size: 32px;
        line-height: 1;
        color: #BE0032;
    }

#calculator .icon-box h3 {
    font-weight: 700;
    margin: 10px 0 0 0;
    padding: 0;
    line-height: 1;
    font-size: 20px;
    line-height: 26px;
}

#calculator .icon-box h3 a {
    color: #fff;
    transition: ease-in-out 0.3s;
}

    #calculator .icon-box h3 a:hover {
        color: #BE0032;
    }

    #calculator .icon-box:hover {
        border-color: #BE0032;
    }

@media (min-width: 1024px) {
    #calculator {
        background-attachment: fixed;
    }
}

@media (max-width: 768px) {
    #calculator {
        height: auto;
    }
    #calculator .container {
        padding-top: 20px
    }
    .calcheader {
        margin-top: 2rem;
    }

    #calculator h2 {
        font-size: 20px;
        line-height: 24px;
    }
}

.list-group-item.active {
    background-color: #BE0032 !important;
    border-color: red !important;
    color: #eeeeee !important; /* متن با رنگ متضاد */
}
.btn-primary {
    background-color: #BE0032;
    border-color: red;
    color: #eeeeee;
}

    .btn-primary:hover {
        background-color: #BE0032;
        border-color: red;
        color: #eeeeee;
    }
.text-success {
    font-size: 1.5rem; /* اندازه بزرگ‌تر */
    color: #32cd32 !important; /* سبز روشن‌تر */
    font-weight: bold; /* ضخیم‌تر برای وضوح بیشتر */
}

.text-info {
    font-size: 1.2rem; /* کمی کوچک‌تر از وزن کل */
    color: #87ceeb; /* آبی روشن */
    font-weight: bold;
    margin-top: 10px;
}


.product-category-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* استایل بخش سمت چپ */
.product-category-sidebar {
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.product-category-sidebar h5 {
    font-size: 18px;
    border-bottom: 2px solid #dc3545; /* رنگ قرمز بوت‌استرپ */
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.product-category-list li a {
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.product-category-list li a:hover {
    color: #dc3545;
    transform: translateX(5px);
}

/* استایل بخش سمت راست */
.product-category-main .product-category-item {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-category-main .product-category-item:hover {
    background-color: #fdfdfd;
    transform: translateY(-5px);
}

.product-category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-category-name {
    font-size: 14px;
    color: #333;
}

.product-category-name:hover {
    color: #dc3545;
}

/* استایل کلی کارت‌های دسته‌بندی */
.product-category-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* گوشه‌های گرد */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-category-item:hover {
    transform: scale(1.05); /* زوم در هنگام هاور */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* سایه عمیق‌تر */
}

.product-category-item img {
    width: 100%; /* پر کردن عرض کارت */
    height: 200px; /* ارتفاع ثابت */
    object-fit: cover; /* برش مناسب برای تناسب تصویر */
    object-position: center; /* موقعیت وسط */
    border-radius: 10px; /* گوشه‌های گرد */
    transition: transform 0.3s ease;
    display: block; /* حذف فضاهای غیرضروری اطراف تصویر */
    image-rendering: auto; /* کیفیت رندر پیش‌فرض */
    -webkit-backface-visibility: hidden; /* جلوگیری از تاری در برخی مرورگرها */
}

/* زوم بیشتر فقط روی تصویر هنگام هاور */
.product-category-item:hover img {
    transform: scale(1.1);
}
/* عنوان داخل کارت */
.product-category-name {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
    color: #dc3545; /* رنگ قرمز */
    text-align: center;
}
/* طراحی کلی آیتم‌ها */
.main-category-item {
    width: 120px; /* عرض ثابت */
    height: 120px; /* ارتفاع برابر برای مربع */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* متن در مرکز */
}

/* گرادینت ملایم‌تر و زیباتر */
.main-category-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff, #ededed); /* گرادینت ملایم‌تر */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* گردی لبه‌ها */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* حذف اجزای اضافی */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* آیکون داخل هر آیتم */
.main-category-icon {
    width: 50px;
    height: auto;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 50%; /* آیکون دایره‌شکل */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* متن دسته‌بندی */
.main-category-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 8px;
    text-align: center;
}

/* افکت‌هاور جذاب‌تر */
.main-category-item:hover .main-category-gradient {
    transform: translateY(-5px) scale(1.1); /* حرکت و زوم */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ededed, #ffffff); /* تغییر گرادینت */
}

.main-category-item:hover .main-category-icon {
    transform: rotate(10deg) scale(1.2); /* چرخش و زوم آیکون */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* تنظیمات برای موبایل */
@media (max-width: 576px) {
    .main-category-item {
        width: 100px; /* اندازه کوچک‌تر در موبایل */
        height: 100px;
    }

    .main-category-name {
        font-size: 12px;
    }

    .main-category-icon {
        width: 40px;
    }
}

.active-category .main-category-gradient {
    background: linear-gradient(135deg, #808080, #b5b5b5); /* گرادینت خاص */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* سایه برجسته‌تر */
    transform: scale(1.05); /* کمی بزرگ‌تر */
    border: 2px solid #b5b5b5; /* حاشیه قرمز */
}

.active-category .main-category-name {
    color: #ffffff; /* رنگ متن متفاوت */
    font-weight: bold;
}


@media (max-width: 576px) {
    .row.g-3 {
        --bs-gutter-x: 12px; /* فاصله افقی */
        --bs-gutter-y: 12px; /* فاصله عمودی */
    }

    .main-category-item {
        width: 100%; 
        --bs-aspect-ratio: 1;
       
    }

    .main-category-icon {
        width: 35px; /* آیکون کوچک‌تر */
    }

    .main-category-name {
        font-size: 12px; /* متن کوچک‌تر */
    }
}

/* تنظیم فاصله یکسان بین آیتم‌ها در موبایل */
.row.g-3 {
    --bs-gutter-x: 16px; /* فاصله افقی یکسان */
    --bs-gutter-y: 16px; /* فاصله عمودی یکسان */
}


.about-picture {
    border-radius: 10px;
}


/*.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;*/ /* برای پنهان کردن اسکرول در مرورگرهای مدرن */
/*}

.slider-wrapper::-webkit-scrollbar {
    display: none;*/ /* پنهان کردن اسکرول در کروم */
/*}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.icon-box img {
    width: 100%;
    height: auto;
}

.icon-box h3 {
    text-align: center;
    margin-top: 10px;
    color: white;
}

.icon-box {
    margin: 0 10px;
    flex: 0 0 auto;
    text-align: center;
}*/


/* برای تنظیم سایز آیکون‌ها */
/*.icon-box img {
    width: 60px;*/ /* سایز مناسب برای آیکون‌ها */
    /*height: auto;*/ /* حفظ تناسب تصویر */
    /*margin: 0 auto;*/ /* وسط‌چین کردن */
    /*display: block;
}*/

/* برای تنظیم آیکون باکس‌ها */
/*.icon-box {
    text-align: center;*/ /* وسط‌چین کردن محتوا */
    /*padding: 20px;*/ /* فضای داخلی مناسب */
    /*border: 1px solid rgba(255, 255, 255, 0.3);*/ /* خط مرزی شفاف */
    /*border-radius: 10px;*/ /* گوشه‌های نرم */
    /*transition: transform 0.3s ease-in-out;*/ /* افکت hover */
/*}

.icon-box:hover {
    transform: scale(1.1);*/ /* افکت بزرگ‌نمایی */
    /*border-color: #ffc451;*/ /* تغییر رنگ مرزی هنگام هاور */
/*}*/

/* برای تنظیم دکمه‌های ناوبری */
/*.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-arrow {
    left: 10px;*/ /* فاصله از چپ */
/*}

.right-arrow {
    right: 10px;*/ /* فاصله از راست */
/*}

.slider-arrow:hover {
    background-color: #ffc451;*/ /* تغییر رنگ دکمه هنگام هاور */
    /*color: #000;*/ /* تغییر رنگ متن */
/*}*/

/* رفع مشکلات اسکرول اسلایدر */
/*.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    gap: 20px;*/ /* فاصله بین آیتم‌ها */
/*}

.slider-wrapper::-webkit-scrollbar {
    display: none;*/ /* مخفی کردن نوار اسکرول */
/*}*/
