/* ═══════════════════════════════════════════════════════════════════════
   ZamaniAuto Shop — shop.css  (v3 · نسخه ارتقایافته و حرفه‌ای)
   ─────────────────────────────────────────────────────────────────────
   • RTL-first
   • هم‌خانواده با برند سایت (navy / teal / turquoise / yellow)
   • همه کلاس‌های نسخه قبل حفظ شده → نیازی به تغییر دیتابیس نیست
   • دو کلاس جدید اختیاری: .product-quick-specs و .product-buybox
   ═══════════════════════════════════════════════════════════════════════ */

/* If shopbar is absent, fallback padding-top */
body:has(.shopbar) { padding-top: 0; }
.shop-page-wrap:first-of-type {
  /* ensures safety */
}
.shop-page-wrap{
  --s-bg:#F3F6F7;
  --s-surface:#FFFFFF;
  --s-surface-2:#F7FAFA;
  --s-ink:#0A1628;
  --s-ink-2:#4A5A6B;
  --s-ink-3:#7B8896;
  --s-line:#E3E9EB;
  --s-line-2:#CFD8DC;
  --s-teal:#0D7377;
  --s-teal-dark:#0A5A5D;
  --s-teal-soft:#E7F2F2;
  --s-amber:#E6C200;
  --s-amber-dark:#B89B00;
  --s-amber-soft:#FBF4D6;
  --s-red:#D0342C;
  --s-red-soft:#FCEDEC;
  --s-green:#0F7A57;
  --s-green-soft:#E7F4EF;
  --s-r-sm:10px;
  --s-r:14px;
  --s-r-lg:20px;
  --s-sh-sm:0 1px 2px rgba(10,22,40,.05),0 4px 12px rgba(10,22,40,.04);
  --s-sh:0 2px 6px rgba(10,22,40,.05),0 14px 34px rgba(10,22,40,.06);
  --s-ease:cubic-bezier(.16,1,.3,1);

  background:var(--s-bg);
  color:var(--s-ink);
  padding:24px 0 72px;
  min-height:60vh;
}

.shop-page-wrap *,
.shop-page-wrap *::before,
.shop-page-wrap *::after{box-sizing:border-box}

.shop-container{
  max-width:1400px;
  margin-inline:auto;
  padding-inline:clamp(14px,3vw,32px);
}

.shop-page-wrap h1,
.shop-page-wrap h2,
.shop-page-wrap h3,
.shop-page-wrap h4{margin:0;line-height:1.35;letter-spacing:-.01em;text-wrap:balance}
.shop-page-wrap p{margin:0}
.shop-page-wrap a{text-decoration:none;color:inherit}
.shop-page-wrap button{font:inherit;cursor:pointer}
.shop-page-wrap :focus-visible{outline:2.5px solid var(--s-teal);outline-offset:2px;border-radius:6px}
.shop-page-wrap img{max-width:100%}

.skip-link{
  position:absolute;inset-inline-start:-9999px;top:0;z-index:100;
  background:var(--s-teal);color:#fff;padding:10px 16px;border-radius:0 0 var(--s-r-sm) 0;font-weight:700;
}
.skip-link:focus{inset-inline-start:0}

/* ══════════════════ Breadcrumb ══════════════════ */
.shop-breadcrumb{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px;
  font-size:.8125rem;color:var(--s-ink-3);margin-bottom:18px;
}
.shop-breadcrumb a{padding:4px 6px;border-radius:6px;color:var(--s-ink-2);font-weight:500;transition:color .16s var(--s-ease),background .16s var(--s-ease)}
.shop-breadcrumb a:hover{color:var(--s-teal);background:var(--s-teal-soft)}
.shop-breadcrumb .sep{color:var(--s-line-2);font-weight:700}
.shop-breadcrumb .current{color:var(--s-ink);font-weight:700}

/* ══════════════════ Layout ══════════════════ */
.shop-layout{display:grid;gap:20px;align-items:start}
@media (min-width:1000px){
  .shop-layout{grid-template-columns:266px minmax(0,1fr);gap:24px}
}

/* ══════════════════ فیلترها ══════════════════ */
.shop-filters{
  background:var(--s-surface);
  border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);
  padding:18px 16px;
  box-shadow:var(--s-sh-sm);
}
@media (min-width:1000px){
  .shop-filters{position:sticky;top:92px;max-height:calc(100vh - 116px);overflow:auto;scrollbar-width:thin}
}
.shop-filters h3{
  font-size:.9375rem;font-weight:800;padding-bottom:14px;margin-bottom:6px;
  border-bottom:1px solid var(--s-line);display:flex;align-items:center;gap:8px;
}
.shop-filters h3::before{content:'⚙';font-size:.95rem;color:var(--s-teal)}
.shop-filters-close{display:none;position:absolute;top:14px;inset-inline-end:14px;width:44px;height:44px;border:1px solid var(--s-line);border-radius:50%;background:var(--s-surface-2);color:var(--s-ink);font:800 1rem/1 inherit;cursor:pointer}

.filter-group{padding-block:14px;border-bottom:1px solid var(--s-line)}
.filter-group:last-of-type{border-bottom:none}
.filter-group-title{
  width:100%;padding:0;border:0;background:transparent;font-family:inherit;text-align:inherit;
  display:flex;align-items:center;justify-content:space-between;
  font-size:.75rem;font-weight:800;letter-spacing:.06em;color:var(--s-ink-3);
  text-transform:uppercase;cursor:pointer;user-select:none;margin-bottom:10px;
}
.filter-group-title::after{
  content:'⌄';font-size:1.1rem;line-height:1;color:var(--s-line-2);
  transition:transform .3s var(--s-ease);
}
.filter-group-title:focus-visible{outline:3px solid var(--s-teal-soft);outline-offset:5px;border-radius:4px;color:var(--s-teal)}
.filter-group.collapsed .filter-group-title::after{transform:rotate(-90deg)}
.filter-group.collapsed .filter-group-body{display:none}
.filter-group-body{display:flex;flex-direction:column;gap:2px}

.filter-check{
  display:flex;align-items:center;gap:9px;
  padding:8px;border-radius:var(--s-r-sm);
  font-size:.875rem;color:var(--s-ink-2);cursor:pointer;
  transition:background .14s var(--s-ease),color .14s var(--s-ease);
  min-height:38px;
}
.filter-check:hover{background:var(--s-surface-2);color:var(--s-ink)}
.filter-check input[type="checkbox"],
.filter-check input[type="radio"]{
  width:16px;height:16px;margin:0;accent-color:var(--s-teal);flex:none;
}
.filter-check .count{margin-inline-start:auto;font-size:.6875rem;color:var(--s-ink-3);font-weight:600}

.price-range{display:flex;gap:8px}
.price-range input[type="number"]{
  flex:1;min-width:0;padding:10px;
  border:1px solid var(--s-line-2);border-radius:var(--s-r-sm);
  background:var(--s-surface);font-size:.8125rem;color:var(--s-ink);
  font-variant-numeric:tabular-nums;
  transition:border-color .16s var(--s-ease),box-shadow .16s var(--s-ease);
}
.price-range input:focus{outline:none;border-color:var(--s-teal);box-shadow:0 0 0 3px var(--s-teal-soft)}
.price-range-labels{display:flex;justify-content:space-between;font-size:.6875rem;color:var(--s-ink-3);margin-top:6px}

.btn-apply-filters{
  width:100%;margin-top:16px;min-height:46px;
  border:none;border-radius:var(--s-r);
  background:var(--s-teal);color:#fff;font-weight:800;font-size:.9375rem;
  transition:background .16s var(--s-ease),transform .16s var(--s-ease);
}
.btn-apply-filters:hover{background:var(--s-teal-dark)}
.btn-apply-filters:active{transform:translateY(1px)}
.btn-clear-filters{
  display:block;width:100%;margin-top:8px;min-height:42px;padding:10px;
  border:1px solid var(--s-line-2);border-radius:var(--s-r);background:var(--s-surface);
  color:var(--s-ink-2);font-weight:700;font-size:.875rem;text-align:center;
  transition:border-color .16s var(--s-ease),color .16s var(--s-ease),background .16s var(--s-ease);
}
.btn-clear-filters:hover{border-color:var(--s-teal);color:var(--s-teal);background:var(--s-teal-soft)}

.btn-open-filters{
  align-items:center;gap:6px;min-height:42px;padding:0 14px;
  border:1px solid var(--s-line-2);border-radius:var(--s-r);
  background:var(--s-surface);font-weight:700;font-size:.875rem;color:var(--s-ink);
}

/* ══════════════════ نوار ابزار ══════════════════ */
.shop-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  background:var(--s-surface);border:1px solid var(--s-line);border-radius:var(--s-r-lg);
  padding:14px 16px;margin-bottom:18px;box-shadow:var(--s-sh-sm);
}
.shop-toolbar-info{font-size:.875rem;color:var(--s-ink-2)}
.shop-toolbar-info b{color:var(--s-ink);font-weight:800;font-variant-numeric:tabular-nums}
.shop-sort{display:flex;align-items:center;gap:8px}
.shop-sort label{font-size:.8125rem;color:var(--s-ink-3);font-weight:600}
.shop-sort select{
  padding:9px 12px;border:1px solid var(--s-line-2);border-radius:var(--s-r-sm);
  background:var(--s-surface);color:var(--s-ink);font-weight:700;font-size:.8125rem;cursor:pointer;
  transition:border-color .16s var(--s-ease);
}
.shop-sort select:focus{outline:none;border-color:var(--s-teal);box-shadow:0 0 0 3px var(--s-teal-soft)}

