@font-face { font-family: iransans; src: url("../fonts/IRANSansWeb-c6a0f738.woff");}
@font-face { font-family: titr; src: url("../fonts/TITR.TTF");}
@font-face { font-family: lalezar; src: url("../fonts/lalezar/Lalezar-Regular.ttf");}
html { overscroll-behavior: none;}
body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background-color: white;
}

h1,h2,h3,h4,h5,h6,label,p{font-family: iransans !important;}

@keyframes fadeIn { from{ opacity: 0; transform: translateY(20px);} to{ opacity: 1; transform: translateY(0);}}


/* برای نمایش نرم و بدون ایجاد فضای خالی */
.product_me {
    opacity: 0; 
    visibility: hidden; /* مخفی‌سازی برای دسترسی‌ناپذیر شدن */
    transform: translateY(20px); /* شروع از کمی پایین */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    display: block; /* همیشه به صورت block نمایش داده شود */
}

        /* استایل المان‌های غیر فعال */
.disabled {
    pointer-events: none; /* جلوگیری از تعامل */
    cursor: not-allowed;  /* نشانگر ممنوع */
}

#melli_code:focus {
    border: 2px solid orange !important; /* قرمز کردن بوردر */
    outline: none !important; /* حذف خط پیش‌فرض فوکوس */
    box-shadow: none !important; /* حذف سایه پیش‌فرض بوت‌استرپ */
}

#address:focus {
    border: 2px solid orange !important; /* قرمز کردن بوردر */
    outline: none !important; /* حذف خط پیش‌فرض فوکوس */
    box-shadow: none !important; /* حذف سایه پیش‌فرض بوت‌استرپ */
}
#select_ton:focus {
    border: 2px solid orange !important; /* قرمز کردن بوردر */
    outline: none !important; /* حذف خط پیش‌فرض فوکوس */
    box-shadow: none !important; /* حذف سایه پیش‌فرض بوت‌استرپ */
}
#takhlieh:focus {
    border: 2px solid orange !important; /* قرمز کردن بوردر */
    outline: none !important; /* حذف خط پیش‌فرض فوکوس */
    box-shadow: none !important; /* حذف سایه پیش‌فرض بوت‌استرپ */
}


/* به محصولات فیلتر شده order بالا می‌دهیم */
.product_me.show {
    order: -1; /* این ویژگی باعث می‌شود محصول فیلتر شده به بالاترین جایگاه برسد */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeIn 0.5s ease-in-out;
}

/* چیدمان محصولات */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* فاصله بین محصولات */
}

/* مخفی کردن ردیف‌های خالی */
.product-row.empty {
    display: none;
}

.product-card {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    
}

.product {
    /* border: 1px solid #ddd; */
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff7eb;
}

.product-image-container {
    flex: 0 0 40%;
    text-align: center;
}

.product-image {
    width: 100%;
    max-width: 120px;
    border-radius: 8px;
}

.product-info {
    flex: 0 0 60%;
    text-align: center;



}

.countdown {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.countdown-box {
    text-align: center;
    background-color: #efa226;
    color: #fff;
    border-radius: 5px;
    padding: 5px;
    width: 30%;
}

.countdown-box .value {
    font-size: 14px;
    font-weight: bold;
}

.countdown-box .label {
    font-size: 14px;
}

.price {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    margin-bottom: 5px;
}


.add-to-cart:hover {
    background-color: #d8901e;
}

.filter-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
}

.accordion-button {
    background-color: #efa226; /* رنگ دکمه */
    color: #fff; /* رنگ متن */
    border: none;
    padding: 8px 12px; /* کاهش اندازه padding */
    text-align: center; /* وسط‌چین کردن متن */
    width: 100%; /* پر کردن عرض والد */
    font-size: 14px; /* کاهش اندازه فونت */
    cursor: pointer;
    border-radius: 8px; /* گرد کردن لبه‌ها برای لطافت */
    transition: background-color 0.3s ease, transform 0.2s ease; /* اضافه کردن انیمیشن */
    display: inline-block; /* برای کنترل اندازه */
}

.accordion-button:hover {
    background-color: #d99120; /* تغییر رنگ در حالت هاور */
    transform: scale(1.02); /* کمی بزرگ شدن در هاور */
}

.accordion-content {
    display: block;
    padding: 10px;
    background-color: #fdf4e3; /* پس‌زمینه روشن‌تر */
    border: 1px solid #efa226; /* رنگ مرز هم‌راستا با دکمه */
    border-radius: 5px;
    margin-top: 5px;
}

.accordion-content label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px; /* کاهش اندازه فونت برای ظرافت */
}

/* دایو محصول در حالت عمودی */
/* .product-column {
    background-color: #fff7eb;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
} */

/* تصویر محصول */
.product-image-container {
    text-align: center;
    margin-bottom: 10px;
}

.product-image {
    width: 100%;
    max-width: 150px;
    border-radius: 8px;
}

/* نام محصول */
.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    height: 40px;
}

/* قیمت محصول */
.price {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    margin-bottom: 5px;
}

.new-price {
    font-size: 24px;
    color: #d32f2f;
    font-weight: bold;
}

/* دکمه خرید */
.add-to-cart-btn {
    padding: 10px 15px;
    background-color: #efa226;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn1 {
    padding: 10px 15px;
    background-color: #efa226;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #d8901e;
}

