/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


.hero-slider {
      width: 100%;
      height: 100%;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}
.aps-cat-scroll-wrap {
	overflow-x: scroll;
}
.hero-slider swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
}
.custom-pagination {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    z-index: 9;
    aspect-ratio: 800 / 150;
    height: 40px;
}
.cp-bar {
    width: 7px;
    background: #d0d0d0;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 20px;
	cursor: pointer;
}
.cp-bar.is-active {
    background: #2196F3;
    height: 30px;
}
.hero-slider::after {
    transform: translateX(50%);
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    height: 50px;
    background: url('https://bahraamstore.com/wp-content/uploads/2026/06/mask.svg');
    z-index: 1;
    aspect-ratio: 800/150;
    background-size: cover;
}
.hero-nav {
    background: #8C8C8C4D;
    backdrop-filter: blur(6px);
    border-radius: 16px;
    width: 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.hero-nav:hover {
    background: #00A0DC;
}
/* گرید دسته بندی ها */
.popular-categories-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:30px;
    align-items:start;
    text-align:center;
	font-family: yekanbakh;
}
.category-item{
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.category-item img{
    width:140px;
    height:140px;
    object-fit:contain;
    transition:.3s;
}
.category-item:hover img{
    transform:translateY(-5px);
}
.category-item span{
    margin-top:12px;
    font-size:15px;
    font-weight:500;
    color:#2E2F39;
	transition: all .3s ease-in-out;
}
.category-item:hover span{
    color:#00A0DC;
}
@media(max-width:992px){
    .popular-categories-grid{
        grid-template-columns:repeat(4,1fr);
    }
}
@media (max-width: 768px) {
	.popular-categories-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.category-item span{
    font-size:13px;
}
}

/* بهترین محصولات پر فروش */
.bestproductselling {
	display: grid;
}
.img-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  height:180px;
}
.product_cart{
    background: #fff;
    border: 1.5px solid #CECED1;
    border-radius: 18px;
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: yekanbakh;
    justify-content: space-between;
	height: 100%;
}
.product_cart .img-wrap img{max-height:170px;max-width:100%;object-fit:contain}
.product_cart .info{text-align:center;display:flex;flex-direction:column;gap:3px}
.product_cart .title-fa{font-size:15px;font-weight:700;color:#111;text-align: right;}
.product_cart .title-en{font-size:12px;color:#8a9ab0;direction:ltr;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;  text-align: right;}
.product_cart .divider{height:1px;background:#CECED1}
.product_cart .footer{display:flex;align-items:center;justify-content:space-between;direction:rtl;gap:8px}
.product_cart .cart-btn{
  display:flex;align-items:center;justify-content:center;
  width:42px;height:42px;
  background:#1B388D;color:#fff;
  border-radius:12px;border:none;cursor:pointer;
  flex-shrink:0;
	padding: 0;
}
.woocommerce-Price-currencySymbol {
	font-weight: 400;
}
.product_cart .cart-btn svg{width:20px;height:20px}
.wss-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    direction: rtl;
}
.wss-price-original {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 400;
}
.wss-price-original .woocommerce-Price-currencySymbol {
	display: none;
}
.wss-price-sale {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
.wss-price-sale  bdi{
	display:flex;
	flex-direction:row-reverse;
	gap: 5px;
}
.wss-price-regular {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

/* نویگیشن اختصاصی */
.bps-slider-nav{
            display:flex;
            justify-content:center;
            gap:10px;
            margin-top:15px;
        }

        .bps-slider-nav div{
    background: #8C8C8C4D;
    backdrop-filter: blur(6px);
    border-radius: 16px;
    width: 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        }

        .bps-slider-nav div:hover{
               background: #00A0DC;
        }
swiper-container::part(bullet) {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #1A2C694D ;
  opacity: 1;
  transition: all 0.3s ease;
}
swiper-container::part(container) {
padding-bottom: 30px;
}
swiper-container::part(bullet-active) {
    width: 22px;
    background: #1B388D;
    border-radius: 20px;
  transition: all 0.3s ease;
}

.product-tabs-section {
    width: 100%;
    padding: 2rem 0;
}


/* تب‌ها */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    font-family: yekanbakh;
    border-bottom: 1px solid #E7E7E8
}
@media (max-width: 768px) {
	.product-tabs {
		justify-content: unset;
		flex-wrap: nowrap;
		overflow-x: scroll;
	}
}
.tab-btn {
    padding: 8px 20px;
	border: none;
    border-bottom: 4px solid transparent;
    color: #2E2F39;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
	border-radius:0;
	flex-shrink: 0; 
	background: unset
}

.tab-btn:hover {
    color: #00A0DC;
	background: transparent;
}

.tab-btn.active {
    border-color: #00A0DC;
    color: #00A0DC;
	background: transparent;
}

.product-tabs-slider {
    position: relative;
    padding-bottom: 40px;
}

.category_product {
    overflow: visible;
    display: grid;
	height: 400px;
	font-family: yekanbakh;
}
.no-products {
	font-family: yekanbakh;
}

/* برند */
.popular-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    font-family: yekanbakh;
    gap: 35px;
    padding: 0 30px;
}

.popular-brand-grid a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.popular-brand-grid a .img_brand {
	    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    border: 1px solid #E7E7E8;
    border-radius: 200px;
}
.popular-brand-grid a span {
    color: #2E2F39;
    font-weight: 600;
    font-size: 15px;
}
@media (max-width: 768px) {
.popular-brand-grid {
    grid-template-columns: repeat(4, 1fr);
}
	.popular-brand-grid a .img_brand {
    padding: 20px;
}
}

/* بلاگ */
.articles-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	font-family: yekanbakh;
}
@media (max-width: 768px) {
	.articles-grid {
		grid-template-columns: 1fr;
	}
}
.article-card {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #e0e0e0;
    overflow: hidden;
    padding: 15px;
	transition: all .3s ease-in-out;
}
.article-card:hover {
    border: 0.5px solid #3680FB;
}
.article-card__image {
	position: relative;
	width: 100%;
	padding-top: 60%;
	background-size: cover;
	background-position: center;
	border-radius: 10px;
}
.article-card__badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #1B388D;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}
.article-card__body {
    padding: 10px;
}
.article-card__title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #111;
}
.article-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid #e0e0e0;
    padding-top: 25px;
}
.article-card__time {
	font-size: 14px;
	color: #85858B;
}
.article-card__link {
    font-size: 16px;
    color: #1B388D;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
}
/* ---- Bottom Nav ---- */
body.mnav-open #wpadminbar {
  display: none;
}
.mobile-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 58px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  z-index: 999;
  direction: rtl;
  z-index: 1001; /* بیشتر از overlay */
	font-family: yekanbakh;
}
@media (max-width: 1024px) {
body { padding-bottom: 58px !important; }
}


.mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #54555D;
    font-size: 11px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .15s;
    font-weight: 600;
}
.mbn-item:focus, .mbn-item:hover {
	background :none !important;
}
.mbn-item:focus svg *, .mbn-item:hover svg * {
	fill: #00A0DC;
}
.mbn-item.active, .mbn-item:hover { color: #00A0DC; }
.mbn-icon-wrap { position: relative; display: flex; }
.mbn-badge {
  position: absolute; top: -5px; left: -6px;
  background: #e53935; color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ---- Megamenu Overlay ---- */
.mnav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 58px; 
  background: #fff;
  z-index: 1000;
  flex-direction: column;
  display: none;
		font-family: yekanbakh;
}


.mnav-overlay.open { display: flex; }

.mnav-header {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; color: #222;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.mnav-close {
  background: none; border: none;
  font-size: 18px; cursor: pointer; color: #666;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mnav-close:hover { background: #f5f5f5; }

.mnav-scroll { flex: 1; overflow-y: auto; padding-bottom: 58px; }

.mnav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer; font-size: 14px; color: #222;
}
.mnav-row.open {
	color: #00A0DC;
}
.mnav-row.open .mnav-row-title svg * {
	fill: #00A0DC;
}
.mnav-row-title svg {
	margin-left: 10px;
}
.mnav-row:hover { background: #f9f9f9; }
.mnav-arrow {
  font-size: 18px; color: #bbb;
  transition: transform .2s;
  display: inline-block;
}
.mnav-row.open .mnav-arrow { transform: rotate(-180deg); }

.mnav-children { display: none; background: #f9f9f9; }
.mnav-children.open { display: block; }

.mnav-child {
    display: block;
    padding: 20px 28px;
    font-size: 13px;
    color: #2E2F39;
    border-bottom: 1px solid #efefef;
    text-decoration: none;
    justify-content: start;
    align-items: center;
    display: flex;
    gap: 10px;
}
.mnav-child.has-sub {
    justify-content: space-between;
}
.mnav-child:hover {
    color: #00a0dc;
    background: #00a0dc05;
}
.mnav-child.has-sub.open .mnav-arrow {
	    transform: rotateZ(180deg);
}


/* === متغیرها === */
.custom-variations-wrap { display: flex; flex-direction: column; gap: 14px; }

.custom-variation-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.custom-variation-options { display: flex; flex-wrap: wrap; gap: 8px; }

/* دکمه عادی (سایز و غیره) */
.custom-var-btn {
    padding: 6px 18px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    color: #333;
}

.custom-var-btn:hover { border-color: #999; }

.custom-var-btn.selected {
    border-color: #222;
    background: #222;
    color: #fff;
}

/* دکمه رنگ */
.custom-var-btn.is-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px #ddd;
}

.custom-var-btn.is-color.selected {
    box-shadow: 0 0 0 2px #222;
    border: 2px solid #fff;
}

/* === دکمه افزودن === */
.custom-atc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.custom-atc-btn:hover { background: #16213e; }
.custom-atc-btn:disabled { background: #aaa; cursor: not-allowed; }
/* ویژگی های اختصاصی */
.psb-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        direction: rtl;
	font-family: yekanbakh;
    }
    .psb-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    border: 1.5px solid #E7E7E8;
    border-radius: 10px;
    padding: 10px 18px;
    min-width: 100px;
    background: #FAFAFA;
    text-align: center;
    }
    .psb-label {
    font-size: 13px;
    color: #85858B;
    margin-bottom: 5px;
    white-space: nowrap;
    }
    .psb-value {
    font-size: 16px;
    font-weight: 400;
    color: #3C3D45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    }

/* فهرست عناوین محصولات */
.ptoc-wrap { font-family:yekanbakh;  display:flex; flex-wrap:nowrap; overflow-x:auto; gap:8px; padding:4px 0 12px; scrollbar-width:none; direction:rtl; }
.ptoc-wrap::-webkit-scrollbar { display:none; }
.ptoc-item {
    flex-shrink: 0;
    padding: 15px 25px;
    border-radius: 8px;
    border: 0;
    background: #fff;
    font-size: 17px;
    color: #2E2F39;
    transition: all .15s;
    font-weight: 500;
}
.ptoc-item:hover, .ptoc-item:focus { 
    color: #00A0DC;
    background: none;
}
.ptoc-item.ptoc-active {    
    background: #F0FAFF;
    color: #00A0DC;
    font-weight: 600;
}
.ptoc-h3 { font-size:12px; padding:6px 14px; opacity:0.85; }
.ptoc-content {
    font-family: yekanbakh;
    color: #54555D;
    font-size: 15px;
}
.ptoc-content h1,.ptoc-content h2,.ptoc-content h3 {
	color: #2E2F39;
}


*,
*::before,
*::after { box-sizing: border-box; }

.bg-shortcode {
    direction: rtl;
    font-family: yekanbakh;
    width: 100%;
}

/* ---------- نوار بالا ---------- */
.bg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* ---------- دسته‌بندی‌ها ---------- */
.bg-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bg-cat-btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid #CECED1;
    background: #ffffff;
    color: #2E2F39;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}

.bg-cat-btn:hover {
    background: #f3f4f6;
}

.bg-cat-btn.active {
    background: #00A0DC;
    color: #ffffff;
    border-color: #00A0DC;
}

/* ---------- مرتب‌سازی ---------- */
.bg-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bg-sort-label {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.bg-sort-select {
    font-size: 13px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
}

/* ---------- گرید ---------- */
.bg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ========== نوار موبایل ========== */
.bg-mobile-toolbar {
    display: none;
    gap: 10px;
    padding-bottom: 1.25rem;
    flex-direction: column;
}
 
.bg-mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #BDDAFF;
    background: #fff;
    color: #1B388D;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    transition: background .15s, border-color .15s;
}
 
.bg-mobile-btn:hover { background: #f3f4f6; border-color: #9ca3af; }
 
.bg-mobile-badge {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1B388D;
    position: absolute;
    top: 9px;
    left: 9px;
}
 
/* ========== پاپ‌آپ ========== */
.bg-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    align-items: flex-end;
    justify-content: center;
}
 
.bg-popup-overlay.is-open {
    display: flex;
}
 
.bg-popup-sheet {
    width: 100%;
    max-width: 540px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 16px);
    animation: bgSlideUp .22s ease;
    direction: rtl;
}
 
@keyframes bgSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
 
.bg-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
}
 
.bg-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
 
.bg-popup-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    transition: background .15s;
}
 
.bg-popup-close:hover { background: #e5e7eb; }
 
.bg-popup-list {
    list-style: none;
    margin: 0;
    padding: 8px 0 16px;
}
 
.bg-popup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 15px;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f9fafb;
    transition: background .12s;
}
 
.bg-popup-item:hover { background: #f9fafb; text-decoration: none; }
 
.bg-popup-item.active { color: #00A0DC;}
.bg-popup-item.active .bg-popup-arrow { color: #00A0DC; }
.bg-popup-item.active  svg * {
	fill: #B9EBFE;
}
.bg-popup-arrow {
    font-size: 18px;
    color: #d1d5db;
    line-height: 1;
}
@media (max-width: 767px) {
    .bg-desktop-toolbar { display: none !important; }
    .bg-mobile-toolbar { display: flex; }
}
/* ---------- پیجینیشن ---------- */
.bg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.bg-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
    line-height: 1;
}

.bg-page-btn:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.bg-page-btn.active {
    background: #1B388D;
    color: #ffffff;
    border-color: #1B388D;
}

.bg-dots {
    border: none;
    background: none;
    color: #9ca3af;
    cursor: default;
    pointer-events: none;
}

/* ---------- خالی ---------- */
.bg-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    font-size: 14px;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 640px) {
    .bg-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .bg-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 14px;
    }

    .article-card__image {
        height: 130px;
    }
}
.cl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    direction: rtl;
	font-family: yekanbakh;
}
 
