/* پیش‌فرض امن: دارک */
:root {
  --sb-bg: #050b16;
  --sb-bg-alt: #020617;
  --sb-bg-card: rgba(15, 23, 42, 0.9);
  --sb-bg-card-soft: rgba(91, 124, 204, 0.7);
  --sb-border: rgba(148, 163, 184, 0.45);
  --sb-border-soft: rgba(148, 163, 184, 0.25);
  --sb-text-main: #e5e7eb;
  --sb-text-soft: #94a3b8;
  --sb-text-muted: #dbe1ed;
  --sb-accent-blue: #38bdf8;
  --sb-accent-green: #22c55e;
  --sb-shadow-card: 0 20px 45px rgba(0,0,0,0.9);
}

/* موجودهای فعلی‌ات برای html.theme-light و html.theme-dark همان‌طور بمانند */


/* ============================
   فونت Sahel
   فایل‌های فونت را در assets/fonts بگذار:
   Sahel.woff2 , Sahel.woff
============================ */
@font-face {
  font-family: "Sahel";
  src: url("../fonts/Sahel.woff2") format("woff2"),
       url("../fonts/Sahel.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================
   Reset & Base
============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

/* کارت تخفیف (اگر قبلاً نداری) */
.sb-product-card.discount,
.sb-product-card-full.discount{
  border-color: rgba(46,255,145,.9);
  box-shadow: 0 0 18px rgba(46,255,145,.25);
  animation: sb-discount-pulse 2.8s ease-in-out infinite;
}
@keyframes sb-discount-pulse{
  0%{ box-shadow: 0 0 10px rgba(46,255,145,.25), 0 0 20px rgba(46,255,145,.15); }
  50%{ box-shadow: 0 0 24px rgba(46,255,145,.45), 0 0 45px rgba(46,255,145,.2); }
  100%{ box-shadow: 0 0 10px rgba(46,255,145,.25), 0 0 20px rgba(46,255,145,.15); }
}


/* تم پیش‌فرض: تاریک */
html.theme-dark {
  --sb-bg: #050b16;
  --sb-bg-alt: #020617;
  --sb-bg-card: rgba(15, 23, 42, 0.9);
  --sb-bg-card-soft: rgba(65, 100, 182, 0.7);
  --sb-border: rgba(148, 163, 184, 0.45);
  --sb-border-soft: rgba(148, 163, 184, 0.25);
  --sb-text-main: #ffffff;
  --sb-text-soft: #d6dce5;
  --sb-text-muted: #dbe1ed;
  --sb-accent-blue: #38bdf8;
  --sb-accent-green: #22c55e;
  --sb-shadow-card: 0 20px 45px rgba(0, 0, 0, 0.9);
}

/* تم روشن‌تر */
html.theme-light {
  --sb-bg: #f3f4f6;
  --sb-bg-alt: #e5e7eb;
  --sb-bg-card: rgba(255, 255, 255, 0.9);
  --sb-bg-card-soft: rgba(255, 255, 255, 0.8);
  --sb-border: rgba(148, 163, 184, 0.6);
  --sb-border-soft: rgba(148, 163, 184, 0.35);
  --sb-text-main: #0f172a;
  --sb-text-soft: #4b5563;
  --sb-text-muted: #6b7280;
  --sb-accent-blue: #0284c7;
  --sb-accent-green: #16a34a;
  --sb-shadow-card: 0 18px 36px rgba(15, 23, 42, 0.2);
}

body {
  font-family: "Sahel", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;

  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.22), transparent 60%),
    linear-gradient(135deg, var(--sb-bg-alt), var(--sb-bg));

  background-size: 200% 200%;     /* لازم برای حرکت نرم */
  animation: sb-bg-move 12s ease-in-out infinite; /* هر 12 ثانیه یک چرخه */

  color: var(--sb-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@keyframes sb-bg-move {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@-webkit-keyframes sb-bg-move {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* لینک ها */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* کانتینر اصلی */
.sb-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.4rem 2.5rem;
}

/* ============================
   دکمه‌ها و عناصر مشترک
============================ */
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  cursor: pointer;
  transition: 0.18s ease-out;
  background: none;
  color: var(--sb-text-main);
  white-space: nowrap;
}

.sb-btn-primary {
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.35));
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.6);
}

.sb-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.8);
}

.sb-btn-ghost {
  background: var(--sb-bg-card-soft);
  border-color: var(--sb-border);
  color: var(--sb-text-soft);
}

.sb-btn-ghost:hover {
  border-color: var(--sb-accent-blue);
  color: var(--sb-text-main);
}

.sb-btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

/* لینک نرم */
.sb-link-soft {
  font-size: 0.8rem;
  color: var(--sb-accent-blue);
}
.sb-link-soft:hover {
  text-decoration: underline;
}

/* آیکون دایره‌ای */
.sb-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.18s ease-out;
}
.sb-icon-circle:hover {
  border-color: var(--sb-accent-blue);
}

.sb-icon-circle-sm {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}

/* ============================
   Header
============================ */
.sb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.6));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sb-border);
}

.sb-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* لوگو */
.sb-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sb-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.8), rgba(8, 47, 73, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #e0f2fe;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

.sb-logo-text {
  display: flex;
  flex-direction: column;
}

.sb-logo-text span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.sb-logo-text small {
  font-size: 0.7rem;
  color: var(--sb-text-muted);
}

/* ناوبری */
.sb-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.82rem;
  color: var(--sb-text-soft);
}

.sb-nav a {
  position: relative;
  padding-bottom: 0.15rem;
}

.sb-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.9), rgba(34, 197, 94, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.16s ease-out;
}

.sb-nav a:hover {
  color: var(--sb-text-main);
}

.sb-nav a:hover::after {
  transform: scaleX(1);
}

.sb-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* دکمه منوی موبایل */
.sb-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sb-text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

/* سوییچر تم */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.18s ease-out;
}
.theme-toggle:hover {
  border-color: var(--sb-accent-green);
}

/* ============================
   HERO
============================ */
.sb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 1.8rem;
  align-items: center;
}

.sb-hero-left {
  padding: 1.6rem 1.5rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.9);
  border: 1px solid var(--sb-border-soft);
  box-shadow: var(--sb-shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sb-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--sb-text-soft);
  margin-bottom: 0.7rem;
}

.sb-online-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--sb-accent-green);
  box-shadow:
    0 0 10px rgba(34, 197, 94, 1),
    0 0 20px rgba(34, 197, 94, 0.9);
  animation: sb-pulse 1.8s infinite ease-out;
}

@keyframes sb-pulse {
  0%   { transform: scale(0.95); opacity: 1; }
  50%  { transform: scale(1.15); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 1; }
}

.sb-hero-title {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.sb-hero-title span {
  background: linear-gradient(120deg, #7dd3fc, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.sb-hero-sub {
  font-size: 0.95rem;
  color: var(--sb-text-soft);
  margin-bottom: 1.1rem;
  max-width: 32rem;
}

.sb-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.sb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: var(--sb-text-muted);
}

.sb-hero-meta span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
}

/* HERO Slider */
.sb-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.sb-hero-slider {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  border: 1px solid var(--sb-border);
  overflow: hidden;
  box-shadow: var(--sb-shadow-card);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.98));
}

.sb-hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.sb-hero-slider img.is-active {
  opacity: 1;
  transform: scale(1);
}

.sb-hero-slider-dots {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.sb-hero-slider-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: var(--sb-border-soft);
  cursor: pointer;
  transition: 0.16s ease-out;
}
.sb-hero-slider-dots button.is-active {
  width: 18px;
  background: var(--sb-accent-blue);
}

/* ============================
   Section عمومی
============================ */
.sb-section {
  margin-top: 2.4rem;
}

.sb-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sb-section-header h2 {
  font-size: 1rem;
}

.sb-section-header a {
  font-size: 0.8rem;
}

/* ============================
   Device Cards
============================ */
.sb-device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sb-device-card {
  border-radius: 22px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 0.9rem 0.9rem 0.8rem;
  font-size: 0.8rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.sb-device-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 1);
  border-color: var(--sb-accent-blue);
}

.sb-device-card.offline {
  border-color: rgba(248, 113, 113, 0.85);
}

.sb-device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.sb-device-name {
  font-size: 0.9rem;
}

.sb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: var(--sb-bg-card-soft);
  border: 1px solid var(--sb-border);
}
.sb-status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}
.sb-status-pill.online .dot {
  background: var(--sb-accent-green);
  box-shadow:
    0 0 8px rgba(34, 197, 94, 1),
    0 0 14px rgba(34, 197, 94, 0.9);
  animation: sb-pulse 1.7s infinite ease-out;
}
.sb-status-pill.offline {
  border-color: rgba(248, 113, 113, 0.85);
  color: #fecaca;
}
.sb-status-pill.offline .dot {
  background: #f97373;
  box-shadow:
    0 0 8px rgba(248, 113, 113, 1),
    0 0 14px rgba(248, 113, 113, 0.9);
}

.sb-device-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  color: var(--sb-text-soft);
}

.sb-device-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.sb-device-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  background: var(--sb-bg-card-soft);
  border-radius: 12px;
  padding: 0.3rem 0.4rem;
}
.sb-device-metrics span {
  color: var(--sb-text-soft);
}
.sb-device-metrics strong {
  font-weight: 500;
}

.sb-device-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--sb-text-soft);
}

/* ============================
   Product Slider
============================ */
.sb-product-slider-wrapper {
  position: relative;
}

.sb-product-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--sb-border) transparent;
}
.sb-product-slider::-webkit-scrollbar {
  height: 4px;
}
.sb-product-slider::-webkit-scrollbar-thumb {
  background: var(--sb-border);
  border-radius: 999px;
}

.sb-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color: var(--sb-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--sb-shadow-card);
  transition: 0.16s ease-out;
}
.sb-slider-arrow:hover {
  border-color: var(--sb-accent-blue);
}
.sb-slider-arrow.prev {
  right: -0.2rem;
}
.sb-slider-arrow.next {
  left: -0.2rem;
}

.sb-product-card {
  min-width: 240px;
  max-width: 260px;
  border-radius: 20px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 0.8rem 0.8rem 0.9rem;
  font-size: 0.8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: 0.18s ease-out;
}
.sb-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 1);
  border-color: var(--sb-accent-blue);
}

.sb-product-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.sb-product-image-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.sb-product-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.sb-product-card p {
  color: var(--sb-text-soft);
  margin-bottom: 0.4rem;
}

.sb-product-price-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.price-now {
  font-weight: 600;
  font-size: 0.9rem;
}
.price-old {
  font-size: 0.75rem;
  color: var(--sb-text-muted);
  text-decoration: line-through;
}

/* ============================
   Blog
============================ */
.sb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sb-blog-card {
  border-radius: 20px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 0.8rem 0.8rem 0.9rem;
  font-size: 0.8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: 0.16s ease-out;
}
.sb-blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--sb-accent-blue);
}

.sb-blog-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.sb-blog-image-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.sb-blog-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.sb-blog-card p {
  color: var(--sb-text-soft);
}

/* ============================
   Footer
============================ */
.sb-footer {
  border-top: 1px solid var(--sb-border);
  padding: 1rem 1.4rem 1.5rem;
  margin-top: 2.5rem;
  color: var(--sb-text-muted);
  font-size: 0.78rem;
}

.sb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

/* ============================
   Responsive
============================ */
/* ========== Mobile Menu – Glass Fullscreen (final) ========== */
html.mm-open, body.mm-open { overflow: hidden; }

/* کانتینر */
.sb-mobile-menu {
  position: fixed; inset: 0; z-index: 1200; display: none;
}
.sb-mobile-menu.is-open { display: block; }

/* بک‌دراپ شیشه‌ای با گرادیان */
.sb-mm-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 800px at 12% 10%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(1000px 700px at 85% 85%, rgba(34,197,94,0.16), transparent 60%),
    rgba(2,6,23,0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .22s ease-out;
}
.sb-mobile-menu.is-open .sb-mm-backdrop { opacity: 1; }

/* پنل */
.sb-mm-panel {
  position: absolute; inset: clamp(10px,3vw,20px);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .75rem;
  padding: .9rem 1rem 1.1rem;
  border: 1px solid var(--sb-border);
  border-radius: 24px;
  background:
    radial-gradient(60% 50% at 30% 0%,   rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(60% 50% at 70% 100%, rgba(34,197,94,0.16),  transparent 60%),
    linear-gradient(135deg, rgba(15,23,42,0.72), rgba(2,6,23,0.62));
  background-size: 200% 200%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%);
  transform: translateY(8px) scale(0.985); opacity: 0;
  transition: opacity .25s ease, transform .25s ease, background-position 12s ease-in-out;
  animation: mm-panel-pulse 9s ease-in-out infinite alternate;
}
.sb-mobile-menu.is-open .sb-mm-panel {
  opacity: 1; transform: translateY(0) scale(1); background-position: 100% 100%;
}
@keyframes mm-panel-pulse {
  0%   { box-shadow: 0 30px 60px rgba(0,0,0,0.48), inset 0 1px rgba(255,255,255,0.06); }
  100% { box-shadow: 0 34px 68px rgba(0,0,0,0.64), inset 0 1px rgba(255,255,255,0.08); }
}

/* تم روشن */
html.theme-light .sb-mm-backdrop {
  background:
    radial-gradient(1200px 800px at 12% 10%, rgba(2,132,199,0.18), transparent 60%),
    radial-gradient(1000px 700px at 85% 85%, rgba(22,163,74,0.16), transparent 60%),
    rgba(241,245,249,0.35);
}
html.theme-light .sb-mm-panel {
  background:
    radial-gradient(60% 50% at 30% 0%,   rgba(2,132,199,0.16), transparent 60%),
    radial-gradient(60% 50% at 70% 100%, rgba(22,163,74,0.14),  transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.62));
  border-color: rgba(148,163,184,0.35);
}

/* هدر و دکمه بستن */
.sb-mm-header{ display:flex; align-items:center; justify-content:space-between; }
.sb-mm-brand{ display:inline-flex; align-items:center; gap:.5rem; text-decoration:none; color:var(--sb-text-main); }
.sb-mm-mark{
  width: 32px; height: 32px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid rgba(56,189,248,0.25);
  background: radial-gradient(circle at top, rgba(56,189,248,0.28), rgba(8,47,73,1));
  box-shadow: 0 0 16px rgba(56,189,248,0.18); font-weight:700;
}
.sb-mm-title{ font-size:.95rem; letter-spacing:.06em; }
.sb-mm-close{
  background: none; border: 1px solid var(--sb-border); color: var(--sb-text-main);
  border-radius: 12px; width: 38px; height: 38px; cursor: pointer;
  z-index: 2;
}

/* جستجو */
.sb-mm-search{ display:grid; grid-template-columns:1fr auto; gap:.45rem; }
.sb-mm-search input{
  padding:.6rem .8rem; border-radius:12px; border:1px solid var(--sb-border);
  background: var(--sb-bg-card); color: var(--sb-text-main);
}
.sb-mm-search button{
  padding:.6rem .8rem; border-radius:12px; cursor:pointer;
  border:1px solid var(--sb-border); background: var(--sb-bg-card); color: var(--sb-text-main);
}

/* لیست لینک‌ها */
.sb-mm-list{ list-style:none; margin:.2rem 0; padding:0; }
.sb-mm-list > li{ margin:.15rem 0; }
.sb-mm-list a{
  display:block; padding:.55rem .7rem; border-radius:12px; color:var(--sb-text-main); text-decoration:none;
  border:1px solid transparent; background:transparent; transition:.15s ease-out;
}
.sb-mm-list a:hover{ border-color: var(--sb-accent-blue); background: var(--sb-bg-card-soft); }

.mm-sep{ height:1px; margin:.35rem 0; background: var(--sb-border-soft); border-radius:999px; }

/* آکاردئون دسته‌بندی */
.mm-accordion .mm-accordion-toggle{
  width:100%; text-align:right; padding:.6rem .7rem; border-radius:12px; cursor:pointer;
  border:1px solid var(--sb-border); background: var(--sb-bg-card); color: var(--sb-text-main);
}
.mm-accordion .mm-sub{ list-style:none; margin:.35rem 0 0; padding:0; border-left:2px solid var(--sb-border-soft); }
.mm-accordion .mm-sub a{ margin:.15rem 0; padding:.5rem .7rem .5rem .5rem; }
.mm-accordion.is-open .mm-accordion-toggle{ border-color: var(--sb-accent-blue); }

/* فوتر اکشن‌ها */
.sb-mm-footer{ display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.2rem; }
.sb-mm-pill{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.45rem .75rem; border-radius:999px;
  border:1px solid var(--sb-border); background: var(--sb-bg-card);
  color: var(--sb-text-main); text-decoration:none; font-size:.85rem;
}

/* نمایش/عدم‌نمایش آیتم‌های ورود/حساب */
.sb-mm-auth{ display:none; }
html.mm-logged-out .sb-mm-auth[data-auth="logged-out"]{ display:list-item; }
html.mm-logged-in  .sb-mm-auth[data-auth="logged-in"] { display:list-item; }

/* دسکتاپ منوی موبایل لازم نیست */
@media (min-width: 821px){
  .sb-mobile-menu{ display:none !important; }
}



  .sb-nav-toggle {
    display: block;
  }

  .sb-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sb-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sb-slider-arrow {
    display: none;
  }
  .sb-footer-inner {
    flex-direction: column;
  }


@media (max-width: 640px) {
  .sb-shell {
    padding-inline: 1rem;
  }
  .sb-hero-left {
    padding-inline: 1.2rem;
  }
  .sb-device-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sb-blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}