.add-to-cart-btn1:hover {
    background-color: #d8901e;
}

/* استایل سبد خرید */
.cart-card {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.cart-item span {
    font-size: 14px;
}

.cart-item .price {
    font-weight: bold;
}



.slider-container {
width: 100%;
overflow: hidden;
position: relative;
}

.logo-slider {
display: flex;
animation: slide 60s linear infinite; /* ایجاد حرکت پیوسته */
}

.logo {
margin: 10px;
max-width: 100px;
flex-shrink: 0;
}

@keyframes slide 
{
    0% {
        transform: translateX(100%); /* شروع از سمت راست */
    }
    100% {
        transform: translateX(-100%); /* حرکت به سمت چپ */
    }
}

.footer {
    background-color: #fff7eb;
    padding: 40px 20px;
}
.footer h5 {
    font-weight: bold;
    margin-bottom: 20px;
}
.footer .location p,
.footer .about p {
    margin: 0;
    line-height: 1.6;
}
.footer .enamad img {
    max-width: 100px;
}

.sticky-container {
    position: sticky; 
    top: 0;
    z-index: 10;
    height: auto; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.filter-card, .cart-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.product-column {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* ارتفاع برای مرکز کردن */
}

.loading-spinner div {
    width: 100px;
    height: 100px;
    margin: 0 5px;
    background-color: #efa226;
    border-radius: 50%;
    animation: loading-bounce 1.2s infinite ease-in-out;
}

.loading-spinner div:nth-child(2) {
    background-color: #fff7eb;
    animation-delay: -0.4s;
}

.loading-spinner div:nth-child(3) {
    background-color: #efa226;
    animation-delay: -0.8s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}






.carousel-indicators li {
        background-color: black; /* رنگ دایره‌ها */
    }

    .carousel-indicators .active {
        background-color: gray; /* رنگ دایره فعال */
    }







.cart-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
}

#cartActions {
    text-align: center;
    margin-bottom: 15px;
}

.cart-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.cart-item h5 {
    font-size: 1.1rem;
    margin: 0;
}

.cart-item p {
    margin: 5px 0;
    font-size: 0.9rem;
}


.end_foroosh {
    position: absolute;
    top: 10px; 
    left: 10px !important; 
    transform: rotate(-20deg); 
    background-color: rgba(255, 0, 0, 0.8); 
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px; 
    }


.start_foroosh {
    position: absolute;
    top: 10px; 
    left: 10px !important; 
    background-color: rgba(5, 148, 5, 0.8); 
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 50px; 
}






    #toggle_elambar {
    border-top-left-radius: 10px; /* لبه بالای سمت چپ هلالی */
    border-bottom-left-radius: 10px; /* لبه پایین سمت چپ هلالی */
    border-top-right-radius: 0; /* لبه بالای سمت راست صاف */
    border-bottom-right-radius: 0; /* لبه پایین سمت راست صاف */
}










.filter-card, .cart-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
}

.product-column {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}












/* استایل پیش‌فرض برای اینپوت‌ها */
.otp-input-container {
display: flex;
justify-content: center;
gap: 10px; /* فاصله بین اینپوت‌ها */
direction: ltr; /* جهت چپ به راست */
}

.otp-input {
width: 50px;
height: 50px;
text-align: center;
font-size: 1.5rem;
border: 1px solid #ddd;
border-radius: 5px;
padding: 15px;
background-color: #fff7eb;
transition: all 0.3s ease;
}

/* تنظیمات برای موبایل با عرض کمتر از 768px */
@media (max-width: 768px) {

}

/* تنظیمات برای موبایل با عرض کمتر از 480px */
@media (max-width: 480px) 
{

}




.photo-frame {
    display: inline-block;
    padding: 10px; /* فاصله بین عکس و قاب */
    border: 5px solid #ffffff; /* ضخامت و رنگ قاب */
    border-radius: 15px; /* گرد کردن گوشه‌های قاب */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* سایه برای زیبایی بیشتر */
}

.photo-frame img {
    display: block;
    width: 100%; /* عرض تصویر */
    height: auto; /* حفظ نسبت تصویر */
    border-radius: 10px; /* گرد کردن گوشه‌های خود عکس */
}










/* هنگام فوکوس */
.otp-input:focus {
    border-color: #efa226;
    box-shadow: 0 0 8px rgba(255, 166, 0, 0.5);
    background-color: #fff;
    outline: none;
}


@media (max-width: 768px) {
    .product-column {
        display: flex !important;
        flex-direction: row-reverse !important; /* معکوس کردن ترتیب دایوها در جهت افقی */
        align-items: center !important;
        gap: 10px !important;
    }

    .product-image-container {
        flex: 0 0 40% !important;
        text-align: center !important;
    }

    .product-info {
        flex: 1 !important;
        text-align: left !important;
    }

    .product-image {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }

    .product-name {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .price {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    .add-to-cart-btn {
        font-size: 14px !important;
        padding: 8px !important;
    }
    .add-to-cart-btn1 {
        font-size: 14px !important;
        padding: 8px !important;
    }
}


a {
    color: black; /* رنگ مشکی برای لینک */
    text-decoration: none; /* حذف خط زیر لینک */
}
a:hover, a:visited, a:active {
    color: black; /* همچنان رنگ مشکی در همه حالات */
}