.cl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
 
.cl-item:last-child {
    border-bottom: none;
}
.cl-item:hover a .cl-name{
	color: #00A0DC;
}
.cl-item:hover svg * {
	stroke: #00A0DC;
}
.cl-link {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}
 
.cl-link:hover {
    color: #1B388D;
    text-decoration: none;
}
 
.cl-item--active .cl-link {
    font-weight: 700;
}
 
.cl-arrow {
    font-size: 17px;
    line-height: 1;
    color: #1B388D;
}
 
.cl-name {
    font-size: 15px;
    font-weight: 500;
    color: #2E2F39;
	transition: all .3s ease-in-out;
}
 
.cl-count {
    font-size: 13px;
    color: #6D6D74;
}
/* ── Mobile Sort ──────────────────────────────────────────────── */
.apf-sort-mobile { display: none; }

@media (max-width: 768px) {
    .apf-sort-mobile { display: block; margin-bottom: 12px; }
}

.apf-sort-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: #fff !important;
    border: 1px solid #CECED1!important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 13px;
    color: #2E2F39 !important;
    width: 100% !important;
    justify-content: center;
}
.apf-sort-btn strong {
    color: #3C3D45;
    font-weight: 500;
}

/* Overlay */
.apf-sort-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
}
.apf-sort-overlay.apf-open { display: block; }