/* ============================
   دسته‌بندی‌ها
============================ */
.sb-categories-scroll {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.4rem 0;
}

/* لینک‌های دسته‌بندی */
.sb-category {
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 16px;

    /* پس‌زمینه شیشه‌ای */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.12);

    /* رنگ متن خوانا (Dark Theme) */
    color: #f0f4f8;
    font-size: 0.82rem;
    white-space: nowrap;
    display: inline-block;
    transition: 0.16s ease-out;
}

/* هاور شیک */
.sb-category:hover {
    border-color: #3ec8ff;
    color: #ffffff;
    background: rgba(62, 200, 255, 0.18);
}

/* حالت فعال */
.sb-category.active {
    border-color: #3ec8ff;
    background: rgba(62, 200, 255, 0.28);
    color: white;
    font-weight: 600;
}


/* ============================
   مرتب سازی
============================ */
.sb-sort-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.sb-sort-select {
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  background: var(--sb-bg-card);
  border: 1px solid var(--sb-border);
  color: var(--sb-text-main);
}


/* ============================
   گرید محصولات
============================ */
.sb-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

/* 3 ستون */
@media (max-width: 1024px) {
  .sb-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 2 ستون */
@media (max-width: 820px) {
  .sb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1 ستون موبایل */
@media (max-width: 640px) {
  .sb-product-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}


/* ============================
   کارت محصول
============================ */
.sb-product-card-full {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: 0.2s ease-out;
}

.sb-product-card-full:hover {
  transform: translateY(-3px);
  border-color: var(--sb-accent-blue);
}

/* Glow کارت تخفیف */
.sb-product-card-full.discount {
    position: relative;
    border-color: rgba(46, 255, 145, 0.9);
    box-shadow: 0 0 15px rgba(46, 255, 145, 0.35);
    animation: sb-discount-pulse 2.8s ease-in-out infinite;
}

@keyframes sb-discount-pulse {
  0% {
    box-shadow: 
      0 0 8px rgba(46,255,145,0.25),
      0 0 16px rgba(46,255,145,0.15);
  }
  50% {
    box-shadow: 
      0 0 22px rgba(46,255,145,0.45),
      0 0 40px rgba(46,255,145,0.2);
  }
  100% {
    box-shadow: 
      0 0 8px rgba(46,255,145,0.25),
      0 0 16px rgba(46,255,145,0.15);
  }
}



/* عکس محصول */
.sb-product-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  height: 180px;
  background: #000;
}

.sb-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000; /* یا هر رنگ متناسب */
}


/* عنوان */
.sb-product-title {
  font-size: 1rem;
}

/* توضیح */
.sb-product-desc {
  font-size: 0.78rem;
  color: var(--sb-text-soft);
}

/* قیمت */
.sb-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-now {
  font-weight: bold;
  color: var(--sb-accent-green);
}

.price-old {
  font-size: 0.75rem;
  color: var(--sb-text-muted);
  text-decoration: line-through;
}


/* ============================
   صفحه‌بندی
============================ */
.sb-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.sb-page-btn,
.sb-page-num {
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--sb-border);
  background: rgba(129, 143, 179, 0.9);
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.16s;
}

.sb-page-btn:hover,
.sb-page-num:hover {
  border-color: var(--sb-accent-blue);
}

.sb-page-num.active {
  background: var(--sb-accent-blue);
  border-color: var(--sb-accent-blue);
  color: white;
}




/* shop */

/* ============================
   Product Page Layout
============================ */
.sb-product-page {
  padding-top: 1.5rem;
}

/* Breadcrumb */
.sb-breadcrumb {
  font-size: 0.78rem;
  color: var(--sb-text-soft);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sb-breadcrumb a {
  color: var(--sb-text-soft);
}
.sb-breadcrumb a:hover {
  color: var(--sb-accent-blue);
}
.sb-breadcrumb .current {
  color: var(--sb-text-main);
}

/* Layout اصلی */
.sb-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.7rem;
}

/* گالری */
.sb-product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sb-product-gallery-main {
  border-radius: 22px;
  border: 1px solid var(--sb-border);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.8rem;
}
.sb-product-gallery-main img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: contain;
}

/* Thumbnails */
.sb-product-gallery-thumbs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
}
.sb-thumb {
  border: 1px solid var(--sb-border-soft);
  border-radius: 14px;
  padding: 0.18rem;
  background: var(--sb-bg-card-soft);
  cursor: pointer;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  transition: 0.15s ease-out;
}
.sb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}
.sb-thumb.is-active,
.sb-thumb:hover {
  border-color: var(--sb-accent-blue);
}

/* اطلاعات محصول */
.sb-product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sb-product-title {
  font-size: 1.3rem;
}
.sb-product-subtitle {
  font-size: 0.86rem;
  color: var(--sb-text-soft);
}

/* برچسب‌ها */
.sb-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sb-badge {
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.75rem;
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
}
.sb-badge-green {
  border-color: rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
}
.sb-badge-blue {
  border-color: rgba(56, 189, 248, 0.7);
  color: #bae6fd;
}
.sb-badge-soft {
  color: var(--sb-text-soft);
}

/* باکس قیمت */
.sb-product-price-box {
  border-radius: 20px;
  border: 1px solid var(--sb-border);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sb-product-price-main {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-end;
  font-size: 0.82rem;
}

.sb-price-label {
  font-size: 0.78rem;
  color: var(--sb-text-soft);
}

.sb-price-value {
  font-size: 1.3rem;
  font-weight: 700;
}
.sb-price-value span {
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

.sb-price-old-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}
.sb-price-old {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--sb-text-muted);
}
.sb-price-off {
  font-size: 0.75rem;
  color: #bbf7d0;
}

/* وضعیت موجودی */
.sb-product-stock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--sb-text-soft);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}
.dot-green {
  background: var(--sb-accent-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

/* CTA */
.sb-product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.sb-btn-lg {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* ویژگی‌های کلیدی */
.sb-product-features h2 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.sb-product-features ul {
  list-style: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--sb-text-soft);
}
.sb-product-features li {
  margin-bottom: 0.25rem;
}

/* توضیحات و مشخصات فنی */
.sb-product-details {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
  margin-top: 2rem;
}

.sb-product-description p {
  font-size: 0.85rem;
  color: var(--sb-text-soft);
  margin-bottom: 0.5rem;
}

.sb-product-specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.sb-product-specs th,
.sb-product-specs td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--sb-border-soft);
}
.sb-product-specs th {
  text-align: right;
  color: var(--sb-text-soft);
  width: 40%;
}

/* سناریوها */
.sb-product-scenarios h2 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.sb-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.sb-scenario-card {
  border-radius: 18px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  padding: 0.7rem;
  font-size: 0.8rem;
}
.sb-scenario-image {
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.sb-scenario-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-scenario-card h3 {
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}
.sb-scenario-card p {
  color: var(--sb-text-soft);
}

/* نظرات */
.sb-reviews .sb-section-header {
  margin-bottom: 0.7rem;
}
.sb-reviews-summary {
  font-size: 0.8rem;
  color: var(--sb-text-soft);
}

.sb-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.sb-review-card {
  border-radius: 16px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  padding: 0.7rem 0.8rem;
  font-size: 0.8rem;
}
.sb-review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.sb-review-author {
  font-weight: 600;
}
.sb-review-rating {
  color: #fde047;
}
.sb-review-text {
  color: var(--sb-text-soft);
  margin-bottom: 0.2rem;
}
.sb-review-date {
  font-size: 0.75rem;
  color: var(--sb-text-muted);
}

/* فرم نظر */
.sb-review-form h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.sb-form-row {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}
.sb-form-row label {
  display: block;
  margin-bottom: 0.2rem;
}
.sb-form-row input,
.sb-form-row select,
.sb-form-row textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color: var(--sb-text-main);
  padding: 0.4rem 0.5rem;
  font-size: 0.82rem;
}

/* Related products: از گرید موجود استفاده می‌کند */

/* Responsive */
@media (max-width: 1040px) {
  .sb-product-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sb-product-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .sb-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sb-scenario-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sb-product-price-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .sb-product-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sb-btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================
   PRODUCT PAGE – کارت‌ها، مشاوره، نوار پایین
   (فقط برای صفحه محصول تکی)
========================================= */

/* کارت‌کردن بخش‌های توضیحات / مشخصات / نصب / نمونه‌کار / FAQ / نظرات */
.sb-product-page .sb-product-description,
.sb-product-page .sb-product-specs,
.sb-product-page .sb-install,
.sb-product-page .sb-product-scenarios,
.sb-product-page .sb-faq,
.sb-product-page .sb-reviews {
  border-radius: 20px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 1rem 1.1rem;
}

/* تیترهای این بخش‌ها */
.sb-product-page .sb-product-description h2,
.sb-product-page .sb-product-specs h2,
.sb-product-page .sb-install h2,
.sb-product-page .sb-product-scenarios h2,
.sb-product-page .sb-faq h2,
.sb-product-page .sb-reviews h2 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* متن‌های این بخش‌ها */
.sb-product-page .sb-product-description p,
.sb-product-page .sb-install p {
  font-size: 0.82rem;
  color: var(--sb-text-soft);
}

/* جدول مشخصات فنی داخل کارت */
.sb-product-page .sb-product-specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.sb-product-page .sb-product-specs th,
.sb-product-page .sb-product-specs td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--sb-border-soft);
}

.sb-product-page .sb-product-specs th {
  text-align: right;
  width: 38%;
  color: var(--sb-text-soft);
}

/* کارت سناریو / نمونه‌کار */
.sb-product-page .sb-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sb-product-page .sb-scenario-card {
  border-radius: 16px;
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
  padding: 0.7rem;
  font-size: 0.8rem;
}

.sb-product-page .sb-scenario-image {
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.sb-product-page .sb-scenario-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-product-page .sb-scenario-card h3 {
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.sb-product-page .sb-scenario-card p {
  font-size: 0.8rem;
  color: var(--sb-text-soft);
}

/* کارت FAQ */
.sb-product-page .sb-faq-item {
  border-radius: 14px;
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
  padding: 0.7rem 0.8rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.sb-product-page .sb-faq-item h3 {
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.sb-product-page .sb-faq-item p {
  font-size: 0.8rem;
  color: var(--sb-text-soft);
}

/* لیست نظرات (کارت‌ها) */
.sb-product-page .sb-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.sb-product-page .sb-review-card {
  border-radius: 16px;
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
  padding: 0.7rem 0.8rem;
  font-size: 0.8rem;
}

.sb-product-page .sb-review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.sb-product-page .sb-review-author {
  font-weight: 600;
}

.sb-product-page .sb-review-rating {
  color: #fde047;
  font-size: 0.9rem;
}

.sb-product-page .sb-review-text {
  color: var(--sb-text-soft);
  margin-bottom: 0.2rem;
}

.sb-product-page .sb-review-date {
  font-size: 0.74rem;
  color: var(--sb-text-muted);
}

/* فرم نظر به صورت کارت جدا */
.sb-product-page .sb-review-form {
  border-radius: 16px;
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
  padding: 0.8rem 0.9rem;
  font-size: 0.8rem;
}

.sb-product-page .sb-review-form h3 {
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.sb-product-page .sb-form-row {
  margin-bottom: 0.55rem;
}

.sb-product-page .sb-form-row label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.sb-product-page .sb-form-row input,
.sb-product-page .sb-form-row select,
.sb-product-page .sb-form-row textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color: var(--sb-text-main);
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
}

.sb-product-page .sb-error-text {
  display: none;
  margin-top: 0.18rem;
  font-size: 0.72rem;
  color: #fecaca;
}

.sb-product-page .sb-input-error {
  border-color: #f97373 !important;
}

/* =========================
   دکمه مشاوره و منوی آن
========================= */
.sb-consult-wrapper {
  position: relative;
}

.sb-consult-menu {
  position: absolute;
  left: 0;
  bottom: 3rem;
  min-width: 180px;
  border-radius: 16px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 0.4rem 0.3rem;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: 0.18s ease-out;
  z-index: 30;
}

.sb-consult-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sb-consult-menu a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--sb-text-main);
}

.sb-consult-menu a:hover {
  background: var(--sb-bg-card-soft);
}

/* =========================
   نوار چسبان پایین صفحه
========================= */
.sb-sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: -90px;
  background: rgba(15, 23, 42, 0.97);
  border-top: 1px solid var(--sb-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: 0.24s ease-out;
  z-index: 60;
}

.sb-sticky-bar.is-visible {
  bottom: 0;
  opacity: 1;
}

.sb-sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.sb-sticky-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sb-sticky-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sb-border);
}

.sb-sticky-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.78rem;
}

.sb-sticky-title {
  color: var(--sb-text-main);
}

.sb-sticky-price {
  color: var(--sb-accent-green);
  font-weight: 600;
}

.sb-sticky-btn {
  white-space: nowrap;
}

/* =========================
   موبایل (max-width: 640px)
========================= */
@media (max-width: 640px) {

  /* لایه اصلی یک‌ستونه شود */
  .sb-product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }

  .sb-product-gallery {
    order: 1;
  }

  .sb-product-info {
    order: 2;
  }

  /* گرید توضیحات + مشخصات یک ستون */
  .sb-product-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    margin-top: 1.2rem;
  }

  /* کارت‌ها روی موبایل کمی فشرده‌تر */
  .sb-product-page .sb-product-description,
  .sb-product-page .sb-product-specs,
  .sb-product-page .sb-install,
  .sb-product-page .sb-product-scenarios,
  .sb-product-page .sb-faq,
  .sb-product-page .sb-reviews {
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
  }

  .sb-product-page .sb-product-description h2,
  .sb-product-page .sb-product-specs h2,
  .sb-product-page .sb-install h2,
  .sb-product-page .sb-product-scenarios h2,
  .sb-product-page .sb-faq h2,
  .sb-product-page .sb-reviews h2 {
    font-size: 0.9rem;
  }

  .sb-product-page .sb-product-description p,
  .sb-product-page .sb-install p {
    font-size: 0.78rem;
  }

  /* سناریوها تک‌ستون شوند */
  .sb-product-page .sb-scenario-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .sb-product-page .sb-scenario-image {
    height: 130px;
  }

  /* فرم نظر */
  .sb-product-page .sb-review-card {
    font-size: 0.78rem;
  }

  .sb-product-page .sb-review-form {
    font-size: 0.78rem;
  }

  /* نوار پایین جمع‌وجورتر روی موبایل */
  .sb-sticky-inner {
    padding-inline: 0.9rem;
  }

  .sb-sticky-btn {
    font-size: 0.82rem;
    padding-inline: 1rem;
  }

  .sb-sticky-title,
  .sb-sticky-price {
    font-size: 0.78rem;
  }

  /* دکمه‌های CTA اصلی تمام عرض */
  .sb-product-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sb-product-cta-row .sb-btn-lg {
    width: 100%;
    justify-content: center;
  }

  /* ناوبری بالای بخش‌ها در موبایل اسکرول‌پذیر شود */
  .sb-product-sections-nav {
    overflow-x: auto;
    padding-bottom: 0.4rem;
    margin-bottom: 0.9rem;
  }

  .sb-product-sections-nav a {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
  }
}


/* ============================
   دکمه شناور مشاوره (FAB)
============================ */
.sb-consult-float {
  position: fixed;
  bottom: 120px;
  left: 20px;
  z-index: 9999;
}

/* دکمه گرد */
.sb-consult-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  backdrop-filter: blur(12px);
}

.sb-consult-fab:hover {
  transform: scale(1.08);
}

/* منوی شناور */
.sb-consult-fab-menu {
  position: absolute;
  bottom: 70px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;

  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: 0.22s ease-out;
}

/* فعال بودن */
.sb-consult-fab-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* آیتم‌های منو */
.sb-fab-item {
  background: var(--sb-bg-card);
  border: 1px solid var(--sb-border);
  color: var(--sb-text-main);
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  box-shadow: var(--sb-shadow-card);
  text-decoration: none;
  white-space: nowrap;
}

.sb-fab-item:hover {
  background: var(--sb-bg-card-soft);
}

/* موبایل: کمی فاصله بیشتر */
@media (max-width: 640px) {
  .sb-consult-fab {
    width: 54px;
    height: 54px;
  }
}

/* ======================================
   بهبود نوار پایین صفحه – Sticky Bar
====================================== */

