/*
Theme Name: YESHIL DASHBOARD
Author: Ahmad Esmaeili
Version: 1.0
*/
@font-face {
    font-family: IRANSansfanum;
    font-style: normal;
    font-weight: 900;
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_Black.eot");
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_Black.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransansfanum/woff2/IRANSansWeb(FaNum)_Black.woff2") format("woff2"), url("assets/fonts/iransansfanum/woff/IRANSansWeb(FaNum)_Black.woff") format("woff"), url("assets/fonts/iransansfanum/ttf/IRANSansWeb(FaNum)_Black.ttf") format("truetype");
}
@font-face {
    font-family: IRANSansfanum;
    font-style: normal;
    font-weight: bold;
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_Bold.eot");
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransansfanum/woff2/IRANSansWeb(FaNum)_Bold.woff2") format("woff2"), url("assets/fonts/iransansfanum/woff/IRANSansWeb(FaNum)_Bold.woff") format("woff"), url("assets/fonts/iransansfanum/ttf/IRANSansWeb(FaNum)_Bold.ttf") format("truetype");
}
@font-face {
    font-family: IRANSansfanum;
    font-style: normal;
    font-weight: 500;
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_Medium.eot");
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransansfanum/woff2/IRANSansWeb(FaNum)_Medium.woff2") format("woff2"), url("assets/fonts/iransansfanum/woff/IRANSansWeb(FaNum)_Medium.woff") format("woff"), url("assets/fonts/iransansfanum/ttf/IRANSansWeb(FaNum)_Medium.ttf") format("truetype");
}
@font-face {
    font-family: IRANSansfanum;
    font-style: normal;
    font-weight: 300;
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_Light.eot");
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_Light.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransansfanum/woff2/IRANSansWeb(FaNum)_Light.woff2") format("woff2"), url("assets/fonts/iransansfanum/woff/IRANSansWeb(FaNum)_Light.woff") format("woff"), url("assets/fonts/iransansfanum/ttf/IRANSansWeb(FaNum)_Light.ttf") format("truetype");
}
@font-face {
    font-family: IRANSansfanum;
    font-style: normal;
    font-weight: 200;
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_UltraLight.eot");
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum)_UltraLight.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransansfanum/woff2/IRANSansWeb(FaNum)_UltraLight.woff2") format("woff2"), url("assets/fonts/iransansfanum/woff/IRANSansWeb(FaNum)_UltraLight.woff") format("woff"), url("assets/fonts/iransansfanum/ttf/IRANSansWeb(FaNum)_UltraLight.ttf") format("truetype");
}
@font-face {
    font-family: IRANSansfanum;
    font-style: normal;
    font-weight: normal;
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum).eot");
    src: url("assets/fonts/iransansfanum/eot/IRANSansWeb(FaNum).eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransansfanum/woff2/IRANSansWeb(FaNum).woff2") format("woff2"), url("assets/fonts/iransansfanum/woff/IRANSansWeb(FaNum).woff") format("woff"), url("assets/fonts/iransansfanum/ttf/IRANSansWeb(FaNum).ttf") format("truetype");
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 900;
    src: url("assets/fonts/iransans/eot/IRANSansWeb_Black.eot");
    src: url("assets/fonts/iransans/eot/IRANSansWeb_Black.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransans/woff2/IRANSansWeb_Black.woff2") format("woff2"), url("assets/fonts/iransans/woff/IRANSansWeb_Black.woff") format("woff"), url("assets/fonts/iransans/ttf/IRANSansWeb_Black.ttf") format("truetype");
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: bold;
    src: url("assets/fonts/iransans/eot/IRANSansWeb_Bold.eot");
    src: url("assets/fonts/iransans/eot/IRANSansWeb_Bold.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransans/woff2/IRANSansWeb_Bold.woff2") format("woff2"), url("assets/fonts/iransans/woff/IRANSansWeb_Bold.woff") format("woff"), url("assets/fonts/iransans/ttf/IRANSansWeb_Bold.ttf") format("truetype");
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url("assets/fonts/iransans/eot/IRANSansWeb_Medium.eot");
    src: url("assets/fonts/iransans/eot/IRANSansWeb_Medium.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransans/woff2/IRANSansWeb_Medium.woff2") format("woff2"), url("assets/fonts/iransans/woff/IRANSansWeb_Medium.woff") format("woff"), url("assets/fonts/iransans/ttf/IRANSansWeb_Medium.ttf") format("truetype");
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url("assets/fonts/iransans/eot/IRANSansWeb_Light.eot");
    src: url("assets/fonts/iransans/eot/IRANSansWeb_Light.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransans/woff2/IRANSansWeb_Light.woff2") format("woff2"), url("assets/fonts/iransans/woff/IRANSansWeb_Light.woff") format("woff"), url("assets/fonts/iransans/ttf/IRANSansWeb_Light.ttf") format("truetype");
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url("assets/fonts/iransans/eot/IRANSansWeb_UltraLight.eot");
    src: url("assets/fonts/iransans/eot/IRANSansWeb_UltraLight.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransans/woff2/IRANSansWeb_UltraLight.woff2") format("woff2"), url("assets/fonts/iransans/woff/IRANSansWeb_UltraLight.woff") format("woff"), url("assets/fonts/iransans/ttf/IRANSansWeb_UltraLight.ttf") format("truetype");
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url("assets/fonts/iransans/eot/IRANSansWeb.eot");
    src: url("assets/fonts/iransans/eot/IRANSansWeb.eot?#iefix") format("embedded-opentype"), url("assets/fonts/iransans/woff2/IRANSansWeb.woff2") format("woff2"), url("assets/fonts/iransans/woff/IRANSansWeb.woff") format("woff"), url("assets/fonts/iransans/ttf/IRANSansWeb.ttf") format("truetype");
}
body,
html {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: IRANSansfanum !important;
}

a {
    text-decoration: none;

}
.mt-25 {
    margin-top: 25px;
}

