
.product-prices {
    display: flex;
    flex-direction: row-reverse; /* برای قرار دادن قیمت کارتن سمت چپ و قیمت تکی سمت راست */
    align-items: center; /* برای وسط‌چین کردن عمودی محتوا */
    justify-content: space-between; /* برای وسط‌چین کردن افقی محتوا */
}

.price-item {
    text-align: center; /* برای وسط‌چین کردن متن هر قیمت */
}
#errorMessage {
    animation: fadeOut 5s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.table-wrapper {
    max-height: 300px; /* حداکثر ارتفاع دیو */
    overflow-y: auto; /* فعال کردن اسکرول عمودی */
    border: 7px solid #ddd; /* اختیاری: ظاهر جدول */
}
.table-wrapper {
    max-height: 400px; /* ارتفاع ثابت برای جدول */
    overflow-y: auto; /* فعال کردن اسکرول عمودی */
}
button[disabled] {
    background: gray !important;
    border: 1px solid #ccc; /* ایجاد مرز کم‌رنگ */
    cursor: not-allowed; /* نشانگر غیرفعال */
    opacity: 0.6; /* کاهش شفافیت */
}
table thead th.sticky-header {
    position: sticky; /* ثابت کردن موقعیت عنوان */
    top: 0; /* موقعیت از بالای جدول */
    z-index: 1; /* اولویت نسبت به محتوا */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); /* سایه کوچک برای جدا شدن از متن */
}

.price {
    color: #009688; /* رنگ قیمت */
}
.product-box {
    position: relative;
}

.product-box-hover-item-btn-like {
    position: absolute;
    top: 10px;
    left: 10px;
    color: black; /* رنگ پیش‌فرض */
    cursor: pointer;
    z-index: 9;

}

.product-box-hover-item-btn-like.clicked {
    color: red; /* رنگ پس از کلیک */
}

.counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;

}

.label-text {
    margin-bottom: 5px; /* فاصله بین متن و ورودی */
    margin-top: 10px; /* فاصله بالای متن */
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* برای قرارگیری دکمه‌ها در کنار هم */
}

/* در ویو گوشی ورودی‌ها در یک خط افقی قرار بگیرند */
.input-container {
    flex-direction: row; /* نمایش افقی */
    width: 100%; /* عرض کامل */
}

