/*
Theme Name: Industry4Iran
Theme URI: mojpardaz.com
Author: Arash Aryan
Author URI: 
Description: 
Version: 1.0
License: Free
License URI:
Tags: 
Text Domain: 
*/
/* ====== فونت و تنظیمات پایه ====== */
@font-face {
    font-family: Vazirmatn-LD;
    font-style: normal;
    font-weight: normal;
    src: url('fonts/Vazirmatn-Regular-LD.woff2');
}
@font-face {
    font-family: Vazirmatn-FD;
    font-style: normal;
    font-weight: normal;
    src: url('fonts/Vazirmatn-Regular-FD.woff2');
}
@font-face {
    font-family: bootstrap-icons;
    font-style: normal;
    font-weight: normal;
    src: url('fonts/bootstrap-icons.woff2');
}
body {
    background-color: #0b0e14;
    color: #c8d0db;
    direction: rtl;
}

* { font-family: 'Vazirmatn-LD', sans-serif; }
.latin-digits { font-family: 'Vazirmatn-LD', sans-serif; }
.latin-digits * { font-family: 'Vazirmatn-LD', sans-serif; }
.farsi-digits { font-family: 'Vazirmatn-FD', sans-serif; }
.farsi-digits * { font-family: 'Vazirmatn-FD', sans-serif; }
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #141a24;
}
::-webkit-scrollbar-thumb {
    background: #2c3e4e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d5568;
}

/* ====== تایپ‌وگرافی ====== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #e8edf5;
    letter-spacing: 0.5px;
}
a {
    text-decoration: none;
}
.section-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 36px;
    font-weight: 800;
    color: #e8edf5;
    text-transform: uppercase;
    font-size: 1.6rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: #00abcc;
}
.section-title span {
    color: #f79420;
}

.section-subtitle {
    color: #8895a7;
    font-size: 0.95rem;
    margin-top: -24px;
    margin-bottom: 40px;
}

/* ====== هدر / نوار بالایی ====== */
.top-bar {
    background-color: #05080c;
    border-bottom: 1px solid #1e293b;
    padding: 6px 0;
    font-size: 0.8rem;
    color: #6b7a8f;
}
.top-bar a {
    color: #6b7a8f;
    text-decoration: none;
    transition: 0.2s;
}
.top-bar a:hover {
    color: #f79420;
}
.top-bar .bi {
    margin-left: 6px;
}

/* ====== ناوبری اصلی ====== */
.navbar {
    background-color: #0f141e;
    border-bottom: 1px solid #1e293b;
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    color: #e8edf5 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand .brand-icon {
    width: 44px;
    height: 44px;
    background-color: #1e293b;
    border: 2px solid #2c3e4e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #f79420;
}
.navbar-brand small {
    font-size: 0.7rem;
    display: block;
    font-weight: 400;
    color: #6b7a8f;
    letter-spacing: 1px;
}
.navbar .nav-link {
    color: #a0b0c4 !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: 0.25s;
    border-radius: 6px;
    font-size: 0.95rem;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #f79420 !important;
    background-color: #1a2332;
}
.navbar .shop-item .nav-link {
    background: #dc3545;
    color: #FFF !important;
}
.navbar .shop-item .nav-link:hover {
    background: #ec3648;
    color: #FFF !important;
}
.navbar .nav-link .bi {
    margin-left: 6px;
}
.navbar .nav-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar .nav-icons .btn-icon {
    background: none;
    border: none;
    color: #a0b0c4;
    font-size: 1.3rem;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.25s;
    position: relative;
}
.navbar .nav-icons .btn-icon:hover {
    color: #f79420;
    background-color: #1a2332;
}
.navbar .nav-icons .badge-cart {
    position: absolute;
    top: -2px;
    right: 2px;
    background-color: #f79420;
    color: #0b0e14;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo {
    width: 150px;
}
.logo img {
    width: 100%;
}
/* ====== استایل‌های دراپ‌داون (هماهنگ با تم تیره) ====== */
.navbar .dropdown-menu {
    background-color: #1a2332; /* پس‌زمینه کمی روشن‌تر از هدر برای تفکیک */
    border: 1px solid #2c3e4e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 8px 0;
    z-index: 9999;
}
.navbar .dropdown-item {
    color: #a0b0c4;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 20px;
    transition: 0.25s;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
    background-color: rgba(245, 158, 11, 0.1); /* پس‌زمینه محو طلایی */
    color: #f79420 !important;
}

