.color-red {
    color: red;
}

.font-14 {
    font-size: 14px;
}

/* حذف فلش‌های بالا و پایین در فیلد عددی */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.padding {
    padding-right: 20px;
}

.padding10 {
    padding-right: 10px;
}

.padding-top {
    padding-top: 40px;
}

.padding-top30 {
    padding-top: 30px;
}
.padding-top40 {
    padding-top: 40px;
}
.padding-top50 {
    padding-top: 70px;
}

.padding-bottom10 {
    padding-bottom: 10px;
}

.padding-top10 {
    padding-top: 10px !important;
}

.padding-top15 {
    padding-top: 15px !important;
}

.product-meta-tag-items {
    margin-top: 10px;
}

/* استایل کلی برای لیبل‌ها */
.product-meta-tag-items label {
    background-color: #f5f5f5;
    font-size: 14px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    margin-bottom: 15px;
    cursor: default;
    border: 1px solid transparent;
    transition: none;
}

/* حذف حالت هاور */
.product-meta-tag-items label:hover {
    background-color: #f5f5f5 !important;
}

/* حذف حالت انتخاب‌شده */
.product-meta-tag-items .btn-check:checked + .btn {
    border: none !important;
    background-color: inherit !important;
    box-shadow: none !important;
    cursor: default !important;
}

/* حذف هاور در حالت انتخاب‌شده */
.product-meta-tag-items .btn-check:checked + .btn:hover {
    background-color: inherit !important;
}

/* استایل برای آیکون دایره‌ای کنار متن */
.product-meta-tag-items label span {
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 7px;
    position: relative;
    background-color: #ccc;
}