/* Popup Sheet */
.apf-sort-popup {
    display: block;
    position: fixed;
    bottom: -100%;
    right: 0; left: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 9999;
    transition: bottom 0.3s ease;
    padding-bottom: 24px;
    direction: rtl;
}
.apf-sort-popup.apf-open { bottom: 0; }

.apf-sort-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 500;
    color: #2E2F39;
    height: 60px;
    padding: 0 25px;
}
.apf-sort-close {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    display: flex;
}

.apf-sort-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.apf-sort-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    color: #292C2D;
    transition: background 0.12s;
    gap: 10px;
}
.apf-sort-item:hover { background: #f5f5f5; }
.apf-sort-item.apf-sort-active { color: #00A0DC;}
.apf-sort-item.apf-sort-active svg *{ fill: #00A0DC;}

/* ── Mobile Filter FAB & Popup ────────────────────────────────── */
.apf-mobile-filter { display: none; }

@media (max-width: 768px) {
    .apf-mobile-filter { display: block; }
}

/* دکمه فیکس */
.apf-filter-fab {
    position: fixed !important;
    bottom: 85px;
    right: 20px;
    z-index: 9990;
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: #1B388D !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 14px;
    font-family: yekanbakh;
    box-shadow: 0 4px 16px rgba(27,56,141,0.35);
    cursor: pointer;
}
.apf-filter-fab-badge {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    margin-right: -4px;
}

/* Overlay */
.apf-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9991;
}
.apf-filter-overlay.apf-open { display: block; }

/* Popup Sheet */
.apf-filter-popup {
    position: fixed;
    bottom: -100%;
    right: 0;
    left: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 9992;
    transition: bottom 0.3s ease;
    direction: rtl;
    display: flex;
    flex-direction: column;
    font-family: 'Yekanbakh';
    max-height: 500px;
}
.apf-filter-popup.apf-open { bottom: 0; }

/* هدر */
.apf-filter-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 500;
    color: #2E2F39;
    height: 60px;
    padding: 0 25px;
}
.apf-filter-close {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
	display:flex;
}

/* بدنه اسکرول‌پذیر */
.apf-filter-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
}
.apf-filter-popup-body .apf-section:first-child { border-top: none; }