/* 1) بزرگ‌تر و دایره‌ای کردن تصویر + بیرون‌زدگی */
.sb-sticky-thumb {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  border: 3px solid var(--sb-border) !important;
  overflow: hidden;
  position: absolute;
  top: -35px;            /* نصف ارتفاع، تا نیمه بیرون بزند */
  right: 15px;           /* در موبایل می‌خواهی چپ باشد بگو */
  background: var(--sb-bg-card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.sb-sticky-left {
  padding-top: 40px; /* جا برای بیرون زدن عکس */
  position: relative;
}

/* 2) بزرگ‌تر کردن نوشته دکمه افزودن به سبد خرید */
.sb-sticky-btn {
  font-size: 1rem !important;
  padding: 0.75rem 1.6rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
}

/* 3) افکت نبضی لطیف دور دکمه */
@keyframes sbPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 14px 10px rgba(34, 197, 94, 0.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.sb-sticky-btn {
  animation: sbPulse 2.6s infinite ease-out;
}

/* موبایل – کمی جمع‌وجورتر */
@media (max-width: 640px) {
  .sb-sticky-thumb {
    width: 62px !important;
    height: 62px !important;
    top: -32px;
  }

  .sb-sticky-btn {
    width: 100%;
    font-size: 0.95rem !important;
  }
}

/* ==================================
   نوار پایین شیشه‌ای واقعی
================================== */
.sb-sticky-bar {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==================================
   افکت براق روی دکمه افزودن به سبد
================================== */
.sb-sticky-btn {
  position: relative;
  overflow: hidden;
}

/* نوار براق */
.sb-sticky-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: sbShine 5s infinite ease-in-out;
}

@keyframes sbShine {
  0% { left: -120%; }
  10% { left: 140%; }
  100% { left: 140%; }
}

/* ==================================
   لرزش آیکن سبد خرید
================================== */
@keyframes cartShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.sb-cart-shake {
  animation: cartShake 0.45s ease;
}

/* ==================================
   انیمیشن پرواز عکس به سمت سبد
================================== */
.fly-clone {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}



/*===========================
   AUTH – CARD
===========================*/

.auth-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.sb-auth-card {
  width: 380px;
  border-radius: 26px;
  padding: 1.6rem;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* لوگو */
.sb-auth-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}

/* عنوان */
.sb-auth-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* پنل‌ها */
.sb-auth-panel {
  display: none;
}
.sb-auth-panel.sb-active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ورودی */
.sb-auth-input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: var(--sb-bg-card-soft);
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  color: var(--sb-text-main);
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.sb-auth-textarea {
  min-height: 70px;
  resize: vertical;
}

/* لیبل */
.sb-auth-label {
  font-size: 0.8rem;
  color: var(--sb-text-soft);
  margin-bottom: 0.25rem;
  display: block;
}

/* دکمه‌ها */
.sb-auth-btn {
  width: 100%;
  margin-top: 0.4rem;
}

.sb-auth-btn-back {
  width: 100%;
  margin-top: 0.9rem;
}

/* لینک */
.sb-link-soft {
  cursor: pointer;
  display: block;
  text-align: right;
  margin-top: 0.4rem;
}

/* ============================
   User Account Panel
============================ */
.sb-account-page {
  margin-top: 1.5rem;
}

.sb-account-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

/* سایدبار */
.sb-account-sidebar {
  border-radius: 22px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 1rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sb-account-usercard {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.sb-account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #38bdf8, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0f2fe;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

.sb-account-userinfo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.78rem;
}
.sb-account-name {
  font-size: 0.9rem;
}
.sb-account-phone {
  color: var(--sb-text-soft);
}

/* منوی تب‌ها */
.sb-account-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sb-account-tab {
  width: 100%;
  text-align: right;
  border-radius: 999px;
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
  color: var(--sb-text-soft);
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: 0.16s ease-out;
}

.sb-account-tab:hover {
  border-color: var(--sb-accent-blue);
  color: var(--sb-text-main);
}

.sb-account-tab.is-active {
  border-color: var(--sb-accent-green);
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.35), rgba(15, 23, 42, 0.95));
  color: var(--sb-text-main);
}

/* محتوای اصلی */
.sb-account-main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sb-account-panel {
  border-radius: 22px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 1rem 1.2rem;
  display: none;
}
.sb-account-panel.is-active {
  display: block;
}

.sb-account-panel-title {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

/* سفارش‌ها */
.sb-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sb-order-card {
  border-radius: 16px;
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
  padding: 0.7rem 0.8rem;
  font-size: 0.8rem;
}

.sb-order-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.sb-order-id {
  font-weight: 600;
}
.sb-order-date {
  font-size: 0.75rem;
  color: var(--sb-text-soft);
}

.sb-order-status {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.sb-order-status-paid {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.7);
}
.sb-order-status-delivered {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.7);
}

.sb-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--sb-text-soft);
  margin-bottom: 0.3rem;
}

.sb-order-actions {
  display: flex;
  justify-content: flex-end;
}

/* کارت‌های دو ستونی (پروفایل/آدرس و تیکت‌ها) */
.sb-account-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sb-account-card {
  border-radius: 18px;
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
}
.sb-account-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

/* فرم‌ها در کارت‌ها از sb-form-row استفاده می‌کنند */

/* تیکت‌ها */
.sb-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sb-ticket-card {
  border-radius: 14px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  padding: 0.7rem 0.8rem;
  font-size: 0.8rem;
}
.sb-ticket-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.sb-ticket-title {
  font-weight: 600;
}
.sb-ticket-status {
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.sb-ticket-status-open {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #bae6fd;
}
.sb-ticket-status-closed {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--sb-text-muted);
}
.sb-ticket-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--sb-text-soft);
  margin-bottom: 0.25rem;
}
.sb-ticket-text {
  color: var(--sb-text-soft);
}

/* ریسپانسیو پنل کاربری */
@media (max-width: 900px) {
  .sb-account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sb-account-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .sb-account-menu {
    flex-direction: row;
  }
  .sb-account-tab {
    font-size: 0.78rem;
    padding-inline: 0.9rem;
  }
}

@media (max-width: 640px) {
  .sb-account-two-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .sb-account-sidebar {
    flex-direction: column;
    align-items: stretch;
  }
  .sb-account-menu {
    width: 100%;
  }
}


/* ============================
   Cart Page – SmartBeen
============================ */
.sb-cart-page { margin-top: 1.4rem; }

.sb-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr);
  gap: 1.2rem;
}

.sb-cart-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

/* کارت آیتم سبد */
.sb-cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 170px;
  gap: .8rem;
  align-items: center;

  border-radius: 18px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: .7rem .8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sb-cart-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sb-border-soft);
  background: #000;
}
.sb-cart-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.sb-cart-info { display: flex; flex-direction: column; gap: .4rem; }
.sb-cart-title { font-size: .95rem; }

.sb-cart-prices {
  display: flex; gap: .5rem; align-items: baseline; font-size: .86rem;
}
.sb-cart-prices .price-old {
  color: var(--sb-text-muted);
  text-decoration: line-through;
  font-size: .8rem;
}
.sb-off-badge {
  border: 1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
  border-radius: 999px;
  padding: .05rem .5rem;
  font-size: .72rem;
  color: var(--sb-text-soft);
}

/* کنترل تعداد – لینک‌محور */
.sb-cart-actions {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
}
.sb-qty-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card-soft);
  color: var(--sb-text-main);
  text-decoration: none;
  transition: .15s ease-out;
}
.sb-qty-btn:hover { border-color: var(--sb-accent-blue); }
.sb-qty-input {
  width: 46px; height: 30px; text-align: center; border-radius: 10px;
  border: 1px solid var(--sb-border); background: var(--sb-bg-card);
  color: var(--sb-text-main); font-size: .9rem;
}

.sb-cart-line-total {
  display: flex; flex-direction: column; gap: .1rem; align-items: flex-end;
  font-size: .82rem; color: var(--sb-text-soft);
}
.sb-line-total-value { font-size: 1rem; color: var(--sb-text-main); }

/* خلاصه و ارسال */
.sb-cart-summary {
  border-radius: 18px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: .9rem 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: fit-content;
}

.sb-summary-rows { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .8rem; }
.sb-summary-rows > div { display: flex; justify-content: space-between; }
.sb-summary-final { padding-top: .35rem; border-top: 1px solid var(--sb-border-soft); }

.sb-shipping-box h4,
.sb-notes-box h4 { font-size: .9rem; margin: .6rem 0 .4rem; }

.sb-ship-opt { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; font-size: .86rem; }
.sb-ship-opt input { transform: translateY(1px); }

.sb-notes-box textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--sb-border);
  background: var(--sb-bg-card); color: var(--sb-text-main);
  padding: .5rem .6rem; font-size: .86rem;
}

.sb-help-row { display:flex; justify-content:flex-end; margin:.5rem 0 .8rem; }
.sb-pay-btn { width: 100%; }


/* ریسپانسیو */
@media (max-width: 1024px) {
  .sb-cart-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .sb-cart-item { grid-template-columns: 90px minmax(0,1fr); }
  .sb-cart-line-total { grid-column: span 2; align-items: flex-start; }
}


/* ============================
   Shipping Options — Modern Radio Card
   (works with: <label class="sb-ship-opt"><input type="radio"> <span>...</span></label>)
============================ */
.sb-ship-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .9rem;
  border-radius: 16px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* فاصله بین گزینه‌ها */
.sb-ship-opt + .sb-ship-opt { margin-top: .45rem; }

/* رادیوی واقعی را مخفی می‌کنیم ولی قابل فوکوس می‌ماند */
.sb-ship-opt input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* نقطه‌ی رادیو (دایره‌ی بیرونی) */
.sb-ship-opt::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--sb-border);
  /* در RTL این دایره سمت راست می‌نشیند */
  margin-inline-start: 0;
  margin-inline-end: .2rem;
  box-shadow: inset 0 0 0 0 rgba(0,0,0,0);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

/* متن گزینه */
.sb-ship-opt > span {
  color: var(--sb-text-main);
  font-size: .9rem;
}

/* حالت Hover */
.sb-ship-opt:hover {
  border-color: var(--sb-accent-blue);
  transform: translateY(-1px);
}

/* فوکوس با کیبورد روی رادیو */
.sb-ship-opt:has(input[type="radio"]:focus-visible) {
  outline: 2px solid var(--sb-accent-blue);
  outline-offset: 3px;
}

/* حالت انتخاب‌شده: کارت سبزتر + Glow لطیف */
.sb-ship-opt:has(input[type="radio"]:checked) {
  border-color: rgba(34, 197, 94, 0.7);
  background: radial-gradient(circle at 10% 10%, rgba(9, 169, 68, 0.569), transparent 45%),
              var(--sb-bg-card-soft);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) inset,
              0 10px 28px rgba(0, 0, 0, 0.35);
}

/* حالت انتخاب‌شده: پر شدن دایره‌ی رادیو با گرادیان سبز */
.sb-ship-opt:has(input[type="radio"]:checked)::before {
  border-color: rgba(34, 197, 94, 0.85);
  background:
    radial-gradient(circle at 50% 50%, var(--sb-accent-green) 0 55%, transparent 56% 100%);
  box-shadow:
    0 0 12px rgba(34, 197, 94, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: scale(1.02);
}

/* حالت هاور روی انتخاب‌شده: کمی آبی برای حس تعاملی بیشتر */
.sb-ship-opt:has(input[type="radio"]:checked):hover {
  border-color: rgba(56, 189, 248, 0.85);
}

/* سایز موبایل: کمی فشرده‌تر */
@media (max-width: 640px) {
  .sb-ship-opt { padding: .65rem .8rem; border-radius: 14px; }
  .sb-ship-opt > span { font-size: .86rem; }
  .sb-ship-opt::before { width: 16px; height: 16px; }
}


/* ============================
   Contact Page – SmartBeen
============================ */
.sb-contact-page { margin-top: 1.4rem; }

.sb-contact-layout {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 1.2rem;
}

/* کارت‌های مشترک این صفحه */
.sb-map-card,
.sb-contact-card,
.sb-downloads-card,
.sb-contact-form-card {
  border-radius: 20px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sb-contact-left { display: flex; flex-direction: column; gap: 1rem; }
.sb-contact-right { display: flex; flex-direction: column; gap: 1rem; }

/* نقشه */
.sb-map-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sb-border-soft);
  background: #000;
  aspect-ratio: 16/9;
}
.sb-map-embed iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.sb-map-actions { margin-top: .6rem; display: flex; justify-content: flex-end; }

/* اطلاعات تماس */
.sb-contact-card h3,
.sb-downloads-card h3,
.sb-contact-form-card h3 {
  font-size: 1rem;
  margin-bottom: .6rem;
}
.sb-contact-info {
  list-style: none;
  display: grid;
  gap: .45rem;
  font-size: .86rem;
}
.sb-contact-info li { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: .4rem; }
.sb-contact-info span { color: var(--sb-text-soft); }
.sb-contact-info a { color: inherit; }

/* دانلودها */
.sb-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .7rem;
}
@media (max-width: 640px) {
  .sb-download-grid { grid-template-columns: minmax(0,1fr); }
}
.sb-download-link {
  display: flex; gap: .6rem; align-items: center;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card-soft);
  padding: .7rem .8rem;
  transition: .18s ease-out;
}
.sb-download-link:hover { border-color: var(--sb-accent-blue); transform: translateY(-1px); }
.sb-dl-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  font-size: 1rem;
}
.sb-dl-text strong { display:block; font-size:.9rem; }
.sb-dl-text small { color: var(--sb-text-soft); }

/* فرم تماس */
.sb-contact-form-card .sb-form-row { margin-bottom: .7rem; }
.sb-contact-actions {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .4rem;
}

/* مودال (از قبل در پروژه داری؛ اینجا فقط هماهنگ) */
.sb-modal { position: fixed; inset: 0; display: none; z-index: 9990; }
.sb-modal.is-open { display: block; }
.sb-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sb-modal-card {
  position: absolute; inset: 0; margin: auto; height: 510px; max-width: 350px; width: 92%;
  background: var(--sb-bg-card); border:1px solid var(--sb-border);
  border-radius: 18px; box-shadow: var(--sb-shadow-card);
  padding: 1rem 1.1rem; color: var(--sb-text-main);
  transform: translateY(10px); opacity: 0; transition: .2s ease-out;
}
.sb-modal.is-open .sb-modal-card { transform: translateY(0); opacity: 1; }
.sb-modal-close {
  position: absolute; top: .4rem; left: .6rem; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--sb-border);
  background: var(--sb-bg-card); color: var(--sb-text-main);
  cursor: pointer;
}

/* خطاهای فرم */
.sb-contact-form-card .sb-error-text { display:none; color:#ff7a7a; font-size:.75rem; margin-top:.2rem; }
.sb-input-error { border-color: #f97373 !important; }

/* ریسپانسیو */
@media (max-width: 1024px) {
  .sb-contact-layout { grid-template-columns: minmax(0,1fr); }
}


/* ===== Quick Consult Card ===== */
.sb-quick-consult-card{
  border-radius:20px;border:1px solid var(--sb-border);
  background:var(--sb-bg-card);box-shadow:var(--sb-shadow-card);
  padding:1rem 1.1rem;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
}
.sb-quick-consult-card h3{font-size:1rem;margin-bottom:.6rem;}
.sb-qc-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.4rem;}
.sb-qc-hint{display:block;margin-top:.4rem;color:var(--sb-text-soft);}

/* ===== Accordion (FAQ) ===== */
.sb-faq-card{
  border-radius:20px;border:1px solid var(--sb-border);
  background:var(--sb-bg-card);box-shadow:var(--sb-shadow-card);
  padding:1rem 1.1rem;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
}
.sb-faq-card h3{font-size:1rem;margin-bottom:.6rem;}

.sb-accordion{display:flex;flex-direction:column;gap:.4rem;}
.sb-acc-item{
  border:1px solid var(--sb-border);
  background:var(--sb-bg-card-soft);
  border-radius:14px;overflow:hidden;
}
.sb-acc-header{
  width:100%;text-align:right;padding:.7rem .9rem;
  background:transparent;border:0;color:var(--sb-text-main);
  display:flex;align-items:center;justify-content:space-between;gap:.8rem;
  cursor:pointer;font-size:.92rem;
}
.sb-acc-icon{transition:transform .2s ease;}
.sb-acc-header[aria-expanded="true"] .sb-acc-icon{transform:rotate(45deg);} /* + → ×  */

.sb-acc-panel{
  padding:0 .9rem .8rem .9rem;color:var(--sb-text-soft);font-size:.86rem;
  animation:accOpen .2s ease-out;
}
@keyframes accOpen{from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)}}

/* ریسپانسیو هم‌ردیف با صفحه */
@media (max-width:1024px){
  .sb-contact-layout{grid-template-columns:minmax(0,1fr);}
}


/* ============================
   About Page – SmartBeen
============================ */
.sb-about-page { margin-top: 1.4rem; }

/* HERO */
.sb-about-hero{
  border-radius: 26px;
  border: 1px solid var(--sb-border);
  background:
    radial-gradient(circle at 10% 0%, rgba(56,189,248,.25), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(34,197,94,.22), transparent 55%),
    var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 1.6rem 1.4rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.sb-about-hero h1{
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .5rem;
}
.sb-about-hero p{
  color: var(--sb-text-soft);
  max-width: 60ch;
  margin-bottom: .9rem;
}
.sb-hero-cta{ display:flex; gap:.6rem; flex-wrap:wrap; }

/* KPIs */
.sb-about-kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .8rem;
}
.sb-kpi{
  border-radius: 18px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: .9rem;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sb-kpi-num{ font-size: 1.4rem; font-weight: 800; }
.sb-kpi-label{ color: var(--sb-text-soft); font-size: .86rem; }

/* چرا SmartBeen */
.sb-why-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .9rem;
}
.sb-why-card{
  border-radius: 18px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: .9rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: .18s ease-out;
}
.sb-why-card:hover{ transform: translateY(-2px); border-color: var(--sb-accent-blue); }
.sb-why-icon{ font-size: 1.3rem; margin-bottom: .35rem; }

/* تایم‌لاین */
.sb-timeline{
  position: relative;
  padding: .4rem .2rem;
  margin-top: .4rem;
}
.sb-timeline::before{
  content:"";
  position:absolute;
  right: calc(50% - 1px);
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(56,189,248,.7), rgba(34,197,94,.7));
  opacity: .6;
}
.sb-timeline-item{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.1rem 0;
}
.sb-timeline-item:nth-child(odd) .sb-tl-card{ grid-column: 1 / 2; }
.sb-timeline-item:nth-child(odd) .sb-tl-dot{ right: calc(50% - 6px); }
.sb-timeline-item:nth-child(even) .sb-tl-card{ grid-column: 2 / 3; }
.sb-timeline-item:nth-child(even) .sb-tl-dot{ right: calc(50% - 6px); }