/* ورودی‌ها */
input.form-counter {
    text-align: center;
    width: 40px;
    font-size: 16px;
    margin: 0 5px; /* فاصله دکمه‌ها */
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* دکمه‌های کاهش و افزایش */
button.btn-decrease, button.btn-increase {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 576px) {
    button.btn-decrease, button.btn-increase {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: none;
        font-size: 18px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
button.btn-decreased, button.btn-increased {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* رنگ دکمه‌ها */
button.btn-decrease {
    background-color: red;
}

button.btn-increase {
    background-color: #189D0E;
}

button.btn-decreased {
    background-color: red;
}

button.btn-increased {
    background-color: #189D0E;
}

/* موقعیت‌دهی ورودی‌ها */
.counter-a {
    position: absolute;
    bottom: 0px;
    left: 10px;
}

.counter-b {
    position: absolute;
    bottom: 0px;
    right: 10px;
}

/* واکنش‌گرا برای صفحه‌های گوشی */
@media (max-width: 600px) {

    .input-container {
        justify-content: space-between; /* فاصله بین ورودی‌ها */
        width: 100%; /* عرض کامل */
        margin-top: 5px; /* فاصله بین ورودی‌ها و متن */
    }

    input.form-counter {
        width: 20px; /* عرض ورودی در گوشی */
        height: 20px;
    }
    .label-text {
        margin-bottom: 2px; /* فاصله بین متن و ورودی */
        margin-top: 10px; /* فاصله بالای متن */
        font-size: 9px;
        font-weight: bold;
        color: #333;
    }
}



.line-info {
    display: none; /* Hide all line info by default */
}

.line-info.active {
    display: block; /* Show only active line info */
}

/* Hover state */
.slider-brand .box:hover img {
    opacity: 1;
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
}

/* Active state */
.swiper-slide.active .box img {
    opacity: 1;
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
}
.swiper-slide.active .box {
    border: 3px solid #cd0543; /* Customize the border color and size */
    transition: border 0.3s ease; /* Add a smooth transition effect */
}
.line-title {
    background-color: #e6e6e6;
    padding: 5px 10px;
    border-radius: 25px;
    transition: 0.3s;
    margin-top: 18px;
    width: 90%;
}


/* تنظیمات برای موبایل */
@media (max-width: 768px) {
    .product-slider .swiper-slide img {
        width: auto; /* عرض کوچکتر برای موبایل */
        height: 180px;
    }
}
.product-slider .swiper-slide img {
    width: 100%;
    height: 300px; /* یا هر ارتفاع دلخواه */
    object-fit: cover;
    display: block;
}

@media (max-width: 480px) {
    .product-slider .swiper-slide img {
        width: auto; /* تنظیم عرض برای موبایل‌های خیلی کوچک */
        height: 140px;
    }
}
@media (max-width: 768px) {
    .line-slider .swiper-slide img {
        width: auto; /* عرض کوچکتر برای موبایل */
        height: auto;
    }
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.category-item {
    text-align: center;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.category-item img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#show-more-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f8f8f8;
    height: 90%;


}

/* More categories panel */
.more-categories {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95); /* نیمه شفاف برای تاکید */
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

/* Curved top section */
.menu-top-curve {
    width: 100px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
}

/* Close button */
#close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
}

/* Optional: Overlay to darken background */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.overlay.show {
    display: block;
}

.more-categories.show {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    transform: translateY(0);
}

/* سبک اصلی برای موبایل (پیش‌فرض) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 ستون در موبایل */
    gap: 20px;
    padding: 20px;
}

.more-categories {
    /* نمایش به صورت پاپ‌آپ فقط در موبایل */
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

.more-categories.show {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    transform: translateY(0);
    border-radius : 25px;
}

/* تنظیمات برای دسکتاپ */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.category-item {
    text-align: center;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.category-item img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#show-more-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f8f8f8;
    height: 90%;


}

/* More categories panel */
.more-categories {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95); /* نیمه شفاف برای تاکید */
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

/* Curved top section */
.menu-top-curve {
    width: 100px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
}

/* Close button */
#close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
}

/* Optional: Overlay to darken background */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.overlay.show {
    display: block;
}

.more-categories.show {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    transform: translateY(0);
}

/* سبک اصلی برای موبایل (پیش‌فرض) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 ستون در موبایل */
    gap: 20px;
    padding: 20px;
}

.more-categories {
    /* نمایش به صورت پاپ‌آپ فقط در موبایل */
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

.more-categories.show {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    transform: translateY(0);
    border-radius : 25px;
}

/* تنظیمات برای دسکتاپ */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


.cart-count3 {
    position: absolute; /* برای قرار دادن دایره در بالای آیکون */
    top: -10px; /* فاصله از بالا */
    background-color: red; /* رنگ دایره */
    color: white; /* رنگ متن */
    border-radius: 50%; /* دایره‌ای کردن */
    padding: 5px 7px; /* فاصله داخلی */
    font-size: 20px; /* اندازه متن */
    font-weight: bold; /* پررنگ بودن متن */
    min-width: 20px; /* حداقل عرض */
    text-align: center; /* تراز کردن متن در وسط */
    display: flex; /* برای مرکز کردن محتوا */
    justify-content: center; /* مرکز کردن افقی */
    align-items: center; /* مرکز کردن عمودی */
    height: 30px;
    width: 30px;
}
.hidden {
    display: none;
}

#colorMenu {
    position: absolute;
    border: 1px solid #ccc;
    background-color: white;
    padding: 10px;
    z-index: 1000;
}

.color-option {
    padding: 5px;
    cursor: pointer;
}

.color-option:hover {
    opacity: 0.7;
}

.red-box {
    background-color: red;
    padding: 20px;
    margin: 10px 0;
}
@media (max-width: 768px) {
    p {
        margin-bottom: 0;
    }
}
/* Skeleton Loading Styles */
.loading {
    animation: pulse 1.5s infinite;
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
}

.skeleton-img {
    width: 100%;
    height: 80px;
    background: #e0e0e0;
    border-radius: 5px;
}

.skeleton-text {
    background: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 8px;
}

.skeleton-title {
    width: 80%;
    height: 12px;
}

.skeleton-subtitle {
    width: 60%;
    height: 12px;
}

.skeleton-price {
    width: 40%;
    height: 12px;
}

/* Animation for pulsing effect */
@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }
    50% {
        background-color: #f0f0f0;
    }
    100% {
        background-color: #e0e0e0;
    }
}

/* Skeleton Loading Styles */
.loading {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

/* Skeleton for elements */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 5px;
}

.skeleton-img {
    width: 100%;
    height: 150px;
}

.skeleton-title {
    width: 80%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-subtitle {
    width: 60%;
    height: 12px;
    margin-bottom: 10px;
}

.skeleton-price {
    width: 50%;
    height: 14px;
    margin-bottom: 8px;
}

.favorite-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.add-to-cart-btn {
    width: 100px;
    height: 40px;
    border-radius: 5px;
}

/* Animation for pulsing effect */
@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }
    50% {
        background-color: #f0f0f0;
    }
    100% {
        background-color: #e0e0e0;
    }
}

.filter-indicator {
    width: 20px;
    height: 20px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -10px;
    right: -10px;
    z-index: 1000;
}

