﻿body {
    font-family: 'B Yekan', sans-serif,Tahoma;
}
.post-link {
    transform: scale(1.05);
    text-decoration: none;
    animation: pulse 2.5s infinite ease-in-out;
}
.post-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(13, 110, 253, 0.2);
}

    .post-title .post-link-in-title {
        font-size: inherit; /* اندازه‌اش برابر با h2 */
        color: #0d6efd;
    }
.post-logo {
    width: 70px;
    height: auto;
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(13, 110, 253, 0.6)); /* glow آبی قوی‌تر */
}

.post-text {
    font-size: 1.0rem;
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.7); /* glow آبی قوی‌تر برای متن */
}

@keyframes pulse {
    0% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.07);
    }

    100% {
        transform: scale(1.05);
    }
}
@font-face {
    font-family: 'B Yekan';
    src: url('/assets/fonts/yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.subtitle {
    display: block; /* بره خط بعد */
    font-size: 0.8rem; /* فونت کوچیک‌تر */
    color: #6c757d; /* رنگ خاکستری ملایم، یا هر چی بخوای */
    margin-top: 0.2rem; /* یه فاصله کوچیک از خط بالا */
}

/* مودال وسط صفحه */
/* تنظیمات کلی مودال */
.custom-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s;
}
.menu-container {
    position: relative;
    display: inline-block;
}

/* منو با طراحی بهبودیافته */
.customer-popup {
    display: none;
    position: absolute;
    top: 100%; /* نمایش زیر دکمه */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1000;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: right; /* راست چین کردن متن منو */
    direction: rtl; /* تنظیم جهت برای فارسی */
}

    /* کلاس برای نمایش منو */
    .customer-popup.show {
        opacity: 1;
        display: block;
    }

/* مخفی کردن المان‌های زیر منو */
.popup-hide {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 250px;
    background: white;
    visibility: hidden;
    z-index: 999;
}

.close-button {
    position: absolute;
    top: 0px; /* کمی بالاتر از قبل */
    right: 6px;
    cursor: pointer;
}




.customer-popup a {
    display: block;
    margin: 12px 0;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

    .customer-popup a:hover {
        color: #0056b3;
    }

.customer-popup p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}



/* نمایش منو هنگام هاور */
.menu-container:hover .customer-menu {
    display: block;
}

.addScroll {
    overflow-y: auto;
    height: 450px;
}

#registrationSection .form-group {
    display: flex;
    align-items: center; /* هم‌ترازی عمودی */
    justify-content: space-between; /* فاصله‌ی مناسب */
}

    #registrationSection .form-group label {
        min-width: 120px; /* تنظیم عرض ثابت برای label */
        text-align: right; /* راست‌چین شدن متن */
        margin-right: 10px;
    }

    #registrationSection .form-group input,
    #registrationSection .form-group select,
    #registrationSection .form-group textarea {
        flex: 1; /* گرفتن فضای باقی‌مانده */
    }

/* استایل هدر مودال */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    position: relative;
    font-size: 18px;
    font-weight: bold;
}

.close-btn1 {
    position: absolute;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: red;
    font-weight: bold;
    transition: 0.3s;
}

    .close-btn1:hover {
        color: darkred;
    }

/* استایل لیبل‌های خطا */
.error-label {
    color: red;
    font-size: 12px;
    display: none;
    margin-bottom: 8px;
    text-align: center;
}

/* فرم ورود */
.form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
}

    .form-group label {
        font-weight: bold;
    }

    .form-group input {
        flex-grow: 1;
        padding: 10px;
        margin-left: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

/* استایل کپچا */
.captcha-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
}

.captcha-question {
    background: #eee;
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}

.captcha-answer {
    padding: 8px;
    width: 80px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}




.small-btn {
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    background: gray;
    color: white;
    border-radius: 5px;
    transition: 0.3s;
}

    .small-btn:hover {
        background: darkgray;
    }

/* لینک ثبت نام */
.register-link {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    text-decoration: none;
    color: blue;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
}
#loginModal hr {
    border: 1px solid var(--bs-primary); /* رنگ بر اساس Bootstrap */
    background-color: var(--bs-primary);
}
    .register-link:hover {
        color: darkblue;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



.captcha-answer {
    padding: 8px;
    width: 155px;
    border: 1px solid #ccc;
    border-radius: 5px;

}




.captcha-container {
    display: flex;
    align-items: center;
    gap:2px;
}




.expandable-header {
    background-color: #f8f9fa;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

    .expandable-header i {
        font-size: 20px;
    }

   
    
.close-btn {
    float: left;
    font-size: 25px;
    cursor: pointer;
    color: #ff3b3b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes grow {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

.testimonial-carousel {
    direction: ltr; /* اعمال حالت راست‌چین */
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f8f9fa;
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu .dropdown-menu {
    right: 100%;
    top: 0;
    display: none;
    position: absolute;
}

.dropdown-menu .dropdown:hover > .dropdown-menu {
    display: block;
}

.fixed-image-size {
    width: 100%;
    min-height: 320px; /* ارتفاع ثابت برای هماهنگی با قاب */
    max-height: 320px; /* ارتفاع ثابت برای هماهنگی با قاب */
    object-fit: fill; /* نمایش کامل تصویر بدون برش */
    display: block;
}

.team-item {
    min-height: 400px; /* تنظیم ارتفاع بیشتر برای قاب */
    max-height: 400px; /* تنظیم ارتفاع بیشتر برای قاب */
}



cart-item-count {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: midnightblue;
    color: white;
    border-radius: 50%;
    padding: 1px 4px; /* مقدار کمتر برای کاهش اندازه */
    font-size: 10px; /* کاهش اندازه متن */
    font-weight: bold;
    min-width: 14px; /* حداقل عرض دایره */
    height: 14px; /* کاهش ارتفاع دایره */
    display: flex;
    align-items: center;
    justify-content: center;
}