/* --- Desktop: باز شدن با Hover --- */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: dropFadeIn 0.2s ease-in-out;
    }
    
    /* افکت محو شدن ملایم برای باز شدن زیرمنو */
    @keyframes dropFadeIn {
        from { opacity: 0; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* --- Mobile: دکمه کلیکی مجزا --- */
@media (max-width: 991.98px) {
    .navbar .has-mobile-toggle {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar .has-mobile-toggle > a {
        flex-grow: 1; /* لینک اصلی تمام فضای ممکن را می‌گیرد */
    }
    
    /* استایل دکمه باز کردن زیرمنو در موبایل (هماهنگ با لینک‌ها) */
    .navbar .mobile-dropdown-toggle {
        padding: 8px 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #a0b0c4;
        border-radius: 6px;
        transition: 0.25s;
    }
    .navbar .mobile-dropdown-toggle:hover {
        color: #f79420;
        background-color: #1a2332;
    }
    
    /* ظاهر زیرمنو در موبایل */
    .navbar .has-mobile-toggle > .dropdown-menu {
        width: 100%;
        border: none;
        background-color: transparent; /* در موبایل یکپارچه با پس‌زمینه منو */
        box-shadow: none;
        padding-left: 1.5rem; /* تورفتگی برای نشان دادن سلسله مراتب */
        padding-right: 1.5rem;
        margin-top: 0;
    }
}
/* --- نمایش فلش زیرمنو در دسکتاپ --- */
@media (min-width: 992px) {
    /* اضافه کردن فلش به لینک‌هایی که زیرمنو دارند */
    .navbar .nav-item.dropdown > .nav-link::after {
        content: "\f282"; /* کد آیکون chevron-down در بوت‌استرپ */
        font-family: "bootstrap-icons" !important;
        border: none; /* حذف مثلث پیش‌فرض بوت‌استرپ */
        font-size: 0.75rem;
        margin-right: 6px; /* فاصله فلش از متن (برای راست‌چین) */
        vertical-align: middle;
        transition: transform 0.3s ease; /* انیمیشن چرخش */
        display: inline-block;
    }

    /* چرخش ۱۸۰ درجه‌ای فلش هنگام هاور شدن */
    .navbar .nav-item.dropdown:hover > .nav-link::after {
        transform: rotate(180deg);
    }
}


/* ====== جستجو ====== */
.search-box {
    background-color: #141a24;
    border: 1px solid #2c3e4e;
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    transition: 0.3s;
    max-width: 280px;
}
.search-box:focus-within {
    border-color: #f79420;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.search-box input {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #c8d0db;
    outline: none;
    width: 100%;
}
.search-box input::placeholder {
    color: #4a5a6e;
}
.search-box .bi {
    color: #4a5a6e;
    margin-left: 8px;
    font-size: 0.9rem;
}

/* ====== اسلایدر اصلی ====== */
.hero-section {
    position: relative;
    background-color: #171d2b  !important;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 150, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
/* هم‌ارتفاع کردن اسلایدهای Swiper */
.heroSwiper .swiper-wrapper {
    align-items: stretch;
}

.heroSwiper .swiper-slide {
    height: auto; 
    display: flex;
    flex-direction: column; /* برای اینکه محتوای داخل اسلاید منظم بماند */
}

.hero-slide {
    padding: 80px 0 100px;
    position: relative;
}
.hero-slide .badge-industry {
    display: inline-block;
    background-color: #1e293b;
    border: 1px solid #2c3e4e;
    border-radius: 4px;
    padding: 4px 14px;
    font-size: 0.75rem;
    color: #f79420;
    letter-spacing: 1px;
    margin-bottom: 18px;
    font-weight: 600;
}
.hero-slider-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    display: block;
}
.hero-slide p {
    font-size: 1.05rem;
    color: #8895a7;
    max-width: 540px;
    line-height: 1.8;
}
.hero-slide .btn-hero {
    padding: 12px 36px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
    border: none;
}
.hero-slider-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
}
.hero-slider-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-hero-primary {
    background-color: #f79420;
    color: #0b0e14;
}
.btn-hero-primary:hover {
    background-color: #d48a08;
    color: #0b0e14;
}
.btn-hero-secondary {
    background-color: transparent;
    color: #c8d0db;
    border: 1px solid #2c3e4e;
}
.btn-hero-secondary:hover {
    background-color: #1a2332;
    color: #f79420;
    border-color: #f79420;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
}
.hero-stats .stat-item {
    text-align: center;
}
.hero-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e8edf5;
}
.hero-stats .stat-number .plus {
    color: #f79420;
}
.hero-stats .stat-label {
    font-size: 0.75rem;
    color: #6b7a8f;
    margin-top: 4px;
    letter-spacing: 0.5px;
}
/* خطوط شبکه صنعتی پس‌زمینه اسلایدر */
.hero-grid-lines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgb(30 41 59) 1px, transparent 1px), linear-gradient(90deg, rgb(30 41 59) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ====== Swiper Custom ====== */
.swiper-pagination-bullet {
    background-color: #2c3e4e;
    opacity: 1;
    width: 10px;
    height: 10px;
    transition-duration: .3s;
}
.swiper-pagination-bullet-active {
    background-color: #f79420;
    width: 28px;
    border-radius: 4px;
}
.swiper-button-next,
.swiper-button-prev {
    color: #f79420;
    background-color: rgba(15, 20, 30, 0.85);
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #2c3e4e;
    transition: 0.3s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #1a2332;
    border-color: #f79420;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

/* ====== دسته‌بندی‌ها ====== */
.categories-section {
    padding: 80px 0;
    background-color: #0b0e14;
}
.category-card {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    transition: 0.35s;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #f79420;
    transform: scaleX(0);
    transition: 0.35s;
}
.category-card:hover {
    border-color: #2c3e4e;
    background-color: #141a24;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.category-card:hover::before {
    transform: scaleX(1);
}
.category-card .cat-img {
    overflow: hidden;
    border: 1px solid #2c3e4e;
    border-radius: 10px;
    margin: 0 auto 16px auto;
    transition: 0.3s;
    aspect-ratio: 1 / 1;;
}
.category-card .cat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card h5 {
    font-size: 1rem;
    margin-bottom: 6px;
}
.category-card .cat-count {
    font-size: 0.75rem;
    color: #6b7a8f;
}

/* ====== محصولات ویژه ====== */
.products-section {
    padding: 80px 0;
    background-color: #080b11;
}
.product-card {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.35s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: #2c3e4e;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.product-card .product-img {
    background-color: #FFF;
    border-bottom: 1px solid #1e293b;
    width: 100%;
    aspect-ratio: 1 / 1; /* ایجاد نسبت ابعاد مربع */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .product-img a {
    display: block;
    width: 100%;
    height: 100%;
}
.product-card .product-img a img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* تصویر بدون برش خوردن در کادر جا می‌شود */
}
.product-card .product-img .badge-product {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #f79420;
    color: #0b0e14;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}
.product-card .product-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card .product-category {
    font-size: 0.7rem;
    color: #6b7a8f;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.product-card .product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #e8edf5;
    margin-bottom: 8px;
}
.product-card .product-name a {
    color: inherit;
    text-decoration: none;
}
.product-card .product-name a:hover {
    color: #f79420;
}
.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    
}
.product-card .product-price .price-current {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f79420;
}
.product-card .product-price .price-old bdi {
    font-size: 0.8rem;
    color: #4a5a6e;
    text-decoration: line-through;
}
.product-card .btn-add-cart {
    width: 100%;
    margin-top: 14px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #2c3e4e;
    background-color: transparent;
    color: #a0b0c4;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}
.product-card .btn-add-cart:hover {
    background-color: #f79420;
    border-color: #f79420;
    color: #0b0e14;
}
.productSwiper .swiper-slide {
    height: auto;
}
/* ====== بنر میانی ====== */
.banner-section {
    padding: 0;
    background-color: #080b11;
}
.banner-box {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.banner-box .banner-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
}
.banner-box .banner-text p {
    color: #8895a7;
    margin: 8px 0 0;
}
.banner-box .banner-text .highlight {
    color: #f79420;
}
.banner-box .btn-banner {
    color: #fff;
    background-color: #00abcc;
    border: 1px solid #00abcc;
    padding: 12px 36px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    transition: 0.3s;
    white-space: nowrap;
}
.banner-box .btn-banner:hover {
    background-color: #0097b4;
    border-color: #0097b4;
}
.banner-box .btn-banner:focusc {
    outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 171, 204, 0.25);
}
.banner-box .btn-bannerc:active {
  background-color: #00879f;
  border-color: #00879f;
}
/* ====== وبلاگ ====== */
.blog-section {
    padding: 80px 0;
    background-color: #0b0e14;
}
.blog-card {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.35s;
    display: flex; 
    flex-direction: column;
    height: 100%; 
}
.blog-card:hover {
    border-color: #2c3e4e;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.blog-card .blog-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-color: #141a24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2c3e4e;
    border-bottom: 1px solid #1e293b;
}
.blog-card .blog-img img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.blog-card .blog-img a {
  width: 100%;
  height: 100%;
}
.blog-card .blog-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card .blog-date {
    font-size: 0.7rem;
    color: #6b7a8f;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.blog-card .blog-date .bi {
    font-size: 0.65rem;
}
.blog-card .blog-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e8edf5;
    margin-bottom: 8px;
}
.blog-card .blog-title a {
    color: inherit;
    text-decoration: none;
}
.blog-card .blog-title a:hover {
    color: #f79420;
}
.blog-card .blog-excerpt {
    font-size: 0.85rem;
    color: #6b7a8f;
    line-height: 1.7;
    margin-bottom: 12px;
}
.blog-card .blog-link {
    color: #f79420;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: auto; 
    align-self: flex-start;
}
.blog-card .blog-link:hover {
    text-decoration: underline;
}
.blogSwiper .swiper-slide {
    height: auto;
}
/* ====== فوتر ====== */
.footer {
    background-color: #05080c;
    border-top: 1px solid #1e293b;
    padding: 60px 0 0;
}
.footer h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #e8edf5;
}
.footer h5 .footer-underline {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #00abcc;
    margin-top: 8px;
}
.footer p, .footer a {
    font-size: 0.85rem;
    color: #6b7a8f;
    line-height: 2;
}
.footer a {
    text-decoration: none;
    display: block;
    transition: 0.2s;
}
.footer a:hover {
    color: #f79420;
    padding-right: 4px;
}
.footer .footer-brand {
    font-weight: 900;
    font-size: 1.3rem;
    color: #e8edf5;
    margin-bottom: 10px;
}
.footer .footer-brand span {
    color: #f79420;
}
.footer .footer-brand small {
    font-size: 0.65rem;
    display: block;
    font-weight: 400;
    color: #6b7a8f;
    letter-spacing: 1px;
}
.footer .social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer .social-links a {
    width: 38px;
    height: 38px;
    background-color: #141a24;
    border: 1px solid #1e293b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7a8f;
    font-size: 1rem;
    transition: 0.3s;
}
.footer .social-links a img {
  opacity: 0.5;
  transition: 0.3s;
}
.footer .social-links a:hover {
    background-color: #1e293b;
    border-color: #f79420;
    padding-right: 0;
}
.footer .social-links a:hover img {
  opacity: 1;
}
.footer .footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #3d4a5a;
}
.footer .footer-bottom strong {
    color: #00abcc;
}

