/* ═══ components.css — پایهٔ دارک و اجزای مشترک فروشگاه.
   هدر عمومی از v1.1.269 فقط در header.css نگهداری می‌شود. ═══ */
/* HastiGem v1.1.25 — global dark mode base */
html[data-hg-theme="dark"] body{
    background:#0d1015;
    color:#eef2f7;
}
html[data-hg-theme="dark"] .mobile-nav{
    background:rgba(14,17,22,.78);
    border-color:rgba(255,255,255,.10);
}
html[data-hg-theme="dark"] .mnav-item{
    color:#a2adba;
}
html[data-hg-theme="dark"] .mnav-item.active{
    background:#eef2f7;
    color:#11161d;
}
@media(max-width:781px){
    .mobile-nav-inner{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
    }
}


/* FIX v56 — Shop / product category dark-light redesign */
:root{
  --shop-bg:#f7f7f4;--shop-surface:rgba(255,255,255,.78);--shop-surface2:rgba(255,255,255,.55);
  --shop-ink:#17181b;--shop-muted:#71767c;--shop-line:rgba(23,24,27,.08);
  --shop-solid:#17181b;--shop-solid-text:#fff;--shop-shadow:0 18px 48px rgba(20,23,28,.06);
}
html[data-hg-theme="dark"]{
  --shop-bg:#0d1015;--shop-surface:rgba(26,31,40,.78);--shop-surface2:rgba(255,255,255,.065);
  --shop-ink:#eef2f7;--shop-muted:#a2adba;--shop-line:rgba(255,255,255,.10);
  --shop-solid:#eef2f7;--shop-solid-text:#11161d;--shop-shadow:0 22px 58px rgba(0,0,0,.30);
}

.woocommerce-shop,
.tax-product_cat{
  background:linear-gradient(180deg,var(--shop-bg),var(--shop-bg))!important;
}
.woocommerce-shop .site-main,
.tax-product_cat .site-main{
  color:var(--shop-ink)!important;
}

.breadcrumb-wrap,.mobile-filter-bar,.shop-container,.shop-topbar{
  color:var(--shop-ink)!important;
}
.breadcrumb{
  background:var(--shop-surface)!important;border:1px solid var(--shop-line)!important;border-radius:22px!important;
}
.breadcrumb a,.breadcrumb li{color:var(--shop-muted)!important}

.mobile-filter-bar{
  background:transparent!important;
}
.mf-btn,.cat-btn,.vbtn,.sort-select,.cat-search,.price-input{
  background:var(--shop-surface)!important;
  border:1px solid var(--shop-line)!important;
  color:var(--shop-ink)!important;
  box-shadow:none!important;
}
.mf-btn.active,.cat-btn.active,.vbtn.active,.btn-price-apply{
  background:var(--shop-solid)!important;color:var(--shop-solid-text)!important;border-color:transparent!important;
}
.sidebar-card,.shop-topbar,.product-card,.product-list-item,.no-products,.pagination ul li a,.pagination ul li span{
  background:var(--shop-surface)!important;
  border:1px solid var(--shop-line)!important;
  color:var(--shop-ink)!important;
  box-shadow:var(--shop-shadow)!important;
}
.sidebar-title,.result-count,.pcard-cat,.cat-count,.price-label,.woocommerce-ordering label{
  color:var(--shop-muted)!important;
}
.pcard-name,.product-card h2,.product-list-item h2,.result-count strong{
  color:var(--shop-ink)!important;
}
.pcard-img{
  background:var(--shop-surface2)!important;border-bottom:1px solid var(--shop-line)!important;
}
.pcard-img svg{stroke:var(--shop-muted)!important}
.pcard-price ins,.pcard-price del,.pcard-price .woocommerce-Price-amount{
  color:var(--shop-ink)!important;
}
.pcard-buy,.add_to_cart_button,.single_add_to_cart_button{
  background:var(--shop-solid)!important;color:var(--shop-solid-text)!important;border-color:transparent!important;
}
.badge,.pcard-save-badge{
  background:var(--shop-surface)!important;color:var(--shop-ink)!important;border:1px solid var(--shop-line)!important;
}
.badge-sale{background:rgba(52,199,89,.14)!important;color:#17823f!important}
html[data-hg-theme="dark"] .badge-sale{color:#60e693!important}

.products-grid{
  gap:14px!important;
}
.product-card{
  border-radius:24px!important;overflow:hidden!important;
}
.product-card:hover{
  border-color:var(--shop-line)!important;
  box-shadow:0 24px 60px rgba(20,23,28,.10)!important;
}
html[data-hg-theme="dark"] .product-card:hover{
  box-shadow:0 28px 70px rgba(0,0,0,.40)!important;
}
.shop-container{
  gap:18px!important;
}
.sidebar-card{
  border-radius:24px!important;overflow:hidden!important;
}
.shop-topbar{
  border-radius:22px!important;padding:12px 14px!important;
}

.pagination ul{
  display:flex!important;gap:8px!important;justify-content:center!important;list-style:none!important;padding:0!important;
}
.pagination ul li a,.pagination ul li span{
  width:38px!important;height:38px!important;border-radius:14px!important;display:grid!important;place-items:center!important;
}
.pagination .current{
  background:var(--shop-solid)!important;color:var(--shop-solid-text)!important;
}

/* product category title/description if exists */
.term-description,.woocommerce-products-header,.woocommerce-products-header__title{
  color:var(--shop-ink)!important;
}
.term-description{
  background:var(--shop-surface)!important;border:1px solid var(--shop-line)!important;border-radius:22px!important;padding:14px!important;
}

/* Mobile */
@media(max-width:760px){
  .shop-container{padding-top:10px!important}
  .shop-topbar{padding:10px!important;border-radius:18px!important}
  .mobile-filter-bar{padding:0 8px!important;margin:12px -8px 10px!important}
  .mf-btn{min-height:34px!important;border-radius:999px!important;font-size:10px!important;padding:0 12px!important}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .product-card{border-radius:18px!important}
  .pcard-img{height:116px!important}
  .pcard-body{padding:9px!important}
  .pcard-name{font-size:11.5px!important;line-height:1.55!important}
  .pcard-cat{font-size:9.5px!important}
  .pcard-buy{height:28px!important;border-radius:10px!important;font-size:10px!important;padding:0 9px!important}
  .pcard-price ins{font-size:11px!important}
  .pcard-price del{font-size:9px!important}
  .badge{font-size:8.5px!important;padding:4px 7px!important;border-radius:999px!important}
  .sidebar{display:none!important}
}
