.logo-settings {
    width: 200px;
    height: 57px;
}

.padding-top10 {
    padding-top: 10px;
}

.padding-top20 {
    padding-top: 20px;
}

.padding-top30 {
    padding-top: 30px;
}

.padding-top50 {
    padding-top: 50px;
}

.padding-top100 {
    padding-top: 100px;
}

.font-16 {
    font-size: 16px;
}

.font-14 {
    font-size: 14px;
}

.color-red {
    color: red;
}

.cursor-pointer {
    cursor: pointer;
}

.padding-right {
    padding-right: 5rem;
}

.a {
    position: relative;
    text-decoration: none;

}

.tooltip-container {
    position: relative; /* برای موقعیت‌یابی دقیق tooltip */
    display: inline-block; /* برای درست نمایش دادن tooltip در کنار آیکون */
}

.tooltip {
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: 120%; /* موقعیت بالای لینک */
    left: 50%;
    transform: translateX(-50%); /* برای وسط‌چین کردن */
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    min-width: 100px;
    max-width: 400px;
    width: auto;
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.success {
    color: green;
    background-color: #d4edda;
    border: 1px solid green;
    padding: 10px;
}

.error {
    color: red;
    background-color: #f8d7da;
    border: 1px solid red;
    padding: 10px;
}

.info {
    color: blue;
    background-color: #cce5ff;
    border: 1px solid blue;
    padding: 10px;
}

.font-fam {
    font-family: YekanBakh-Regular, serif;
    border-radius: 20px;
    border: 1px solid #00a600;
}

.custom-confirm-button {
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
}

.custom-cancel-button {
    background-color: #dc3545;
    color: white;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
}

.max_height150 {
    max-height: 150px;
    height: auto;
}

.max_height300 {
    max-height: 328px;
    height: auto;
}

.max_height350 {
    max-height: 350px;
    height: auto;
}

.max_height370 {
    max-height: 370px;
    height: auto;
}


.max_height400 {
    min-height: 400px;
    height: fit-content;
}

.max_height600 {
    min-height: 600px;
    height: fit-content;
}

/* استایل سفارشی برای جدول */
.table-custom {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    text-align: right;
}

.table-custom thead {
    background-color: #f8f9fa;
}

.table-custom thead th {
    padding: 12px 16px;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.table-custom tbody tr {
    transition: background-color 0.2s;
}

.table-custom tbody tr:hover {
    background-color: #f1f5f9;
}

.table-custom tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody td:first-child {
    border-right: 2px solid #ddd;
}

.table-custom tbody td:last-child {
    border-left: 2px solid #ddd;
}

.btn-filter {
    background-color: rgb(41 37 36 / var(--tw-bg-opacity));
    color: white;
}

body {

}

footer {
    margin-top: 0;
    padding-bottom: 0;
}

.container {
    margin-bottom: 0;
}

.text-container2 {
    width: 270px; /* عرض کادر */
    height: 4rem;
    line-height: 1.5em; /* فاصله بین خطوط */
    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-container4 {
    width: 270px; /* عرض کادر */
    max-height: 4em; /* ارتفاع متناسب با سه خط */
    height: auto;
    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 در داخل کادر */
}

.font_20 {
    font-size: 20px;
}

.font_30 {
    font-size: 25px;
}

.text-container3 {
    white-space: pre-wrap; /* حفظ فاصله‌ها و اینترها */
    overflow: hidden;
    text-indent: 0;
    word-break: break-word;
}

.pagination-button {
    background-color: rgb(41 37 36 / var(--tw-bg-opacity));
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 50px;
    height: 40px;
    text-align: center;
}

.pagination-button:hover {
    background-color: #ffdbb0;
    color: white;
}

.pagination-button.disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgb(41 37 36 / var(--tw-bg-opacity));
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s;
}

.pagination-number.active {
    background-color: #ffdbb0;
    border: 2px solid black;
    color: black;
}

.pagination-number:hover {
    background-color: #ffdbb0;
    color: white;
}

.padding4 {
    padding: 10px;
}

.padding33 {
    padding-right: 20px;
    padding-left: 20px;
}

.padding5 {
    padding: 5px;
}

.padding6 {
    padding-bottom: 10px;
}

.padding-detail {
    padding: 15px;
}

.color-bk {
    background-color: #ffdbb0;
}

.color-bk2 {
    background-color: #ffefdf;
}

.buy-button {
    background-color: rgb(41 37 36 / var(--tw-bg-opacity));
}

.centered-container {
    display: flex;
    justify-content: center; /* وسط‌چین افقی */
}

.padding-left {
    margin-top: 30px;
    margin-left: 60px;
}

.item-height {
    display: flex;
    flex-direction: column;
}

.button-padding {
    padding-right: 20%;
}

/* تنظیمات پایه */
body {
    font-family: 'YekanBakh-Regular', serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* تنظیمات برای container */
.product-details-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 30px;
    margin-top: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* اطلاعات محصول */
.product-info {
    flex: 1 1 60%;
    padding: 20px;
    box-sizing: border-box;
}

.product-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.old-price {
    text-decoration: line-through;
    color: #777;
}

.new-price {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.product-specs ul {
    list-style: none;
    padding: 0;
    color: #555;
}

.product-specs li {
    font-size: 16px;
    margin-bottom: 10px;
}

.custom-confirm-button {
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.custom-confirm-button:hover {
    background-color: #218838;
}

/* گالری تصاویر */
.product-gallery {
    flex: 1 1 35%;
    padding: 20px;
    box-sizing: border-box;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* کامنت‌ها */
.product-comments {
    flex: 1 1 100%;
    margin-top: 40px;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.comment {
    background-color: #ffffff;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-text {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.comment-input {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    resize: vertical;
}

/* اطلاعات تکمیلی */
.additional-info {
    flex: 1 1 100%;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    margin-top: 40px;
    box-sizing: border-box;
    border: 1px solid #ddd;
}

.additional-info h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.additional-info p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .product-details-container {
        flex-direction: column;
    }

    .product-info, .product-gallery {
        flex: 1 1 100%;
    }

    .custom-confirm-button {
        width: 100%;
    }
}

.comment-margin {
    margin-right: 15px;
    margin-left: 2rem;
}

.sub-comment-margin {
    margin-left: 5px;
    margin-right: 7rem;
}

.scroll-comment {
    max-width: 700px;
    max-height: 500px;
    overflow: auto;
}

.show-item {
    flex: 1 1 100%; /* هر آیتم عرض 100% در حالت موبایل می‌گیرد */
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    margin: 5px;
}

.show-item:nth-child(1) {
    order: 1;
}

.show-item:nth-child(2) {
    order: 3;
}

.show-item:nth-child(3) {
    order: 2;
}

.show-item:nth-child(4) {
    order: 4;
}

.price-button {
    position: relative;
    bottom: 0;
}

.display-custom {
    display: grid;
}

.ad-set {
    margin-right: 20px;
}

.max-height {
    max-height: fit-content;
}