/* فوتر */
.apf-filter-popup-footer {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
}
.apf-filter-footer-clear {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 1px solid #E7E7E8;
    border-radius: 8px;
    font-size: 14px;
    color: #2E2F39;
    text-decoration: none;
    background: #fff;
}
.apf-filter-footer-apply {
    flex: 2;
    padding: 12px !important;
    background: #1B388D !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px;
    font-family: yekanbakh;
    cursor: pointer;
}
@media only screen and (max-width: 600px) {
.apf-sidebar {
	display: none;
}
}
.apf-sort-check { color: #00aad4; font-size: 10px; }


/* سبد خرید */
.cart-wrap {
    font-family: yekanbakh;
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.product_section {
	width: 70%;
}
.cart_title_page {
    font-size: 24px;
    font-weight: 700;
    color: #292C2D;
}
.my-address-widget{
    display:flex;
    flex-direction:column;
    gap:16px;
}
.title-cart  {
	    color: #292C2D;
    font-weight: 500;
    font-size: 17px;
    margin-top: 40px;
	display:flex;
}
.card_product_wrap {
    background: #fff;
    border: 1px solid #E7E7E8;
    padding: 25px;
    border-radius: 15px;
}
.product_card_cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #E7E7E8;
    padding-bottom: 25px;
}
.product_card_cart:last-child {
	border-bottom:none;
	padding:0;
}
.product_meta {
    display: flex;
    gap: 30px;
}
.product_meta>p {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.product_meta p.saled {
	color: #1E7B1E;
}
.product_meta p.unsaled {
	color: #B91C1C;
}
.info_product {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 15px;
    color: #292C2D;
}
.info_product strong {
	
    font-weight: 400;
}
.info_product div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.info_product p {
margin:0;
}
.product_card_cart img {
	    height: 200px;
    aspect-ratio: 1;
    border: 1px solid #E7E7E8;
    border-radius: 12px;
    padding: 15px;
}
.product_title_card {
    font-size: 18px;
    color: #3E4344;
    font-weight: 500;
    margin-bottom: 18px !important;
}
.woocommerce-Price-amount bdi {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 5px;
    margin-right: 10px;
}
.quantity-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
    width: fit-content;
}
.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}
.qty-btn:hover, .qty-btn:focus {
	background: #1B388D;
	color: #fff;
}
.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 16px;
}
.saved-address-card{
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    display: flex;
}

.empty-address{
    padding:20px;
    border:1px dashed #ddd;
    border-radius:12px;
}