/* ====== ویژگی‌های سایت ====== */
.features-strip {
    background-color: #080b11;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    padding: 30px 0;
}
.feature-item {
    text-align: center;
    padding: 10px;
}
.feature-item .feat-icon {
    font-size: 1.6rem;
    color: #f79420;
    margin-bottom: 6px;
}
.feature-item .feat-text {
    font-size: 0.8rem;
    color: #8895a7;
    font-weight: 600;
}
.feature-item .feat-desc {
    font-size: 0.7rem;
    color: #4a5a6e;
}

/* ====== برندها / مشتریان ====== */
.brands-section {
    padding: 50px 0;
    background-color: #0b0e14;
}
.brand-item {
    text-align: center;
    padding: 20px;
    opacity: 0.5;
    transition: 0.3s;
    filter: grayscale(1);
}
.brand-item:hover {
    opacity: 1;
    filter: grayscale(0);
}
.brand-item .brand-placeholder {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e4e;
    letter-spacing: 2px;
}

/* ====== حالت موبایل ====== */
@media (max-width: 767.98px) {
    .hero-slide span {
        font-size: 1.8rem;
    }
    .hero-slide {
        padding: 50px 0 70px;
    }
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .hero-stats .stat-number {
        font-size: 1.4rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .banner-box {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
    }
    .banner-box .banner-text h3 {
        font-size: 1.2rem;
    }
    .navbar .search-box {
        max-width: 100%;
        margin-top: 10px;
    }
}



/* ===== Steps ===== */
.cart-page-wrapper {
}


/* ====== استایل‌های سبد خرید (پیشرو صنعت نسل ۴) ====== */
/* این کدها را به فایل style.css قالب خود اضافه کنید */

.cart-section {
    background-color: #0b0e14;
    padding: 80px 0;
}

/* جدول سبد خرید */
.cart-table-responsive {
    overflow-x: auto;
}
.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* فاصله بین سطرها */
    margin-bottom: 24px;
}
.shop_table thead th {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-bottom: 2px solid #f79420;
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e8edf5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.shop_table tbody tr {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    transition: 0.3s;
}
.shop_table tbody tr:hover {
    background-color: #141a24;
    border-color: #2c3e4e;
}
.shop_table tbody td {
    padding: 16px;
    vertical-align: middle;
    color: #c8d0db;
    border: none;
    font-size: 0.9rem;
}
.product-remove {
    width: 40px;
    text-align: center;
}
.product-remove .remove {
    color: #4a5a6e;
    font-size: 1.2rem;
    transition: 0.2s;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 4px;
    background-color: #1a2332;
    border: 1px solid #2c3e4e;
}
.product-remove .remove:hover {
    color: #f79420;
    background-color: #2c3e4e;
    border-color: #f79420;
}
.product-thumbnail img {
    border-radius: 6px;
    border: 1px solid #2c3e4e;
    max-width: 80px;
    height: auto;
}
.product-name a {
    color: #e8edf5;
    font-weight: 600;
    text-decoration: none;
}
.product-name a:hover {
    color: #f79420;
}
.product-price .amount,
.product-subtotal .amount {
    font-weight: 700;
    color: #f79420;
    font-size: 1rem;
}

/* بخش اقدامات (کوپن و بروزرسانی) */
.actions {
    background-color: #0f141e !important;
    border: 1px solid #1e293b !important;
    padding: 20px !important;
    text-align: left;
}
.coupon {
    display: flex;
    gap: 10px;
    float: right;
}
.coupon .input-text {
    background-color: #141a24;
    border: 1px solid #2c3e4e;
    color: #c8d0db;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    width: 200px;
    max-width: 100%;
}
.coupon .input-text:focus {
    border-color: #f79420;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.button[name="apply_coupon"],
.button[name="update_cart"] {
    background-color: transparent;
    border: 1px solid #2c3e4e;
    color: #a0b0c4;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 0.85rem;
}
.button[name="apply_coupon"]:hover,
.button[name="update_cart"]:hover {
    background-color: #f79420;
    border-color: #f79420;
    color: #0b0e14;
}

/* جمع کل سبد خرید */
.cart-collaterals {
    margin-top: 40px;
}
.cart_totals {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 30px;
    color: #c8d0db;
}
.cart_totals h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #e8edf5;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 12px;
}
.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}
.cart_totals th,
.cart_totals td {
    padding: 10px 0;
    border-bottom: 1px solid #1e293b;
}
.cart_totals th {
    font-weight: 600;
    color: #e8edf5;
}
.cart_totals .amount {
    font-weight: 700;
    color: #f79420;
}
.cart_totals .order-total .amount {
    font-size: 1.2rem;
}
.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    background-color: #f79420;
    color: #0b0e14;
    font-weight: 700;
    padding: 14px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 20px;
    transition: 0.3s;
    border: none;
}
.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #d48a08;
    color: #0b0e14;
}