.sb-tl-dot{
  position:absolute; top: .4rem; width:12px; height:12px; border-radius:50%;
  background: var(--sb-accent-green);
  box-shadow: 0 0 14px rgba(34,197,94,.6);
}
.sb-tl-card{
  border-radius: 18px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: .9rem 1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(6px);
  opacity: 0;
  transition: .35s ease-out;
}
.sb-tl-card.is-visible{
  transform: translateY(0);
  opacity: 1;
}
.sb-tl-year{
  font-size: .85rem; color: var(--sb-text-soft);
  margin-bottom: .25rem;
}

/* اعتماد */
.sb-trust-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .9rem;
}
.sb-trust-card{
  border-radius: 18px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: .9rem;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sb-trust-icon{ font-size: 1.3rem; margin-bottom:.35rem; }

/* CTA پایانی */
.sb-about-cta{
  text-align:center;
  border-radius: 22px;
  border: 1px solid var(--sb-border);
  background:
    radial-gradient(circle at 20% 0%, rgba(56,189,248,.22), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(34,197,94,.2), transparent 55%),
    var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 1.2rem 1rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.sb-about-cta h2{ margin-bottom:.3rem; }
.sb-about-cta p{ color: var(--sb-text-soft); margin-bottom:.7rem; }

/* Responsive */
@media (max-width:1040px){
  .sb-about-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sb-why-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sb-trust-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sb-timeline::before{ right: .6rem; }
  .sb-timeline-item{ grid-template-columns: minmax(0,1fr); }
  .sb-timeline-item .sb-tl-card{ grid-column: auto; margin-right: 1.4rem; }
  .sb-timeline-item .sb-tl-dot{ right: .2rem; }
}
@media (max-width:640px){
  .sb-kpi-num{ font-size:1.2rem; }
}



/* ============================
   FAQ Page – SmartBeen
============================ */
.sb-faq-page { margin-top: 1.4rem; }

/* ابزارها: جستجو و کنترل‌ها */
.sb-faq-tools{
  display:flex; align-items:center; justify-content:space-between;
  gap:.8rem; margin-bottom:.8rem; flex-wrap:wrap;
}
.sb-faq-search{
  display:flex; align-items:center; gap:.5rem;
  background: var(--sb-bg-card); border:1px solid var(--sb-border);
  border-radius: 16px; padding: .5rem .6rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
#faqSearch{
  border:0; outline:0; background:transparent; color:var(--sb-text-main);
  min-width: 220px; font-size:.92rem;
}
#faqSearch::placeholder{ color: var(--sb-text-soft); }
#faqClear{ white-space:nowrap; }

.sb-faq-controls{ color:var(--sb-text-soft); font-size:.86rem; }
.sb-faq-controls .sep{ opacity:.6; margin: 0 .25rem; }

/* دسته‌بندی‌ها (Chip links) */
.sb-faq-cats{
  display:flex; gap:.5rem; overflow-x:auto; padding-bottom:.4rem; margin-bottom:.8rem;
}
.sb-chip{
  text-decoration:none; white-space:nowrap; font-size:.86rem;
  padding:.4rem .8rem; border-radius:999px;
  border:1px solid var(--sb-border); color:var(--sb-text-main);
  background: var(--sb-bg-card-soft);
  transition:.16s ease-out;
}
.sb-chip:hover{ border-color: var(--sb-accent-blue); }
.sb-chip.active{
  border-color: rgba(34,197,94,.8);
  background: radial-gradient(circle at 30% 0%, rgba(34,197,94,.25), transparent 55%), var(--sb-bg-card-soft);
}

/* آکاردئون */
.sb-accordion{ display:flex; flex-direction:column; gap:.6rem; }
.sb-acc-item{
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  border-radius:18px; padding:.1rem .1rem .6rem .1rem;
  box-shadow: var(--sb-shadow-card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.sb-acc-header{
  display:flex; align-items:center; justify-content:space-between; gap:.6rem;
  padding:.7rem .9rem .4rem .9rem;
}
.sb-acc-btn{
  border:0; background:transparent; color:var(--sb-text-main);
  font-size:1rem; text-align:right; cursor:pointer;
}
.sb-acc-btn:focus-visible{ outline:2px solid var(--sb-accent-blue); border-radius:8px; }

.sb-acc-anchor{
  text-decoration:none; font-size:.95rem; opacity:.75;
  border:1px solid var(--sb-border); border-radius:10px;
  padding:.1rem .4rem; background: var(--sb-bg-card-soft);
}
.sb-acc-anchor:hover{ border-color: var(--sb-accent-blue); opacity:1; }

.sb-acc-panel{
  padding: .2rem .9rem .8rem .9rem; color:var(--sb-text-soft); font-size:.92rem;
  animation: accOpen .2s ease-out;
}
@keyframes accOpen{ from{opacity:0; transform:translateY(-3px)} to{opacity:1; transform:translateY(0)} }

/* وقتی هدفِ URL هست (anchor) کمی هایلایت شود */
#faqList :target{
  scroll-margin-top: 90px;
}
#faqList :target ~ .sb-acc-panel,
#faqList :target{
  outline: 0;
}

/* CTA کارت پایانی */
.sb-faq-cta .sb-faq-cta-card{
  border-radius: 22px; border:1px solid var(--sb-border);
  background:
    radial-gradient(circle at 10% 0%, rgba(56,189,248,.22), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(34,197,94,.2), transparent 55%),
    var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  padding: 1rem 1.1rem; text-align:center;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

/* ریسپانسیو */
@media (max-width:640px){
  #faqSearch{ min-width: 160px; }
}




/* ============================
   Blog Index – List & Cards
============================ */
.sb-blog-page{ margin-top:1.2rem; }

/* نوار دسته‌بندی */
.sb-cat-bar{
  display:flex; gap:.5rem; overflow-x:auto;
  padding-bottom:.5rem; margin-bottom:.9rem;
}

/* گرید پست‌ها */
.sb-post-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
@media (max-width:1040px){
  .sb-post-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .sb-post-grid{ grid-template-columns:minmax(0,1fr); }
}

/* کارت پست */
.sb-post-card{
  border-radius: 20px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  overflow: hidden;
  display:flex; flex-direction:column;
  transition:.18s ease-out;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sb-post-card:hover{ transform: translateY(-3px); border-color: var(--sb-accent-blue); }

.sb-post-cover{
  position:relative; width:100%; aspect-ratio:16/9; overflow:hidden;
  background: rgba(255,255,255,.04);
}
.sb-post-cover img{
  width:100%; height:100%; object-fit:cover; display:block;
}

.sb-post-body{ padding:.8rem .9rem 1rem; }
.sb-post-meta{
  display:flex; flex-wrap:wrap; gap:.4rem .6rem;
  align-items:center; color:var(--sb-text-soft); font-size:.78rem; margin-bottom:.35rem;
}
.sb-post-title{
  font-size:1rem; margin-bottom:.28rem; line-height:1.4;
}
.sb-post-excerpt{
  color:var(--sb-text-soft); font-size:.86rem; margin-bottom:.6rem;
}
.sb-post-tags{
  display:flex; gap:.4rem; flex-wrap:wrap;
}
.sb-tag{
  border:1px solid var(--sb-border-soft);
  background: var(--sb-bg-card-soft);
  color: var(--sb-text-main);
  font-size:.72rem; padding:.14rem .5rem; border-radius:999px;
  text-decoration:none;
}

.sb-post-footer{
  margin-top:auto; padding:0 .9rem .9rem .9rem;
  display:flex; align-items:center; justify-content:space-between;
}
.sb-readmore{
  text-decoration:none; font-size:.85rem;
  color: var(--sb-accent-blue);
}
.sb-readmore:hover{ text-decoration:underline; }

/* صفحه‌بندی (بازاستفاده از استایل موجود، اما کمی ظریف‌تر) */
.sb-pagination a, .sb-pagination span{
  padding:.45rem .9rem;
  border-radius:12px;
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  font-size:.85rem;
  text-decoration:none; color:var(--sb-text-main);
}
.sb-pagination a:hover{ border-color: var(--sb-accent-blue); }
.sb-pagination .active{
  background: radial-gradient(circle at 30% 0%, rgba(56,189,248,.25), transparent 55%), var(--sb-bg-card);
  border-color: var(--sb-accent-blue);
}
.sb-pagination{ display:flex; gap:.4rem; justify-content:center; margin-top:1.2rem; flex-wrap:wrap; }


/* ============================
   Blog Article
============================ */
.sb-article-wrap{
  margin-top:1.2rem;
  display:grid; grid-template-columns:minmax(0,1fr);
  gap:1rem;
}
.sb-article{
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  border-radius:22px; padding:1rem 1.2rem;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.sb-article-hero{
  border-radius:20px; overflow:hidden; aspect-ratio: 16/9;
  border:1px solid var(--sb-border-soft); background: var(--sb-bg-card-soft);
  margin-bottom:.8rem;
}
.sb-article-hero img{ width:100%; height:100%; object-fit: cover; display:block; }

.sb-article h1{ font-size:clamp(1.4rem,3vw,2rem); margin-bottom:.2rem; }
.sb-article .meta{
  color:var(--sb-text-soft); font-size:.86rem; display:flex; gap:.6rem; flex-wrap:wrap; margin-bottom:.6rem;
}
.sb-article p{ font-size:1rem; line-height:1.9; color:var(--sb-text-main); margin: .5rem 0; }
.sb-article h2{ margin-top:1rem; margin-bottom:.3rem; font-size:1.2rem; }
.sb-article h3{ margin-top:.8rem; margin-bottom:.3rem; font-size:1.05rem; }
.sb-article ul{ padding-right:1rem; }
.sb-article li{ margin:.2rem 0; }

.sb-article blockquote{
  border-right:3px solid var(--sb-accent-blue);
  padding:.4rem .8rem; border-radius:12px; background: var(--sb-bg-card-soft);
  color:var(--sb-text-soft); margin:.6rem 0;
}
.sb-article pre{
  background: #0b1221; color:#eaeef7; border-radius:14px; border:1px solid var(--sb-border);
  padding:.8rem; overflow:auto; font-size:.9rem; direction:ltr; text-align:left;
}
.sb-article code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.sb-tip{
  border:1px solid rgba(56,189,248,.6);
  background: radial-gradient(circle at 30% 0%, rgba(56,189,248,.18), transparent 55%), var(--sb-bg-card);
  border-radius:16px; padding:.7rem .8rem; margin:.8rem 0;
}
.sb-tip strong{ color:#bae6fd; }

.sb-figure{ border-radius:16px; overflow:hidden; border:1px solid var(--sb-border-soft); margin:.7rem 0; }
.sb-figure img{ width:100%; display:block; }
.sb-figure figcaption{ font-size:.82rem; color:var(--sb-text-soft); padding:.35rem .5rem; background: var(--sb-bg-card-soft); }

.sb-article-nav{
  display:flex; justify-content:space-between; gap:.6rem; margin-top:.8rem;
}
.sb-article-nav a{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.45rem .8rem; border:1px solid var(--sb-border); border-radius:12px;
  background: var(--sb-bg-card); text-decoration:none; color:var(--sb-text-main);
}
.sb-article-nav a:hover{ border-color: var(--sb-accent-blue); }

.sb-related{
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  border-radius:22px; padding:1rem;
  box-shadow: var(--sb-shadow-card);
}
.sb-related h2{ font-size:1rem; margin-bottom:.6rem; }
.sb-related-grid{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:.7rem;
}
@media (max-width:1040px){ .sb-related-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){ .sb-related-grid{ grid-template-columns:minmax(0,1fr); } }




/* 404 – هماهنگ با متغیرهای main.css */
.sb-404-stage{
  position: relative;
  min-height: clamp(520px, 70vh, 820px);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: 1.2rem;
}

/* حباب‌های بلورین */
.sb-404-blob{
  position:absolute; border-radius:50%;
  filter: blur(28px);
  opacity:.35; pointer-events:none;
  background: radial-gradient(circle at 30% 30%, rgba(56,189,248,.45), rgba(56,189,248,0));
}
.sb-404-blob.b1{ width:360px;height:360px; top:8%; right:8%; animation:blobFloat 18s ease-in-out infinite; }
.sb-404-blob.b2{ width:280px;height:280px; bottom:10%; left:10%; animation:blobFloat 22s ease-in-out infinite reverse; }
.sb-404-blob.b3{ width:220px;height:220px; top:22%; left:24%; animation:blobFloat 26s ease-in-out infinite; }

@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-12px,10px) scale(1.06); }
}

/* کارت شیشه‌ای */
.sb-404-card{
  position: relative;
  width:min(880px, 100%);
  border:1px solid var(--sb-border);
  border-radius:26px;
  background: radial-gradient(circle at 20% 0%, rgba(56,189,248,.22), transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(34,197,94,.18), transparent 55%),
              var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(1rem, 3vw, 1.6rem);
  text-align: center;
}

/* عدد 404 با افکت شیشه/نور */
.sb-404-digits{
  display:flex; justify-content:center; gap:.35em; line-height:1;
  user-select:none; margin-bottom:.4rem;
}
.sb-404-digits .d{
  font-weight:800;
  font-size: clamp(5rem, 11vw, 12rem);
  letter-spacing:.02em;
  background: linear-gradient(120deg,#7dd3fc, #22c55e);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.45));
}
.sb-404-digits .zero{
  position:relative;
}
.sb-404-digits .zero::after{
  content:""; position:absolute; inset:14% 10% 16% 10%;
  border-radius:50%;
  background: radial-gradient(circle at 40% 30%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%);
  mix-blend-mode: screen; pointer-events:none;
  animation:gloss 4.2s ease-in-out infinite;
}
@keyframes gloss{
  0%,100%{ transform: translateY(0); opacity:.7;}
  50%    { transform: translateY(-6px); opacity:1;}
}

.sb-404-title{
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  margin-bottom:.35rem;
}
.sb-404-sub{
  color: var(--sb-text-soft);
  margin-bottom:.8rem;
}

/* جستجو */
.sb-404-search{
  display:flex; gap:.5rem; justify-content:center; margin-bottom:.9rem;
}
.sb-404-search input{
  width:min(460px, 80%);
  border-radius:14px; border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color: var(--sb-text-main);
  padding:.55rem .7rem; font-size:.9rem;
}

/* لینک‌های سریع */
.sb-404-quick{
  display:flex; gap:.5rem; justify-content:center; flex-wrap:wrap; margin-bottom:.9rem;
}

/* CTA */
.sb-404-cta{ display:flex; gap:.6rem; justify-content:center; flex-wrap:wrap; }
.sb-404-home{ position:relative; overflow:hidden; }
.sb-404-home::after{
  content:""; position:absolute; inset:0;
  border-radius:inherit; pointer-events:none;
  box-shadow: 0 0 0 0 rgba(34,197,94,.45);
  animation:homePulse 2.8s ease-out infinite;
}
@keyframes homePulse{
  0%  { box-shadow:0 0 0 0 rgba(34,197,94,.42); }
  70% { box-shadow:0 0 24px 14px rgba(34,197,94,.08); }
  100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); }
}

/* موج‌های پایین صفحه */
.sb-404-wave{
  position:absolute; left:0; right:0; bottom:-1px; width:100%; height:140px;
  opacity:.55;
}
.sb-404-wave .w1{ fill: rgba(56,189,248,.18); animation:waveMove 16s linear infinite; }
.sb-404-wave .w2{ fill: rgba(34,197,94,.18); animation:waveMove 22s linear infinite reverse; }
@keyframes waveMove{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-25%); }
}

/* ریسپانسیو */
@media (max-width:640px){
  .sb-404-search input{ width:100%; }
}



/* کارت فیلتر گلس */
.sb-filter-card{
  margin-top: 1.2rem;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: .8rem .9rem;
  box-shadow: var(--sb-shadow-card);
}

/* ردیف فیلترها */
.sb-filter-row{
  display: grid;
  grid-template-columns: 1.2fr 1.4fr .8fr;
  align-items: center;
  gap: .9rem;
}
@media (max-width: 920px){
  .sb-filter-row{
    grid-template-columns: 1fr;
  }
}

/* گروه‌ها */
.sb-filter-group{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
  align-items: center;
}

/* چک‌باکس مدرن */
.sb-check{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .6rem;
  border-radius: 12px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card-soft);
  cursor: pointer;
  user-select: none;
  font-size: .82rem;
}
.sb-check input{ accent-color: var(--sb-accent-green); }

/* قیمت */
.sb-price{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--sb-bg-card-soft);
  border: 1px solid var(--sb-border);
  padding: .35rem .5rem;
  border-radius: 12px;
  font-size: .82rem;
}
.sb-price input{
  width: 9.5rem;
  max-width: 42vw;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color: var(--sb-text-main);
  border-radius: 10px;
  padding: .35rem .5rem;
}
@media (max-width: 480px){
  .sb-price input{ width: 7.5rem; }
}

/* نوار جستجو بالا */
.sb-search-bar{
  margin-top: 1.4rem;
}
.sb-search-form{
  display: flex;
  gap: .6rem;
  align-items: center;
  margin-bottom: .7rem;
}
.sb-search-input{
  flex: 1 1 auto;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color: var(--sb-text-main);
  padding: .7rem .9rem;
  border-radius: 14px;
  font-size: .9rem;
}
@media (max-width: 640px){
  .sb-search-form{ flex-direction: column; align-items: stretch; }
}

/* دسته‌ها (از استایل sb-category استفاده می‌کنیم) */
.sb-search-cats .sb-category.active{
  border-color: #3ec8ff;
  background: rgba(62,200,255,.28);
  color: #fff;
  font-weight: 600;
}

/* خلاصه نتایج */
.sb-search-summary{
  margin: .6rem 0 1rem 0;
  color: var(--sb-text-soft);
  font-size: .85rem;
}