/* آیکون انتخاب‌شده داخل دایره */
.product-meta-tag-items .btn-check:checked + .btn span::before {
    content: '\F26E';
    color: #fff;
    font-size: 18px;
    font-family: 'bootstrap-icons', serif !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.favorited {
    background-color: #ff0000;
}

.touchspin-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.touchspin-input {
    width: 60px;
    text-align: center;
    border: none;
    outline: none;
    padding: 6px 8px;
    font-size: 14px;
}

.btn-touchspin {
    background-color: #0070FF;
    border: none;
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-touchspin:hover {
    background-color: #e0e0e0;
}

.btn-touchspin:active {
    background-color: #d0d0d0;
}

.new-price16 {
    line-height: 1;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
}

.percent-bar {
    width: 80%;
    margin: 0 auto;
}

.percent-bar-child {
    height: 20px;
    position: relative;
    background-color: #e9ecef;
    border-radius: 10px;
}

.progress-bar span {
    color: white;
}

.padding-b40 {
    padding-bottom: 40px;
}

.disable {
    opacity: 0.8;
    filter: grayscale(100%);
    pointer-events: none;
}

.max-width400 {
    max-width: 400px;
}

.max-width450 {
    max-width: 450px;
}

.disabled-style {
    opacity: 0.6;
    pointer-events: none;
}

.product-box {
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.product-box:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-box2 {
    max-height: 480px;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.product-box2:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.countdown-container {
    display: inline-block;
    margin: 0 5px;
    text-align: center;
}

.countdown-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.countdown-heading {
    font-size: 0.9rem;
    color: #555;
}

.bottom {
    padding-bottom: 5px;
}

.d-flex.flex-warp {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
}


.product-box {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
    max-width: 400px;
    padding: 16px;
}

.product-action {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-box p {
    margin-bottom: 0.5rem;
}

.timer-label span {
    margin-bottom: 0.5rem;
}

.progress span {
    justify-content: center;
}

.text-container2 {
    width: 100%; /* عرض کادر */
    height: 6rem;
    line-height: 2em; /* فاصله بین خطوط */
    overflow: hidden; /* مخفی کردن متن اضافه */
    display: -webkit-box; /* برای پشتیبانی از Webkit */
    -webkit-box-orient: vertical; /* جهت‌گیری به صورت عمودی */
    -webkit-line-clamp: 3; /* محدود کردن به 3 خط */
    text-overflow: ellipsis; /* نمایش سه نقطه */
    padding: 5px; /* فاصله داخلی */
    box-sizing: border-box; /* محاسبه padding در داخل کادر */
}

.text-container3 {
    max-width: 300px; /* عرض کادر */
    height: 4rem;
    line-height: 2em; /* فاصله بین خطوط */
    overflow: hidden; /* مخفی کردن متن اضافه */
    display: -webkit-box; /* برای پشتیبانی از Webkit */
    -webkit-box-orient: vertical; /* جهت‌گیری به صورت عمودی */
    -webkit-line-clamp: 2; /* محدود کردن به 3 خط */
    text-overflow: ellipsis; /* نمایش سه نقطه */
    padding: 5px; /* فاصله داخلی */
    box-sizing: border-box; /* محاسبه padding در داخل کادر */
}

.text-container4 {
    max-width: 100%; /* عرض کادر */
    height: 2rem;
    line-height: 2em; /* فاصله بین خطوط */
    overflow: hidden; /* مخفی کردن متن اضافه */
    display: -webkit-box; /* برای پشتیبانی از Webkit */
    -webkit-box-orient: vertical; /* جهت‌گیری به صورت عمودی */
    -webkit-line-clamp: 1; /* محدود کردن به 3 خط */
    text-overflow: ellipsis; /* نمایش سه نقطه */
    padding: 5px; /* فاصله داخلی */
    box-sizing: border-box; /* محاسبه padding در داخل کادر */
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.video-box {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 720px;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* نسبت 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 12px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
}

/* در موبایل کمی بلندتر و تمام عرض */
@media (max-width: 600px) {
    .video-container {
        padding-bottom: 65%;
    }
}


.product-box2 .product-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 50px;

}

.product-box2 .product-timer .timer-label {
    padding: 5px 10px;
    background-color: #ffc376d1;
    border-radius: 10px;
}

.product-box2 .product-timer .timer-label span {
    color: #301e00;
    font-size: 13px;
}

.product-box2 .product-image {
    height: 140px;
    display: flex;
    margin: 7px 0;
    position: relative;
}

.product-box2 .product-image img {
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 10px auto;
    transition: 0.5s all ease-in-out;
}

.product-box2 .two-image {
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: transform 1.5s, visibility .5s, opacity .5s;
}


.product-box2:hover .one-image {
    opacity: 0;
    visibility: hidden;
}

.product-box2:hover .two-image {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    display: block;
    transform: scale(1.07);
}

.product-box2 .product-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    height: 55px;

}

.product-box2 .product-title .title p {
    margin: 7px 0;
    font-weight: 800;
    line-height: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-box2 .product-title .title span {
    color: var(--text-muted-two) !important;
    font-size: 12px;
}

.product-box2 .product-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 7px;
    border-radius: 10px;
}

.product-box2 .product-action .link {
    background-color: var(--bs-gray-100);
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bs-gray-400);
}

.free-mode .product-box2 {
    width: 300px;
}

.where-item {
    padding-bottom: 5px;
}

.box__shaped-title__icon2 {
    margin-right: 0;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    transform: translateX(0%) translateY(-8%); /* مرکز افقی دقیق */
}

.box__shaped-title__icon2 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن بدون بریدگی غیرطبیعی */
    object-position: center 30%; /* کمی بالا یا پایین برای تنظیم بهتر */
}

.min-height50 {
    min-height: 50px;
}

.padding-top15 {
    padding-top: 15px;
}

.image-positions {
    padding-top: 15%;
    padding-bottom: 50px;
}

.logo-style {
    max-width: 400px;
    max-height: 119px;
}

.col-custom3 {
    flex: 0 0 auto;
    width: 26.33333333%
}

.top-menu-menu ul>li>ul>li>a.title-item {
    position: relative;
}

.top-menu-menu ul>li>ul>li>a.title-item i {
    font-size: 10px;
}

.top-menu-menu ul>li>ul>li>a.title-item::before {
    content: '';
    position: absolute;
    right: 0px;
    width: 3px;
    height: 100%;
    background: var(--main-color-one);
}

.top-menu-menu ul>li>ul>li>a:hover {
    color: var(--main-color-one);
    transform: translateX(-5px);
}

.top-menu-menu ul>li>ul>li>a.title-item:hover {
    color: var(--main-color-one);
    transform: none;
}