.mt-50 {
    margin-top: 50px;
}

.mt-100 {
    margin-top: 100px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-100 {
    margin-bottom: 100px;
}

.pt-25 {
    padding-top: 25px;
}

.pt-50 {
    padding-top: 50px;
}

.pt-100 {
    padding-top: 100px;
}

.pb-50 {
    padding-bottom: 50px;
}

.pb-100 {
    padding-bottom: 100px;
}

.menu-nav {
    background-color: rgba(142, 142, 144, 0.2);
    border-radius: 50px;
    padding: 20px;
}

.sidebar.collapsed .link-text {
    display: none;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
}

.sidebar-link img {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.main-content {
    background-color: #F6F6F4;
}

#spa-content,
.dashboard-page {
    background-color: #F6F6F4;
}

.new-product-header span {
    color: #4A4A50;
    font-weight: bold;
    font-size: 20px;
}

.card-img {
    max-height: 290px;
}

.card-category {
    color: #4A4A50;
}

.about-us-header span {
    color: #4A4A50;
    font-weight: bold;
    font-size: 20px;
}

.bg-footer {
    background-color: rgba(142, 142, 144, 0.2);
}

.footer-header-title {
    border-bottom: 3px solid;
    color: #4A4A50;
    width: 120px;
    padding-bottom: 10px;
    font-size: 20px;
}

.footer-logo {
    max-width: 150px;
    max-height: 150px;
}

.footer-copy-right span {
    vertical-align: super;
}

.login-section {
    background: linear-gradient(to bottom, #8E8E90 20%, #4A4A50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.login-section .login-container {
    width: 100%;
    max-width: 800px;
    height: 600px;
}
.login-section .login-container .login-row {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.login-section .login-container .login-row .login-col {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.login-section .login-logo {
    position: absolute;
    top: 20px;
    text-align: center;
    z-index: 10;
}
.login-section .login-logo .login-logo-img {
    max-width: 200px;
    height: auto;
}
.login-section .login-form-wrapper {
    background-size: cover;
    background-position: center;
    background-color: rgba(229, 229, 229, 0.2);
    padding: 2rem;
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 650px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.login-section .login-form-wrapper .login-form {
    width: 100%;
    max-width: 400px;
}
.login-section .login-form-wrapper .login-form .login-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}
.login-section .login-form-wrapper .login-form .login-input-group {
    margin-bottom: 1rem;
}
.login-section .login-form-wrapper .login-form .login-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}
.login-section .login-form-wrapper .login-form .login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    background-color: rgba(255, 255, 255, 0.9);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.login-section .login-form-wrapper .login-form .login-input:focus {
    outline: 0;
    border-color: #ced4da;
    box-shadow: none;
}
.login-section .login-form-wrapper .login-form .login-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #212529;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}
.login-section .login-form-wrapper .login-form .login-btn:hover {
    background-color: #444;
}

.bg-login {
    background-image: url("../img/login-bg.png");
    position: absolute;
    top: 50px;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: block;
}
@media (max-width: 991.98px) {
    .bg-login {
        display: none;
    }
}

:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
    --sidebar-bg: #4A4A50;
}

/* ---------------- Sidebar ---------------- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    transition: width 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-radius: 10px;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-link {
    color: #a0a3bd;
    padding: 15px;
    margin: 4px 16px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-link i {
    margin-left: 12px;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Logo Text */
.logo-text {
    background: linear-gradient(45deg, #6b8cff, #8b9fff);
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.collapsed .hide-on-collapse,
.collapsed .logo-text,
.collapsed .profile-info {
    opacity: 0;
    visibility: hidden;
}

.collapsed .sidebar-link {
    padding: 1rem !important;
    margin: 4px 8px;
}

.collapsed .sidebar-link i {
    margin: 0 !important;
}

/* Profile Section */
.profile-section {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.profile-info {
    margin-right: 12px;
    transition: opacity 0.3s ease;
}

/* Toggle Button */
.toggle-btn {
    position: absolute;
    left: -15px;
    top: 35px;
    width: 30px;
    height: 30px;
    background: var(--sidebar-bg);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.sidebar.collapsed .toggle-btn {
    transform: rotate(180deg);
}

/* ---------------- Main Content ---------------- */
.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    background-color: #F6F6F4;
    padding: 20px;
    transition: margin 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-right: var(--sidebar-width-collapsed);
}

.sidebar:not(.collapsed) ~ .main-content {
    margin-right: var(--sidebar-width);
}

.dropdown-toggle-custom {
    background-color: transparent;
    border: none;
}

.user-welcome {
    color: #4A4A50;
    font-weight: bold;
}

.dropdown-toggle::after {
    content: url("../img/chevron-down.png");
    border: none;
    vertical-align: sub;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-box {
    width: 90% !important;
}

.search-box .search-container {
    width: 100%;
}

/* فرم سرچ هدر */
.yeshil-header-search,
.search-box .woocommerce-product-search {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

.search-input,
.search-box .search-field,
.yeshil-header-search .search-field {
    width: 100%;
    height: 50px;
    border-radius: 30px;
    padding: 0 20px 0 48px;
    border: 1px solid #8E8E90;
    background: #fff;
    color: #4A4A50;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.search-input-custom {
    border: 1px solid #8E8E90;
}

.search-input-custom:focus,
.search-input-custom:active,
.search-box .search-field:focus,
.yeshil-header-search .search-field:focus {
    box-shadow: none !important;
    border-color: #4A4A50;
    outline: none;
}

.search-icon,
.search-box .search-container > .search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #888;
    z-index: 2;
    pointer-events: none;
    font-size: 16px;
}

/* دکمه جستجو داخل فرم (آیکون قابل کلیک) */
.yeshil-header-search .search-submit {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #888;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 3;
}

.yeshil-header-search .search-submit:hover {
    color: #4A4A50;
}

/* مخفی کردن آیکون تزئینی جدا وقتی دکمه فرم هست */
.search-box .yeshil-header-search + .search-icon {
    display: none;
}

.form-control:focus {
    box-shadow: unset !important;
    border: 1px solid #4A4A50;
}

.wcohc-wrap {
    max-width: 980px;
    margin: 20px auto;
    font-family: Tahoma, sans-serif;
}
.wcohc-wrap .wcohc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.wcohc-wrap .wcohc-header .wcohc-prev,
.wcohc-wrap .wcohc-header .wcohc-next {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
}
.wcohc-wrap .wcohc-header .wcohc-year {
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.wcohc-wrap .wcohc-header .wcohc-title {
    margin-left: auto;
    font-size: 14px;
    color: #333;
}
.wcohc-wrap .wcohc-chart-card {
    background: linear-gradient(180deg, #fff, #fbfdff);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}
.wcohc-wrap .wcohc-legend {
    margin-top: 10px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: #666;
}
.wcohc-wrap .wcohc-legend .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.wcohc-wrap .wcohc-legend .dot.current {
    background: #22232b;
}
.wcohc-wrap .wcohc-legend .dot.next {
    background: #9fa6b0;
}

.wcohc-wrap .wcohc-range {
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
    color: #4A4A50;
}

/* آمار سفارش پیشخوان */
.order-stats .order-stat-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    height: 100%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.order-stats .order-stat-card--wide {
    text-align: right;
    padding: 20px;
}

.order-stats .order-stat-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(74, 74, 80, 0.08);
    color: #4A4A50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.order-stats .order-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #22232b;
    margin-bottom: 4px;
}

.order-stats .order-stat-value--price {
    font-size: 1.05rem;
    line-height: 1.6;
}

.order-stats .order-stat-label {
    color: #6b6b73;
    font-size: 0.9rem;
}

.section-head {
    position: relative;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 16px;
    color: #4A4A50;
}

.section-head::before,
.section-head::after {
    content: "";
    flex: 1 1 0;
    height: 2px;
    background-color: #4A4A50;
    min-width: 40px;
}

.section-head::before {
    /* خط سمت راست نوشته (RTL) */
}

.section-head::after {
    /* خط سمت چپ نوشته (RTL) */
}

.cat-caption {
    color: #fff;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

.new-product-slider-wrapper {
    position: relative;
    padding: 0 48px;
}

.dashboard-slider-section {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 28px 20px 32px;
    margin-top: 0;
}

.dashboard-slider-section .new-product-slider-wrapper {
    margin-top: 0 !important;
}

.new-product-slider-wrapper .product-card {
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}
.new-product-slider-wrapper .product-card img {
    width: 100%;
    height: 230px;
    -o-object-fit: cover;
    object-fit: cover;
}
.new-product-slider-wrapper .product-card h3 {
    font-size: 18px;
    color: #333;
}
.new-product-slider-wrapper .product-card p {
    margin-top: 5px;
    font-size: 16px;
    color: #666;
}
.new-product-slider-wrapper .owl-nav {
    margin: 0;
}

.new-product-slider-wrapper .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff !important;
    color: #4A4A50 !important;
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    z-index: 5;
    margin: 0 !important;
    padding: 0 !important;
}

.new-product-slider-wrapper .owl-nav button:hover {
    background: #4A4A50 !important;
    color: #fff !important;
    border-color: #4A4A50 !important;
}

.new-product-slider-wrapper .owl-nav button i {
    font-size: 16px;
    line-height: 1;
}

.new-product-slider-wrapper .owl-nav button span {
    font-size: 28px;
    line-height: 1;
}

.new-product-slider-wrapper .owl-nav .owl-prev {
    right: 0;
    left: auto;
}

.new-product-slider-wrapper .owl-nav .owl-next {
    left: 0;
    right: auto;
}

.new-product-slider-wrapper .owl-nav button.disabled {
    opacity: 0.35;
    cursor: default;
}

.slider-caption {
    padding: 15px;
    background-color: rgba(142, 142, 144, 0.2);
}

.filter-by-cat-items .category-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: center;
    color: #4A4A50;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.filter-by-cat-items .category-filter.active,
.filter-by-cat-items .category-filter:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.filter-by-cat-items .category-filter.active .cat-items {
    font-weight: 700;
    color: #22232b;
}

.filter-by-cat-items .category-filter img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #fff;
    display: block;
    order: 0;
}

.filter-by-cat-items .category-filter .cat-items {
    display: block;
    order: 1;
    font-size: 13px;
    line-height: 1.3;
}

.filter-by-cat-items .category-filter.active img {
    border-color: #4A4A50;
}

.cat-items {
    color: #4A4A50;
}

/* Filter Section */
.products-filters {
    align-items: center;
}
.products-filters select.form-select {
    border-radius: 8px;
    padding: 8px 50px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}
.products-filters select.form-select:focus {
    outline: none;
    border-color: #22232b;
}
.products-filters .filter-availability .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.products-filters .filter-availability .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.products-filters .filter-availability .switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
.products-filters .filter-availability .switch .slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
.products-filters .filter-availability .switch input:checked + .slider {
    background-color: #76EE59;
}
.products-filters .filter-availability .switch input:checked + .slider::before {
    transform: translateX(26px);
}
.products-filters .filter-availability span {
    font-size: 14px;
    color: #333;
}
.products-filters .filter-search {
    position: relative;
}
.products-filters .filter-search input.search-input {
    padding-left: 35px;
    border-radius: 8px;
    border: 1px solid #ccc;
    height: 38px;
}
.products-filters .filter-search input.search-input:focus {
    outline: none;
    border-color: #22232b;
}
.products-filters .filter-search .search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #888;
}

.filter-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-price span.filter-label {
    white-space: nowrap;
    font-size: 14px;
    color: #333;
}
.filter-price select.form-select {
    border-radius: 8px;
    padding: 8px 50px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}
.filter-price select.form-select:focus {
    outline: none;
    border-color: #22232b;
}

.product-card {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.product-item {
    display: flex;
}

.product-card .product-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-card .product-image-wrapper > a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card .product-image-wrapper img,
.product-card .product-image-wrapper .card-img-top {
    border-radius: 18px 18px 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .product-image-wrapper .qty-box {
    position: absolute;
    right: 0px;
    bottom: 0px;
    z-index: 20;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 9px 10px;
    border-radius: 0 5px 0 0;
}
.product-card .product-image-wrapper .qty-box .qty-btn {
    background: transparent;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
.product-card .product-image-wrapper .qty-box .qty-value {
    color: #fff;
    margin: 0 8px;
    font-size: 15px;
    font-weight: 600;
}
.product-card .product-image-wrapper .product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(74, 74, 80, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 5px 0 0;
    z-index: 10;
}
.product-card .product-image-wrapper .product-overlay .btn-overlay {
    background: transparent;
    border: none;
    font-size: 14px;
    padding-right: 80px;
    color: #fff;
    width: 100%;
    text-align: center;
    cursor: pointer;
}
.product-card .product-title {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-top: 10px;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-title a,
.product-card h5.product-title a {
    color: #000000 !important;
    text-decoration: none;
}

.product-card .product-title a:hover {
    color: #000000 !important;
    opacity: 0.75;
}

.product-card .product-price {
    font-size: 14px;
    color: #444;
}

.product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.card-body-bg {
    background-color: rgba(142, 142, 144, 0.2);
}

.page-link-bg {
    background-color: #4A4A50;
    color: #fff;
    border: none;
    border-radius: 10px;
}

.page-link-custom {
    background-color: transparent;
    color: #4A4A50;
    border: none;
}

.order-wrapper {
    background-color: rgba(142, 142, 144, 0.2);
    border: 1px solid #4A4A50;
    border-radius: 10px;
}

.card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12) !important;
}

.card-body {
    background: #ffffff;
}

hr {
    opacity: 0.15;
    margin: 1.5rem 0;
}

.btn-outline-primary {
    border-radius: 0.75rem;
    font-weight: 500;
}
.btn-outline-primary:hover {
    background: #0d6efd;
    color: white;
}

.bi-check-circle-fill {
    font-size: 1.4rem;
}

.small, small {
    font-size: 0.85rem;
}

.text-success {
    color: #198754 !important;
}

.check-order-status {
    border: 1px solid #4A4A50;
    border-radius: 10px;
    padding: 15px;
}

.card-body-custom {
    border: 1px solid #4A4A50;
    border-radius: 17px;
}

.btn-order {
    color: #4A4A50;
    background-color: rgba(142, 142, 144, 0.2);
    padding: 10px;
    border: 1px solid #4A4A50;
}

.product-filters {
    direction: rtl;
}
.product-filters .filter-label {
    white-space: nowrap;
    font-size: 14px;
    margin: 0;
    color: #333;
}
.product-filters .custom-select-filter {
    border-radius: 15px;
    padding: 8px 2px;
    border: 1px solid #bfbfbf;
    width: 100%;
}
.product-filters .custom-select-filter:focus {
    border-color: #7a7a7a;
    box-shadow: none;
}
.product-filters .search-box .custom-search-input {
    border-radius: 15px;
    height: 42px;
    border: 1px solid #bfbfbf;
}
.product-filters .search-box .custom-search-input:focus {
    border-color: #7a7a7a;
    box-shadow: none;
}
.product-filters .search-box .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #7a7a7a;
}
.product-filters .custom-switch {
    width: 50px;
    height: 26px;
    background-color: #59e35b;
    border-radius: 50px;
    position: relative;
    transition: all 0.25s ease;
    cursor: pointer;
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
}
.product-filters .custom-switch::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    top: 2px;
    left: 26px;
    transition: all 0.25s ease;
}
.product-filters .custom-switch:checked {
    background-color: #4A4A50 !important;
}
.product-filters .custom-switch:checked::before {
    left: 2px;
}

.btn-produc-list {
    background-color: #4A4A50;
    border-radius: 10px;
    padding: 10px;
    color: #fff;
}

.catalog-list {
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    border: 1px solid #dadada;
}

.catalog-header {
    background: #f7f7f7;
    padding: 18px 10px;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid #e1e1e1;
}
.catalog-header .catalog-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.catalog-row {
    padding: 18px 10px;
    border-bottom: 1px solid #e9e9e9;
    font-size: 14px;
    background-color: rgba(142, 142, 144, 0.2);
}
.catalog-row .catalog-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.catalog-row .product-name {
    color: #4a4a4a;
}
.catalog-row .product-price {
    color: #333;
    font-weight: 500;
}

.profile-container {
    direction: rtl;
    max-width: 1100px;
    background-color: #E1E1E0;
}
.profile-container .btn {
    border-radius: 8px;
    font-size: 14px;
}
.profile-container .profile-pic .profile-img {
    width: 130px;
    height: 130px;
    -o-object-fit: cover;
    object-fit: cover;
}
.profile-container .profile-pic .camera-icon {
    bottom: 0;
    left: 0;
    background: #fff;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.profile-container form {
    background: transparent;
}
.profile-container form label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.profile-container form input,
.profile-container form textarea {
    border-radius: 10px !important;
    padding: 10px 14px;
    border: 1px solid #cfcfcf;
}
.profile-container form input:focus,
.profile-container form textarea:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
}

.profile-img-camera-icon {
    width: 35px;
}

.profile-btn {
    background-color: #4A4A50;
    color: #fff;
}
.profile-btn:hover {
    background-color: #4A4A50 !important;
}

.page-cart-wrapper {
    background-color: #F6F6F4;
    min-height: 100vh;
}

.checkout-wrapper {
    /* استایل جدول سبد خرید (ساخته شده با div) */
    /* باکس خلاصه خرید */
    /* ریسپانسیو */
}
.checkout-wrapper .cart-table {
    border: 2px solid #d0d0d0;
    border-radius: 14px;
    padding: 25px;
    background-color: transparent;
    /* هدر دسکتاپ */
    /* ردیف‌های آیتم‌ها */
    /* بخش کد تخفیف */
}
.checkout-wrapper .cart-table .cart-header {
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
}
.checkout-wrapper .cart-table .cart-header .cart-col {
    color: #555;
}
.checkout-wrapper .cart-table .cart-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #4A4A50;
    font-size: 14px;
}
.checkout-wrapper .cart-table .cart-row:last-child {
    border-bottom: none;
}
.checkout-wrapper .cart-table .cart-row .cart-col {
    flex: 1;
    padding: 0 8px;
    word-break: break-word;
}
.checkout-wrapper .cart-table .cart-row .cart-col:first-child {
    flex: 2;
}
.checkout-wrapper .cart-table .cart-row .cart-col--action {
    flex: 0 0 64px;
    max-width: 64px;
    text-align: center;
}
.checkout-wrapper .cart-table .discount-input {
    width: 220px;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #bdbdbd;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s;
}
.checkout-wrapper .cart-table .discount-input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 0.15rem rgba(108, 99, 255, 0.25);
}
.checkout-wrapper .cart-table .btn-outline-dark {
    border-radius: 10px;
    font-size: 14px;
    padding: 10px 25px;
    white-space: nowrap;
}
.checkout-wrapper .summary-box {
    border: 2px solid #d2d2d2;
    background: transparent;
    border-radius: 14px;
    padding: 24px;
}
.checkout-wrapper .summary-box h6 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
}
.checkout-wrapper .summary-box .d-flex span {
    font-size: 14px;
}
.checkout-wrapper .summary-box .fw-bold span {
    font-size: 16px;
    color: #222;
}
.checkout-wrapper .summary-box button {
    border-radius: 10px;
    font-size: 15px;
    padding: 12px 20px;
    width: 100%;
    margin-top: 10px;
}
@media (max-width: 991px) {
    .checkout-wrapper .summary-box {
        margin-top: 30px;
    }
    .checkout-wrapper .cart-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0;
    }
    .checkout-wrapper .cart-row .cart-col {
        width: 100%;
        padding: 0;
    }
    .checkout-wrapper .cart-row .cart-col:first-child {
        flex: none;
        font-weight: 600;
        font-size: 15px;
    }
    .checkout-wrapper .cart-row .cart-col:nth-child(2) {
        order: 4;
    }
    .checkout-wrapper .cart-row .cart-col:nth-child(3) {
        order: 3;
        font-weight: 500;
    }
    .checkout-wrapper .cart-row .cart-col:nth-child(4) {
        order: 2;
        font-weight: 600;
        color: #e91e63;
    }
    .checkout-wrapper .cart-row .cart-col--action {
        order: 5;
        max-width: none;
        flex: none;
        width: auto;
        text-align: right;
        margin-top: 6px;
    }
    .checkout-wrapper .cart-header {
        display: none !important;
    }
}
@media (max-width: 576px) {
    .checkout-wrapper .cart-table {
        padding: 15px;
    }
    .checkout-wrapper .discount-input {
        width: 100%;
        margin-bottom: 10px;
    }
    .checkout-wrapper .btn-outline-dark {
        width: 100%;
    }
}

.product-gallery img {
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.product-gallery img:hover {
    transform: scale(1.02);
}

.single-product-page .product-gallery-wrap {
    width: 100%;
}

.single-product-page .thumbs {
    width: 100%;
}

.single-product-page .thumb-btn {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-product-page .thumb-btn:hover {
    border-color: #8E8E90;
}

.single-product-page .thumb-btn.active-thumb {
    border-color: #4A4A50;
    box-shadow: 0 0 0 1px #4A4A50;
}

.single-product-page .thumb-btn .thumb,
.thumbs img.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 6px;
    pointer-events: none;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #4A4A50;
    border-radius: 8px;
    overflow: hidden;
    width: -moz-fit-content;
    width: fit-content;
    background: #fff;
}
.qty-wrapper button {
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    background: #fff;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}
.qty-wrapper button:hover {
    background: #f2f2f2;
}
.qty-wrapper #qtyMinus {
    border-left: 1px solid #4A4A50;
}
.qty-wrapper #qtyPlus {
    border-right: 1px solid #4A4A50;
}
.qty-wrapper input {
    width: 55px;
    height: 40px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 18px;
}

.btn-add-to-cart {
    background-color: #4A4A50;
    color: #fff;
}

.back-to-product button {
    border: 1px solid #4A4A50;
}

.single-product-price {
    border: 1px solid #4A4A50;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}

.single-product-page .product-gallery {
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.single-product-page .product-gallery #mainImage {
    max-height: 480px;
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: contain;
    background: #fff;
    display: block;
}

.single-product-page .product-short-description {
    color: #4A4A50;
    line-height: 1.9;
    text-align: justify;
}

.single-product-page .btn-add-to-cart {
    border-radius: 8px;
    min-height: 44px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.single-product-page .btn-add-to-cart:hover {
    background-color: #22232b;
    color: #fff;
}

.single-product-page .back-to-product .btn {
    border: 1px solid #4A4A50;
    color: #4A4A50;
    border-radius: 8px;
    background: transparent;
}

.single-product-page .back-to-product .btn:hover {
    background: #4A4A50;
    color: #fff;
}

.productdetail {
    margin-top: 20px;
}

.productdetail h3 {
    color: #4A4A50;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d8d8d8;
}

.productdetail .product-description {
    color: #4A4A50;
    line-height: 2;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
}

.single-product-page .qty-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.single-product-page .qty-wrapper input[type="number"]::-webkit-outer-spin-button,
.single-product-page .qty-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product-wc-cart .quantity {
    display: inline-flex;
    margin-left: 12px;
}

.single-product-wc-cart .single_add_to_cart_button {
    background-color: #4A4A50;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
}

.product-wrapper .row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.product-wrapper .row.g-4 > [class*="col-"] {
    display: flex;
}

.product-loader {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.spinner {
    width: 45px;
    height: 45px;
    border: 5px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}



@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.chart-container{
    position: relative;
    width: 100%;
    height: 350px;
}

.chart-container canvas{
    width:100% !important;
    height:100% !important;
}

/* ========== PDF Catalog ========== */
#pdfCatalog{
    direction: rtl;
    text-align: right;
    color: #22232b;
    font-family: IRANSans, Tahoma, sans-serif;
}

.pdf-page{
    width: 210mm;
    height: 297mm;
    background: #fff;
    padding: 14mm 16mm;
    box-sizing: border-box;
    page-break-after: always;
    break-after: page;
    display: flex;
    flex-direction: column;
    font-family: IRANSans, Tahoma, sans-serif;
    position: relative;
    overflow: hidden;
}

.pdf-page:last-child{
    page-break-after: auto;
    break-after: auto;
}

/* Cover */
.pdf-cover{
    background: #22232b;
    color: #fff;
    padding: 0;
    justify-content: space-between;
}

.pdf-cover-accent{
    height: 10mm;
    background: #27ae60;
}

.pdf-cover-body{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20mm 18mm;
    text-align: center;
}

.pdf-cover-logo{
    width: 72mm;
    max-width: 55%;
    height: auto;
    margin-bottom: 18mm;
    filter: brightness(0) invert(1);
}

.pdf-cover-brand-text{
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 18mm;
    color: #fff;
}

.pdf-card-img-empty{
    font-size: 12px;
    color: #9a9da4;
}

.pdf-cover-eyebrow{
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.7;
    margin: 0 0 8px;
}

.pdf-cover-title{
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.pdf-cover-subtitle{
    font-size: 15px;
    opacity: 0.78;
    margin: 0 0 22mm;
    max-width: 140mm;
    line-height: 1.8;
}

.pdf-cover-meta{
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.pdf-cover-chip{
    min-width: 48mm;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
}

.pdf-cover-chip span{
    display: block;
    font-size: 11px;
    opacity: 0.65;
    margin-bottom: 4px;
}

.pdf-cover-chip strong{
    font-size: 14px;
    font-weight: 600;
}

.pdf-cover-footer{
    padding: 8mm 16mm 10mm;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* Content page chrome */
.pdf-page-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid #22232b;
}

.pdf-page-header-brand{
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-page-header-brand img{
    height: 22px;
    width: auto;
}

.pdf-page-header-brand span{
    font-size: 13px;
    font-weight: 700;
}

.pdf-page-header-label{
    font-size: 11px;
    color: #6b6e76;
}

.pdf-page-body{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.pdf-page-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e6e6e4;
    font-size: 10px;
    color: #8a8d95;
}

/* Product card — 2 per page */
.pdf-product-card{
    flex: 1;
    display: flex;
    gap: 0;
    min-height: 0;
    border: 1px solid #e8e8e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 0 rgba(34,35,43,0.04);
}

.pdf-product-media{
    width: 42%;
    background: #f6f6f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.pdf-product-media img{
    width: 100%;
    height: 100%;
    max-height: 105mm;
    object-fit: contain;
}

.pdf-product-body{
    width: 58%;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.pdf-product-index{
    display: inline-block;
    font-size: 10px;
    color: #27ae60;
    font-weight: 700;
    margin-bottom: 6px;
}

.pdf-product-title{
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.45;
    color: #22232b;
}

.pdf-product-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pdf-meta-pill{
    font-size: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3f4f2;
    color: #4a4a50;
    border: 1px solid #e5e6e2;
}

.pdf-meta-pill.is-stock{
    background: #eaf8ef;
    border-color: #c8ebd4;
    color: #1e7a45;
}

.pdf-meta-pill.is-out{
    background: #f8ecec;
    border-color: #efd0d0;
    color: #a33b3b;
}

.pdf-product-desc{
    flex: 1;
    font-size: 11px;
    line-height: 1.9;
    color: #5c5f66;
    margin: 0 0 12px;
    overflow: hidden;
}

.pdf-product-price-box{
    margin-top: auto;
    padding: 10px 12px;
    border-radius: 8px;
    background: #22232b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-product-price-box .label{
    font-size: 10px;
    opacity: 0.7;
}

.pdf-product-price-box .value{
    font-size: 16px;
    font-weight: 700;
    color: #6fcf97;
}

.pdf-empty-desc{
    color: #9a9da4;
    font-style: italic;
}


.wcohc-tabs{
    margin-bottom:20px;
}

.wcohc-tab-content{
    display:none;
}

.wcohc-tab-content.active{
    display:block;
}

.postbox{
    margin-top:20px;
}

.postbox .inside{
    padding:20px;
}
.price-btn {
    background-color: #4A4A50;
    margin-top: 25px;
}
.price-btn:hover {
    background-color: #4A4A50;
    color: #fff;
}

.form-switch label {
    font-size: 14px;
}

.shopping-cart {
    position: relative;
    display: inline-block;
}

.cart-badge {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    padding: 0.25em 0.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* اگر می‌خواهید badge با انیمیشن ظاهر شود */
.cart-badge {
    animation: badgePulse 0.3s ease-in-out;
}

@keyframes badgePulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}


/* کانتینر اصلی گرید */
.custom-archive-grid {
    padding: 1rem 0;
}

/* کارت اختصاصی محصول */
.custom-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    position: relative;
}

.custom-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* استایل تصویر محصول */
.custom-product-card .woocommerce-product-gallery,
.custom-product-card .wp-post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.4s ease;
}

.custom-product-card:hover .wp-post-image {
    transform: scale(1.03);
}

/* استایل عنوان محصول */
.custom-product-card .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 15px 0 10px;
    padding: 0 15px;
    color: #2c3e50;
    line-height: 1.4;
}

/* استایل قیمت (چسبیده به پایین کارت) */
.custom-product-card .price {
    padding: 0 15px;
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1rem;
    margin-top: auto;
    margin-bottom: 15px;
}

/* استایل دکمه خرید/مشاهده */
.custom-product-card .button,
.custom-product-card a.button {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    text-align: center;
    background-color: #3498db;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.custom-product-card .button:hover,
.custom-product-card a.button:hover {
    background-color: #2980b9;
    color: #ffffff;
    transform: translateY(-2px);
}

.custom-product-card .button:active,
.custom-product-card a.button:active {
    transform: translateY(0);
}

/* ========== Checkout ========== */
.page-checkout-wrapper .checkout-page-title {
    color: #4A4A50;
    font-weight: 700;
}

.page-checkout-wrapper .back-to-cart-btn {
    border: 1px solid #4A4A50;
    color: #4A4A50;
    border-radius: 8px;
    background: transparent;
}

.page-checkout-wrapper .back-to-cart-btn:hover {
    background: #4A4A50;
    color: #fff;
}

.yeshil-checkout .checkout-box {
    background: #fff;
    border: 1px solid #e5e5e5;
}

.yeshil-checkout .checkout-box h3 {
    color: #4A4A50;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.yeshil-checkout .form-row {
    margin-bottom: 1rem;
}

.yeshil-checkout .form-row label {
    display: block;
    margin-bottom: 0.35rem;
    color: #4A4A50;
    font-size: 0.9rem;
}

.yeshil-checkout .form-row .input-text,
.yeshil-checkout .form-row select,
.yeshil-checkout .form-row textarea,
.yeshil-checkout .form-control {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    min-height: 44px;
    background: #fff;
}

.yeshil-checkout .form-row .input-text:focus,
.yeshil-checkout .form-row select:focus,
.yeshil-checkout .form-row textarea:focus {
    outline: none;
    border-color: #4A4A50;
    box-shadow: 0 0 0 2px rgba(74, 74, 80, 0.12);
}

.yeshil-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.yeshil-checkout .woocommerce-checkout-review-order-table th,
.yeshil-checkout .woocommerce-checkout-review-order-table td {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
    color: #4A4A50;
}

.yeshil-checkout .woocommerce-checkout-review-order-table .order-total th,
.yeshil-checkout .woocommerce-checkout-review-order-table .order-total td {
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: none;
    padding-top: 1rem;
}

.yeshil-checkout #payment {
    margin-top: 1rem;
}

.yeshil-checkout #payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.yeshil-checkout #payment .payment_methods li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.yeshil-checkout #place_order,
.yeshil-checkout button#place_order {
    width: 100%;
    background: #4A4A50;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

.yeshil-checkout #place_order:hover {
    background: #22232b;
}

.yeshil-thankyou .woocommerce-order-overview {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yeshil-thankyou .woocommerce-order-overview li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #4A4A50;
}

.yeshil-thankyou .woocommerce-order-overview li:last-child {
    border-bottom: none;
}

.checkout-proceed-btn {
    background: #4A4A50 !important;
    border-color: #4A4A50 !important;
}

.checkout-proceed-btn:hover {
    background: #22232b !important;
}

/* Empty cart icon */
.page-cart-wrapper .cart-page-title {
    color: #4A4A50;
    font-weight: 700;
}

.page-cart-wrapper .back-to-dashboard-btn {
    border: 1px solid #4A4A50;
    color: #4A4A50;
    border-radius: 8px;
    background: transparent;
    display: inline-flex;
    align-items: center;
}

.page-cart-wrapper .back-to-dashboard-btn:hover {
    background: #4A4A50;
    color: #fff;
}

.btn-empty-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #4A4A50;
    border-radius: 10px;
    background: #fff;
    color: #4A4A50;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.btn-empty-cart:hover {
    background: #4A4A50;
    color: #fff;
}

.btn-empty-cart--text {
    width: auto;
    height: auto;
    padding: 6px 12px;
    gap: 8px;
    font-size: 13px;
}

.btn-empty-cart--text span {
    font-family: IRANSansfanum, sans-serif;
}

.btn-remove-cart-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    color: #a33b3b;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-remove-cart-item:hover {
    background: #a33b3b;
    border-color: #a33b3b;
    color: #fff;
}

.cart-section-title {
    color: #4A4A50;
    font-weight: 700;
}

.cart-coupon-form .discount-input {
    max-width: 260px;
}

.applied-coupon-item .coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(74, 74, 80, 0.08);
    color: #4A4A50;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
}

.applied-coupon-item .remove-coupon-link {
    color: #c0392b;
    font-size: 14px;
}

.applied-coupon-item .remove-coupon-link:hover {
    color: #922b21;
}

.empty-cart-form {
    margin: 0;
}

/* =========================================================
   Responsive layer (layout only — colors unchanged)
   ========================================================= */

.dashboard-shell {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.mobile-dashboard-bar {
    display: none;
}

body.sidebar-open {
    overflow: hidden;
}


.sidebar-close-btn {
    position: absolute;
    left: 12px;
    top: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    z-index: 5;
    align-items: center;
    justify-content: center;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Tablet & Mobile ---------- */
@media (max-width: 991.98px) {
    html,
    body {
        overflow-x: hidden;
    }

    .dashboard-shell {
        display: block !important;
    }

    .mobile-dashboard-bar {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1040;
        height: 58px;
        padding: 0 14px;
        align-items: center;
        justify-content: space-between;
        background: #4A4A50;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        background: transparent;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-dashboard-logo {
        max-height: 34px;
        width: auto;
        filter: brightness(0) invert(1);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(34, 35, 43, 0.45);
        z-index: 1045;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .sidebar-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .sidebar {
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(280px, 86vw) !important;
        height: 100vh !important;
        z-index: 1050;
        transform: translateX(105%);
        transition: transform 0.3s ease;
        border-radius: 0;
        overflow-y: auto;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        width: min(280px, 86vw) !important;
    }

    .sidebar.collapsed .hide-on-collapse,
    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .profile-info,
    .sidebar.collapsed .link-text {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sidebar-close-btn {
        display: inline-flex !important;
    }

    .main-content,
    .sidebar.collapsed ~ .main-content,
    .sidebar:not(.collapsed) ~ .main-content {
        margin-right: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        padding: 74px 14px 24px !important;
    }

    /* Shared shop headers */
    .page-cart-wrapper > header.container,
    .page-checkout-wrapper > header.container,
    .dashboard-page > header.container,
    .products-page > header.container,
    .price-list-page > header.container,
    .orders-page > header.container,
    .profile-page > header.container,
    .single-product-page > header.container,
    .yeshil-single-product > header.container {
        padding-top: 12px;
    }

    .user-profile {
        flex-wrap: wrap;
        justify-content: flex-start !important;
        margin-bottom: 12px;
        gap: 8px;
    }

    .search-box {
        width: 100% !important;
        margin-bottom: 12px;
    }

    .search-box .search-container,
    .yeshil-header-search {
        width: 100%;
    }

    .notification-salebox {
        justify-content: flex-end;
        width: 100%;
        margin-bottom: 8px;
    }

    /* Login */
    .login-section {
        padding: 24px 14px;
        align-items: flex-start;
    }

    .login-section .login-container {
        height: auto;
        max-width: 100%;
    }

    .login-section .login-container .login-row,
    .login-section .login-container .login-row .login-col {
        height: auto;
    }

    .login-section .login-logo {
        position: static;
        margin-bottom: 24px;
    }

    .login-section .login-logo .login-logo-img {
        max-width: 150px;
    }

    .login-section .login-form-wrapper {
        height: auto;
        min-height: 0;
        padding: 1.5rem 1.25rem;
        margin-top: 0 !important;
    }

    .mt-100 {
        margin-top: 0 !important;
    }

    /* Dashboard home */
    .chart-container {
        height: 260px !important;
    }

    .dashboard-slider-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .owl-carousel .owl-nav {
        margin-top: 8px;
    }

    /* Products */
    .products-page .product-filters,
    .products-page .d-flex.justify-content-around {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start !important;
    }

    .filter-price,
    .filter-price select {
        width: 100%;
        max-width: 100%;
    }

    .product-card .product-image-wrapper {
        height: 200px;
    }

    .product-card .product-image-wrapper .btn-overlay {
        padding-right: 16px;
        padding-left: 16px;
        font-size: 13px;
    }

    .mt-50 {
        margin-top: 24px !important;
    }

    /* Price list / catalog */
    .catalog-list {
        overflow-x: auto;
    }

    .catalog-header,
    .catalog-row {
        min-width: 560px;
    }

    .product-filters .row > [class*="col-"] {
        margin-bottom: 8px;
    }

    /* Orders */
    .orders-page .order-meta .row,
    .order-card .row {
        row-gap: 8px;
    }

    .order-status-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Cart / checkout */
    .page-cart-wrapper .cart-page-title,
    .page-checkout-wrapper .checkout-page-title {
        font-size: 1.25rem;
    }

    .checkout-wrapper .cart-table,
    .checkout-wrapper .summary-box {
        padding: 16px !important;
    }

    .cart-coupon-form {
        flex-direction: column;
        align-items: stretch !important;
    }

    .cart-coupon-form .discount-input,
    .checkout-wrapper .cart-table .discount-input {
        width: 100% !important;
        max-width: 100%;
    }

    .yeshil-checkout .shop_table,
    .woocommerce-checkout-review-order-table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }

    /* Single product */
    .single-product-page .product-gallery,
    .single-product-page .product-gallery-wrap,
    .yeshil-product-gallery {
        min-height: 0 !important;
    }

    .single-product-page .product-gallery img,
    .single-product-page .main-image img {
        min-height: 0 !important;
        max-height: 360px !important;
        width: 100%;
        object-fit: contain;
    }

    .single-product-page .thumbs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .single-product-page .thumb-btn {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
    }

    .products-filters {
        flex-direction: column;
        align-items: stretch !important;
    }

    .products-filters .filter-price,
    .products-filters .filter-availability,
    .products-filters .filter-search {
        width: 100%;
        justify-content: space-between;
    }

    .products-filters .filter-search .search-input {
        width: 100%;
    }

    .orders-page .card-body-custom .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 10px;
    }

    .orders-page .check-order-status {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* ---------- Small phones ---------- */
@media (max-width: 575.98px) {
    .main-content {
        padding: 68px 10px 20px !important;
    }

    .user-welcome {
        font-size: 13px;
    }

    .user-profile-img img,
    .user-profile-img .avatar,
    .user-profile-img .rounded-circle {
        width: 48px !important;
        height: 48px !important;
    }

    .order-stats .order-stat-card,
    .order-stat-card {
        padding: 12px;
    }

    .order-stats .order-stat-value {
        font-size: 1.1rem;
    }

    .chart-container {
        height: 220px !important;
    }

    .product-card .product-image-wrapper {
        height: 180px;
    }

    .product-card .card-body {
        padding: 12px;
    }

    .login-section .login-form-wrapper .login-form .login-title {
        font-size: 1.25rem;
    }

    .login-section .login-btn {
        width: 100%;
    }

    .back-to-dashboard-btn,
    .back-to-cart-btn {
        width: 100%;
        justify-content: center;
    }

    .page-cart-wrapper .d-flex.justify-content-between.align-items-center,
    .page-checkout-wrapper .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
    }

    .catalog-header,
    .catalog-row {
        min-width: 480px;
        padding: 12px 8px;
        font-size: 13px;
    }

    .summary-box .btn,
    .checkout-proceed-btn {
        font-size: 14px;
    }
}

/* ---------- Landscape phones / short height ---------- */
@media (max-height: 700px) and (max-width: 991.98px) {
    .login-section {
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .login-section .login-form-wrapper {
        padding: 1rem;
    }
}