/* کارت محصول از main.css می‌آید؛ فقط مطمئن شو تصویر همیشه کامل دیده شود */
.sb-product-image-wrap{
  height: 180px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}
.sb-product-image-wrap img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* کامل نمایش بده، برش نزن */
  background: #000;
}



/* لایه‌بندی چک‌اوت */
.sb-checkout-layout{
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(0,0.85fr);
  gap: 1.4rem;
}
@media (max-width: 980px){
  .sb-checkout-layout{ grid-template-columns: minmax(0,1fr); }
}

/* کارت عمومی */
.sb-card{
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  box-shadow: var(--sb-shadow-card);
}
.sb-card-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:.8rem;
}

/* فرم‌ها */
.sb-form-grid{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .9rem;
}
.sb-form-row{ display:flex; flex-direction:column; gap:.25rem; }
.sb-form-full{ grid-column: 1 / -1; }
.sb-form-row input,
.sb-form-row select,
.sb-form-row textarea{
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color: var(--sb-text-main);
  border-radius: 12px;
  padding: .5rem .6rem;
  font-size: .9rem;
}
.sb-hint{ color: var(--sb-text-soft); font-size:.75rem; }
.sb-error-text{ color:#ff9a9a; font-size:.75rem; display:none; }
.sb-input-error{ border-color:#f97373 !important; }

@media (max-width: 720px){
  .sb-form-grid{ grid-template-columns: minmax(0,1fr); }
}

/* گزینه‌های رادیویی به شکل کارت */
.sb-option-grid{
  display:grid; gap:.7rem;
}
.sb-option{
  position:relative;
  display:grid;
  grid-template-columns: 1fr auto;
  gap:.7rem; align-items:center;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card-soft);
  border-radius: 14px;
  padding: .7rem .8rem;
  cursor:pointer;
  transition:.18s ease-out;
}
.sb-option input{ display:none; }
.sb-option-ico{ font-size:1.2rem; opacity:.9; }
.sb-option-title{ font-weight:600; }
.sb-option-sub{ color:var(--sb-text-soft); font-size:.82rem; }
.sb-option-meta{ font-size:.8rem; color:var(--sb-text-muted); }

.sb-option input:checked + .sb-option-body,
.sb-option input:checked ~ .sb-option-ico{
  /* فقط برای وارد شدن به حالت انتخابی، از سایه و بوردر قوی‌تر استفاده کن */
}
.sb-option:has(input:checked){
  border-color: var(--sb-accent-blue);
  box-shadow: 0 0 0 2px rgba(56,189,248,.18);
}

/* دکمه‌ها زیر فرم */
.sb-actions{
  display:flex; align-items:center; justify-content:space-between;
  margin-top: .9rem;
}

/* خلاصه سفارش */
.sb-summary-card{ position: sticky; top: 92px; }
.sb-summary-list{ list-style:none; padding:0; margin:0 0 .8rem 0; display:flex; flex-direction:column; gap:.6rem; }
.sb-summary-item{
  display:grid; grid-template-columns: 64px 1fr auto;
  align-items:center; gap:.6rem;
}
.sb-thumb{ width:64px;height:64px;border-radius:12px;overflow:hidden;border:1px solid var(--sb-border); }
.sb-thumb img{ width:100%;height:100%;object-fit:contain;background:#000; }
.sb-item-title{ font-size:.9rem; }
.sb-item-meta{ color:var(--sb-text-soft); font-size:.78rem; }
.sb-item-price{ white-space:nowrap; }

.sb-coupon{ display:flex; gap:.4rem; margin:.4rem 0 .8rem; }
.sb-coupon input{
  flex:1;
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color:var(--sb-text-main);
  border-radius:12px; padding:.45rem .6rem;
  font-size:.86rem;
}

.sb-totals{ display:flex; flex-direction:column; gap:.35rem; }
.sb-totals div{ display:flex; align-items:center; justify-content:space-between; }
.sb-total{ border-top:1px dashed var(--sb-border); padding-top:.5rem; font-size:1.02rem; }

/* نوار پرداخت پایین (موبایل) */
.sb-paybar{
  position: fixed; inset-inline:0; bottom:-90px;
  background: rgba(15,23,42,.72);
  border-top:1px solid var(--sb-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -10px 25px rgba(0,0,0,.45);
  opacity:0; transition:.24s ease-out; z-index:80;
}
.sb-paybar.is-visible{ bottom:0; opacity:1; }
.sb-paybar-inner{
  max-width:1200px; margin:0 auto; padding:.55rem 1.1rem;
  display:flex; align-items:center; justify-content:space-between; gap:.7rem;
}
.sb-paybar-title{ color: var(--sb-text-soft); font-size:.82rem; }
.sb-paybar-price{ font-weight:700; }

@media (min-width: 981px){
  .sb-paybar{ display:none; }
}

/* کمکی */
.sb-hide{ display:none; }



/* قهرمان موفقیت */
.sb-success{
  margin-top: 1.2rem;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--sb-shadow-card);
  text-align: center;
}
.sb-success h1{
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  margin-top: .5rem;
}
.sb-success-sub{
  color: var(--sb-text-soft);
  margin-top: .35rem;
}
.sb-success-actions{
  display:flex; gap:.6rem; justify-content:center; flex-wrap:wrap; margin-top:.8rem;
}
.sb-success-note{
  color: var(--sb-text-muted);
  font-size:.85rem;
  margin-top:.5rem;
}

/* چک‌مارک انیمیشنی */
.sb-success-icon{
  display:flex; justify-content:center; align-items:center;
}
.sb-check{ width:96px; height:96px; }
.sb-check .ring{
  fill:none; stroke: rgba(34,197,94,.5); stroke-width:3;
  filter: drop-shadow(0 0 8px rgba(34,197,94,.7));
  animation: ringPulse 2.2s ease-in-out infinite;
}
.sb-check .tick{
  fill:none; stroke:#bbf7d0; stroke-width:4; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: tickDraw .9s .2s ease-out forwards;
}
@keyframes tickDraw{ to{ stroke-dashoffset: 0; } }
@keyframes ringPulse{
  0%{ transform: scale(.94); opacity:.9; }
  50%{ transform: scale(1.06); opacity:1; }
  100%{ transform: scale(.94); opacity:.9; }
}

/* لایه‌بندی اصلی */
.sb-order-layout{
  display:grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr);
  gap:1.2rem; margin-top:1.2rem;
}
@media (max-width: 980px){
  .sb-order-layout{ grid-template-columns: minmax(0,1fr); }
}

/* کارت عمومی */
.sb-card{
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  box-shadow: var(--sb-shadow-card);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.sb-card-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:.7rem;
}

/* اقلام سفارش */
.sb-items-list{
  list-style:none; margin:0 0 .8rem 0; padding:0; display:flex; flex-direction:column; gap:.6rem;
}
.sb-item{
  display:grid; grid-template-columns: 70px 1fr auto; gap:.6rem; align-items:center;
  border:1px solid var(--sb-border); border-radius:14px; padding:.45rem .55rem;
  background: var(--sb-bg-card-soft);
}
.sb-item-thumb{
  width:70px; height:70px; border-radius:12px; overflow:hidden; border:1px solid var(--sb-border);
}
.sb-item-thumb img{ width:100%; height:100%; object-fit:contain; background:#000; }
.sb-item-title{ font-size:.92rem; }
.sb-item-meta{ color:var(--sb-text-soft); font-size:.8rem; margin-top:.15rem; }
.sb-item-price{ white-space:nowrap; }

/* جمع‌ها */
.sb-totals{ display:flex; flex-direction:column; gap:.35rem; margin-top:.4rem; }
.sb-totals > div{ display:flex; align-items:center; justify-content:space-between; }
.sb-total{ border-top:1px dashed var(--sb-border); padding-top:.5rem; font-size:1.02rem; }

/* اسپلینت کارت‌های اطلاعات */
.sb-split{
  display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:.8rem; margin-top:.9rem;
}
@media (max-width: 720px){ .sb-split{ grid-template-columns:minmax(0,1fr); } }
.sb-info-card{
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card-soft);
  border-radius:14px; padding:.7rem .8rem; font-size:.88rem;
}
.sb-info-card h3{ font-size:.9rem; margin-bottom:.35rem; }

/* شبکه پیشنهادها دوتایی */
.sb-product-grid-2{
  display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:1rem;
}
@media (max-width: 720px){ .sb-product-grid-2{ grid-template-columns:minmax(0,1fr); } }

/* کنفتی */
.sb-confetti{
  position: fixed; inset:0; pointer-events:none; z-index: 120;
}


/* کارت فرم پیگیری */
.sb-track-form{
  margin-top: 1.2rem;
}
.sb-form-grid-3{
  display:grid; gap:.9rem;
  grid-template-columns: 1fr 1fr auto;
}
.sb-form-actions{
  align-self:end; display:flex; gap:.5rem; align-items:center; justify-content:flex-start;
}
@media (max-width: 900px){
  .sb-form-grid-3{ grid-template-columns: 1fr; }
  .sb-form-actions{ justify-content: stretch; }
  .sb-form-actions .sb-btn{ width:100%; justify-content:center; }
}
.sb-inline-hint{
  margin-top:.4rem; color:var(--sb-text-soft); font-size:.85rem;
}

/* کارت وضعیت */
.sb-status-card{ margin-top: 1rem; }

/* نوار پیشرفت */
.sb-progress{ margin:.3rem 0 1rem 0; }
.sb-progress-bar{
  position:relative; height:10px; border-radius:999px;
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card-soft);
  overflow:hidden;
}
.sb-progress-bar span{
  position:absolute; inset:0 auto 0 0;
  width:0%; background: linear-gradient(90deg,#22c55e,#38bdf8);
  box-shadow: 0 0 22px rgba(56,189,248,.35);
  transition: width .5s ease;
}
.sb-progress-legend{
  margin-top:.35rem; display:flex; justify-content:space-between;
  font-size:.78rem; color:var(--sb-text-soft);
}

/* تایم‌لاین شیشه‌ای */
.sb-timeline{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap:.7rem;
}
.sb-tl-step{
  position:relative; display:grid; grid-template-columns: 28px 1fr auto;
  gap:.6rem; align-items:start; padding:.55rem .6rem;
  background: var(--sb-bg-card-soft); border:1px solid var(--sb-border);
  border-radius:14px;
}
.sb-tl-bullet{
  width:20px;height:20px;border-radius:50%;
  background: #64748b; border:2px solid var(--sb-border);
  box-shadow:none; margin-top:.1rem;
}
.sb-tl-step.done .sb-tl-bullet{
  background:#22c55e; box-shadow: 0 0 10px rgba(34,197,94,.8);
}
.sb-tl-step.current .sb-tl-bullet{
  background:#38bdf8; box-shadow: 0 0 10px rgba(56,189,248,.9);
  animation: sb-pulse 1.8s ease-out infinite;
}
.sb-tl-title{ font-weight:600; }
.sb-tl-sub{ color:var(--sb-text-soft); font-size:.82rem; margin-top:.15rem; }
.sb-tl-time{ color:var(--sb-text-muted); font-size:.78rem; white-space:nowrap; }

/* کارت اقلام و پیشنهاد */
.sb-items-card, .sb-suggestions{ margin-top: 1rem; }

/* لیست اقلام */
.sb-items-list{
  list-style:none; margin:0 0 .8rem 0; padding:0; display:flex; flex-direction:column; gap:.6rem;
}
.sb-item{
  display:grid; grid-template-columns: 70px 1fr auto; gap:.6rem; align-items:center;
  border:1px solid var(--sb-border); border-radius:14px; padding:.45rem .55rem;
  background: var(--sb-bg-card-soft);
}
.sb-item-thumb{ width:70px; height:70px; border-radius:12px; overflow:hidden; border:1px solid var(--sb-border); }
.sb-item-thumb img{ width:100%; height:100%; object-fit:contain; background:#000; }
.sb-item-title{ font-size:.92rem; }
.sb-item-meta{ color:var(--sb-text-soft); font-size:.8rem; margin-top:.15rem; }
.sb-item-price{ white-space:nowrap; }

/* جمع‌ها */
.sb-totals{ display:flex; flex-direction:column; gap:.35rem; }
.sb-totals > div{ display:flex; justify-content:space-between; }
.sb-total{ border-top:1px dashed var(--sb-border); padding-top:.5rem; font-size:1.02rem; }

/* اکشن‌های پایانی */
.sb-actions-row{
  display:flex; gap:.6rem; flex-wrap:wrap; justify-content:flex-end; margin-top:.6rem;
}

/* چیپ وضعیت */
.sb-chip{
  display:inline-flex; align-items:center; gap:.35rem; padding:.18rem .6rem;
  border-radius:999px; border:1px solid var(--sb-border);
  background: var(--sb-bg-card-soft); font-size:.82rem;
}
.sb-chip-green{ border-color: rgba(34,197,94,.7); color:#bbf7d0; }
.sb-chip-blue{ border-color: rgba(56,189,248,.7); color:#bae6fd; }
.sb-chip-yellow{ border-color: rgba(234,179,8,.7); color:#fde68a; }
.sb-chip-red{ border-color: rgba(248,113,113,.85); color:#fecaca; }

/* تکست مونو برای شماره */
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

/* کنفتی */
.sb-confetti{ position:fixed; inset:0; pointer-events:none; z-index: 120; }


/* ===== HERO Service ===== */
.sb-hero-service {
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(34,197,94,.22), transparent 60%),
    var(--sb-bg-card);
}
.sb-hero-service-inner h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: .35rem;
}
.sb-hero-actions { display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.6rem; }

/* ===== Services Grid ===== */
.sb-services-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
@media (max-width: 1024px){ .sb-services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .sb-services-grid { grid-template-columns: minmax(0,1fr); } }

.sb-service-card{
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  box-shadow: var(--sb-shadow-card);
  border-radius: 18px;
  padding: .9rem 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: .16s ease-out;
}
.sb-service-card:hover{
  transform: translateY(-2px);
  border-color: var(--sb-accent-blue);
}
.sb-service-card h3{ font-size: 1rem; margin-bottom: .25rem; }
.sb-service-card p{ color: var(--sb-text-soft); margin-bottom: .4rem; }
.sb-service-icon{
  width:42px; height:42px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card-soft);
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

/* ===== Steps ===== */
.sb-steps{
  list-style: none; margin:0; padding: 0;
  display:grid; gap:.8rem;
}
.sb-step{
  position:relative; border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  border-radius: 16px; padding: .8rem .9rem;
  display:flex; gap:.6rem; align-items:flex-start;
}
.sb-step .dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--sb-accent-green);
  box-shadow: 0 0 10px rgba(34,197,94,.9);
  margin-top:.35rem;
}
.sb-step .content h3{ font-size: .95rem; margin-bottom: .15rem; }
.sb-step .content p{ color: var(--sb-text-soft); }

/* ===== Pricing ===== */
.sb-pricing-grid{
  display:grid; gap:1rem;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 1024px){ .sb-pricing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .sb-pricing-grid { grid-template-columns: minmax(0,1fr); } }

.sb-price-card{
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  border-radius: 18px;
  padding: 1rem 1rem .9rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.sb-price-card.featured{
  border-color: rgba(34,197,94,.7);
  box-shadow: 0 0 22px rgba(34,197,94,.15);
}
.sb-price-card header h3{ font-size: 1rem; }
.sb-price-card ul{ list-style:none; padding:0; margin:.5rem 0; }
.sb-price-card li{ color: var(--sb-text-soft); margin-bottom:.25rem; }
.sb-price-card .price{ margin:.5rem 0 .7rem; }
.sb-price-card .price strong{ font-size: 1.05rem; }

/* ===== FAQ mini ===== */
.sb-faq-mini details{
  border:1px solid var(--sb-border);
  background: var(--sb-bg-card);
  border-radius: 14px;
  padding: .6rem .7rem;
  margin-bottom: .5rem;
}
.sb-faq-mini summary{ cursor:pointer; }
.sb-faq-mini p{ color: var(--sb-text-soft); margin-top: .35rem; }

/* ===== CTA ===== */
.sb-cta{
  display:flex; align-items:center; justify-content:space-between; gap:.8rem;
}
.sb-cta-actions{ display:flex; gap:.6rem; flex-wrap:wrap; }
@media (max-width: 640px){
  .sb-cta{ flex-direction: column; align-items: stretch; }
  .sb-cta-actions .sb-btn{ width:100%; justify-content:center; }
}



/* --- HERO --- */
.sb-hero-smart{
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(34,197,94,.22), transparent 60%),
    var(--sb-bg-card);
}
.sb-hero-row{ display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:1.2rem; align-items:center; }
.sb-hero-actions{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.6rem; }
.sb-hero-meta{ display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.4rem; font-size:.8rem; color:var(--sb-text-soft); }
.sb-hero-img{ border:1px solid var(--sb-border); border-radius:20px; overflow:hidden; background:var(--sb-bg-card-soft); }
.sb-hero-img img{ width:100%; height:100%; object-fit:cover; }

/* --- فرم --- */
.sb-form{ backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sb-form-grid{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:.8rem; }
.sb-col-2{ grid-column: span 2; }
.sb-form-row label{ display:block; margin-bottom:.25rem; font-size:.9rem; }
.sb-form-row input,
.sb-form-row select,
.sb-form-row textarea{
  width:100%; border-radius:12px; border:1px solid var(--sb-border);
  background: var(--sb-bg-card); color: var(--sb-text-main);
  padding:.55rem .7rem; font-size:.9rem;
}
.sb-error-text{ display:none; margin-top:.2rem; font-size:.75rem; color:#fecaca; }
.sb-form-actions{ display:flex; gap:.6rem; justify-content:flex-end; margin-top:.6rem; }

/* --- نوع پروژه (کارت‌های چک) --- */
.sb-section-sub h3{ margin:.6rem 0 .4rem; }
.sb-type-grid{
  display:grid; gap:.8rem;
  grid-template-columns: repeat(5, minmax(0,1fr));
}
@media (max-width: 1200px){ .sb-type-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 920px){ .sb-type-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px){ .sb-type-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }

.sb-type-card{
  position:relative; border:1px solid var(--sb-border); border-radius:16px;
  background: var(--sb-bg-card); padding:.6rem .6rem .75rem;
  display:grid; gap:.35rem; cursor:pointer; transition:.16s ease-out;
}
.sb-type-card:hover{ border-color: var(--sb-accent-blue); }
.sb-type-card input{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.sb-type-card .img{ height:110px; border-radius:12px; overflow:hidden; border:1px solid var(--sb-border); background:var(--sb-bg-card-soft); }
.sb-type-card .img img{ width:100%; height:100%; object-fit:cover; }
.sb-type-card .title{ font-weight:600; text-align:center; }
.sb-type-card .check{
  position:absolute; top:.6rem; left:.6rem; width:18px; height:18px; border-radius:6px;
  border:1px solid var(--sb-border); background: var(--sb-bg-card-soft);
}
.sb-type-card input:checked + .check{
  border-color: rgba(34,197,94,.8);
  box-shadow: 0 0 0 2px rgba(34,197,94,.18);
  background: linear-gradient(135deg, rgba(34,197,94,.3), rgba(34,197,94,.5));
}

/* --- Steps --- */
.sb-steps{ list-style:none; display:grid; gap:.8rem; padding:0; margin:0; }
.sb-step{ display:flex; gap:.6rem; align-items:flex-start; border:1px solid var(--sb-border); background:var(--sb-bg-card); border-radius:16px; padding:.7rem .9rem; }
.sb-step .dot{ width:10px; height:10px; border-radius:999px; background: var(--sb-accent-green); box-shadow:0 0 10px rgba(34,197,94,.9); margin-top:.35rem; }
.sb-step .content h3{ font-size:.95rem; margin:0 0 .15rem; }
.sb-step .content p{ color:var(--sb-text-soft); margin:0; }

/* --- CTA --- */
.sb-cta{ display:flex; align-items:center; justify-content:space-between; gap:.8rem; }

/* --- Responsive --- */
@media (max-width: 980px){
  .sb-hero-row{ grid-template-columns:minmax(0,1fr); }
  .sb-form-grid{ grid-template-columns:minmax(0,1fr); }
  .sb-col-2{ grid-column:auto; }
}
@media (max-width: 640px){
  .sb-cta{ flex-direction:column; align-items:stretch; }
  .sb-cta .sb-btn{ width:100%; justify-content:center; }
}



/* =========================
   Product – Mobile Rework
========================= */

/* پیش‌فرض: لایه موبایل مخفی، روی موبایل فعال می‌شود */
.sb-product-mobile { display: none; }
#desktopLayout { display: block; }

/* گالری موبایل چسبان */
.sb-mob-sticky-wrap{
  position: sticky;
  top: 0;
  z-index: 25;
  background: radial-gradient(circle at top left, rgba(56,189,248,.15), transparent 55%),
              radial-gradient(circle at bottom right, rgba(34,197,94,.15), transparent 55%),
              rgba(15,23,42,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--sb-border);
}
.sb-mob-gallery{
  height: 35vh;           /* ~۳۵٪ ارتفاع صفحه */
  display: grid;
  place-items: center;
}
.sb-mob-gallery img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* خلاصه قیمت/موجودی زیر گالری */
.sb-mob-summary{
  padding: .9rem 1rem;
  background: var(--sb-bg-card);
  border: 1px solid var(--sb-border);
  border-radius: 18px;
  margin: .8rem 0;
  box-shadow: var(--sb-shadow-card);
}
.sb-mob-title{ font-size: 1rem; margin: 0 0 .3rem; }
.sb-mob-price-row{ display: flex; align-items: baseline; gap: .6rem; }
.sb-mob-price-row .now{ font-weight: 700; font-size: 1.05rem; }
.sb-mob-price-row .old{ color: var(--sb-text-muted); text-decoration: line-through; font-size: .85rem; }
.sb-mob-price-row .off{ color: #bbf7d0; font-size: .85rem; }
.sb-mob-stock{ display: flex; align-items:center; gap: .35rem; margin-top: .35rem; color: var(--sb-text-soft); }

/* تب‌ها */
.sb-tab-nav{
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .35rem 0 .5rem;
  margin-bottom: .6rem;
}
.sb-tab-btn{
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color: var(--sb-text-main);
  padding: .4rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: .16s ease-out;
}
.sb-tab-btn.is-active{
  border-color: var(--sb-accent-blue);
  box-shadow: 0 6px 18px rgba(56,189,248,.25);
}
.sb-tab-panel{
  display: none;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  border-radius: 18px;
  padding: .9rem 1rem;
  box-shadow: var(--sb-shadow-card);
}
.sb-tab-panel.is-active{ display: block; }

/* نوار چسبان پایین – شیشه‌ای و تمیز */
.sb-sticky-bar{
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255,255,255,.12);
}

/* فقط روی موبایل فعال شود */
@media (max-width: 820px){
  .sb-product-layout#desktopLayout{ display: none; }
  .sb-product-mobile{ display: block; }

  /* کاهش padding عمومی کارت‌های داخلی برای فشردگی بهتر */
  .sb-product-page .sb-product-description,
  .sb-product-page .sb-product-specs,
  .sb-product-page .sb-install,
  .sb-product-page .sb-product-scenarios,
  .sb-product-page .sb-faq,
  .sb-product-page .sb-reviews{
    padding: .8rem .9rem;
  }
}

/* افکت نبض لطیف روی دکمه افزودن به سبد (قبلاً اگر داشتی هم‌پوشانی نمیشه) */
@keyframes sbPulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  70%{ box-shadow: 0 0 14px 10px rgba(34,197,94,.05); }
  100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.sb-sticky-btn{
  position: relative;
  overflow: hidden;
  animation: sbPulse 2.6s infinite ease-out;
}
.sb-sticky-btn::after{
  content:"";
  position:absolute; top:0; left:-120%;
  width:70%; height:100%;
  background: linear-gradient(120deg,transparent 0%,rgba(255,255,255,.45) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: sbShine 5s infinite ease-in-out;
}
@keyframes sbShine{ 0%{left:-120%} 10%{left:140%} 100%{left:140%} }



/* ===== Cube Gallery (3D) ===== */
.sb-cube-gallery{ position:relative; width:100%; height:35vh; max-height:420px; perspective: 900px; }
.sb-cube{ width:100%; height:100%; position:relative; transform-style:preserve-3d; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.sb-cube-face{
  position:absolute; inset:0; display:grid; place-items:center;
  backface-visibility:hidden;
}
.sb-cube-face img, .sb-cube-face{ width:100%; height:100%; object-fit:contain; border-radius:16px; }
.face-0{ transform: rotateY(  0deg) translateZ( calc(min(50vw,300px)) ); }
.face-1{ transform: rotateY(-90deg) translateZ( calc(min(50vw,300px)) ); }
.face-2{ transform: rotateY(-180deg) translateZ( calc(min(50vw,300px)) ); }
.face-3{ transform: rotateY(-270deg) translateZ( calc(min(50vw,300px)) ); }

.sb-cube-dots{ position:absolute; bottom:.5rem; left:0; right:0; display:flex; gap:.35rem; justify-content:center; }
.sb-cube-dots button{ width:7px; height:7px; border-radius:999px; border:none; background:var(--sb-border-soft); cursor:pointer; }
.sb-cube-dots button.is-active{ width:18px; background:var(--sb-accent-blue); }

@media (min-width:821px){
  /* روی دسکتاپ مکعب را در موبایل نگه داریم */
  .sb-cube-gallery{ height:320px; }
}

/* ===== Lightbox ===== */
.sb-lightbox{
  position:fixed; inset:0; background:rgba(0,0,0,.85);
  display:none; align-items:center; justify-content:center; z-index:9999;
}
.sb-lightbox.is-open{ display:flex; }
.sb-lightbox-img{ max-width:92vw; max-height:86vh; border-radius:12px; }
.sb-lightbox-controls{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; padding:0 1rem;
}
.sb-lightbox-btn{
  width:46px; height:46px; border-radius:50%; border:1px solid var(--sb-border);
  background:rgba(255,255,255,.08); color:#fff; cursor:pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sb-lightbox-close{
  position:absolute; top:12px; left:12px;
}

/* ===== Tab container unified (already styled) ===== */

/* ===== Sticky bar glossy (قبلی) – اطمینان از نمایش مناسب ===== */
.sb-sticky-bar{ background: rgba(15,23,42,.55); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-top:1px solid rgba(255,255,255,.12); }
.sb-sticky-btn{ position:relative; overflow:hidden; }
.sb-sticky-btn::after{
  content:""; position:absolute; top:0; left:-120%; width:70%; height:100%;
  background: linear-gradient(120deg,transparent 0%,rgba(255,255,255,.45) 50%,transparent 100%);
  transform: skewX(-25deg); animation: sbShine 5s infinite ease-in-out;
}
@keyframes sbShine{ 0%{left:-120%} 10%{left:140%} 100%{left:140%} }

/* ===== Mobile mode activator (مثل قبل) ===== */
@media (max-width: 820px){
  #desktopLayout{ display:none; }
  .sb-product-mobile{ display:block; }
}

/* جلوگیری از اسکرول افقی ناخواسته */
html, body { overflow-x: hidden; }

/* نوار پایین: شیشه‌ای + زِد-ایندکس بالا */
.sb-sticky-bar{
  position: fixed;
  inset-inline: 0;
  bottom: -90px;
  opacity: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -10px 25px rgba(0,0,0,0.7);
  transition: .24s ease-out;
  z-index: 9998;
}
.sb-sticky-bar.is-visible{ bottom: 0; opacity: 1; }

.sb-sticky-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}

.sb-sticky-left{
  display: flex;
  align-items: center;
  gap: .6rem;
  position: relative;
  padding-top: 40px; /* برای بیرون‌زدن تصویر */
}

.sb-sticky-thumb{
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 3px solid var(--sb-border);
  overflow: hidden;
  position: absolute;
  top: -35px; right: 15px;
  background: var(--sb-bg-card);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.sb-sticky-thumb img{ width:100%; height:100%; object-fit: cover; }

.sb-sticky-info{ display:flex; flex-direction:column; gap:.1rem; font-size:.86rem; }
.sb-sticky-title{ color:var(--sb-text-main); }
.sb-sticky-price{ color:var(--sb-accent-green); font-weight:600; }

/* دکمه: نبض لطیف + رگه براق */
@keyframes sbPulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.45)} 70%{box-shadow:0 0 14px 10px rgba(34,197,94,.05)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
.sb-sticky-btn{ position:relative; overflow:hidden; animation: sbPulse 2.6s infinite ease-out; }
.sb-sticky-btn::after{
  content:""; position:absolute; top:0; left:-120%; width:70%; height:100%;
  background: linear-gradient(120deg,transparent 0%,rgba(255,255,255,.45) 50%,transparent 100%);
  transform: skewX(-25deg); animation: sbShine 5s infinite ease-in-out;
}
@keyframes sbShine { 0%{left:-120%} 10%{left:140%} 100%{left:140%} }

/* FAB مشاوره */
.sb-consult-float{ position:fixed; bottom:120px; left:20px; z-index:9999; }
.sb-consult-fab{
  width:58px; height:58px; border-radius:50%; border:none; cursor:pointer;
  background: linear-gradient(135deg,#22c55e,#16a34a); color:#fff;
  box-shadow:0 8px 25px rgba(0,0,0,.35); display:flex; align-items:center; justify-content:center;
  transition:.25s ease; backdrop-filter: blur(12px);
}
.sb-consult-fab:hover{ transform: scale(1.08); }

.sb-consult-fab-menu{
  position:absolute; bottom:70px; left:0; display:flex; flex-direction:column; gap:8px;
  opacity:0; transform: translateY(10px) scale(.95); pointer-events:none; transition:.22s ease-out;
}
.sb-consult-fab-menu.is-open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.sb-fab-item{
  background:var(--sb-bg-card); border:1px solid var(--sb-border);
  color:var(--sb-text-main); padding:.45rem .75rem; border-radius:12px;
  font-size:.8rem; box-shadow:var(--sb-shadow-card); text-decoration:none; white-space:nowrap;
}
.sb-fab-item:hover{ background:var(--sb-bg-card-soft); }

/* لرزش آیکن سبد خرید بعد از افزودن */
@keyframes cartShake { 0%{transform:translateX(0)} 25%{transform:translateX(-3px)} 50%{transform:translateX(3px)} 75%{transform:translateX(-2px)} 100%{transform:translateX(0)} }
.sb-cart-shake{ animation: cartShake .45s ease; }

/* تصویر موقت کارت‌ها همیشه دیده شود */
.sb-product-image-wrap img{ object-fit: contain; background:#000; }

/* ===== گالری محصول: فیکس شدن در 35% ارتفاع صفحه روی موبایل ===== */
@media (max-width: 820px) {
  .sb-product-gallery-main {
    position: sticky;
    top: 0;                /* زیر هدر هم درست می‌ایستد */
    height: 35vh;          /* فیکس در 35 درصد نمایه */
    z-index: 1;
    display: block;
  }
  .sb-product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* کل عکس همیشه دیده شود */
  }
  .sb-product-gallery {
    gap: 0.6rem;           /* فاصله مناسب با بندانگشتی‌ها */
  }
}

/* ===== صحنه و انیمیشن 3D هنگام تعویض عکس ===== */
.sb-3d-stage {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.sb-3d-stage img {
  backface-visibility: hidden;
}

/* دو کلاس گذر 3D؛ خروج و ورود از راست/چپ */
.sb-3d-out-left   { animation: sbFlipOutLeft  380ms ease forwards; }
.sb-3d-in-right   { animation: sbFlipInRight  420ms ease forwards; }
.sb-3d-out-right  { animation: sbFlipOutRight 380ms ease forwards; }
.sb-3d-in-left    { animation: sbFlipInLeft   420ms ease forwards; }

/* کلون بالاسری برای انیمیشن */
.sb-3d-clone {
  position: absolute;
  inset: 0;
  object-fit: contain;
}

/* Keyframes */
@keyframes sbFlipOutLeft {
  0%   { transform: rotateY(0deg);   opacity: 1; }
  100% { transform: rotateY(90deg);  opacity: .15; }
}
@keyframes sbFlipInRight {
  0%   { transform: rotateY(-90deg); opacity: .15; }
  100% { transform: rotateY(0deg);   opacity: 1; }
}
@keyframes sbFlipOutRight {
  0%   { transform: rotateY(0deg);   opacity: 1; }
  100% { transform: rotateY(-90deg); opacity: .15; }
}
@keyframes sbFlipInLeft {
  0%   { transform: rotateY(90deg);  opacity: .15; }
  100% { transform: rotateY(0deg);   opacity: 1; }
}


:root { --sb-header-h: 72px; } /* مقدار اولیه؛ JS به‌روز می‌کند */

main.sb-shell, .sb-shell { 
  padding-top: calc(var(--sb-header-h)); /* فاصله‌ی امن زیر هدر */
}

/* اسکرول به انکرها هم درست بخورد */
html { scroll-padding-top: calc(var(--sb-header-h) + 8px); }

/* هدر همیشه روی صفحه بماند */
.sb-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.70));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sb-border);
}

/* سایه و حالت بعد از اسکرول */
.sb-header.is-scrolled{
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  background: linear-gradient(to bottom, rgba(15,23,42,.98), rgba(15,23,42,.8));
}

/* فاصله‌گذار بعد از هدر برای جلوگیری از دَست‌خوردن لِی‌اوت */
.sb-header-spacer{
  height: var(--sb-header-h);
}

/* برای اسکرول به اَنکرها، بالای صفحه زیر هدر قطع نشود */
html { scroll-padding-top: var(--sb-header-h); }


/* بنر تبلیغی هم‌تم با HERO */
.sb-banner {
  border-radius: 26px;
  border: 1px solid var(--sb-border);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34,197,94,.22), transparent 55%),
    rgba(15,23,42,.85);
  box-shadow: var(--sb-shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: .8rem;
}

.sb-banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/6; /* 16:6 بنری و کشیده */
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--sb-border);
}
.sb-banner-slider img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity .6s ease, transform .6s ease;
}
.sb-banner-slider img.is-active{ opacity: 1; transform: none; }