.open-address-modal, .openlogin {
    background:#1B388D;
    color:#fff;
    border:none;
    border-radius:10px;
    padding:14px;
    cursor:pointer;
}
.open-address-modal:hover, .open-address-modal:focus {
	background: #102667 !important;
}
.address-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.address-modal.active{
    display:flex;
}

.address-modal-box{
    width: 600px;
    max-width: 95%;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    height: auto;
    overflow-y: auto;
    max-height: 85vh;
}
#shipping_country_field {
	display: none;
}
.address-modal-header {
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E7E7E8;
}
.address-modal-header h3 {
    font-weight: 500;
    color: #2E2F39;
    font-size: 18px;
}
.address-modal form{
    display:grid;
    gap:12px;
    margin-top:20px;
}
.billing_address {
	    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    color: #54555D;
    font-weight: 300;
}
.billing_address li {
	list-style:none;
}
.shipping_first_name {
    font-size: 16px;
    color: #2E2F39;
}
.address-modal input,
.address-modal textarea,
#shipping_state{
    width: 100%;
    border: 1px solid #E7E7E8;
    border-radius: 10px;
    padding: 12px;
    outline: none;
}

.address-modal textarea{
    min-height:120px;
}

.address-modal button[type="submit"]{
    background:#1B388D;
    color:#fff;
    border:none;
    padding:14px;
    border-radius:10px;
    cursor:pointer;
}
.checkout_section {
	width: 30%;
}
.mobile {
	display:none;
}
@media only screen and (max-width: 600px) {
  .cart-wrap {
    flex-direction: column;
  }
	.product_section, .checkout_section {
		width: 100%;
	}
	.saved-address-card svg {
		width: 100px;
	}
	.product_title_card {
		display: none;
	}
	.mobile {
		display: unset;
		width: calc(100% - 130px);
	}
	.product_card_cart {
    flex-direction: row;
    flex-wrap: wrap;
	}
	.product_card_cart img {
		height: 110px;
	}
	.product_meta {
		flex-direction: column;
	}
}
/* Scrollbar Container */
.wss-thumbnail-slider {
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 transparent;
}

/* Webkit (Chrome, Safari, Edge) */
.flex-control-nav::-webkit-scrollbar {
    height: 5px;
}

.flex-control-nav::-webkit-scrollbar-track {
    background: transparent;
}

.flex-control-nav::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.flex-control-nav::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* داشبورد */
.custom-profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-family: yekanbakh;
    width: 100%;
    min-height: 110px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-size: 15px;
    font-weight: 500;
    color: #2E2F39;
}

.profile-phone {
    font-size: 14px;
    color: #888;
}

.profile-edit-link {
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 6px;
}

