.errorlist{
    padding-right: 0!important;
}

.errorlist li{
  color: red;
}

ul{
    padding-right: 0;
}


/* 1) ارتفاع تصویر ثابت */
.product-box-image {
    height: 200px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-box-image img {
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* 2) کارت محصول را به یک ستون ثابت تبدیل کن */
.product-box {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 330px !important; /* ارتفاع کارت ↓  */
    padding: 10px !important;
    box-sizing: border-box !important;
}

/* 3) عنوان‌ها هم‌ارتفاع بشوند */
.product-box-title {
    min-height: 48px !important;
    overflow: hidden !important;
}

/* 4) قیمت همیشه در انتهای کارت بچسبد */
.product-box-price {
    margin-top: auto !important;
}

/* 5) ارتفاع اسلاید را از auto به محتوای کارت sync کن */
.swiper-slide {
    width: 280px !important;  /* یا 300 یا 320 */
    height: auto !important;
    display: flex !important;
}

.swiper-wrapper {
    align-items: stretch !important;
}


/*برای خط زرد رنگ اضاف شد */
.slider-title-desc,
.slider-title,
.slider-title-title {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    flex: none !important;
    margin-bottom: 20px !important;
}
.swiper {
    margin-top: 20px !important;
}

/* حذف فاصله اضافی بین عنوان و اسلایدر */
.section-title,
.site-categories,
.site-category,
.site-category.py-20 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* فقط برای اطمینان از اینکه هیچ parent دیگری ارتفاع نمی‌سازد */
.slider-title,
.slider-title-desc,
.slider-title .row,
.slider-title .col-sm-8 {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.about-us-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.about-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}


/* تصویر بک‌گراند */
/* پس‌زمینه اسلایدر + تصویر */
/* ======== SLIDER FIXED ======== */

.main-slider .slider-bg {
    position: relative;
    width: 100%;
    height: 420px;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* جلوگیری از override شدن توسط main.css */
.main-slider .slider-overlay {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.45) !important;
    z-index: 1 !important;
}

/* متن اسلایدر */
.main-slider .slider-content {
    position: absolute;
    z-index: 2 !important;
    right: 40px;
    bottom: 70px;
    max-width: 480px;
    color: #fff;
}

/* تیتر */
.main-slider .slider-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.85);
}

/* توضیحات */
.main-slider .slider-desc {
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 25px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.9);
}

/* دکمه */
.main-slider .slider-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #ff5f00;
    border-radius: 8px;
    font-weight: 600;
    color: #fff !important;
    transition: .3s;
}

.main-slider .slider-btn:hover {
    background: #e05200;
    transform: translateY(-2px);
}

/* ریسپانسیو */
@media(max-width: 768px) {
    .slider-bg {
        height: 330px;
    }

    .slider-content {
        right: 20px;
        bottom: 50px;
        max-width: 90%;
    }

    .slider-title {
        font-size: 26px;
    }

    .slider-desc {
        font-size: 16px;
        line-height: 28px;
    }

    .slider-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* اسکرول نرم برای فهرست مطالب */
html {
    scroll-behavior: smooth;
}

/* هدینگ‌ها در متن مقاله */
.article-content h1, .article-content h2, .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #333;
    scroll-margin-top: 100px; /* برای اینکه موقع اسکرول زیر هدر نماند */
}

/* استایل فهرست مطالب (TOC) */
.toc-container {
    border-right: 3px solid #eee;
    padding-right: 15px;
}

.toc-item {
    display: block;
    padding: 5px 0;
    color: #555;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.toc-item:hover {
    color: #007bff;
    padding-right: 5px;
}

/* کارت‌های مقالات در لیست */
.article-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.article-card:hover {
    transform: translateY(-10px);
}

/* Footer Beauty Styles */

.footer {
    background: #111827;
    color: #fff;
    border-top: 4px solid var(--main-color-one);
}

.footer-link {
    color: #ddd;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--main-color-one);
    padding-right: 6px;
}

.footer-box-title {
    color: #fff;
    border-bottom: 2px solid var(--main-color-one);
    display: inline-block;
    padding-bottom: 4px;
}

.footer-logo-img {
    max-height: 90px;
    object-fit: contain;
}

.footer-scroll-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #fff !important;
    transition: 0.3s;
}

.footer-scroll-btn:hover {
    background: var(--main-color-one);
    border-color: var(--main-color-one) !important;
}

.footer-enamad img {
    transition: 0.3s;
}

.footer-enamad img:hover {
    transform: scale(1.07);
}
/* فقط برای بخش تیره فوتر */
footer.footer-dark {
    color: #fff;
}
footer.footer-dark * {
    color: inherit;
}

/* فقط برای باکس روشن */
footer .bg-light,
footer .bg-light * {
    color: #000;
}

/* حفظ رنگ badge ها */
footer .badge.bg-dark,
footer .badge.bg-dark * {
    color: #fff !important;
}
.product-detail-page {
    direction: rtl;
}

.gallery-box {
    background: #fff;
}

.main-image-container {
    overflow: hidden;
    border-radius: 10px;
}

.main-image {
    border-radius: 10px;
    transition: transform .3s;
    cursor: zoom-in;
}

.main-image:hover {
    transform: scale(1.08);
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
    cursor: pointer;
    transition: 0.2s;
}

.thumb:hover {
    border-color: #0d6efd;
}

.active-thumb {
    border-color: #0d6efd !important;
}

.price-box .final-price {
    font-size: 28px;
    font-weight: bold;
    color: #d32f2f;
}

.price-box .old-price {
    font-size: 17px;
    color: #888;
}