@media (max-width: 820px){
  .sb-banner { padding: .6rem; }
  .sb-banner-slider { aspect-ratio: 16/9; } /* روی موبایل کمی بلندتر */
}


/* کارت‌ها حالا <a> هستند؛ ظاهر ثابت بماند */
a.sb-product-card,
a.sb-product-card-full {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* همان افکت هاور کارت */
a.sb-product-card:hover,
a.sb-product-card-full:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(0,0,0,1);
  border-color: var(--sb-accent-blue);
}

/* دسترس‌پذیری و فوکس کیبوردی زیبا */
a.sb-product-card:focus-visible,
a.sb-product-card-full:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: var(--sb-accent-blue);
  box-shadow:
    0 0 0 3px rgba(56,189,248,.55),
    var(--sb-shadow-card);
}



/* پنل اصلی */
.sb-mm-panel{
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .75rem;
  padding: .9rem 1rem 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.22), transparent 60%),
    radial-gradient(circle at bottom right, rgba(34,197,94,.18), transparent 60%),
    rgba(15,23,42,.88);
  border: 1px solid var(--sb-border);
  box-shadow: var(--sb-shadow-card);
  border-radius: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(14px);
  opacity: 0;
  transition: transform .22s ease-out, opacity .22s ease-out;
}
html.theme-light .sb-mm-panel{
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(34,197,94,.10), transparent 60%),
    rgba(255,255,255,.92);
}