/* ══════════════════ گرید محصولات ══════════════════ */
.products-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(228px,1fr));
  gap:1px;background:var(--s-line);
  border:1px solid var(--s-line);border-radius:var(--s-r-lg);overflow:hidden;
}

/* ══════════════════ کارت محصول ══════════════════ */
.product-card{
  position:relative;display:flex;flex-direction:column;
  background:var(--s-surface);padding:14px 14px 16px;
  transition:background .18s var(--s-ease);
}
.product-card:hover{background:#FCFDFD}

.product-card-image{
  position:relative;display:block;
  aspect-ratio:1/1;border-radius:var(--s-r);
  background:var(--s-surface-2);overflow:hidden;margin-bottom:12px;
}
.product-card-image img{
  width:100%;height:100%;object-fit:contain;padding:10px;
  transition:transform .4s var(--s-ease);
}
.product-card:hover .product-card-image img{transform:scale(1.04)}
.skeleton-img{background:linear-gradient(100deg,var(--s-surface-2) 30%,#EEF3F4 50%,var(--s-surface-2) 70%);background-size:200% 100%;animation:sk 1.3s linear infinite}
.skeleton-img-error{background:var(--s-surface-2)}
.skeleton-img-error img{opacity:0}
@keyframes sk{from{background-position:200% 0}to{background-position:-200% 0}}

.product-badges{position:absolute;top:8px;inset-inline-start:8px;display:flex;flex-direction:column;gap:5px;z-index:2}
.p-badge{
  display:inline-flex;align-items:center;padding:4px 8px;border-radius:7px;
  font-size:.6875rem;font-weight:800;line-height:1.4;
}
.p-badge-sale{background:var(--s-red);color:#fff}
.p-badge-hot{background:var(--s-amber-soft);color:#7A6700;border:1px solid #EBD98A}
.p-badge-new{background:var(--s-teal-soft);color:var(--s-teal-dark)}
.p-badge-out{background:#EDF1F2;color:var(--s-ink-3)}

.wishlist-btn{
  position:absolute;top:8px;inset-inline-end:8px;z-index:3;
  width:34px;height:34px;border-radius:50%;
  border:1px solid var(--s-line);background:rgba(255,255,255,.92);
  color:var(--s-ink-3);font-size:1rem;line-height:1;
  display:grid;place-items:center;
  transition:color .16s var(--s-ease),border-color .16s var(--s-ease),transform .16s var(--s-ease);
}
.wishlist-btn:hover{color:var(--s-red);border-color:var(--s-red);transform:scale(1.06)}
.wishlist-btn.active{color:#fff;background:var(--s-red);border-color:var(--s-red)}

.product-card-body{display:flex;flex-direction:column;gap:7px;flex:1}
.product-card-brand{
  font-size:.6875rem;font-weight:800;letter-spacing:.06em;color:var(--s-ink-3);text-transform:uppercase;
}
.product-card-title-wrap{margin:0}
.product-card-title{
  font-size:.875rem;font-weight:600;line-height:1.65;color:var(--s-ink);
  min-height:2.8em;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  transition:color .16s var(--s-ease);
}
.product-card-title:hover{color:var(--s-teal)}

.product-card-rating{display:flex;align-items:center;gap:6px}
.rating-stars{color:var(--s-amber);font-size:.8125rem;letter-spacing:1px}
.rating-count{color:var(--s-ink-3);font-size:.6875rem;font-variant-numeric:tabular-nums}

.product-card-price-row{
  display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;
  margin-top:auto;padding-top:12px;border-top:1px solid var(--s-line);
}
.price-current{font-size:1.0625rem;font-weight:900;color:var(--s-ink);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.price-old{font-size:.75rem;color:var(--s-ink-3);text-decoration:line-through;font-variant-numeric:tabular-nums}
.price-unit{font-size:.6875rem;color:var(--s-ink-3);font-weight:700}

.product-card-actions{display:flex;gap:8px;margin-top:12px}
.btn-add-cart{
  flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:42px;border:none;border-radius:var(--s-r-sm);
  background:var(--s-teal);color:#fff;font-size:.8125rem;font-weight:800;
  transition:background .16s var(--s-ease),transform .16s var(--s-ease);
}
.btn-add-cart:hover:not(:disabled){background:var(--s-teal-dark)}
.btn-add-cart:active:not(:disabled){transform:translateY(1px)}
.btn-add-cart:disabled{background:#EDF1F2;color:var(--s-ink-3);cursor:not-allowed}
.btn-quick-view{
  width:42px;min-height:42px;display:grid;place-items:center;
  border:1px solid var(--s-line-2);border-radius:var(--s-r-sm);
  background:var(--s-surface);color:var(--s-ink-2);
  transition:border-color .16s var(--s-ease),color .16s var(--s-ease),background .16s var(--s-ease);
}
.btn-quick-view:hover{border-color:var(--s-teal);color:var(--s-teal);background:var(--s-teal-soft)}

/* ══════════════════ صفحه‌بندی ══════════════════ */
.shop-pagination{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:24px}
.shop-pagination a,
.shop-pagination span{
  min-width:42px;min-height:42px;padding:0 12px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--s-line);border-radius:var(--s-r-sm);
  background:var(--s-surface);color:var(--s-ink-2);font-weight:700;font-size:.875rem;
  font-variant-numeric:tabular-nums;
  transition:border-color .16s var(--s-ease),color .16s var(--s-ease),background .16s var(--s-ease);
}
.shop-pagination a:hover{border-color:var(--s-teal);color:var(--s-teal);background:var(--s-teal-soft)}
.shop-pagination .active{background:var(--s-teal);border-color:var(--s-teal);color:#fff}
.shop-pagination .disabled{opacity:.45;pointer-events:none}

/* ══════════════════ صفحه محصول ══════════════════ */
.product-page{margin-bottom:22px}
.product-detail{
  display:grid;gap:20px;
  background:var(--s-surface);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);padding:clamp(14px,2.4vw,26px);box-shadow:var(--s-sh-sm);
}
@media (min-width:900px){
  .product-detail{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:32px}
}

/* گالری */
.product-gallery{position:relative}
.gallery-main{
  position:relative;aspect-ratio:1/1;
  border:1px solid var(--s-line);border-radius:var(--s-r-lg);
  background:var(--s-surface-2);overflow:hidden;
  display:grid;place-items:center;cursor:zoom-in;
}
.gallery-main img{width:100%;height:100%;object-fit:contain;padding:18px;transition:transform .45s var(--s-ease)}
.gallery-main video{width:100%;height:100%;object-fit:contain;background:#0A1628}
.gallery-main.zoomed img{transform:scale(1.85);cursor:zoom-out}

.gallery-badge{
  position:absolute;top:12px;inset-inline-start:12px;z-index:2;
  padding:6px 11px;border-radius:8px;font-size:.75rem;font-weight:800;
}
.gallery-badge-discount{background:var(--s-red);color:#fff}
.gallery-badge-soldout{background:#EDF1F2;color:var(--s-ink-3)}
.gallery-badge-lowstock{background:var(--s-amber-soft);color:#7A6700;border:1px solid #EBD98A}

.gallery-nav{
  position:absolute;top:calc(50% - 44px);transform:translateY(-50%);z-index:3;
  width:40px;height:40px;border-radius:50%;
  border:1px solid var(--s-line);background:rgba(255,255,255,.94);
  color:var(--s-ink-2);font-size:1rem;line-height:1;display:grid;place-items:center;
  box-shadow:var(--s-sh-sm);
  transition:color .16s var(--s-ease),transform .16s var(--s-ease);
}
.gallery-nav:hover{color:var(--s-teal);transform:translateY(-50%) scale(1.06)}
.gallery-nav-prev{inset-inline-start:12px}
.gallery-nav-next{inset-inline-end:12px}

.gallery-thumbs{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(66px,1fr));
  gap:8px;margin-top:12px;
}
.gallery-thumb{
  position:relative;aspect-ratio:1/1;overflow:hidden;cursor:pointer;
  border:1px solid var(--s-line);border-radius:var(--s-r-sm);background:var(--s-surface-2);
  transition:border-color .16s var(--s-ease),box-shadow .16s var(--s-ease);
}
.gallery-thumb img{width:100%;height:100%;object-fit:contain;padding:5px}
.gallery-thumb video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.gallery-thumb-video-wrap{background:#0A1628}
.gallery-thumb:hover{border-color:var(--s-line-2)}
.gallery-thumb.active{border-color:var(--s-teal);box-shadow:0 0 0 3px var(--s-teal-soft)}
.gallery-thumb-badge{
  position:absolute;inset-inline-end:4px;bottom:4px;
  background:rgba(10,22,40,.78);color:#fff;border-radius:6px;
  padding:1px 5px;font-size:.625rem;line-height:1.5;
}

/* اطلاعات محصول */
.product-info{display:flex;flex-direction:column;gap:16px;min-width:0}
.product-info h1{font-size:clamp(1.25rem,2.4vw,1.75rem);font-weight:900;line-height:1.5}

.product-info-meta{display:flex;flex-wrap:wrap;gap:8px 14px;padding-bottom:14px;border-bottom:1px solid var(--s-line)}
.meta-item{display:inline-flex;align-items:center;gap:5px;font-size:.8125rem;color:var(--s-ink-3)}
.meta-item b{color:var(--s-ink);font-weight:700}

.product-short-desc{font-size:.9375rem;color:var(--s-ink-2);line-height:1.9;max-width:68ch}

/* مشخصات کلیدی (از همان specs_json پنل ادمین) */
.product-quick-specs{
  display:grid;border:1px solid var(--s-line);border-radius:var(--s-r);overflow:hidden;
}
.product-quick-specs .qs-row{display:grid;grid-template-columns:minmax(110px,.8fr) 1.2fr;background:var(--s-surface)}
.product-quick-specs .qs-row:nth-child(even){background:var(--s-surface-2)}
.product-quick-specs .qs-row dt,
.product-quick-specs .qs-row dd{margin:0;padding:10px 13px;font-size:.8125rem}
.product-quick-specs .qs-row dt{color:var(--s-ink-3)}
.product-quick-specs .qs-row dd{font-weight:700;color:var(--s-ink)}
.product-quick-specs .qs-more{
  padding:9px 13px;background:var(--s-surface);border-top:1px solid var(--s-line);
  font-size:.75rem;font-weight:800;color:var(--s-teal);
}

/* جعبه خرید */
.product-buybox{
  display:flex;flex-direction:column;gap:14px;
  border:1px solid var(--s-line);border-radius:var(--s-r-lg);
  background:var(--s-surface-2);padding:16px;
}

.product-price-box{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.price-box-label{font-size:.75rem;font-weight:700;color:var(--s-ink-3)}
.price-box-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.price-box-value .price-current{font-size:clamp(1.375rem,3vw,1.875rem)}
.price-discount{
  background:var(--s-red);color:#fff;border-radius:7px;
  padding:3px 8px;font-size:.75rem;font-weight:800;
}

.stock-indicator{display:inline-flex;align-items:center;gap:8px;font-size:.8125rem;font-weight:700;padding:8px 12px;border-radius:var(--s-r-sm)}
.stock-indicator .dot{width:8px;height:8px;border-radius:50%;flex:none}
.stock-in{background:var(--s-green-soft);color:var(--s-green)}
.stock-in .dot{background:var(--s-green)}
.stock-low{background:var(--s-amber-soft);color:#7A6700}
.stock-low .dot{background:var(--s-amber-dark)}
.stock-out{background:#EDF1F2;color:var(--s-ink-3)}
.stock-out .dot{background:var(--s-ink-3)}

.product-buy-row{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
.qty-selector{
  display:inline-flex;align-items:center;
  border:1px solid var(--s-line-2);border-radius:var(--s-r);background:var(--s-surface);overflow:hidden;
}
.qty-selector button{
  width:42px;min-height:48px;border:none;background:none;
  color:var(--s-teal);font-size:1.125rem;font-weight:800;
  transition:background .14s var(--s-ease);
}
.qty-selector button:hover{background:var(--s-teal-soft)}
.qty-selector input{
  width:52px;min-height:48px;border:none;text-align:center;
  font:inherit;font-weight:800;color:var(--s-ink);
  font-variant-numeric:tabular-nums;background:none;
  -moz-appearance:textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-selector input:focus{outline:none}

.btn-add-cart-large{
  flex:1;min-width:180px;min-height:48px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:none;border-radius:var(--s-r);
  background:var(--s-teal);color:#fff;font-size:.9375rem;font-weight:800;
  transition:background .16s var(--s-ease),transform .16s var(--s-ease);
}
.btn-add-cart-large:hover:not(:disabled){background:var(--s-teal-dark)}
.btn-add-cart-large:active:not(:disabled){transform:translateY(1px)}
.btn-add-cart-large:disabled{background:#EDF1F2;color:var(--s-ink-3);cursor:not-allowed}

.btn-wishlist-large{
  width:48px;min-height:48px;display:grid;place-items:center;
  border:1px solid var(--s-line-2);border-radius:var(--s-r);
  background:var(--s-surface);color:var(--s-ink-3);font-size:1.125rem;
  transition:color .16s var(--s-ease),border-color .16s var(--s-ease);
}
.btn-wishlist-large:hover{color:var(--s-red);border-color:var(--s-red)}
.btn-wishlist-large.active{background:var(--s-red);border-color:var(--s-red);color:#fff}

.btn-buy-now{
  width:100%;min-height:48px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid var(--s-amber-dark);border-radius:var(--s-r);
  background:var(--s-amber);color:#2B2400;font-size:.9375rem;font-weight:800;
  transition:background .16s var(--s-ease),transform .16s var(--s-ease);
}
.btn-buy-now:hover{background:#F0CF15}
.btn-buy-now:active{transform:translateY(1px)}

.buy-trust-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.trust-chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:9px 11px;border-radius:var(--s-r-sm);
  background:var(--s-surface);border:1px solid var(--s-line);
  font-size:.75rem;font-weight:700;color:var(--s-ink-2);
}
.trust-chip .icon{font-size:.9rem}

/* مشاوره فنی */
.product-tech-consult{
  display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;
  border:1px solid #CFE5E5;border-radius:var(--s-r);
  background:var(--s-teal-soft);padding:16px;
}
.tech-consult-icon{
  width:40px;height:40px;border-radius:12px;display:grid;place-items:center;
  background:var(--s-teal);color:#fff;font-size:1.125rem;
}
.tech-consult-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.tech-consult-title{font-size:.9375rem;font-weight:800;color:var(--s-teal-dark);line-height:1.7}
.tech-consult-sub{font-size:.8125rem;color:var(--s-ink-2)}
.tech-consult-phone{
  font-size:1.125rem;font-weight:900;color:var(--s-teal-dark);
  font-variant-numeric:tabular-nums;margin-top:6px;
}
.tech-consult-btn{
  align-self:flex-start;margin-top:8px;min-height:42px;padding:0 14px;
  border:1px solid var(--s-teal);border-radius:var(--s-r-sm);
  background:var(--s-surface);color:var(--s-teal-dark);font-size:.8125rem;font-weight:800;
  transition:background .16s var(--s-ease),color .16s var(--s-ease);
}
.tech-consult-btn:hover{background:var(--s-teal);color:#fff}

/* اشتراک‌گذاری */
.product-share{display:flex;align-items:center;gap:8px;font-size:.8125rem;color:var(--s-ink-3)}
.product-share a{
  width:38px;height:38px;display:grid;place-items:center;
  border:1px solid var(--s-line);border-radius:var(--s-r-sm);
  background:var(--s-surface);font-size:1rem;
  transition:border-color .16s var(--s-ease),transform .16s var(--s-ease);
}
.product-share a:hover{border-color:var(--s-teal);transform:translateY(-2px)}

/* ══════════════════ تب‌ها ══════════════════ */
.product-tabs{
  background:var(--s-surface);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);overflow:hidden;box-shadow:var(--s-sh-sm);margin-bottom:26px;
}
.product-tabs-nav{
  display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;
  background:var(--s-surface-2);border-bottom:1px solid var(--s-line);
}
.product-tabs-nav::-webkit-scrollbar{display:none}
.product-tabs-nav button{
  white-space:nowrap;padding:15px 18px;border:none;background:none;
  color:var(--s-ink-2);font-size:.875rem;font-weight:700;
  border-bottom:2px solid transparent;
  transition:color .16s var(--s-ease),background .16s var(--s-ease),border-color .16s var(--s-ease);
}
.product-tabs-nav button:hover{color:var(--s-ink)}
.product-tabs-nav button.active{background:var(--s-surface);color:var(--s-teal);border-color:var(--s-teal)}
.product-tabs-body{padding:clamp(16px,2.4vw,28px)}
.product-tab-panel{display:none}
.product-tab-panel.active{display:block;animation:fadeUp .38s var(--s-ease)}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}}
.product-tab-panel h3{font-size:1.0625rem;font-weight:800;margin-bottom:16px}
.product-tab-panel h4{font-size:.9375rem;font-weight:800;margin-bottom:10px}
.product-tab-panel p{font-size:.9375rem;color:var(--s-ink-2);line-height:1.95;max-width:74ch;margin-bottom:12px}
.product-tab-panel ul{padding-inline-start:20px;margin:0 0 14px;color:var(--s-ink-2);font-size:.9375rem;line-height:2}
.product-tab-panel li{margin-bottom:6px}
.product-tab-panel a{color:var(--s-teal);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.product-tab-panel img{border-radius:var(--s-r);margin-block:12px}

/* جدول مشخصات */
.specs-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--s-line);border-radius:var(--s-r);overflow:hidden}
.specs-table tr:nth-child(even) th,
.specs-table tr:nth-child(even) td{background:var(--s-surface-2)}
.specs-table th,
.specs-table td{padding:12px 14px;font-size:.875rem;text-align:start;vertical-align:top;border-bottom:1px solid var(--s-line)}
.specs-table th{width:38%;color:var(--s-ink-3);font-weight:600}
.specs-table td{color:var(--s-ink);font-weight:700}
.specs-table tr:last-child th,
.specs-table tr:last-child td{border-bottom:none}
.specs-group-header{
  background:var(--s-teal-soft)!important;color:var(--s-teal-dark)!important;
  font-size:.75rem;font-weight:800;letter-spacing:.06em;padding:10px 14px!important;
}

/* ══════════════════ نظرات ══════════════════ */
.reviews-summary{
  display:grid;gap:22px;align-items:center;
  border:1px solid var(--s-line);border-radius:var(--s-r);
  background:var(--s-surface-2);padding:18px;margin-bottom:22px;
}
@media (min-width:640px){.reviews-summary{grid-template-columns:auto 1fr}}
.reviews-avg{text-align:center;padding-inline-end:22px}
@media (min-width:640px){.reviews-avg{border-inline-end:1px solid var(--s-line)}}
.big-score{font-size:2.75rem;font-weight:900;line-height:1;color:var(--s-ink);font-variant-numeric:tabular-nums}
.big-stars{color:var(--s-amber);font-size:1.0625rem;letter-spacing:2px;margin-top:6px}
.reviews-avg .total{font-size:.75rem;color:var(--s-ink-3);margin-top:4px}
.review-bar{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;font-size:.75rem;color:var(--s-ink-3);margin-bottom:7px}
.review-bar-track{height:7px;border-radius:99px;background:#E9EFF0;overflow:hidden}
.review-bar-fill{height:100%;border-radius:99px;background:var(--s-amber);transition:width .5s var(--s-ease)}

.review-item{padding:16px 0;border-top:1px solid var(--s-line)}
.review-item-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.review-author{display:inline-flex;align-items:center;gap:8px;font-size:.875rem;font-weight:800;color:var(--s-ink)}
.review-author .avatar,
.account-avatar{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:var(--s-teal-soft);color:var(--s-teal-dark);font-weight:900;font-size:.875rem;
}
.review-stars{color:var(--s-amber);font-size:.875rem;letter-spacing:1px}
.review-date{margin-inline-start:auto;font-size:.75rem;color:var(--s-ink-3)}
.review-body{font-size:.9375rem;color:var(--s-ink-2);line-height:1.95;max-width:74ch}

.review-form{margin-top:24px;border:1px solid var(--s-line);border-radius:var(--s-r);background:var(--s-surface-2);padding:18px}
.rating-input{display:inline-flex;flex-direction:row-reverse;gap:2px;margin-bottom:14px}
.rating-input input{position:absolute;opacity:0;width:0;height:0}
.rating-input label{font-size:1.5rem;color:#DCE3E5;cursor:pointer;transition:color .14s var(--s-ease)}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label{color:var(--s-amber)}
.form-grid{display:grid;gap:14px;margin-bottom:16px}
@media (min-width:640px){.form-grid{grid-template-columns:1fr 1fr}}
.form-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.form-field.full{grid-column:1/-1}
.form-field label{font-size:.75rem;font-weight:700;color:var(--s-ink-3)}
.form-field input,
.form-field textarea,
.form-field select{
  width:100%;padding:12px 13px;min-height:46px;
  border:1px solid var(--s-line-2);border-radius:var(--s-r-sm);
  background:var(--s-surface);font:inherit;font-size:.875rem;color:var(--s-ink);
  transition:border-color .16s var(--s-ease),box-shadow .16s var(--s-ease);
}
.form-field textarea{min-height:110px;resize:vertical;line-height:1.8}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus{outline:none;border-color:var(--s-teal);box-shadow:0 0 0 3px var(--s-teal-soft)}
.form-field.error input,
.form-field.error textarea{border-color:var(--s-red);box-shadow:0 0 0 3px var(--s-red-soft)}
.err-msg{font-size:.75rem;color:var(--s-red);font-weight:700}

/* ══════════════════ محصولات مرتبط ══════════════════ */
.related-products{margin-bottom:12px}
.related-products h2{font-size:1.125rem;font-weight:900;margin-bottom:16px}

/* ══════════════════ سبد خرید ══════════════════ */
.cart-layout{display:grid;gap:20px;align-items:start}
@media (min-width:940px){.cart-layout{grid-template-columns:minmax(0,1fr) 340px}}

.cart-items{
  background:var(--s-surface);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);overflow:hidden;box-shadow:var(--s-sh-sm);
}
.cart-item{
  display:grid;grid-template-columns:88px minmax(0,1fr) auto;gap:14px;align-items:center;
  padding:16px;border-bottom:1px solid var(--s-line);
}
.cart-item:last-child{border-bottom:none}
.cart-item-img{
  width:88px;height:88px;border-radius:var(--s-r-sm);
  background:var(--s-surface-2);border:1px solid var(--s-line);overflow:hidden;
}
.cart-item-img img{width:100%;height:100%;object-fit:contain;padding:6px}
.cart-item-info{display:flex;flex-direction:column;gap:5px;min-width:0}
.cart-item-brand{font-size:.6875rem;font-weight:800;color:var(--s-ink-3);letter-spacing:.05em;text-transform:uppercase}
.cart-item-info a{font-size:.9375rem;font-weight:700;line-height:1.6}
.cart-item-info a:hover{color:var(--s-teal)}
.cart-item-price{font-size:.875rem;color:var(--s-ink-2);font-variant-numeric:tabular-nums}
.cart-item-old-price{font-size:.75rem;color:var(--s-ink-3);text-decoration:line-through}
.cart-item-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.cart-item-total{font-size:1rem;font-weight:900;color:var(--s-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.btn-remove{
  width:36px;height:36px;display:grid;place-items:center;
  border:1px solid var(--s-line);border-radius:var(--s-r-sm);
  background:var(--s-surface);color:var(--s-ink-3);font-size:.9rem;
  transition:color .16s var(--s-ease),border-color .16s var(--s-ease);
}
.btn-remove:hover{color:var(--s-red);border-color:var(--s-red)}

.cart-summary{
  background:var(--s-surface);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);padding:18px;box-shadow:var(--s-sh-sm);
}
@media (min-width:940px){.cart-summary{position:sticky;top:92px}}
.cart-summary h3{font-size:1rem;font-weight:800;padding-bottom:14px;border-bottom:1px solid var(--s-line);margin-bottom:12px}
.summary-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 0;font-size:.875rem;color:var(--s-ink-2)}
.summary-row .val{font-weight:700;color:var(--s-ink);font-variant-numeric:tabular-nums}
.summary-row.discount .val{color:var(--s-red)}
.summary-row.total{
  margin-top:8px;padding-top:14px;border-top:1px solid var(--s-line);
  font-size:1rem;font-weight:800;color:var(--s-ink);
}
.summary-row.total .val{font-size:1.25rem;font-weight:900}

.coupon-box{margin-top:14px;padding-top:14px;border-top:1px dashed var(--s-line-2)}
.coupon-box label{display:block;font-size:.75rem;font-weight:700;color:var(--s-ink-3);margin-bottom:8px}
.coupon-input-row{display:flex;gap:8px}
.coupon-input-row input{
  flex:1;min-width:0;padding:11px 12px;min-height:44px;
  border:1px solid var(--s-line-2);border-radius:var(--s-r-sm);
  background:var(--s-surface);font:inherit;font-size:.8125rem;
}
.coupon-input-row input:focus{outline:none;border-color:var(--s-teal);box-shadow:0 0 0 3px var(--s-teal-soft)}
.coupon-input-row button{
  min-height:44px;padding:0 14px;border:1px solid var(--s-teal);border-radius:var(--s-r-sm);
  background:var(--s-teal-soft);color:var(--s-teal-dark);font-weight:800;font-size:.8125rem;
  transition:background .16s var(--s-ease),color .16s var(--s-ease);
}
.coupon-input-row button:hover{background:var(--s-teal);color:#fff}
.coupon-message{margin-top:8px;font-size:.75rem;font-weight:700;color:var(--s-green)}
.coupon-message.error{color:var(--s-red)}

.btn-checkout{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;min-height:50px;margin-top:16px;
  border:none;border-radius:var(--s-r);
  background:var(--s-teal);color:#fff;font-size:.9375rem;font-weight:800;
  transition:background .16s var(--s-ease),transform .16s var(--s-ease);
}
.btn-checkout:hover{background:var(--s-teal-dark)}
.btn-checkout:active{transform:translateY(1px)}
.btn-checkout:disabled{background:#EDF1F2;color:var(--s-ink-3);cursor:not-allowed}

/* حالت خالی (سبد / نتیجه جستجو) */
.cart-empty{
  text-align:center;padding:clamp(36px,7vw,72px) 20px;
  background:var(--s-surface)!important;border:1px dashed var(--s-line-2)!important;
  border-radius:var(--s-r-lg)!important;
}
.cart-empty-icon{font-size:2.5rem;margin-bottom:14px;opacity:.65}
.cart-empty h3{font-size:1.125rem;font-weight:800;margin-bottom:8px}
.cart-empty p{font-size:.9375rem;color:var(--s-ink-2);max-width:46ch;margin:0 auto 20px}

/* ══════════════════ تسویه حساب ══════════════════ */
.checkout-layout{display:grid;gap:20px;align-items:start}
@media (min-width:940px){.checkout-layout{grid-template-columns:minmax(0,1fr) 340px}}
.checkout-form-box{
  background:var(--s-surface);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);padding:20px;margin-bottom:18px;box-shadow:var(--s-sh-sm);
}
.checkout-form-box h3{display:flex;align-items:center;gap:10px;font-size:1rem;font-weight:800;margin-bottom:18px}
.step-num{
  width:28px;height:28px;flex:none;border-radius:50%;
  background:var(--s-teal);color:#fff;font-size:.8125rem;font-weight:900;
  display:grid;place-items:center;font-variant-numeric:tabular-nums;
}

.ship-methods,
.payment-methods{display:grid;gap:10px}
.ship-method,
.payment-method{
  display:flex;align-items:center;gap:12px;
  padding:14px;border:1px solid var(--s-line-2);border-radius:var(--s-r);
  background:var(--s-surface);cursor:pointer;
  transition:border-color .16s var(--s-ease),background .16s var(--s-ease);
}
.ship-method:hover,
.payment-method:hover{border-color:var(--s-teal)}
.ship-method:has(input:checked),
.payment-method:has(input:checked){border-color:var(--s-teal);background:var(--s-teal-soft)}
.ship-method input,
.payment-method input{width:18px;height:18px;accent-color:var(--s-teal);flex:none;margin:0}
.ship-method-info{flex:1;min-width:0}
.ship-method-name,
.payment-method-name{font-size:.9375rem;font-weight:800;color:var(--s-ink)}
.ship-method-desc,
.payment-method-desc{font-size:.75rem;color:var(--s-ink-3);margin-top:2px}
.ship-method-cost{font-size:.9375rem;font-weight:900;color:var(--s-teal-dark);font-variant-numeric:tabular-nums;white-space:nowrap}
.payment-method-logo{
  width:44px;height:44px;flex:none;border-radius:var(--s-r-sm);
  background:var(--s-surface-2);border:1px solid var(--s-line);
  display:grid;place-items:center;font-size:1.125rem;
}
.payment-method-logo img{max-width:70%;max-height:70%;object-fit:contain}
.ssl-badge{
  display:inline-flex;align-items:center;gap:7px;margin-top:14px;
  font-size:.75rem;font-weight:700;color:var(--s-green);
  background:var(--s-green-soft);padding:8px 12px;border-radius:var(--s-r-sm);
}

/* ══════════════════ حساب کاربری ══════════════════ */
.account-layout{display:grid;gap:20px;align-items:start}
@media (min-width:940px){.account-layout{grid-template-columns:262px minmax(0,1fr)}}
.account-sidebar{
  background:var(--s-surface);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);padding:16px;box-shadow:var(--s-sh-sm);
}
@media (min-width:940px){.account-sidebar{position:sticky;top:92px}}
.account-user-box{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--s-line);margin-bottom:12px}
.account-avatar{width:44px;height:44px;font-size:1rem}
.account-user-name{font-size:.9375rem;font-weight:800;line-height:1.5}
.account-user-mobile{font-size:.75rem;color:var(--s-ink-3);font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
.account-tabs{display:flex;flex-direction:column;gap:2px}
.account-tab{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:12px;border-radius:var(--s-r-sm);border:none;background:none;
  color:var(--s-ink-2);font-size:.875rem;font-weight:700;text-align:start;
  transition:background .16s var(--s-ease),color .16s var(--s-ease);
}
.account-tab:hover{background:var(--s-surface-2);color:var(--s-ink)}
.account-tab.active{background:var(--s-teal-soft);color:var(--s-teal-dark)}
.account-tab.logout{color:var(--s-red);margin-top:8px;border-top:1px solid var(--s-line);border-radius:0}
.account-tab.logout:hover{background:var(--s-red-soft)}
.account-panel{
  display:none;background:var(--s-surface);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);padding:20px;box-shadow:var(--s-sh-sm);
}
.account-panel.active{display:block;animation:fadeUp .34s var(--s-ease)}
.account-panel h2,
.account-panel h3{font-size:1rem;font-weight:800;margin-bottom:16px}

.order-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;
  padding:14px 0;border-top:1px solid var(--s-line);
}
.order-row:first-of-type{border-top:none}
.order-row-info{display:flex;flex-direction:column;gap:4px;font-size:.8125rem;color:var(--s-ink-3);min-width:0}
.order-row-info b{font-size:.9375rem;color:var(--s-ink);font-variant-numeric:tabular-nums}
.order-row-total{font-size:.9375rem;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.order-status-badge{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 10px;border-radius:99px;font-size:.6875rem;font-weight:800;
  background:var(--s-surface-2);color:var(--s-ink-2);border:1px solid var(--s-line);
}

/* ══════════════════ سفارش موفق ══════════════════ */
.order-success-card{
  max-width:620px;margin:20px auto;text-align:center;
  background:var(--s-surface);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);padding:clamp(24px,5vw,44px);box-shadow:var(--s-sh);
}
.success-icon{
  width:72px;height:72px;margin:0 auto 18px;border-radius:50%;
  background:var(--s-green-soft);color:var(--s-green);
  display:grid;place-items:center;font-size:2rem;
}
.order-success-card h1{font-size:1.375rem;font-weight:900;margin-bottom:10px}
.order-success-card p{font-size:.9375rem;color:var(--s-ink-2);line-height:1.9;margin-bottom:12px}
.order-number-box{
  display:inline-flex;flex-direction:column;gap:4px;
  padding:14px 22px;margin:14px 0 20px;
  background:var(--s-surface-2);border:1px dashed var(--s-line-2);border-radius:var(--s-r);
}
.order-number-box span{font-size:.75rem;color:var(--s-ink-3)}
.order-number-box b{font-size:1.25rem;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:.03em}

/* ══════════════════ موبایل ══════════════════ */
@media (max-width:999px){
  .shop-filters{
    position:fixed;inset:0;z-index:1200;max-height:none;border-radius:0;
    overflow:auto;padding:20px;
    transform:translateX(100%);transition:transform .34s var(--s-ease);
  }
  .shop-filters.open{transform:none;box-shadow:var(--s-sh)}
  .btn-open-filters{display:inline-flex!important}
  .shop-filters-close{display:grid;place-items:center}
}
@media (max-width:640px){
  .products-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
  .product-card{padding:10px 10px 12px}
  .product-card-title{font-size:.8125rem}
  .price-current{font-size:.9375rem}
  .product-card-actions .btn-quick-view{display:none}
  .gallery-thumbs{grid-template-columns:repeat(auto-fill,minmax(56px,1fr))}
  .product-buy-row{flex-direction:column}
  .btn-add-cart-large{width:100%;min-width:0}
  .qty-selector{width:100%;justify-content:space-between}
  .btn-wishlist-large{width:100%}
  .cart-item{grid-template-columns:72px minmax(0,1fr);row-gap:10px}
  .cart-item-img{width:72px;height:72px}
  .cart-item-actions{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}
  .specs-table th{width:44%}
  .product-tabs-nav button{padding:13px;font-size:.8125rem}
  .reviews-avg{border-inline-end:none;padding-inline-end:0}
  .order-row{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  .shop-page-wrap *{animation:none!important;transition-duration:.01ms!important}
}

/* ══════════════════ لایه تاریک پشت فیلتر موبایل (shop.js) ══════════════════ */
.shop-filters-overlay{
  position:fixed;inset:0;z-index:1199;
  background:rgba(10,22,40,.45);
  opacity:0;visibility:hidden;
  transition:opacity .28s cubic-bezier(.16,1,.3,1),visibility .28s;
}
.shop-filters-overlay.open{opacity:1;visibility:visible}

/* ═══════════════════════════════════════════════════════════════════════
   v4 — اجزای فروشگاه حرفه‌ای (نوار جست‌وجو، مگامنو، بنر، ریل، ...)
   ═══════════════════════════════════════════════════════════════════════ */

/* ══════════════════ نوار اختصاصی فروشگاه ══════════════════ */
.shopbar{
  --s-teal:#0D7377;--s-teal-dark:#0A5A5D;--s-teal-soft:#E7F2F2;
  --s-ink:#0A1628;--s-ink-2:#4A5A6B;--s-ink-3:#7B8896;
  --s-line:#E3E9EB;--s-line-2:#CFD8DC;--s-surface:#fff;--s-surface-2:#F7FAFA;
  --s-amber:#E6C200;--s-red:#D0342C;
  --s-r-sm:10px;--s-r:14px;
  --s-ease:cubic-bezier(.16,1,.3,1);
  position:relative;z-index:60;
  margin-top:64px; /* ⭐ رفع تداخل: فاصله گرفتن از نوبار فیکس شده ۶۴ پیکسلی */
  background:var(--s-surface);
  border-bottom:1px solid var(--s-line);
  font-family:inherit;
}
.shopbar *,.shopbar *::before,.shopbar *::after{box-sizing:border-box}
.shopbar a{text-decoration:none;color:inherit}
.shopbar button{font:inherit;cursor:pointer;border:none;background:none}
.shopbar :focus-visible{outline:2.5px solid var(--s-teal);outline-offset:2px;border-radius:6px}

.shopbar-notice{background:#0A1628;color:#D6E2E4;font-size:.75rem}
.shopbar-notice .shop-container{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:36px}
.shopbar-notice b{color:#fff;font-weight:800}
.shopbar-notice .dot-sep{color:#4A5A6B}

.shopbar-main{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;gap:16px;padding-block:12px;
}
.shopbar-logo{display:flex;align-items:center;gap:9px}
.shopbar-logo-mark{
  width:38px;height:38px;flex:none;border-radius:11px;
  background:var(--s-teal);color:#fff;font-weight:900;font-size:.9375rem;
  display:grid;place-items:center;letter-spacing:.02em;
}
.shopbar-logo-text{display:none;font-size:.6875rem;color:var(--s-ink-3);line-height:1.35}
.shopbar-logo-text b{display:block;font-size:1rem;font-weight:900;color:var(--s-ink);letter-spacing:-.02em}
@media (min-width:560px){.shopbar-logo-text{display:block}}

/* جست‌وجو */
.shopbar-search{
  position:relative;display:flex;align-items:center;gap:6px;
  border:1.5px solid var(--s-line-2);border-radius:var(--s-r);
  background:var(--s-surface-2);padding-inline-start:12px;
  transition:border-color .16s var(--s-ease),background .16s var(--s-ease),box-shadow .16s var(--s-ease);
}
.shopbar-search:focus-within{border-color:var(--s-teal);background:var(--s-surface);box-shadow:0 0 0 3px var(--s-teal-soft)}
.shopbar-search-icon{color:var(--s-ink-3);font-size:.95rem;flex:none}
.shopbar-search input{
  flex:1;min-width:0;border:none;background:none;outline:none;
  padding:12px 6px;font:inherit;font-size:.875rem;color:var(--s-ink);
}
.shopbar-search input::placeholder{color:var(--s-ink-3)}
.shopbar-search input::-webkit-search-cancel-button{display:none}
.shopbar-search-clear{
  width:28px;height:28px;flex:none;border-radius:50%;
  color:var(--s-ink-3);font-size:.75rem;display:grid;place-items:center;
  transition:background .14s var(--s-ease),color .14s var(--s-ease);
}
.shopbar-search-clear:hover{background:var(--s-line);color:var(--s-ink)}
.shopbar-search-btn{
  flex:none;margin:4px;min-height:40px;padding:0 18px;border-radius:var(--s-r-sm);
  background:var(--s-teal);color:#fff;font-weight:800;font-size:.8125rem;
  transition:background .16s var(--s-ease);
}
.shopbar-search-btn:hover{background:var(--s-teal-dark)}
@media (max-width:559px){.shopbar-search-btn{padding:0 12px;font-size:.75rem}}

/* پیشنهاد زنده */
.shop-suggest{
  position:absolute;top:calc(100% + 8px);inset-inline:0;z-index:200;
  background:var(--s-surface);border:1px solid var(--s-line);border-radius:var(--s-r);
  box-shadow:0 4px 12px rgba(10,22,40,.06),0 22px 48px rgba(10,22,40,.12);
  max-height:min(72vh,520px);overflow:auto;padding:8px;
  animation:zaSuggestIn .22s cubic-bezier(.16,1,.3,1);
}
@keyframes zaSuggestIn{from{opacity:0;transform:translateY(-6px)}}
.shop-suggest-group{padding-block:4px}
.shop-suggest-group + .shop-suggest-group{border-top:1px solid var(--s-line);margin-top:6px;padding-top:8px}
.shop-suggest-label{
  display:block;padding:4px 10px 8px;font-size:.6875rem;font-weight:800;
  letter-spacing:.06em;color:var(--s-ink-3);
}
.shop-suggest-cat{
  display:block;padding:10px;border-radius:var(--s-r-sm);
  font-size:.875rem;font-weight:700;color:var(--s-ink-2);
  transition:background .14s var(--s-ease),color .14s var(--s-ease);
}
.shop-suggest-cat:hover,.shop-suggest-cat:focus-visible{background:var(--s-teal-soft);color:var(--s-teal-dark)}
.shop-suggest-item{
  display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center;
  padding:9px 10px;border-radius:var(--s-r-sm);
  transition:background .14s var(--s-ease);
}
.shop-suggest-item:hover,.shop-suggest-item:focus-visible{background:var(--s-surface-2)}
.ssi-img{
  width:44px;height:44px;border-radius:var(--s-r-sm);
  background:var(--s-surface-2);border:1px solid var(--s-line);
  display:grid;place-items:center;overflow:hidden;font-size:1rem;
}
.ssi-img img{width:100%;height:100%;object-fit:contain;padding:3px}
.ssi-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.ssi-body b{
  font-size:.8125rem;font-weight:700;color:var(--s-ink);line-height:1.55;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ssi-body em{font-style:normal;font-size:.6875rem;color:var(--s-ink-3);unicode-bidi:isolate}
.ssi-price{font-size:.75rem;font-weight:800;color:var(--s-teal-dark);white-space:nowrap;font-variant-numeric:tabular-nums}
.shop-suggest-all{
  display:block;margin-top:6px;padding:11px;border-top:1px solid var(--s-line);
  text-align:center;font-size:.8125rem;font-weight:800;color:var(--s-teal);
}
.shop-suggest-all:hover{background:var(--s-teal-soft)}
.shop-suggest-empty{padding:22px 14px;text-align:center;font-size:.8125rem;color:var(--s-ink-2);line-height:1.9}
.shop-suggest-empty a{color:var(--s-teal);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.shop-suggest-loading{display:flex;gap:5px;justify-content:center;padding:22px}
.shop-suggest-loading span{
  width:7px;height:7px;border-radius:50%;background:var(--s-line-2);
  animation:zaDot 1s infinite ease-in-out;
}
.shop-suggest-loading span:nth-child(2){animation-delay:.12s}
.shop-suggest-loading span:nth-child(3){animation-delay:.24s}
@keyframes zaDot{0%,100%{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}

/* اکشن‌های نوار */
.shopbar-actions{display:flex;align-items:center;gap:6px}
.shopbar-action{
  position:relative;display:flex;align-items:center;gap:7px;
  min-height:44px;padding:0 12px;border-radius:var(--s-r-sm);
  border:1px solid transparent;font-size:.8125rem;font-weight:700;color:var(--s-ink-2);
  transition:background .16s var(--s-ease),border-color .16s var(--s-ease),color .16s var(--s-ease);
}
.shopbar-action:hover{background:var(--s-surface-2);border-color:var(--s-line);color:var(--s-ink)}
.shopbar-action-icon{font-size:1.05rem}
.shopbar-action-label{display:none}
@media (min-width:900px){.shopbar-action-label{display:inline}}
.shopbar-cart{border-color:var(--s-line);background:var(--s-surface-2)}
.cart-count-badge{
  min-width:20px;height:20px;padding:0 6px;border-radius:10px;
  background:var(--s-red);color:#fff;font-size:.6875rem;font-weight:800;
  display:grid;place-items:center;font-variant-numeric:tabular-nums;
}
.cart-count-badge.is-empty{background:var(--s-line-2);color:var(--s-ink-3)}

/* ردیف دسته‌ها */
.shopbar-cats{border-top:1px solid var(--s-line);background:var(--s-surface)}
.shopbar-cats-row{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}
.shopbar-cats-row::-webkit-scrollbar{display:none}
.shopbar-cats-spacer{flex:1;min-width:8px}
.shopbar-cats-toggle{
  display:inline-flex;align-items:center;gap:9px;flex:none;
  padding:12px 14px;font-size:.8125rem;font-weight:800;color:var(--s-ink);
  border-inline-end:1px solid var(--s-line);margin-inline-end:6px;white-space:nowrap;
}
.burger-lines{display:inline-flex;flex-direction:column;gap:3px}
.burger-lines i{display:block;width:15px;height:2px;border-radius:2px;background:var(--s-teal);transition:transform .28s var(--s-ease),opacity .2s}
.shopbar-cats-toggle.open .burger-lines i:nth-child(1){transform:translateY(5px) rotate(45deg)}
.shopbar-cats-toggle.open .burger-lines i:nth-child(2){opacity:0}
.shopbar-cats-toggle.open .burger-lines i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
.shopbar-cat{
  flex:none;padding:12px 12px;font-size:.8125rem;font-weight:600;color:var(--s-ink-2);
  border-bottom:2px solid transparent;white-space:nowrap;
  transition:color .16s var(--s-ease),border-color .16s var(--s-ease);
}
.shopbar-cat:hover{color:var(--s-ink)}
.shopbar-cat.active{color:var(--s-teal);border-color:var(--s-teal);font-weight:800}
.shopbar-cat-deal{color:var(--s-red);font-weight:800}

/* مگامنو */
.shop-megamenu{
  position:absolute;inset-inline:0;top:100%;z-index:190;
  background:var(--s-surface);border-top:1px solid var(--s-line);
  border-bottom:1px solid var(--s-line);
  box-shadow:0 24px 48px rgba(10,22,40,.1);
  animation:zaSuggestIn .24s cubic-bezier(.16,1,.3,1);
}
.shop-megamenu-inner{display:grid;gap:26px;padding-block:22px}
@media (min-width:800px){.shop-megamenu-inner{grid-template-columns:1.2fr 1fr 1fr}}
.shop-megamenu-col h4{
  margin:0 0 12px;font-size:.6875rem;font-weight:800;letter-spacing:.08em;
  color:var(--s-ink-3);text-transform:uppercase;
}
.shop-megamenu-col ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
@media (min-width:800px){.shop-megamenu-col ul{grid-template-columns:1fr 1fr}}
.shop-megamenu-col a{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:9px 10px;border-radius:var(--s-r-sm);
  font-size:.8125rem;font-weight:600;color:var(--s-ink-2);
  transition:background .14s var(--s-ease),color .14s var(--s-ease);
}
.shop-megamenu-col a:hover{background:var(--s-teal-soft);color:var(--s-teal-dark)}
.shop-megamenu-col a span{font-size:.6875rem;color:var(--s-ink-3);font-variant-numeric:tabular-nums}
.shop-megamenu-brands{grid-template-columns:1fr 1fr}
.shop-megamenu-none{display:block;padding:9px 10px;font-size:.8125rem;color:var(--s-ink-3)}
.shop-megamenu-help{
  background:var(--s-surface-2);border:1px solid var(--s-line);
  border-radius:var(--s-r);padding:16px;
}
.shop-megamenu-help p{margin:0;font-size:.8125rem;color:var(--s-ink-2);line-height:1.9}
.shop-megamenu-help .btn-apply-filters{display:block;text-align:center;line-height:46px;padding:0}

/* ══════════════════ بنر صفحه اصلی ══════════════════ */
.shop-hero{margin-bottom:26px}
.shop-hero-slider{position:relative;border-radius:var(--s-r-lg);overflow:hidden;box-shadow:var(--s-sh-sm)}
.shop-hero-track{position:relative;min-height:clamp(190px,26vw,320px)}
.shop-hero-slide{
  position:absolute;inset:0;display:flex;align-items:center;
  padding:clamp(20px,4vw,44px);
  opacity:0;visibility:hidden;transition:opacity .5s var(--s-ease),visibility .5s;
}
.shop-hero-slide.active{opacity:1;visibility:visible}
.shop-hero-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shop-hero-slide.tone-teal{background:linear-gradient(120deg,#0D7377,#128286 62%,#17A2A6)}
.shop-hero-slide.tone-navy{background:linear-gradient(120deg,#0A1628,#132D4C 60%,#1C4270)}
.shop-hero-slide.tone-amber{background:linear-gradient(120deg,#8A7400,#C2A200 60%,#E6C200)}
.shop-hero-copy{position:relative;z-index:2;max-width:56ch;color:#fff}
.shop-hero-slide img ~ .shop-hero-copy{
  background:rgba(10,22,40,.62);border-radius:var(--s-r);padding:18px 20px;
}
.shop-hero-badge{
  display:inline-block;margin-bottom:10px;padding:5px 11px;border-radius:99px;
  background:rgba(255,255,255,.18);color:#fff;
  font-size:.6875rem;font-weight:800;letter-spacing:.05em;
}
.shop-hero-copy h2{font-size:clamp(1.25rem,3.2vw,2.1rem);font-weight:900;line-height:1.45;color:#fff;margin:0 0 10px}
.shop-hero-copy p{font-size:.9375rem;line-height:1.9;color:rgba(255,255,255,.9);margin:0}
.shop-hero-cta{
  display:inline-block;margin-top:16px;padding:11px 20px;border-radius:var(--s-r);
  background:#fff;color:#0A1628;font-size:.875rem;font-weight:800;
  transition:transform .16s var(--s-ease);
}
.shop-hero-slide:hover .shop-hero-cta{transform:translateX(-3px)}
.shop-hero-dots{position:absolute;inset-inline-start:0;inset-inline-end:0;bottom:14px;display:flex;justify-content:center;gap:7px;z-index:3}
.shop-hero-dots button{
  width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.45);
  transition:width .3s var(--s-ease),background .2s;
}
.shop-hero-dots button.active{width:26px;border-radius:99px;background:#fff}

.shop-hero-fallback{
  border:1px solid var(--s-line);border-radius:var(--s-r-lg);
  background:linear-gradient(120deg,#0D7377,#128286 60%,#17A2A6);
  padding:clamp(22px,4vw,44px);color:#fff;
}
.shop-hero-fallback .shop-hero-copy{max-width:62ch}
.shop-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.shop-hero-actions .btn-apply-filters{background:#fff;color:#0A5A5D;line-height:46px}
.shop-hero-actions .btn-apply-filters:hover{background:#EAF6F6}
.shop-hero-actions .btn-clear-filters{border-color:rgba(255,255,255,.5);background:transparent;color:#fff;line-height:44px}
.shop-hero-actions .btn-clear-filters:hover{background:rgba(255,255,255,.14);border-color:#fff;color:#fff}
.shop-hero-hint{
  margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.22);
  font-size:.75rem;color:rgba(255,255,255,.82);
}
.shop-hero-hint b{color:#fff}

/* ══════════════════ سرتیتر بخش‌ها ══════════════════ */
.shop-section-head{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin-bottom:16px;
}
.shop-section-head h2{font-size:1.0625rem;font-weight:900;letter-spacing:-.01em}
.shop-section-head a{font-size:.8125rem;font-weight:800;color:var(--s-teal)}
.shop-section-head a:hover{text-decoration:underline;text-underline-offset:3px}

/* ══════════════════ کاشی دسته‌بندی ══════════════════ */
.shop-catgrid-wrap{margin-bottom:30px}
.shop-catgrid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));
  gap:1px;background:var(--s-line);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);overflow:hidden;
}
.shop-cattile{
  display:flex;flex-direction:column;align-items:center;gap:7px;
  padding:20px 12px;background:var(--s-surface);text-align:center;
  transition:background .18s var(--s-ease);
}
.shop-cattile:hover{background:var(--s-teal-soft)}
.shop-cattile-icon{
  width:52px;height:52px;border-radius:16px;display:grid;place-items:center;
  background:var(--s-surface-2);font-size:1.4rem;
  transition:background .18s var(--s-ease),transform .18s var(--s-ease);
}
.shop-cattile:hover .shop-cattile-icon{background:#fff;transform:translateY(-2px)}
.shop-cattile-name{font-size:.8125rem;font-weight:700;color:var(--s-ink);line-height:1.55}
.shop-cattile-count{font-size:.6875rem;color:var(--s-ink-3);font-variant-numeric:tabular-nums}

/* ══════════════════ ریل افقی محصولات ══════════════════ */
.product-rail{
  background:var(--s-surface);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);padding:18px 0 8px;margin-bottom:26px;
  box-shadow:var(--s-sh-sm);overflow:hidden;
}
.product-rail-deal{
  background:linear-gradient(180deg,#B3271F,#8E1E18);border-color:#8E1E18;
}
.product-rail-head{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding-inline:18px;padding-bottom:14px;
}
.product-rail-title h2{font-size:1.0625rem;font-weight:900}
.product-rail-title p{font-size:.75rem;color:var(--s-ink-3);margin-top:3px}
.product-rail-deal .product-rail-title h2{color:#fff}
.product-rail-deal .product-rail-title p{color:rgba(255,255,255,.78)}
.product-rail-tools{display:flex;align-items:center;gap:7px;margin-inline-start:auto}
.rail-nav{
  width:36px;height:36px;border-radius:50%;
  border:1px solid var(--s-line);background:var(--s-surface);
  color:var(--s-ink-2);font-size:.8125rem;display:grid;place-items:center;
  transition:color .16s var(--s-ease),border-color .16s var(--s-ease);
}
.rail-nav:hover{color:var(--s-teal);border-color:var(--s-teal)}
.rail-all{
  padding:8px 13px;border-radius:var(--s-r-sm);
  background:var(--s-surface-2);border:1px solid var(--s-line);
  font-size:.75rem;font-weight:800;color:var(--s-ink-2);
  transition:background .16s var(--s-ease),color .16s var(--s-ease);
}
.rail-all:hover{background:var(--s-teal);border-color:var(--s-teal);color:#fff}
.product-rail-deal .rail-nav,
.product-rail-deal .rail-all{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3);color:#fff}
.product-rail-deal .rail-nav:hover,
.product-rail-deal .rail-all:hover{background:#fff;color:#B3271F;border-color:#fff}

.rail-countdown{display:flex;align-items:center;gap:9px}
.rail-countdown-label{font-size:.6875rem;font-weight:800;color:var(--s-ink-3)}
.product-rail-deal .rail-countdown-label{color:rgba(255,255,255,.85)}
.rail-countdown-clock{display:flex;align-items:center;gap:3px;font-size:.8125rem;font-weight:900;color:var(--s-ink)}
.rail-countdown-clock b{
  min-width:28px;padding:4px 2px;border-radius:7px;text-align:center;
  background:var(--s-surface-2);border:1px solid var(--s-line);
  font-variant-numeric:tabular-nums;
}
.product-rail-deal .rail-countdown-clock{color:#fff}
.product-rail-deal .rail-countdown-clock b{background:rgba(0,0,0,.24);border-color:rgba(255,255,255,.24)}

.product-rail-track{
  display:flex;gap:0;overflow-x:auto;scroll-snap-type:x proximity;
  scrollbar-width:none;padding-inline:18px 6px;
}
.product-rail-track::-webkit-scrollbar{display:none}
.product-rail-cell{
  flex:0 0 auto;width:212px;scroll-snap-align:start;
  border-inline-end:1px solid var(--s-line);
}
.product-rail-cell:last-child{border-inline-end:none}
.product-rail-cell .product-card{background:transparent;height:100%}
.product-rail-cell .product-card:hover{background:transparent}
.product-rail-deal .product-rail-cell{border-color:rgba(255,255,255,.18)}
.product-rail-deal .product-rail-cell .product-card{background:#fff;border-radius:var(--s-r);margin:0 6px 12px}
@media (max-width:640px){.product-rail-cell{width:172px}}

/* ══════════════════ نوار برندها ══════════════════ */
.shop-brandstrip{margin-bottom:30px}
.shop-brandstrip-row{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.shop-brandstrip-row::-webkit-scrollbar{display:none}
.shop-brandchip{
  flex:0 0 auto;display:flex;flex-direction:column;gap:3px;
  min-width:118px;padding:14px 16px;
  background:var(--s-surface);border:1px solid var(--s-line);border-radius:var(--s-r);
  transition:border-color .16s var(--s-ease),transform .16s var(--s-ease);
}
.shop-brandchip:hover{border-color:var(--s-teal);transform:translateY(-2px)}
.shop-brandchip b{font-size:.875rem;font-weight:800;color:var(--s-ink)}
.shop-brandchip span{font-size:.6875rem;color:var(--s-ink-3)}

/* ══════════════════ نوار اطمینان ══════════════════ */
.shop-assure{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(216px,1fr));
  gap:1px;background:var(--s-line);border:1px solid var(--s-line);
  border-radius:var(--s-r-lg);overflow:hidden;margin-bottom:26px;
}
.shop-assure-item{display:flex;gap:12px;padding:18px 16px;background:var(--s-surface)}
.shop-assure-item > span{
  width:38px;height:38px;flex:none;border-radius:12px;
  background:var(--s-teal-soft);display:grid;place-items:center;font-size:1.05rem;
}
.shop-assure-item b{display:block;font-size:.875rem;font-weight:800;margin-bottom:3px}
.shop-assure-item p{font-size:.75rem;color:var(--s-ink-2);line-height:1.8;margin:0}

.shop-newest{margin-bottom:12px}

/* ══════════════════ چیپ فیلترهای فعال ══════════════════ */
.active-filters{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:12px 14px;margin-bottom:16px;
  background:var(--s-surface);border:1px solid var(--s-line);border-radius:var(--s-r);
}
.active-filters-label{font-size:.75rem;font-weight:800;color:var(--s-ink-3)}
.filter-chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 11px;border-radius:99px;
  background:var(--s-teal-soft);color:var(--s-teal-dark);
  font-size:.75rem;font-weight:800;
}
.filter-chip a{color:inherit;opacity:.6;font-size:.8125rem;line-height:1}
.filter-chip a:hover{opacity:1}
.active-filters-clear{
  margin-inline-start:auto;font-size:.75rem;font-weight:800;color:var(--s-red);
  text-decoration:underline;text-underline-offset:3px;
}

/* ══════════════════ نوار خرید چسبان (موبایل) ══════════════════ */
.sticky-buy{
  position:fixed;inset-inline:0;bottom:0;z-index:1150;
  display:none;align-items:center;gap:12px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.97);border-top:1px solid var(--s-line-2);
  box-shadow:0 -8px 26px rgba(10,22,40,.1);
  transform:translateY(110%);transition:transform .34s var(--s-ease);
}
.sticky-buy.show{transform:none}
.sticky-buy-price{display:flex;flex-direction:column;gap:2px;min-width:0}
.sticky-buy-price span{font-size:.625rem;color:var(--s-ink-3)}
.sticky-buy-price b{font-size:1rem;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.sticky-buy .btn-add-cart-large{flex:1;min-width:0;min-height:46px;font-size:.875rem}
@media (max-width:899px){
  .sticky-buy{display:flex}
  body:has(.sticky-buy) .shop-mobile-nav{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
}

/* ══════════════════ نوار پایین موبایل ══════════════════ */
.shop-mobile-nav{
  position:fixed;inset-inline:0;bottom:0;z-index:1140;
  display:none;grid-template-columns:repeat(4,1fr);
  background:rgba(255,255,255,.97);border-top:1px solid #E3E9EB;
  padding-bottom:env(safe-area-inset-bottom);
  box-shadow:0 -6px 20px rgba(10,22,40,.07);
}
.smn-item{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  min-height:58px;border:none;background:none;
  font:inherit;font-size:.625rem;font-weight:700;color:#7B8896;text-decoration:none;
  transition:color .16s cubic-bezier(.16,1,.3,1);
}
.smn-item:hover,.smn-item.active{color:#0D7377}
.smn-icon{position:relative;font-size:1.1rem;line-height:1}
.smn-badge{
  position:absolute;top:-5px;inset-inline-start:-9px;
  min-width:17px;height:17px;padding:0 4px;border-radius:9px;
  background:#D0342C;color:#fff;font-size:.5625rem;font-weight:800;font-style:normal;
  display:grid;place-items:center;font-variant-numeric:tabular-nums;
}
@media (max-width:899px){
  .shop-mobile-nav{display:grid}
  .shop-page-wrap{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
}

/* ══════════════════ جعبه تحویل / فروشنده ══════════════════ */
.seller-box{
  display:grid;gap:10px;
  border:1px solid var(--s-line);border-radius:var(--s-r);
  background:var(--s-surface);padding:14px;
}
.seller-row{display:flex;align-items:center;gap:10px;font-size:.8125rem;color:var(--s-ink-2)}
.seller-row > span:first-child{
  width:30px;height:30px;flex:none;border-radius:9px;
  background:var(--s-surface-2);display:grid;place-items:center;font-size:.9rem;
}
.seller-row b{color:var(--s-ink);font-weight:800}
.seller-row em{font-style:normal;margin-inline-start:auto;font-size:.75rem;color:var(--s-ink-3);white-space:nowrap}

/* ═════════════ ZamaniAuto UI/UX Industrial Polish ═════════════ */
.p-badge-stock {
    background: #059669;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
}
.btn-rfq {
    background: #0284c7 !important;
    color: #fff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
}
.btn-rfq:hover {
    background: #0369a1 !important;
}
.shop-content.loading-state {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
    position: relative;
}
.shop-content.loading-state::after {
    content: "در حال بروزرسانی کاتالوگ...";
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 50;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--s-teal);
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════
   ZamaniAuto — Industrial Visual Psychology & Modern UI Theme
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. Header & Trust Banner */
.shopbar-notice {
    background: linear-gradient(90deg, #0b1e36 0%, #0f355c 50%, #0b1e36 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.8125rem;
    padding: 7px 0;
}
.shopbar-notice-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.notice-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.notice-item.highlight-link a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s;
}
.notice-item.highlight-link a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* 2. Modern Hero Section */
.shop-hero-modern {
    position: relative;
    background: linear-gradient(135deg, #091726 0%, #0f2742 60%, #0a3d4a 100%);
    border-radius: 18px;
    padding: 44px 38px;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 20px 45px -15px rgba(10, 41, 68, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.15);
}
.hero-glow-blob {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(20, 184, 166, 0.05) 70%, transparent 100%);
    top: -100px;
    left: -80px;
    filter: blur(50px);
    pointer-events: none;
    animation: blobFloat 8s infinite alternate ease-in-out;
}
@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.15); }
}

.hero-tag-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.shop-hero-badge.pulse {
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8125rem;
    font-weight: 700;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}
.hero-mini-tag {
    font-size: 0.8125rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 12px;
    border-radius: 20px;
}
.hero-main-title {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.35;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: linear-gradient(90deg, #38bdf8 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtext {
    font-size: 1rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 860px;
    margin: 0 0 28px;
}
.shop-hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.btn-hero-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9375rem;
    padding: 13px 26px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
    transition: all 0.2s ease;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.45);
}
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 13px 24px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}
.btn-hero-phone {
    color: #34d399;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px dashed rgba(52, 211, 153, 0.4);
    transition: background 0.15s;
}
.btn-hero-phone:hover {
    background: rgba(52, 211, 153, 0.18);
}

/* 3. Hero Micro-Stats Strip */
.hero-stats-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}
.hero-stat-item {
    display: flex;
    flex-direction: column;
}
.hero-stat-item .stat-num {
    font-size: 1.25rem;
    font-weight: 900;
    color: #38bdf8;
}
.hero-stat-item .stat-lbl {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}
.hero-stat-sep {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.12);
}

/* 4. Category Grid Cards Polish */
.shop-catgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}
.shop-cattile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.shop-cattile:hover {
    transform: translateY(-4px);
    border-color: #0ea5e9;
    box-shadow: 0 12px 24px -8px rgba(14, 165, 233, 0.2);
}
.shop-cattile-icon {
    font-size: 2rem;
    transition: transform 0.25s ease;
}
.shop-cattile:hover .shop-cattile-icon {
    transform: scale(1.18);
}
.shop-cattile-name {
    font-weight: 700;
    font-size: 0.875rem;
}
.shop-cattile-count {
    font-size: 0.6875rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 5. Trust Assurance Cards (چرا از ما) */
.shop-assure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 36px 0;
}
.shop-assure-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.shop-assure-item:hover {
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.shop-assure-item > span {
    font-size: 2rem;
    line-height: 1;
    background: #f0fdfa;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccfbf1;
}
.shop-assure-item b {
    display: block;
    font-size: 0.9375rem;
    color: #0f172a;
    margin-bottom: 4px;
}
.shop-assure-item p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* 6. Product Card Industrial Polish */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
    border-color: #38bdf8;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.1);
}
.product-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    color: #1e293b;
    transition: color 0.15s;
}
.product-card:hover .product-card-title {
    color: #0284c7;
}
.price-current {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
}
.price-unit {
    font-size: 0.75rem;
    color: #64748b;
    margin-right: 4px;
}