/* پیام سبد خرید خالی */
.cart-empty {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #6b7a8f;
}
.return-to-shop a {
    display: inline-block;
    margin-top: 16px;
    background-color: #f79420;
    color: #0b0e14;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}
.return-to-shop a:hover {
    background-color: #d48a08;
}

/* ===== Cart Page ===== */


/* Layout */
.cart-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.cart-items-col {
  flex: 1 1 0;
  min-width: 0;
}

.cart-summary-col {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}


/* هر باکس محصول */
.cart-item-box {
height: 150px;
  background: #0f141e;
  border: 1px solid #1e293b;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.cart-item-box:hover {
  border-color: #2c3e4e;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* تصویر */
.cart-item-img {
  width: 150px;
  flex-shrink: 0;
  background: #141a24;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-img a {
    width: 100%;
    height: 100%;
}

.cart-item-img img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* اطلاعات */
.cart-item-info {
  flex: 1;
  padding: 14px 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e8edf5;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-name:hover {
  color: #f79420;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.cart-item-label {
  font-size: 0.72rem;
  color: #6b7a8f;
}

.cart-item-unit-price {
  font-size: 0.85rem;
  color: #c8d0db;
  font-weight: 600;
}

/* کنترل تعداد */
.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #141a24;
  border: 1px solid #2c3e4e;
  border-radius: 6px;
  padding: 2px 4px;
}

.qty-btn {
  background: none;
  border: none;
  color: #a0b0c4;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.qty-btn:hover {
  background: #1e293b;
  color: #f79420;
}

.qty-input {
  width: 36px;
  background: none;
  border: none;
  color: #e8edf5;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.cart-item-subtotal-row .cart-item-subtotal {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f79420;
}

/* دکمه حذف */
.cart-item-remove {
  position: absolute;
  top: 8px;
  left: 8px;
  background: none;
  border: none;
  color: #4a5a6e;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.cart-item-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ===== خلاصه سبد ===== */
.cart-summary-box {
  background: #0f141e;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 28px 24px;
}

.cart-summary-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #e8edf5;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e293b;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #a0b0c4;
  border-bottom: 1px solid #141a24;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.discount-row {
  color: #4ade80;
}

.summary-divider {
  height: 1px;
  background: #1e293b;
  margin: 10px 0;
}

.summary-total-row {
  font-size: 1rem;
  font-weight: 800;
  color: #e8edf5;
  padding: 14px 0 0;
  border-bottom: none;
}

#summary-total {
  color: #f79420;
  font-size: 1.1rem;
}

/* کوپن */
.coupon-box {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.coupon-input {
  flex: 1;
  background: #141a24;
  border: 1px solid #2c3e4e;
  border-radius: 6px;
  padding: 8px 12px;
  color: #c8d0db;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.coupon-input:focus {
  border-color: #f79420;
}

.coupon-input::placeholder {
  color: #4a5a6e;
}

.btn-coupon {
  background: #1e293b;
  border: 1px solid #2c3e4e;
  color: #c8d0db;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-coupon:hover {
  background: #f79420;
  color: #0b0e14;
  border-color: #f79420;
}

.coupon-message {
  font-size: 0.8rem;
  margin-top: 8px;
  min-height: 18px;
}

.coupon-message.success { color: #4ade80; }
.coupon-message.error   { color: #f87171; }

/* دکمه‌های پایین */
.btn-checkout {
  display: block;
  width: 100%;
  margin-top: 18px;
  background: #f79420;
  color: #0b0e14;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-checkout:hover {
  background: #d97706;
  transform: translateY(-2px);
  color: #0b0e14;
}

.btn-continue-shopping {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: 1px solid #2c3e4e;
  color: #a0b0c4;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}

.btn-continue-shopping:hover {
  border-color: #f79420;
  color: #f79420;
}

/* ===== Empty Cart ===== */
.cart-empty-box {
  text-align: center;
  padding: 80px 20px;
  color: #6b7a8f;
}

.cart-empty-box .bi {
  font-size: 4rem;
  color: #2c3e4e;
  display: block;
  margin-bottom: 16px;
}

.cart-empty-box p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* ===== Loading ===== */
.cart-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.cart-loading-overlay.active {
  display: flex;
}

.cart-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #1e293b;
  border-top-color: #f79420;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .cart-layout {
    flex-direction: column-reverse;
  }
  .cart-summary-col {
    width: 100%;
    position: static;
  }
}

@media (max-width: 640px) {

  .cart-item-img {
    width: 100px;
  }
}

/* ═══════════════════════════════════════════
   INDUSTRY 4 — CHECKOUT STYLES
   ═══════════════════════════════════════════ */

/* ── Steps Indicator ── */
.checkout-steps {
  background-color: #0d1117;
  border-bottom: 1px solid #1e293b;
  padding: 20px 0;
}

.steps-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: opacity 0.3s;
}

.step.active,
.step.completed {
  opacity: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #2c3e4e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #6b7a8f;
  background-color: #141a24;
  transition: all 0.3s;
}

.step.active .step-icon {
  border-color: #f79420;
  color: #f79420;
  background-color: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.25);
}

.step.completed .step-icon {
  border-color: #22c55e;
  color: #22c55e;
  background-color: rgba(34, 197, 94, 0.1);
}

.step span {
  font-size: 0.8rem;
  color: #6b7a8f;
  white-space: nowrap;
}

.step.active span  { color: #f79420; font-weight: 700; }
.step.completed span { color: #22c55e; }

.step-line {
  flex: 1;
  height: 2px;
  background-color: #1e293b;
  max-width: 80px;
  margin-bottom: 24px;
}

.step-line.completed {
  background-color: #22c55e;
}

/* ── Checkout Card ── */
.checkout-card {
  background-color: #0f1520;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.checkout-card:hover {
  border-color: #2c3e4e;
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background-color: #0b0e14;
  border-bottom: 1px solid #1e293b;
}

.checkout-card-header i {
  font-size: 1.2rem;
  color: #f79420;
}

.checkout-card-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #e8edf5;
}

.checkout-card-body {
  padding: 24px 20px;
}

/* ── Sticky sidebar ── */
@media (min-width: 992px) {
  .checkout-sticky-col {
    position: sticky;
    top: 100px;
  }
}

/* ── WooCommerce Form Fields Override ── */
.industry4-checkout .form-row {
  margin-bottom: 16px;
}

.industry4-checkout .form-row label {
  display: block;
  font-size: 0.85rem;
  color: #8895a7;
  margin-bottom: 6px;
  font-weight: 600;
}

.industry4-checkout .form-row label .required {
  color: #f79420;
  margin-right: 2px;
}

.industry4-checkout .form-row input.input-text,
.industry4-checkout .form-row select,
.industry4-checkout .form-row textarea {
  width: 100%;
  background-color: #141a24;
  border: 1px solid #2c3e4e;
  border-radius: 8px;
  color: #c8d0db;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: 'Vazirmatn-LD', sans-serif;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}

.industry4-checkout .form-row input.input-text:focus,
.industry4-checkout .form-row select:focus,
.industry4-checkout .form-row textarea:focus {
  outline: none;
  border-color: #f79420;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  background-color: #0f1520;
}

.industry4-checkout .form-row input.input-text::placeholder,
.industry4-checkout .form-row textarea::placeholder {
  color: #3d5568;
}

/* select arrow */
.industry4-checkout .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%238895a7' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

.industry4-checkout .form-row textarea {
  resize: vertical;
  min-height: 100px;
}

/* validation states */
.industry4-checkout .form-row.woocommerce-validated input.input-text {
  border-color: #22c55e;
}

.industry4-checkout .form-row.woocommerce-invalid input.input-text {
  border-color: #ef4444;
}

.industry4-checkout .woocommerce-error,
.industry4-checkout .woocommerce-message {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

/* ── Ship to Different Address Toggle ── */
.industry4-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.industry4-toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-track {
  width: 44px;
  height: 24px;
  background-color: #2c3e4e;
  border-radius: 999px;
  position: relative;
  transition: background-color 0.3s;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background-color: #6b7a8f;
  border-radius: 50%;
  transition: transform 0.3s, background-color 0.3s;
}

.industry4-toggle-label input:checked ~ .toggle-track {
  background-color: rgba(245, 158, 11, 0.25);
  border: 1px solid #f79420;
}

.industry4-toggle-label input:checked ~ .toggle-track::after {
  transform: translateX(-20px);
  background-color: #f79420;
}

.toggle-text {
  font-size: 0.9rem;
  color: #c8d0db;
  font-weight: 600;
}

/* ── Shipping same notice ── */
.shipping-same-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  font-size: 0.875rem;
  color: #f79420;
}

/* ── Order Review Table (woocommerce default override) ── */
.industry4-checkout .woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
}

.industry4-checkout .woocommerce-checkout-review-order-table thead th {
  padding: 12px 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6b7a8f;
  font-weight: 700;
  border-bottom: 1px solid #1e293b;
  letter-spacing: 0.5px;
}

.industry4-checkout .woocommerce-checkout-review-order-table tbody tr {
  border-bottom: 1px solid #141a24;
  transition: background-color 0.2s;
}

.industry4-checkout .woocommerce-checkout-review-order-table tbody tr:hover {
  background-color: #141a24;
}

.industry4-checkout .woocommerce-checkout-review-order-table tbody td {
  padding: 14px 20px;
  font-size: 0.875rem;
  color: #c8d0db;
  vertical-align: middle;
}

.industry4-checkout .woocommerce-checkout-review-order-table .product-name {
  color: #e8edf5;
  font-weight: 600;
}

.industry4-checkout .woocommerce-checkout-review-order-table .product-name .product-quantity {
  color: #6b7a8f;
  font-weight: 400;
}

.industry4-checkout .woocommerce-checkout-review-order-table tfoot tr th,
.industry4-checkout .woocommerce-checkout-review-order-table tfoot tr td {
  padding: 12px 20px;
  border-top: 1px solid #1e293b;
  font-size: 0.875rem;
  color: #8895a7;
}

.industry4-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
.industry4-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
  color: #f79420;
  font-size: 1.05rem;
  font-weight: 800;
  border-top: 2px solid #f79420;
}

/* ── Payment Methods ── */
.industry4-checkout #payment {
  padding: 0 20px 20px;
}