/* هدر منو */
.sb-mm-header{
  display: flex; align-items: center; justify-content: space-between;
}
.sb-mm-brand{
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--sb-text-main);
}
.sb-mm-mark{
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(56,189,248,.5);
  background: radial-gradient(circle at top, rgba(56,189,248,.8), rgba(8,47,73,1));
  box-shadow: 0 0 16px rgba(56,189,248,.8);
  font-weight: 700;
}
.sb-mm-title{ font-size: .95rem; letter-spacing: .06em; }

.sb-mm-close{
  background: none; border: 1px solid var(--sb-border);
  color: var(--sb-text-main);
  border-radius: 12px; width: 38px; height: 38px; cursor: pointer;
}

/* جست‌وجو */
.sb-mm-search{
  display: grid; grid-template-columns: 1fr auto; gap: .45rem;
}
.sb-mm-search input{
  padding: .6rem .8rem; border-radius: 12px;
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-card);
  color: var(--sb-text-main);
}
.sb-mm-search button{
  padding: .6rem .8rem; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--sb-border); background: var(--sb-bg-card); color: var(--sb-text-main);
}

/* لیست آیتم‌ها */
.sb-mm-list{ list-style: none; margin: .2rem 0; padding: 0; }
.sb-mm-list > li{ margin: .15rem 0; }

.sb-mm-list a{
  display: block; padding: .55rem .7rem;
  border-radius: 12px; color: var(--sb-text-main); text-decoration: none;
  border: 1px solid transparent; background: transparent;
  transition: .15s ease-out;
}
.sb-mm-list a:hover{
  border-color: var(--sb-accent-blue);
  background: var(--sb-bg-card-soft);
}

.sb-mm-theme{
  width: 100%; padding: .6rem .7rem; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--sb-border); background: var(--sb-bg-card); color: var(--sb-text-main);
}

.mm-sep{
  height: 1px; margin: .35rem 0;
  background: var(--sb-border-soft);
  border-radius: 999px;
}

/* آکاردئون دسته‌بندی */
.mm-accordion .mm-accordion-toggle{
  width: 100%; text-align: right; padding: .6rem .7rem; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--sb-border); background: var(--sb-bg-card); color: var(--sb-text-main);
}
.mm-accordion .mm-sub{
  list-style: none; margin: .35rem 0 0; padding: 0;
  border-left: 2px solid var(--sb-border-soft);
}
.mm-accordion .mm-sub a{
  margin: .15rem 0; padding: .5rem .7rem .5rem .5rem;
}
.mm-accordion.is-open .mm-accordion-toggle{ border-color: var(--sb-accent-blue); }
.mm-accordion.is-open .mm-accordion-toggle::after{ content:""; }

/* فوتر اکشن‌ها */
.sb-mm-footer{
  display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .2rem;
}
.sb-mm-pill{
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .75rem; border-radius: 999px;
  border: 1px solid var(--sb-border); background: var(--sb-bg-card);
  color: var(--sb-text-main); text-decoration: none; font-size: .85rem;
}

/* مخفی/نمایش ورود یا اکانت بر اساس وضعیت لاگین */
.sb-mm-auth{ display: none; }
html.mm-logged-out .sb-mm-auth[data-auth="logged-out"]{ display: list-item; }
html.mm-logged-in  .sb-mm-auth[data-auth="logged-in"] { display: list-item; }





/* هدر منو */
.sb-mm-header{
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding: .9rem 1rem;
  border-bottom: 1px solid var(--sb-border);
}
.sb-mm-brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:inherit}
.sb-mm-mark{width:28px;height:28px;border-radius:999px;border:1px solid rgba(56,189,248,.5);
  background: radial-gradient(circle at top, rgba(56,189,248,.8), rgba(8,47,73,1));
  display:grid;place-items:center;font-weight:700;color:#e0f2fe;box-shadow:0 0 18px rgba(56,189,248,.9)}
.sb-mm-title{font-weight:700;letter-spacing:.04em}
.sb-mm-close{border:1px solid var(--sb-border);background:var(--sb-bg-card);border-radius:10px;
  padding:.35rem .6rem;cursor:pointer}

/* جست‌وجو */
.sb-mm-search{display:flex;gap:.4rem;padding:.7rem 1rem;border-bottom:1px solid var(--sb-border)}
.sb-mm-search input{flex:1;border:1px solid var(--sb-border);border-radius:12px;background:var(--sb-bg-card);
  color:var(--sb-text-main);padding:.55rem .7rem}
.sb-mm-search button{border:1px solid var(--sb-border);background:var(--sb-bg-card);border-radius:12px;padding:.55rem .8rem}

/* لیست */
.sb-mm-list{list-style:none;margin:0;padding:.6rem}
.sb-mm-list li{margin:.15rem 0}
.sb-mm-list a,
.sb-mm-list button.mm-accordion-toggle,
.sb-mm-theme{
  width:100%; text-align:start; display:block;
  padding:.7rem .9rem; border-radius:14px; border:1px solid var(--sb-border);
  background:var(--sb-bg-card-soft); color:var(--sb-text-main); text-decoration:none;
}
.sb-mm-list a:hover, .sb-mm-theme:hover{border-color:var(--sb-accent-blue)}
.mm-sep{height:1px;margin:.5rem 0;background:var(--sb-border)}
.mm-accordion .mm-sub{list-style:none;margin:.35rem 0 0 .2rem;padding:0}
.mm-accordion .mm-sub li a{margin-top:.25rem}

/* فوتر */
.sb-mm-footer{margin-top:auto;display:flex;gap:.5rem;padding: .8rem 1rem;border-top:1px solid var(--sb-border)}
.sb-mm-pill{flex:1;text-align:center;padding:.6rem;border-radius:12px;border:1px solid var(--sb-border);
  background:var(--sb-bg-card);text-decoration:none;color:inherit}


  /* ========== Mobile Menu – Glass Fullscreen (final) ========== */
html.mm-open, body.mm-open { overflow: hidden; }

/* کانتینر */
.sb-mobile-menu {
  position: fixed; inset: 0; z-index: 1200; display: none;
}
.sb-mobile-menu.is-open { display: block; }

/* بک‌دراپ شیشه‌ای با گرادیان */
.sb-mm-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 800px at 12% 10%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(1000px 700px at 85% 85%, rgba(34,197,94,0.16), transparent 60%),
    rgba(2,6,23,0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .22s ease-out;
}
.sb-mobile-menu.is-open .sb-mm-backdrop { opacity: 1; }

/* پنل */
.sb-mm-panel {
  position: absolute; inset: clamp(10px,3vw,20px);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .75rem;
  padding: .9rem 1rem 1.1rem;
  border: 1px solid var(--sb-border);
  border-radius: 24px;
  background:
    radial-gradient(60% 50% at 30% 0%,   rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(60% 50% at 70% 100%, rgba(34,197,94,0.16),  transparent 60%),
    linear-gradient(135deg, rgba(15,23,42,0.72), rgba(2,6,23,0.62));
  background-size: 200% 200%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%);
  transform: translateY(8px) scale(0.985); opacity: 0;
  transition: opacity .25s ease, transform .25s ease, background-position 12s ease-in-out;
  animation: mm-panel-pulse 9s ease-in-out infinite alternate;
}
.sb-mobile-menu.is-open .sb-mm-panel {
  opacity: 1; transform: translateY(0) scale(1); background-position: 100% 100%;
}
@keyframes mm-panel-pulse {
  0%   { box-shadow: 0 30px 60px rgba(0,0,0,0.48), inset 0 1px rgba(255,255,255,0.06); }
  100% { box-shadow: 0 34px 68px rgba(0,0,0,0.64), inset 0 1px rgba(255,255,255,0.08); }
}

/* تم روشن */
html.theme-light .sb-mm-backdrop {
  background:
    radial-gradient(1200px 800px at 12% 10%, rgba(2,132,199,0.18), transparent 60%),
    radial-gradient(1000px 700px at 85% 85%, rgba(22,163,74,0.16), transparent 60%),
    rgba(241,245,249,0.35);
}
html.theme-light .sb-mm-panel {
  background:
    radial-gradient(60% 50% at 30% 0%,   rgba(2,132,199,0.16), transparent 60%),
    radial-gradient(60% 50% at 70% 100%, rgba(22,163,74,0.14),  transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.62));
  border-color: rgba(148,163,184,0.35);
}

/* هدر و دکمه بستن */
.sb-mm-header{ display:flex; align-items:center; justify-content:space-between; }
.sb-mm-brand{ display:inline-flex; align-items:center; gap:.5rem; text-decoration:none; color:var(--sb-text-main); }
.sb-mm-mark{
  width: 32px; height: 32px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid rgba(56,189,248,0.25);
  background: radial-gradient(circle at top, rgba(56,189,248,0.28), rgba(8,47,73,1));
  box-shadow: 0 0 16px rgba(56,189,248,0.18); font-weight:700;
}
.sb-mm-title{ font-size:.95rem; letter-spacing:.06em; }
.sb-mm-close{
  background: none; border: 1px solid var(--sb-border); color: var(--sb-text-main);
  border-radius: 12px; width: 38px; height: 38px; cursor: pointer;
  z-index: 2;
}

/* جستجو */
.sb-mm-search{ display:grid; grid-template-columns:1fr auto; gap:.45rem; }
.sb-mm-search input{
  padding:.6rem .8rem; border-radius:12px; border:1px solid var(--sb-border);
  background: var(--sb-bg-card); color: var(--sb-text-main);
}
.sb-mm-search button{
  padding:.6rem .8rem; border-radius:12px; cursor:pointer;
  border:1px solid var(--sb-border); background: var(--sb-bg-card); color: var(--sb-text-main);
}

/* لیست لینک‌ها */
.sb-mm-list{ list-style:none; margin:.2rem 0; padding:0; }
.sb-mm-list > li{ margin:.15rem 0; }
.sb-mm-list a{
  display:block; padding:.55rem .7rem; border-radius:12px; color:var(--sb-text-main); text-decoration:none;
  border:1px solid transparent; background:transparent; transition:.15s ease-out;
}
.sb-mm-list a:hover{ border-color: var(--sb-accent-blue); background: var(--sb-bg-card-soft); }

.mm-sep{ height:1px; margin:.35rem 0; background: var(--sb-border-soft); border-radius:999px; }

/* آکاردئون دسته‌بندی */
.mm-accordion .mm-accordion-toggle{
  width:100%; text-align:right; padding:.6rem .7rem; border-radius:12px; cursor:pointer;
  border:1px solid var(--sb-border); background: var(--sb-bg-card); color: var(--sb-text-main);
}
.mm-accordion .mm-sub{ list-style:none; margin:.35rem 0 0; padding:0; border-left:2px solid var(--sb-border-soft); }
.mm-accordion .mm-sub a{ margin:.15rem 0; padding:.5rem .7rem .5rem .5rem; }
.mm-accordion.is-open .mm-accordion-toggle{ border-color: var(--sb-accent-blue); }

/* فوتر اکشن‌ها */
.sb-mm-footer{ display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.2rem; }
.sb-mm-pill{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.45rem .75rem; border-radius:999px;
  border:1px solid var(--sb-border); background: var(--sb-bg-card);
  color: var(--sb-text-main); text-decoration:none; font-size:.85rem;
}

/* نمایش/عدم‌نمایش آیتم‌های ورود/حساب */
.sb-mm-auth{ display:none; }
html.mm-logged-out .sb-mm-auth[data-auth="logged-out"]{ display:list-item; }
html.mm-logged-in  .sb-mm-auth[data-auth="logged-in"] { display:list-item; }

/* دسکتاپ منوی موبایل لازم نیست */
@media (min-width: 821px){
  .sb-mobile-menu{ display:none !important; }
}


/* ============================
   HEADER / NAV – RESPONSIVE FIX
   (mobile-first override)
============================ */

/* ============================
   Mobile menu – layout & scroll
   لی‌اوت شیک + اسکرول فقط وسط
============================ */

.sb-mm-panel {
  /* قبلی‌ها (position, inset, پس‌زمینه و...) سرجایشان می‌ماند،
     این‌ها فقط روی layout و ارتفاع نهایی override می‌کنند */
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2.5rem); /* منو هیچ‌وقت از ارتفاع صفحه بیرون نزند */
  overflow: hidden;                  /* نگذاریم چیزی از خود پنل بیرون بزند */
}

/* هدر، سرچ، فوتر ثابت بمانند؛ بخش وسط (لیست) کش بیاید و اسکرول شود */
.sb-mm-header,
.sb-mm-search,
.sb-mm-footer {
  flex-shrink: 0;
}

.sb-mm-list {
  flex: 1 1 auto;
  min-height: 0;                 /* برای اینکه اسکرول درست کار کند */
  overflow-y: auto;
  padding-inline-end: .25rem;    /* کمی جا برای اسکرول‌بار */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* اسکرول‌بار ظریف داخل منو (فقط روی لیست) */
.sb-mm-list::-webkit-scrollbar {
  width: 4px;
}
.sb-mm-list::-webkit-scrollbar-track {
  background: transparent;
}
.sb-mm-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7); /* شبحی، نه جیغ */
  border-radius: 999px;
}
html.theme-light .sb-mm-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.9);
}

/* کمی نظم بیشتر برای زیردسته‌های آکاردئون */
.mm-accordion .mm-sub {
  margin: .3rem 0 0;
  padding: 0 0 0 .25rem;
  border-left: 2px solid var(--sb-border-soft);
}

/* فوتر پایین منو: مرتب، جدا از محتوا، و واکنش‌گرا */
.sb-mm-footer {
  margin-top: .45rem;
  padding-top: .55rem;
  border-top: 1px dashed var(--sb-border-soft);
  justify-content: space-between;
}

@media (max-width: 480px) {
  .sb-mm-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .sb-mm-pill {
    justify-content: center;
    width: 100%;
  }
}


/* موبایل و تبلت کوچک: منوی دسکتاپ مخفی، دکمه همبرگری روشن */
@media (max-width: 820px) {

  /* منوی اصلی دسکتاپ رو مخفی کن */
  .sb-nav {
    display: none;
  }

  /* هدر کمی فشرده‌تر روی موبایل */
  .sb-header-inner {
    padding-inline: 1rem;
    gap: 0.5rem;
  }

  .sb-header-actions {
    gap: 0.4rem;
  }

  /* دکمه منوی موبایل (همبرگری) روی موبایل دیده شود */
  .sb-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.4rem;
  }
}

/* دسکتاپ: منوی اصلی فعال، منوی موبایل کلاً خاموش */
@media (min-width: 821px) {

  /* روی دسکتاپ منوی لینک‌ها همیشه فعال باشد */
  .sb-nav {
    display: flex;
  }

  /* دکمه همبرگری روی دسکتاپ مخفی شود */
  .sb-nav-toggle {
    display: none;
  }

  /* منوی موبایل به طور کامل غیرفعال بماند */
  .sb-mobile-menu {
    display: none !important;
  }
}


/* ========== FOOTER GLASS ========== */

.sb-footer-glass {
  margin-top: 4rem;
  padding: 3rem 1rem 2rem;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(15, 25, 35, 0.45);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  border-radius: 22px 22px 0 0;
}

.sb-footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1400px;
  margin: auto;
  padding: 1rem;
}

.sb-footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sb-text-strong, #fff);
}

.sb-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sb-footer-col ul li {
  margin: 0.5rem 0;
  opacity: 0.9;
}