.discount-badge {
    background: #ff1744;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.spec-box table th {
    background: #f9f9f9;
    font-weight: bold;
}

.desc-box {
    background: #fff;
    line-height: 2;
}
.header-btn {
  display: flex !important;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.header-btn-login {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.header-btn-login .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 6px 12px;
}
/* کوچک و هماهنگ کردن سبد خرید */
.header-cart .btn {
    padding: 4px 10px !important;     /* کوچکتر از قبل */
    border-radius: 6px !important;    /* کمتر گرد، شکیل‌تر */
    font-size: 13px !important;       /* ریزتر مثل بقیه */
    height: auto !important;
    display: flex;
    align-items: center;
    
    line-height: 1 !important;
}

/* کوچکتر شدن شمارنده */
.header-cart .cart-counter {
    font-size: 11px !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
}

.product-box {
    position: relative;
    overflow: hidden;
}

.product-box-hover-item {
    background: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.product-box-hover-item:hover {
    background: var(--main-color-one);
    color: #fff;
    border-color: var(--main-color-one);
    transform: translateY(-3px);
}

.product-box-hover-item-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0 !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.product-box-hover-item-btn:hover {
    background: var(--main-color-one);
    color: #fff;
    border-color: var(--main-color-one);
}
.btn-success {
    background-color: var(--main-color-one, #2ecc71);
    border-color: var(--main-color-one, #2ecc71);
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.3);
    transition: all 0.25s ease;
}

.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.price-box .final-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
}

.discount-badge {
    background-color: #ff4d4d;
    color: white;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 1rem;
}

.spec-box {
    background: #f8f9fa;
}
.form-box {
    background: #ffffff;
    padding: 28px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
    margin: 30px auto;
}

.form-box h3 {    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.25s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #5b5df0;
    box-shadow: 0 0 6px rgba(91,93,240,0.25);
    background: #fff;
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: #5b5df0
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: .3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.product-img {
    position: relative;
}

.product-img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 10px;
}

.discount-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ff1744;
    color: #fff;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.price-box {
    margin-top: 10px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #0a7cff;
}

.old-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

/* انیمیشن برای تغییر اعداد */
.count-animate {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #28a745; }
    100% { transform: scale(1); }
}

/* استایل حذف محصول (کمرنگ شدن قبل از حذف) */
.removing {
    opacity: 0.5;
    transform: translateX(100px);
    transition: all 0.5s ease-in-out;
}

/* استایل برای Toast (پیام کوچک گوشه صفحه) */
#toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}
.cart-toast {
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.removing {
    opacity: 0.6;
    transform: translateX(40px);
    transition: all 0.3s ease;
}

/* موقت*/
/* اصلاح تهاجمی هدر برای اجبار به نمایش افقی */
/*.top-menu-menu ul.navbar-nav {*/
/*    display: flex !important;*/
    flex-direction: row !important; /* اصرار بر افقی */
    flex-wrap: nowrap !important;   /* جلوگیری از شکستن خط */
/*    align-items: center !important;*/
/*    margin: 0 !important;*/
/*    padding: 0 !important;*/
/*    width: 100% !important;*/
/*}*/

/*.top-menu-menu ul.navbar-nav li.nav-item {*/
    display: inline-block !important; /* تبدیل به حالت خطی */
    float: right !important;          /* راست‌چین کردن */
    margin-left: 20px !important;     /* فاصله بین آیتم‌ها */
/*    width: auto !important;*/
/*}*/

/* ویرایش1*/

/* ۱. کوچک کردن ارتفاع بلوک بنفش بدون مخفی کردن زیرمنو */
.top-menu-menu {
    height: 40px !important;
    overflow: visible !important; /* این مهم است: اجازه می‌دهد منو از بلوک بیرون بزند */
    position: relative !important;
    z-index: 1000 !important;
}

/* ۲. افقی کردن آیتم‌های اصلی */
.top-menu-menu ul.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important; /* چینش از سمت راست */
    align-items: center !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ۳. اصلاح ظاهر تک تک آیتم‌ها */
.top-menu-menu li.nav-item {
    position: relative !important; /* والدِ زیرمنوی شناور */
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

/* ۴. استایل دهی به زیرمنو (مگا منو) برای اینکه شناور باشد */
.top-menu-menu .main-menu.mega-container {
    display: none !important; /* مخفی در حالت عادی */
    position: absolute !important;
    top: 40px !important; /* درست زیرِ نوار بنفش */
    right: 0 !important;
    width: 200px !important;
    background: #fff !important;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2) !important;
    z-index: 9999 !important;
}

/* ۵. نمایش زیرمنو هنگام رفتن موس روی آیتم */
.top-menu-menu li.nav-item:hover .main-menu.mega-container {
    display: block !important;
}



/* 4. اطمینان از نمایش صحیح لینک‌ها */
.top-menu-menu ul.navbar-nav li.nav-item a {
    display: block !important;
    padding: 0 15px !important;
    
}
/* ویرایش رنگ*/
/* فقط برای آیتم محصولات - حذف پس‌زمینه خاکستری و کادر سفید */
.header-top-menu .navbar-nav li.nav-item.menu-item-has-children,
.header-top-menu .navbar-nav li.nav-item.menu-item-has-children:hover,
.header-top-menu .navbar-nav li.nav-item.menu-item-has-children.active,
.header-top-menu .navbar-nav li.nav-item.menu-item-has-children > a:hover {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* اطمینان از اینکه متن محصولات همیشه سفید باقی بماند */
.header-top-menu .navbar-nav li.nav-item.menu-item-has-children > a {
    color: #ffffff !important;
}
