.industry4-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-bottom: 1px solid #1e293b;
}

.industry4-checkout #payment ul.payment_methods li {
  padding: 14px 0;
  border-bottom: 1px solid #141a24;
}

.industry4-checkout #payment ul.payment_methods li label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #c8d0db;
  font-weight: 600;
}

.industry4-checkout #payment ul.payment_methods li input[type="radio"] {
  accent-color: #f79420;
  width: 16px;
  height: 16px;
}

.industry4-checkout #payment ul.payment_methods li .payment_box {
  margin-top: 10px;
  padding: 12px 14px;
  background-color: #141a24;
  border-radius: 8px;
  border: 1px solid #2c3e4e;
  font-size: 0.85rem;
  color: #8895a7;
}

/* ── Place Order Button ── */
.industry4-checkout #payment #place_order {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: #f79420;
  color: #0b0e14;
  border: none;
  border-radius: 10px;
  font-family: 'Vazirmatn-LD', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.2s, box-shadow 0.25s;
  letter-spacing: 0.5px;
}

.industry4-checkout #payment #place_order:hover {
  background-color: #e08e00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.industry4-checkout #payment #place_order:active {
  transform: translateY(0);
}

/* ── Privacy Policy notice ── */
.industry4-checkout .woocommerce-privacy-policy-text {
  font-size: 0.78rem;
  color: #3d5568;
  text-align: center;
  margin-top: 12px;
  line-height: 1.8;
}

.industry4-checkout .woocommerce-privacy-policy-text a {
  color: #f79420;
}

/* ── Coupon / Login notices ── */
.industry4-checkout .woocommerce-info {
  background-color: rgba(245, 158, 11, 0.08);
  border-right: 4px solid #f79420;
  border-radius: 8px;
  padding: 12px 16px;
  color: #c8d0db;
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.industry4-checkout .woocommerce-info a {
  color: #f79420;
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 576px) {
  .steps-wrapper {
    gap: 4px;
  }

  .step-line {
    max-width: 32px;
  }

  .step span {
    font-size: 0.7rem;
  }

  .checkout-card-body {
    padding: 16px 14px;
  }
}





/* ========================================================
   تکمیل استایل فرم‌های تسویه حساب (پشتیبانی از کلاس‌های پیش‌فرض ووکامرس)
   ======================================================== */
form * {
  direction: rtl;
}
.woocommerce-checkout input,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    display: block !important;
    width: 100% !important;
    background-color: #141a24 !important;
    border: 1px solid #2c3e4e !important;
    border-radius: 8px !important;
    color: #c8d0db !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    transition: border-color 0.25s, box-shadow 0.25s !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout form input:focus,
.woocommerce-checkout form textarea:focus,
.woocommerce-checkout form select:focus {
    outline: none !important;
    border-color: #f79420 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
    background-color: #0f1520 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #c8d0db !important;
    line-height: normal !important;
    padding-right: 14px !important;
    padding-left: 30px !important;
}


/* ========================================================
   استایل‌دهی به فیلدهای کشور و استان (کتابخانه Select2 ووکامرس)
   ======================================================== */

.select2-container--default .select2-selection--single {
    background-color: #141a24 !important;
    border: 1px solid #2c3e4e !important;
    border-radius: 8px !important;
    height: 42px !important;
    display: flex;
    align-items: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}

/* حالت فوکوس برای Select2 */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #f79420 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
    background-color: #0f1520 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #c8d0db !important;
    line-height: normal !important;
    padding-right: 14px !important;
    padding-left: 30px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    top: 1px !important;
    left: 10px !important; /* موقعیت فلش برای سایت راست‌چین */
    right: auto !important;
}