.sb-footer-col ul li a {
  color: var(--sb-text-soft, #ccc);
  transition: 0.3s;
}

.sb-footer-col ul li a:hover {
  color: #00ffb7;
}

/* شبکه‌های اجتماعی */
.sb-social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.sb-social-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.sb-social-icon:hover {
  background: rgba(0,255,180,0.18);
  transform: translateY(-3px);
}

/* کارت اینماد */
.sb-enamad-card {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  text-align: center;
}

.sb-enamad-placeholder {
  margin-top: 1rem;
  background: rgba(255,255,255,0.12);
  padding: 1.8rem;
  border-radius: 10px;
  font-size: 1rem;
  letter-spacing: 2px;
}

/* متن پایین فوتر */
.sb-footer-copy {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
  opacity: 0.7;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* واکنش‌گرا */
@media (max-width: 900px) {
  .sb-footer-container {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 600px) {
  .sb-footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sb-social-row {
    justify-content: center;
  }
}





.sb-cart-alert {
  margin-top:.5rem; font-size:.85rem;
  color: var(--sb-warning-fg, #d7a34a);
  background: color-mix(in oklab, var(--sb-warning-fg, #d7a34a) 12%, transparent);
  border: 1px dashed color-mix(in oklab, var(--sb-warning-fg, #d7a34a) 40%, transparent);
  padding:.35rem .5rem; border-radius:.5rem;
}
.sb-cart-alert.is-error{
  color:#ff6b6b;
  border-color: color-mix(in oklab, #ff6b6b 40%, transparent);
  background: color-mix(in oklab, #ff6b6b 12%, transparent);
}
.sb-qty-btn.is-disabled{ 
  pointer-events:none; opacity:.35; filter:grayscale(1);
}


/* ===== استیکی ===== */
.sb-product-sections-nav {
  position: sticky;
  top: 60px; /* یا هر ارتفاع هدر */
  z-index: 40;
  background: rgba(20,20,20,0.4);
  backdrop-filter: blur(14px);
  padding: 0.7rem 0.4rem;
  border-radius: 16px;
}

/* ردیف دکمه‌های تب */
.sb-tab-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  scrollbar-width: none;
}
.sb-tab-nav::-webkit-scrollbar { display: none; }

/* ===== دکمه دایره‌ای واقعی ===== */
.sb-tab-btn {
  flex: 0 0 auto;           /* جلوگیری از کش آمدن */
  width: 80px !important;   /* اندازه ثابت */
  height: 80px !important;  /* اندازه ثابت */
  aspect-ratio: 1/1 !important;  /* دایره واقعی */
  
  border-radius: 50% !important;
  padding: 0 !important;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);

  gap: 4px;
  font-size: 0.75rem;
  color: #fff;

  transition: .25s;
}

/* مدیریت آیکن */
.sb-tab-btn i {
  font-size: 1.45rem;
  line-height: 1;
}

/* هاور */
.sb-tab-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* فعال */
.sb-tab-btn.is-active {
  background: linear-gradient(135deg,#00f5c8,#009f85);
  color: #001;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 4px 18px rgba(0,255,190,.35);
  transform: translateY(-3px);
}


/* ===== ظرف استیکی تب‌ها ===== */
.sb-product-tabs-sticky {
  position: sticky;
  top: 70px; /* این را با ارتفاع هدر خودت تنظیم کن */
  z-index: 40;
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(14px);
  padding: 0.5rem 0.5rem 0.65rem;
  border-radius: 16px;
}

/* ===== ردیف اسکرولی دکمه‌ها ===== */
.sb-product-tabs-wrapper {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  scrollbar-width: none;
}
.sb-product-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

/* ===== دکمه‌های تب: دایره‌ای و شیشه‌ای ===== */
.sb-tab-btn {
  flex: 0 0 auto;
  width: 80px !important;
  height: 80px !important;
  aspect-ratio: 1 / 1 !important;

  border-radius: 50% !important;
  padding: 0 !important;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);

  gap: 4px;
  font-size: 0.75rem;
  color: #f9fafb;
  white-space: nowrap;

  transition: 0.25s ease;
}

.sb-tab-icon {
  font-size: 1.45rem;
  line-height: 1;
}

/* هاور */
.sb-tab-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* فعال */
.sb-tab-btn.is-active {
  background: linear-gradient(135deg, #00f5c8, #00a37c);
  color: #001015;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 18px rgba(0, 255, 190, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

/* ریسایز برای موبایل‌های کوچکتر */
@media (max-width: 480px) {
  .sb-tab-btn {
    width: 68px !important;
    height: 68px !important;
  }

  .sb-tab-icon {
    font-size: 1.25rem;
  }

  .sb-tab-btn span {
    font-size: 0.68rem;
  }
}

/* ===== انیمیشن hint اسکرول ===== */
@keyframes sb-tab-scroll-hint {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-14px); }
  50%  { transform: translateX(0); }
  75%  { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

.sb-product-tabs-wrapper.sb-tabs-hint {
  animation: sb-tab-scroll-hint 1.8s ease;
}

/* روی تب‌ها پوزیشن گرفته شود */
.sb-tab-nav {
  position: relative;
}

/* انگشت راهنما */
.sb-tab-hint-finger {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.8rem;                 /* بزرگ‌تر و واضح‌تر */
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  animation: sb-finger-swipe 8.6s ease-in-out 0.4s 1 forwards;
}

/* انیمیشن ارتقا یافته */
@keyframes sb-finger-swipe {
  0%   { opacity: 0; transform: translate(-50%, 0); }

  10%  { opacity: 1; transform: translate(-50%, 0); }

  /* حرکت زیاد به چپ = نشان دادن "سمت راست اسکرول کن" */
  35%  { opacity: 1; transform: translate(-120%, 0); }

  /* حرکت زیاد به راست = نشان دادن "سمت چپ هم داری" */
  65%  { opacity: 1; transform: translate(20%, 0); }

  /* ثابت بماند تا چشم کاربر آن را بفهمد */
  80%  { opacity: 1; transform: translate(-50%, 0); }

  /* ناپدید شدن بعد از ~۵ ثانیه */
  100% { opacity: 0; transform: translate(-50%, 0); }
}


/* حذف → icon only */
.sb-remove-icon {
  background: transparent;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
  color: var(--sb-text-soft);
  transition: color .2s ease;
}
.sb-remove-icon:hover {
  color: var(--sb-accent);
}

/* گزینه انتخاب روش ارسال */
.sb-ship-opt {
    border: 1px solid var(--sb-border);
    border-radius: 10px;
    padding: .55rem .8rem;
    margin-bottom: .5rem;
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    cursor: pointer;
    opacity: .65;
    transition: .18s ease;
}

.sb-ship-opt input {
  transform: scale(1.2);
}
/* فقط گزینه انتخاب‌شده */
.sb-ship-opt.is-selected {
    border-color: #06a067 !important; /* سبز ملایم */
    box-shadow: 0 0 0 2px rgba(0, 208, 132, 0.23);
    opacity: 1 !important;
    background: rgba(0, 208, 132, 0.07); /* زمینه سبز کم‌رنگ */
}

.sb-ship-opt.selected {
   border: 2px solid var(--sb-accent);
   background: rgba(0,255,180,0.08);
}
.sb-ship-opt {
   opacity: .6;
}
.sb-ship-opt.selected {
   opacity: 1;
}



/* محل جدید دکمه حذف */
.sb-cart-line-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.sb-remove-icon {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: .3rem;
  color: var(--sb-text-soft);
  transition: .2s;
}
.sb-remove-icon:hover {
  color: var(--sb-danger);
}

/* Modal مخصوص حذف */
.remove-modal .sb-modal-card {
  max-width: 380px;
  text-align: center;
}

.remove-actions {
  margin-top:1rem;
  display: flex;
  justify-content: center;
  gap:1rem;
}

.sb-btn-danger {
  background: #d9534f;
  color:#fff;
}
.sb-btn-danger:hover {
  background:#c9302c;
}

@media (max-width: 640px) {
  .sb-cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem .7rem;
  }

  .sb-cart-thumb img {
    width: 96px;
    height: 96px;
    border-radius: 12px;
  }

  .sb-cart-line-total {
    width: 100%;
    justify-content: space-between;
    margin-top: .6rem;
  }

  .sb-cart-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: .7rem;
    margin-top: .5rem;
  }

  .sb-remove-icon {
    margin-right: auto;
  }
}

.sb-cart-item.swipe-wrapper {
  position: relative;
  overflow: hidden;
}

.sb-swipe-delete {
  position: absolute;
  top: 0;
  right: -80px;
  width: 80px;
  height: 100%;
  background: #d9534f;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  transition: right .25s ease;
}

.sb-cart-item.swiped .sb-swipe-delete {
  right: 0;
}



.checklist {
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-right: 26px;  /* که LED روی متن نیفتد — برای RTL */
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* LED سبز چشمک‌زن */
.checklist li::before {
  content: "";
  position: absolute;
  top: 0.65rem;        /* هماهنگ با محل همان بولت قبلی */
  right: 0;            /* RTL: سمت راست */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1538d4; /* سبز زیبا */
  
  box-shadow:
    0 0 4px #0e2eb9,
    0 0 8px rgba(4, 4, 179, 0.8),
    0 0 12px rgba(10, 4, 124, 0.5);

  animation: sbLedPulse 1.2s ease-in-out infinite;
}

@keyframes sbLedPulse {
  0%   { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.5); opacity: .55; }
  100% { transform: scale(1);   opacity: 1; }
}



.sb-video-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 1.4rem auto;
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.sb-video-box iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}


/* بدنه کلی */
.collapsibleCollaps {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    margin: 1rem 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--sb-text-main);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background .25s ease, border-color .25s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hover */
.collapsibleCollaps:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255,255,255,0.25);
}

/* فلش */
.collapsibleCollaps::after {
    content: "▾";
    font-size: 18px;
    opacity: 0.8;
    transition: transform .3s ease;
}

/* وقتی باز است فلش بچرخد */
.contentCollaps.open ~ .collapsibleCollaps::after,
.collapsibleCollaps.active::after {
    transform: rotate(180deg);
}

/* محتوای داخل */
.contentCollaps {
    max-height: 0;
    overflow: hidden;
    padding: 0 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0);
    transition: max-height .35s ease, padding .25s ease;
}

/* وقتی باز است */
.contentCollaps.open {
    padding: 0.5rem 0.2rem 1rem 0.2rem;
    background: rgba(255, 255, 255, 0.03);
    max-height: 3000px; /* متناسب با متن بلند تو */
}

/* محتواهای داخلی */
.contentCollaps p,
.contentCollaps ul,
.contentCollaps div {
    font-size: 17px;
    line-height: 1.9;
    margin: 0;
}

/* لیست چک‌مارک‌ها هماهنگ با جدید */
.contentCollaps .checklist li {
    position: relative;
    padding-right: 26px;
    margin: .4rem 0;
}

.contentCollaps .checklist li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    background: #3bff7a;
    border-radius: 50%;
    box-shadow: 0 0 8px #3bff7a;
}


    .sb-related-products {
      margin-top: 2.5rem;
    }

    .sb-related-products-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.2rem;
    }

    .sb-card-product {
      background: var(--sb-card);
      border-radius: 18px;
      box-shadow: var(--sb-shadow-card);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }

    .sb-card-thumb {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      overflow: hidden;
    }

    .sb-card-thumb img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform .25s ease-out;
    }

    .sb-card-product:hover .sb-card-thumb img {
      transform: scale(1.05);
    }

    .sb-card-body {
      padding: .75rem .9rem 1rem;
      display: flex;
      flex-direction: column;
      gap: .45rem;
    }

    .sb-card-title {
      font-size: .95rem;
      margin: 0;
    }

    .sb-card-title a {
      color: var(--sb-text);
      text-decoration: none;
    }

    .sb-card-title a:hover {
      color: var(--sb-accent);
    }

    .sb-card-text {
      font-size: .82rem;
      color: var(--sb-text-soft);
      line-height: 1.7;
      max-height: 3.4em;  /* دو خط */
      overflow: hidden;
    }

    .sb-card-footer {
      margin-top: .35rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .5rem;
    }

    .sb-card-price {
      font-size: .9rem;
      font-weight: 600;
      color: var(--sb-accent);
      white-space: nowrap;
    }

    .sb-card-btn {
      font-size: .8rem;
      padding: .35rem .75rem;
      border-radius: 999px;
      text-decoration: none;
      background: var(--sb-accent-soft);
      color: var(--sb-accent-strong, var(--sb-accent));
      flex-shrink: 0;
    }

    .sb-card-btn:hover {
      background: var(--sb-accent);
      color: #fff;
    }


    .sb-blog-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.sb-blog-image-wrap {
  flex-shrink: 0;
}

.sb-blog-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.sb-blog-card h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.sb-blog-card p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.sb-blog-more-btn {
  background: none;
  border: none;
  color: #0a84ff;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  margin-top: 4px;
}



.sb-search-header {
      text-align: center;
      padding: 2rem 0 1rem;
    }
    .sb-search-header h1 {
      font-size: 1.8rem;
    }

    .sb-search-box {
      max-width: 650px;
      margin: 1rem auto 2rem;
      display: flex;
      gap: .5rem;
    }
    .sb-search-box input {
      flex: 1;
      padding: .9rem 1rem;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.15);
      background: rgba(255,255,255,0.08);
      color: inherit;
      font-size: 1rem;
    }
    .sb-search-box button {
      padding: .9rem 1.2rem;
      border-radius: 14px;
      background: var(--sb-primary);
      color: #fff;
      font-weight: 600;
    }

    .sb-search-section {
      margin: 2rem 0;
    }
    .sb-search-label {
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 1rem;
      color: var(--sb-text-soft);
    }

    .sb-search-empty {
      text-align: center;
      color: var(--sb-text-soft);
      font-size: 1.1rem;
      margin-top: 3rem;
    }

    /* Auto-complete */
    .sb-autocomplete-box {
      max-width: 650px;
      margin: 0 auto;
      position: relative;
    }
    .sb-autocomplete-list {
      position: absolute;
      top: 110%;
      width: 100%;
      backdrop-filter: blur(10px);
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px;
      padding: .5rem 0;
      z-index: 50;
      display: none;
    }
    .sb-autocomplete-item {
      padding: .7rem 1rem;
      display: flex;
      justify-content: space-between;
      font-size: .95rem;
      cursor: pointer;
      color: var(--sb-text);
      text-decoration: none;
    }
    .sb-autocomplete-item:hover {
      background: rgba(255,255,255,0.1);
    }
    .sb-autocomplete-type {
      font-size: .75rem;
      opacity: .6;
    }

    /* ساده برای faq/blog */
    .sb-search-blog-item,
    .sb-search-faq-item {
      padding: .9rem 1rem;
      border-radius: 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      margin-bottom: .7rem;
    }
    .sb-search-blog-item h3,
    .sb-search-faq-item h3 {
      font-size: 1rem;
      margin-bottom: .3rem;
    }
    .sb-search-blog-item a,
    .sb-search-faq-item a {
      color: var(--sb-primary);
      text-decoration: none;
      font-size: .9rem;
    }
    .sb-search-blog-item a:hover,
    .sb-search-faq-item a:hover {
      text-decoration: underline;
    }

    .sb-pagination {
      display: flex;
      justify-content: center;
      gap: .35rem;
      margin: 2rem 0 1rem;
      flex-wrap: wrap;
    }
    .sb-page-btn,
    .sb-page-num {
      border-radius: 999px;
      padding: .35rem .9rem;
      border: 1px solid rgba(255,255,255,0.15);
      background: rgba(255,255,255,0.04);
      color: inherit;
      font-size: .9rem;
      text-decoration: none;
    }
    .sb-page-num.active {
      background: var(--sb-primary);
      border-color: var(--sb-primary);
      color: #fff;
      font-weight: 600;
    }

    /* =========================================================
   SmartBeen Emergency Note (CSS Only – FINAL)
========================================================= */

:root{
  --sb-note-z: 9999;
  --sb-header-h: 72px; /* ارتفاع منو موبایل */

  --sb-note-radius: 16px;
  --sb-note-border: rgba(255,255,255,.14);
  --sb-note-shadow: 0 16px 40px rgba(0,0,0,.22);
}

/* Wrapper فقط جایگاه */
.sb-note{
  position: fixed;
  z-index: var(--sb-note-z);
  background: transparent;
}

/* مخفی‌سازی با checkbox */
.sb-note-toggle{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.sb-note-toggle:checked ~ .sb-note-box{
  display:none;
}

/* باکس اصلی */
.sb-note-box{
  border-radius: var(--sb-note-radius);
  box-shadow: var(--sb-note-shadow);
  border: 1px solid var(--sb-note-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  overflow: hidden;
}

/* رنگ‌ها بر اساس color_code */
.sb-note-box.sb-note-orange{
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.757), rgba(255, 94, 0, 0.667));
}
.sb-note-box.sb-note-green{
  background: linear-gradient(135deg, rgba(0,180,120,.92), rgba(0,120,90,.82));
}
.sb-note-box.sb-note-blue{
  background: linear-gradient(135deg, rgba(30,130,255,.92), rgba(60,70,255,.82));
}

/* ساختار */
.sb-note-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
}

.sb-note-label{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.14);
  white-space:nowrap;
}

/* دکمه بستن */
.sb-note-close{
  width:32px;
  height:32px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(0,0,0,.22);
  color:#fff;
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* ---------- Marquee ---------- */

.sb-note-marquee{
  flex:1 1 auto;
  overflow:hidden;
  direction:ltr; /* برای کنترل انیمیشن */
}

.sb-note-track{
  display:inline-flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
  animation: sbTicker 32s linear infinite;
}

.sb-note-text{
  font-size:13.5px;
  direction:rtl;
  unicode-bidi:plaintext;
}

/* دکمه اطلاعات بیشتر */
.sb-note-link{
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  font-size:12.5px;
  text-decoration:none;
  white-space:nowrap;
}

.sb-note-gap{ width:80px; }

/* حرکت چپ → راست */
@keyframes sbTicker{
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* ---------- Mobile ---------- */
@media (max-width:768px){
  .sb-note{
    top: var(--sb-header-h);
    left:0;
    right:0;
  }
  .sb-note-box{
    margin:0 10px;
    border-radius:14px;
  }
}

/* ---------- Desktop ---------- */
@media (min-width:769px){
  .sb-note{
    top:10vh;
    right:18px;
    width:360px;
  }
}



/* --- Category hero + banner --- */
.sb-cat-hero{
  margin-top: .85rem;
  border: 1px solid var(--sb-border);
  background: var(--sb-glass-bg);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sb-shadow-card);
}

.sb-cat-hero-grid{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

@media (max-width: 620px){
  .sb-cat-hero-grid{ grid-template-columns: 1fr; }
}

.sb-cat-hero-img{
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sb-border);
  background: rgba(255,255,255,.04);
}

.sb-cat-hero-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.sb-cat-hero-title{
  margin: 0 0 .35rem 0;
  font-size: 1.05rem;
  color: var(--sb-text-main);
}

.sb-cat-hero-desc{
  margin: 0;
  color: var(--sb-text-soft);
  line-height: 1.8;
  font-size: .92rem;
}

.sb-cat-banner{
  margin-top: .7rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sb-border);
  box-shadow: var(--sb-shadow-card);
}

.sb-cat-banner img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

@media (max-width: 620px){
  .sb-cat-banner img{ height: 160px; }
}