.profile-edit-link:hover { color: #333; }

.custom-order-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-family: yekanbakh;
    width: calc(75% - 20px);
    min-height: 110px;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 0 15px;
}
.info-cart-stat {
	display: flex;
	flex-direction:column;
}
.stat-label { font-size: 13px; color: #6D6D74; }

.stat-icon {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-green  { background: #eaf7ee; color: #2eaa5f; }
.stat-yellow { background: #fdf8ec; color: #d4a017; }
.stat-gray   { background: #f2f2f2; color: #888; }
.stat-red    { background: #fdeeed; color: #d94f4f; }

.stat-count { font-size: 15px; font-weight: 600; color: #2E2F39; }

.custom-dashboard .woocommerce-MyAccount-navigation {
	display: flex;
    justify-content: space-between;
    align-items: start;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px 18px;
}
.woocommerce-MyAccount-content {
    display: flex;
    background: #fff;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px;
    padding: 14px 18px !important;
    width: calc(75% - 20px) !important;
	font-family: yekanbakh;
}
.woocommerce-MyAccount-content input {
    outline: none;
    border-radius: 12px !important;
    border: 1px solid #E7E7E8 !important;
}
.woocommerce-MyAccount-content-wrapper {
	border: 0 !important;
	padding: 0 !important;
}
.custom-dashboard .woocommerce-MyAccount-navigation a {
    display: flex !important;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: start;
    gap: 8px;
}
.custom-dashboard .woocommerce-MyAccount-navigation  .is-active a svg * {
	fill: #00A0DC;
}
/* جدول */
.co-title {
    text-align: right;
    font-size: 20px;
    font-weight: 600 !important;
    margin: 15px 0 !important;
    border-bottom: 1px solid #E7E7E8;
    padding: 0 0 20px;
}
.woocommerce-MyAccount-content-wrapper {
	width: 100%;
}
.co-table-wrap { overflow-x: auto; font-family:yekanbakh;}
.co-table { width: 100%; border-collapse: collapse; direction: rtl; font-size: 14px; }
.co-table thead {
    border-bottom: 1px solid #E1E2E3;
    padding: 10px 0 !important;
}
.co-table th { color: #2E2F39; font-weight: 400; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; text-align: center; }
.co-table td { padding: 16px; border-bottom: 1px solid #f0f0f0; text-align: center; color: #333; }
.co-table tbody tr:hover { background: #fafafa; }

/* badge وضعیت */
.co-badge { font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 500; }
.status-completed  { background: #eaf7ee; color: #2eaa5f; }
.status-processing { background: #fdf8ec; color: #d4a017; }
.status-cancelled  { background: #fdeeed; color: #d94f4f; }
.status-refunded   { background: #f2f2f2; color: #888; border: 1px solid #ddd; }
.status-pending    { background: #f0f0f0; color: #888; }

/* دکمه جزئیات */
.co-detail-btn { 
    background: none !important;
    border: none;
    color: #1B388D !important;
    font-size: 14px;
    text-decoration: none !important;
}
.co-detail-btn:hover { text-decoration: underline; }

/* پاپ‌آپ */
.co-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:9999; align-items:center; justify-content:center; }
.co-overlay.active { display:flex; }
.co-popup { 
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-family: 'Yekanbakh';
}
.co-item-img {
    width: 64px;
    border-radius: 8px !important;
    object-fit: cover;
    border: 1px solid #f0f0f0 !important;
    flex-shrink: 0;
}
.co-close {    position: absolute;
    left: 1rem;
    top: 1rem;
    background: none !important;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #0B0C17 !important;
}
.co-popup-title { font-size:17px; font-weight:600; margin:0 0 1.25rem; }
.co-section-title { font-size:14px; font-weight:600; color:#333; border-bottom:1px solid #f0f0f0; padding-bottom:8px; margin-bottom:12px; }

/* ارسال و پرداخت */
.co-sh-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; font-size:13px; }
.co-sh-key { color:#888; }
.co-sh-val { color:#333; font-weight:500; }

/* محصولات */
.co-item-row { display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-bottom:1px solid #f5f5f5; }
.co-item-row:last-child { border-bottom:none; }
.co-item-img { width:64px; height:64px; border-radius:8px; object-fit:cover; border:1px solid #f0f0f0; flex-shrink:0; }
.co-no-img { background:#f5f5f5; }
.co-item-info { flex:1; }
.co-item-name { font-size:13px; font-weight:500; margin:0 0 6px; color:#222; }
.co-item-meta { font-size:12px; color:#888; margin:4px 0 0; }
.co-vars { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0; }
.co-var-badge { font-size:11px; background:#f5f5f5; color:#555; padding:3px 8px; border-radius:20px; }

/* صفحه‌بندی */
.co-pagination { display:flex; gap:6px; justify-content:center; align-items:center; margin-top:1.5rem; direction:ltr; }
.co-page-btn { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid #e5e5e5; font-size:14px; text-decoration:none; color:#333; background:#fff; cursor:pointer; }
.co-page-btn.active { background:#1a1a1a; color:#fff; border-color:#1a1a1a; }
.co-dots { border:none; background:none; cursor:default; }

@media only screen and (max-width: 600px) {
.woocommerce .custom-profile-card, .woocommerce .custom-order-stats {
    width: 100% !important;
}
	.custom-order-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
	}
	.woocommerce-MyAccount-content {
    margin-top: 20px;
    width: 100% !important;
	}
}
.tinvwl_add_to_wishlist_button:before {
	    font-size: 34px !important;
    color: #6d6d74;
}
.tinv-modal-inner {
	font-family: yekanbakh;
}
.tinvwl_add_to_wishlist-text {
	display: none;
}