/* منوی بازشوی Select2 */
.select2-dropdown {
    background-color: #0f1520 !important;
    border: 1px solid #2c3e4e !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.select2-container--default .select2-results__option {
    color: #c8d0db;
    padding: 8px 14px;
}

/* رنگ آیتم انتخاب شده یا هاور شده در لیست کشویی */
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f79420 !important;
    color: #0b0e14 !important;
}

/* باکس جستجوی داخل Select2 */
.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #141a24;
    border: 1px solid #2c3e4e;
    color: #c8d0db;
    border-radius: 6px;
    padding: 6px 10px;
    outline: none;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #f79420;
}

/* چک‌باکس‌ها و رادیوباتن‌های دیفالت ووکامرس */
.woocommerce-checkout input[type="checkbox"],
.woocommerce-checkout input[type="radio"] {
    accent-color: #f79420;
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 6px;
}
.woocommerce form .form-row.woocommerce-invalid label {
  color: unset !important;
}
.woocommerce form .form-row .required {
  color: #FFF !important;
}


/* ========================================================
   سینگل محصول
======================================================== */
   
/* ====== صفحه سینگل محصول ====== */
.custom-box {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-radius: 12px;
}
.custom-hr {
    border-color: #1e293b;
    opacity: 1;
}

/* تایپوگرافی محصول */
.product_title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e8edf5;
    margin-bottom: 10px;
}
.product_meta span {
  display: block;
  font-weight: 700;
  color: #e8edf5;
  margin-left: 10px;
}
.product_meta span a {
    display: inline-block;
    background-color: #141a24;
    border: 1px solid #2c3e4e;
    color: #a0b0c4;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.product_meta span a:hover {
    background-color: #f79420;
    border-color: #f79420;
    color: #0b0e14;
}
.woocommerce-product-details__short-description {
    color: #8895a7;
    font-size: 0.95rem;
    line-height: 2;
}
/* استایل قیمت */
.product-single-price .price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #f79420;
    display: block;
}
.product-single-price del {
    color: #4a5a6e;
    font-size: 1rem;
    font-weight: normal;
    margin-left: 10px;
}
.product-single-price ins {
    text-decoration: none;
    color: #f79420;
}

/* فرم افزودن به سبد خرید ووکامرس */
.add-to-cart-wrapper form.cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.add-to-cart-wrapper .quantity {
    display: flex;
    justify-content: center;
}
.add-to-cart-wrapper .quantity input.qty {
    background-color: #141a24;
    border: 1px solid #2c3e4e;
    color: #e8edf5;
    border-radius: 6px;
    padding: 10px;
    width: 80px;
    text-align: center;
    font-family: 'Vazirmatn-FD', sans-serif;
}
.add-to-cart-wrapper button.single_add_to_cart_button {
    background-color: #f79420;
    color: #0b0e14;
    border: none;
    padding: 14px;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 6px;
    transition: 0.3s;
    width: 100%;
}
.add-to-cart-wrapper button.single_add_to_cart_button:hover {
    background-color: #d48a08;
}

/* گالری Swiper */
.product-gallery-wrapper .swiper-slide .img-fluid {
  width: 100% !important;
  object-fit: cover !important;
}

/* استایل گالری محصول */
.product-thumb-swiper .swiper-slide {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.product-thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
}

.product-thumb-swiper .swiper-slide-thumb-active .custom-box {
    border: 2px solid #f79420 !important; /* حاشیه طلایی برای تصویر فعال */
}


/* تب‌های ووکامرس */
.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #1e293b;
}
.woocommerce-tabs ul.tabs li {
    padding: 10px 20px;
}
.woocommerce-tabs ul.tabs li a {
    color: #8895a7;
    font-weight: 600;
}
.woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid #f79420;
}
.woocommerce-tabs ul.tabs li.active a {
    color: #f79420;
}

/* ====== محصولات مشابه ====== */
.related-products-section {
    background-color: #0b0e14; /* کمی تیره‌تر برای تمایز */
}

.related-swiper {
    padding: 10px 40px !important; /* فضا برای دکمه‌های اسلایدر */
}

.product-card .product-img-wrap img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-card .product-title {
    color: #e8edf5;
    transition: color 0.3s;
}

.product-card:hover .product-title {
    color: #f79420;
}

/* استایل دکمه خرید در آرشیو/محصولات مشابه */
.product-card .add_to_cart_button {
    display: block;
    text-align: center;
    background-color: #1e293b;
    color: #c8d0db;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.product-card .add_to_cart_button:hover {
    background-color: #f79420;
    color: #080b11;
}

/* تغییر اندازه دکمه‌های نویگیشن اسلایدر مشابه */
.related-swiper .swiper-button-next,
.related-swiper .swiper-button-prev {
    color: #f79420;
    transform: scale(0.7);
}

/* ========================================================
   استایل‌های صفحه سینگل پست و مطالب مرتبط
======================================================== */

.entry-content p {
    line-height: 2;
    color: #c8d0db;
}

.entry-content a {
    color: #f79420;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #d48a08;
}

.post-tags a {
    display: inline-block;
    background-color: #141a24;
    border: 1px solid #2c3e4e;
    color: #a0b0c4;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.post-tags a:hover {
    background-color: #f79420;
    border-color: #f79420;
    color: #0b0e14;
}

/* استایل مطالب مرتبط در سایدبار */
.related-post-box {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-box:hover {
    border-color: #f79420;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.related-post-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    margin-left: 12px;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* استایل جایگزین در صورت نبود تصویر */
.related-post-image-placeholder {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    margin-left: 12px;
    background-color: #141a24;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #3d5568;
}

.related-post-title {
    font-size: 0.9rem;
    color: #c8d0db;
    margin: 0;
    line-height: 1.5;
    font-weight: 600;
    transition: color 0.3s;
}

.related-post-box:hover .related-post-title {
    color: #f79420;
}
/* ========================================================
   استایل‌های آکوردئون گوتنبرگ (Gutenberg Accordion)
======================================================== */

.wp-block-accordion {
    margin-bottom: 30px;
}

.wp-block-accordion-item {
    background-color: #0f141e;
    border: 1px solid #1e293b;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.wp-block-accordion-item:hover {
    border-color: #2c3e4e;
}

.wp-block-accordion-heading {
    margin: 0 !important;
}

.wp-block-accordion-heading__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: #e8edf5;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
}

.wp-block-accordion-heading__toggle:hover {
    color: #f79420;
    background-color: #141a24;
}

.wp-block-accordion-heading__toggle:focus {
    outline: none;
}

/* --- عنوان --- */
.wp-block-accordion-heading__toggle-title {
  padding-right: 15px;
}
/* --- حالت باز شده (آیتم فعال) --- */
.wp-block-accordion-item.is-open {
    border-color: #f79420;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.08);
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle {
    color: #f79420;
    background-color: rgba(245, 158, 11, 0.05);
    border-bottom: 1px solid #1e293b;
}

/* --- آیکون + --- */
.wp-block-accordion-heading__toggle-icon {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #6b7a8f;
    display: inline-block;
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon {
    color: #f79420;
}

/* چرخش آیکون در حالت باز (تبدیل + به ×) */
.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {
    transform: rotate(45deg);
    color: #ef4444; /* رنگ قرمز ملایم برای القای حس بستن */
}

/* --- محتوای داخل آکوردئون --- */
.wp-block-accordion-panel {
    padding: 20px;
    background-color: #0b0e14; /* کمی تیره‌تر از هدر آکوردئون */
    color: #c8d0db;
    line-height: 1.8;
    font-size: 0.95rem;
}

.wp-block-accordion-panel p:last-child {
    margin-bottom: 0;
}

/* اطمینان از مخفی بودن محتوا در حالت بسته (پشتیبان گوتنبرگ) */
.wp-block-accordion-item:not(.is-open) .wp-block-accordion-panel {
    display: none;
}

/* ========================================================
   breadcrumb
======================================================== */
/* استایل باکس مسیر راهنما */
.woo-custom-breadcrumb .breadcrumb {
    background-color: #0f141e; /* رنگ پس‌زمینه تیره هماهنگ با قالب */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* رنگ لینک‌ها */
.woo-custom-breadcrumb .breadcrumb-item a {
    color: #a1a1aa; /* خاکستری روشن */
    transition: color 0.3s ease;
}

/* هاور لینک‌ها با رنگ طلایی/نارنجی */
.woo-custom-breadcrumb .breadcrumb-item a:hover {
    color: #f79420; 
}

/* رنگ آیتم فعال (صفحه فعلی) */
.woo-custom-breadcrumb .breadcrumb-item.active {
    color: #f79420;
    font-weight: 500;
}

/* تغییر رنگ و شکل جداکننده (Delimiter) بوت‌استرپ */
.woo-custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›"; /* می‌توانید از "/" هم استفاده کنید */
    color: #4b5563; /* رنگ جداکننده */
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

/* ========================================================
   comments - نظرات کاربران
======================================================== */
/* تنظیمات کلی لیست نظرات */
.woocommerce-Reviews .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-Reviews .commentlist li {
    margin-bottom: 1.5rem;
}

/* ظاهر باکس هر نظر */
.woocommerce-Reviews .commentlist .comment_container {
    background-color: #0f141e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem; /* rounded-4 */
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* shadow-sm */
    display: flex;
    gap: 1rem;
}

/* تصویر پروفایل (آواتار) */
.woocommerce-Reviews .commentlist img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* محتوای متن نظر */
.woocommerce-Reviews .commentlist .comment-text {
    flex: 1;
}

/* نام کاربر و تاریخ */
.woocommerce-Reviews .commentlist .meta {
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-bottom: 0.5rem;
}
.woocommerce-Reviews .commentlist .meta strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* متن اصلی دیدگاه */
.woocommerce-Reviews .commentlist .description {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
}
.woocommerce-Reviews .commentlist .description p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------- */
/* استایل پاسخ‌ها (Replies) */
/* ------------------------------------- */
.woocommerce-Reviews .commentlist ul.children {
    list-style: none;
    margin-top: 1.5rem;
    padding-right: 3rem; /* تورفتگی در حالت راست‌چین RTL */
    border-right: 2px solid rgba(255, 255, 255, 0.05); /* خط راهنمای پاسخ */
}

/* باکس پاسخ - کمی تیره‌تر برای تمایز */
.woocommerce-Reviews .commentlist ul.children .comment_container {
    background-color: #0b0e14; 
    border: none;
}

/* ------------------------------------- */
/* سیستم امتیازدهی ستاره‌ای با آیکون‌های بوت‌استرپ */
/* ------------------------------------- */
.woocommerce-Reviews .star-rating {
    float: left; /* در RTL برای رفتن به سمت چپ */
    overflow: hidden;
    position: relative;
    height: 1.2em;
    line-height: 1.2;
    font-size: 1rem;
    width: 5.5em;
    font-family: "bootstrap-icons" !important;
}

/* ستاره‌های پس‌زمینه (خالی) */
.woocommerce-Reviews .star-rating::before {
    content: '\F586\F586\F586\F586\F586'; /* bi-star-fill */
    font-family: "bootstrap-icons" !important;
    color: rgba(255, 255, 255, 0.1);
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    letter-spacing: 2px;
}

/* مخفی کردن متن پیش‌فرض ووکامرس بدون خراب کردن جایگاه ستاره‌های روشن */
.woocommerce-Reviews .star-rating span {
    overflow: hidden;
    top: 0;
    right: -1px; /* در راست‌چین از راست پر می‌شود */
    left: auto;
    position: absolute;
    text-indent: -9999px; /* به جای padding از این روش استفاده می‌کنیم */
    white-space: nowrap;
    height: 100%;
}

/* ستاره‌های روشن (بر اساس امتیاز) */
.woocommerce-Reviews .star-rating span::before {
    content: '\F586\F586\F586\F586\F586'; /* bi-star-fill */
    font-family: "bootstrap-icons" !important;
    top: 0;
    position: absolute;
    right: 0; /* شروع از راست برای RTL */
    left: auto;
    color: #f79420; /* رنگ طلایی */
    letter-spacing: 2px;
    text-indent: 0; /* برگرداندن تورفتگی متن برای نمایش آیکون‌ها */
}


/* ------------------------------------- */
/* فرم امتیازدهی (انتخاب ستاره توسط کاربر) */
/* ------------------------------------- */
/* ------------------------------------- */
/* فرم امتیازدهی (انتخاب ستاره توسط کاربر) */
/* ------------------------------------- */
p.stars a {
    position: relative;
    display: inline-block;
    text-indent: -9999px; 
    width: 1.2em;
    height: 1.2em;
    margin-right: 4px;
    text-decoration: none;
}

/* حالت پیش‌فرض: همه توخالی */
p.stars a::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1.2em;
    height: 1.2em;
    line-height: 1.2;
    font-family: "bootstrap-icons" !important;
    content: '\F588'; /* bi-star (توخالی) */
    color: rgba(255, 255, 255, 0.3);
    text-indent: 0;
    font-size: 1.2rem;
    transition: color 0.1s ease;
}

/* وقتی موس روی کل باکس می‌رود: همه را روشن کن */
p.stars:hover a::before {
    content: '\F586'; /* توپر */
    color: #f79420;
}

/* وقتی موس روی یک ستاره است: ستاره‌های *بعدی* را خاموش کن */
p.stars a:hover ~ a::before {
    content: '\F588'; /* توخالی */
    color: rgba(255, 255, 255, 0.3);
}

/* وقتی کاربر کلیک کرده (ثبت شده): همه ستاره‌ها را روشن کن */
p.stars.selected a::before {
    content: '\F586';
    color: #f79420;
}

/* ستاره‌های *بعد از* ستاره کلیک شده (active) را خاموش کن */
p.stars.selected a.active ~ a::before {
    content: '\F588';
    color: rgba(255, 255, 255, 0.3);
}

/* ترکیب حالت کلیک شده با هاور مجدد */
p.stars.selected:hover a::before {
    content: '\F586';
    color: #f79420;
}
p.stars.selected:hover a:hover ~ a::before {
    content: '\F588';
    color: rgba(255, 255, 255, 0.3);
}


/* ------------------------------------- */
/* استایل‌های فرم نظرات (لیبل، پلیس‌هولدر، فوکوس) */
/* ------------------------------------- */
.woocommerce-Reviews #review_form label {
    color: #f3f4f6 !important;
}

.woocommerce-Reviews #review_form input::placeholder,
.woocommerce-Reviews #review_form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.woocommerce-Reviews #review_form input:focus,
.woocommerce-Reviews #review_form textarea:focus {
    background-color: rgba(255,255,255,0.02) !important;
    border-color: #f79420 !important;
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
    color: #fff;
}

/* ==================================================
   WooCommerce My Account Page - Dark Modern Theme
   ================================================== */

/* چیدمان کلی صفحه (Grid دو ستونه در دسکتاپ) */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* در موبایل تک ستونه شود */
@media (max-width: 991.98px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }
}

/* استایل سایدبار منوها */
.custom-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #1a2332; /* رنگ پس‌زمینه پنل‌های شما */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.custom-account-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-account-nav ul li:last-child {
    border-bottom: none;
}

.custom-account-nav ul li a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.custom-account-nav ul li a i {
    font-size: 1.25rem;
    margin-left: 12px; /* فاصله آیکون برای راست‌چین */
    color: inherit;
    transition: color 0.3s ease;
}

/* هاور و وضعیت فعال (Active) */
.custom-account-nav ul li a:hover,
.custom-account-nav ul li.is-active a {
    background-color: rgba(255, 255, 255, 0.03);
    color: #f3f4f6; /* رنگ روشن‌تر متن */
}

.custom-account-nav ul li.is-active a {
    border-right: 4px solid #f79420; /* نوار طلایی در سمت راست برای آیتم فعال */
}

.custom-account-nav ul li.is-active a i,
.custom-account-nav ul li a:hover i {
    color: #f79420;
}

/* دکمه خروج */
.woocommerce-MyAccount-navigation-link--customer-logout a:hover i {
    color: #ef4444; /* رنگ قرمز برای آیکون خروج */
}

/* ==================================================
   استایل بخش محتوای حساب کاربری
   ================================================== */
.woocommerce-MyAccount-content {
    background-color: #1a2332;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #d1d5db;
}

.woocommerce-MyAccount-content p {
    margin-bottom: 1rem;
}

.woocommerce-MyAccount-content a {
    color: #f79420;
    text-decoration: none;
}

.woocommerce-MyAccount-content a:hover {
    text-decoration: underline;
}

/* جدول سفارشات و دانلودها */
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.woocommerce-MyAccount-content table.shop_table th {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f3f4f6;
    padding: 12px 15px;
    border: none;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
}

/* دکمه‌های داخل جداول (مثل دکمه نمایش سفارش) */
.woocommerce-MyAccount-content .button {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f79420;
    border: 1px solid #f79420;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.woocommerce-MyAccount-content .button:hover {
    background-color: #f79420;
    color: #0f141e;
    text-decoration: none;
}

/* خنثی کردن استایل‌های پیش‌فرض چیدمان ووکامرس در صفحه حساب کاربری */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
    display: none !important;
}


.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: #05080c !important;
    border-radius: 10px;
}

/* ========================================================
   WooCommerce Login & Register Form Styles
   ======================================================== */

/* استایل باکس اصلی فرم‌ها */
.custom-auth-wrapper {
    background-color: #1a2332;
    border: 1px solid #2a3441;
}

/* عنوان فرم‌ها */
.custom-auth-title {
    color: #f79420; 
}

/* لیبل‌ها و متن‌های راهنما */
.custom-auth-label {
    color: #a0b0c4;
}

.custom-auth-text {
    color: #a0b0c4;
    font-size: 0.9rem;
}

/* لینک فراموشی رمز عبور */
.custom-auth-link {
    color: #a0b0c4;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-auth-link:hover {
    color: #f79420;
}

/* استایل فیلدهای ورودی هنگام فوکوس */
.custom-auth-wrapper .form-control:focus {
    border-color: #f79420;
    box-shadow: 0 0 0 0.25rem rgba(247, 148, 32, 0.25);
}

/* چک‌باکس هنگام انتخاب */
.custom-auth-wrapper .form-check-input:checked {
    background-color: #f79420;
    border-color: #f79420;
}

/* دکمه اصلی (توپر) - برای ورود */
.btn-custom-solid {
    background-color: #f79420;
    border-color: #f79420;
    color: #1a2332;
}

.btn-custom-solid:hover {
    background-color: #e5871a; /* کمی تیره‌تر برای هاور */
    border-color: #e5871a;
    color: #1a2332;
}

/* دکمه ثانویه (توخالی) - برای ثبت‌نام */
.btn-custom-outline {
    color: #f79420;
    border-color: #f79420;
    background-color: transparent;
}

.btn-custom-outline:hover {
    background-color: #f79420;
    border-color: #f79420;
    color: #1a2332;
}





















.product .woocommerce-message {
    display: block !important;
    position: fixed !important;
    top: calc(50% - 12px);
    width: 30% !important;
    right: 35%;
    z-index: 9999;  
    margin: 0 !important;
    padding: 25px 0 !important;
    text-align: center;
    color: #FFF !important;
    border: none !important;
}
.product .woocommerce-message::before {
    display: none !important;
}
.product .woocommerce-message:focus {
    outline: none;
}
.product .woocommerce-message a {
    display: none;
}

@media (max-width: 992px) {
    .product .woocommerce-message {
        top: 35%;
        width: 90% !important;
        right: 5%;
    }
}
