/* ============================================================================
 * NetCore Pro 1.0.11-barghchi-v2 — visual signature overlay
 *
 * This file is loaded AFTER theme-barghchi.css and provides:
 *   - a slightly different visual signature (warm amber accent + slightly
 *     larger radii) so the site is clearly inspired by barghchi.com but
 *     visually distinct
 *   - improved responsive behavior (mobile header, mega-menu, hero)
 *   - admin panel theming to match the public site (light ocean theme)
 *     while still honoring the existing dark-mode toggle.
 *
 * Every selector here is additive — removing this file leaves the site
 * with the previous (v1) theme intact.
 * ========================================================================== */

/* ---------- v2 design tokens (extend, not replace) ---------- */
:root {
  --bc-accent:        #F59E0B;          /* amber accent — our differentiator */
  --bc-accent-bg:     #FFF6E5;
  --bc-accent-dark:   #b45309;
  --bc-radius-2xl:    24px;
  --bc-card-shadow:   0 6px 24px -8px rgba(42,117,187,.15), 0 2px 8px -4px rgba(43,54,116,.08);
  --bc-card-shadow-h: 0 12px 32px -8px rgba(42,117,187,.22), 0 4px 12px -4px rgba(43,54,116,.12);
}

/* ============================================================================
 * GLOBAL POLISH (public site only)
 * ========================================================================== */

body:not([data-admin]) {
  background:
    radial-gradient(1200px 600px at 100% -200px, rgba(42,117,187,.06), transparent 60%),
    radial-gradient(900px 500px at -200px 30%, rgba(245,158,11,.05), transparent 60%),
    var(--bc-base-bg) !important;
}

/* Smooth typography on Persian content */
body:not([data-admin]) {
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

/* slightly tighter container on wide screens, looks more modern */
.bc-container { max-width: 1320px; }

/* ============================================================================
 * HEADER — v2 polish (subtle gradient bar, animated logo dot)
 * ========================================================================== */

.bc-header {
  background: #fff;
  box-shadow: 0 1px 0 var(--bc-text-300), 0 6px 18px -10px rgba(43,54,116,.08);
}

.bc-topbar {
  background: linear-gradient(90deg, #fff, #F8FAFD 50%, #fff);
}

/* logo: square → squircle, with amber accent dot */
.bc-logo-mark {
  border-radius: 14px;
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, #4791d8, var(--bc-primary) 60%, var(--bc-primary-dark));
}
.bc-logo-mark::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bc-accent);
  top: -3px; left: -3px;
  box-shadow: 0 0 0 3px #fff;
}
.bc-logo-text .bc-logo-sub {
  background: linear-gradient(90deg, var(--bc-primary), var(--bc-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* search input: rounded squircle (different from barghchi's pill) */
.bc-search input {
  border-radius: 14px;
  background: #F4F7FB !important;
}

/* Account button: amber gradient hover so it's clearly NetCorePro and not BarghChi */
.bc-account-btn {
  background: linear-gradient(120deg, var(--bc-primary), var(--bc-primary-dark));
  border-radius: 12px;
}
.bc-account-btn:hover {
  background: linear-gradient(120deg, var(--bc-primary-dark), #18467a);
  box-shadow: 0 6px 18px -6px rgba(42,117,187,.55);
}

/* Logged-in user menu (login/logout area injected by site.js) */
.bc-user-menu { display: flex; align-items: center; gap: 6px; }
.bc-user-menu .bc-account-btn span {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid #ECEFF6;
  background: #fff;
  color: var(--bc-error);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.bc-logout-btn:hover { background: var(--bc-error-bg); border-color: var(--bc-error); }

/* Offer chip: amber instead of red — distinct from barghchi */
.bc-offer-chip .bc-offer-icon {
  background: var(--bc-accent-bg);
  color: var(--bc-accent);
}
.bc-offer-chip:hover .bc-offer-icon { background: var(--bc-accent); color: #fff; }
.bc-offer-text strong { color: var(--bc-accent-dark); }

/* Cart badge animation: subtle pulse when count > 0 (decorative only) */
@keyframes bc-badge-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.bc-icon-btn .bc-badge[data-has="1"] { animation: bc-badge-pulse 2.4s ease-in-out infinite; }

/* ============================================================================
 * NAV BAR — v2: pill highlight on active/hover, no border underline
 * ========================================================================== */

.bc-navbar { border-top-color: #EEF1F8; }

.bc-nav { gap: 2px; padding: 6px 0; }

.bc-nav-link {
  border-radius: 12px;
  border-bottom: none !important;
  padding: 10px 14px !important;
  transition: background .18s, color .18s;
}
.bc-nav-link:hover {
  background: var(--bc-primary-bg);
  color: var(--bc-primary);
}
.bc-nav-link.bc-categories-trigger {
  border-radius: 12px !important;
  background: linear-gradient(120deg, var(--bc-primary), var(--bc-primary-dark));
}
.bc-nav-link.bc-categories-trigger:hover {
  background: linear-gradient(120deg, var(--bc-primary-dark), #18467a);
}

/* phone link on the left of navbar */
.bc-nav-side a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bc-accent-bg);
  color: var(--bc-accent-dark) !important;
  font-weight: 600;
}
.bc-nav-side a:hover { background: var(--bc-accent); color: #fff !important; }

/* ============================================================================
 * MEGA-MENU — v2: barghchi-style full-width dropdown
 *   • positioned relative to the whole navbar (full container width)
 *   • right sidebar = parent categories (hover switches the main panel)
 *   • main panel = structured columns (sub/quick links, brands, featured)
 * ========================================================================== */

/* The navbar becomes the positioning context so the mega panel spans full width */
.bc-navbar { position: relative; }
.bc-navbar-inner { position: static; }
.bc-nav > li.bc-has-mega { position: static; }

.bc-mega {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  width: 640px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 0 0 var(--bc-radius-2xl) var(--bc-radius-2xl);
  box-shadow: 0 24px 48px -16px rgba(43,54,116,.22);
  border: 1px solid #ECEFF6;
  border-top: 3px solid var(--bc-primary);
  min-height: 0;
  padding: 12px;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 300;
}
.bc-nav .bc-has-mega:hover > .bc-mega,
.bc-nav .bc-has-mega:focus-within > .bc-mega,
.bc-mega.bc-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bc-mega-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px;
  min-height: 0;
}

/* Right sidebar — parent categories */
.bc-mega-side {
  border-right: none;
  border-left: 1px solid #ECEFF6;
  padding: 0 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bc-mega-side-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--bc-text-900);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.bc-mega-side-item::before { content: none; }
.bc-mega-side-item .bc-mega-side-arrow {
  margin-right: auto;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity .15s, transform .15s;
  color: var(--bc-primary);
}
.bc-mega-side-item:hover,
.bc-mega-side-item.bc-active {
  background: var(--bc-primary-bg);
  color: var(--bc-primary);
}
.bc-mega-side-item:hover .bc-mega-side-arrow,
.bc-mega-side-item.bc-active .bc-mega-side-arrow {
  opacity: 1;
  transform: translateX(0);
}
.bc-mega-side-item .bc-mega-side-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ECEFF6;
  color: var(--bc-primary);
  font-size: 13px;
  transition: background .15s, color .15s, border-color .15s;
}
.bc-mega-side-item:hover .bc-mega-side-icon,
.bc-mega-side-item.bc-active .bc-mega-side-icon {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
  color: #fff;
}
.bc-mega-side-item .bc-mega-side-label { flex: 0 1 auto; }

/* Main panel wrap */
.bc-mega-main-wrap { position: relative; flex: 1; min-height: 0; }

.bc-mega-main {
  display: none;
  grid-template-columns: 1fr 190px;
  gap: 4px 16px;
  padding: 2px 8px;
  align-content: flex-start;
}
.bc-mega-main.bc-active {
  display: grid;
  animation: bcMegaFade .22s ease;
}
/* A2: multi-level column layout for the mega-menu (barghchi-style) */
.bc-mega-cols-wrap { width: 100%; }
.bc-mega-tcols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  align-content: flex-start;
}
.bc-mega-tcol {
  min-width: 150px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 10px;
}
.bc-mega-tcol-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--bc-text-900);
  padding-bottom: 5px;
  margin-bottom: 4px;
  border-bottom: 1px dashed #E3E8F0;
  transition: color .15s;
}
.bc-mega-tcol-title:hover { color: var(--bc-primary); }
.bc-mega-subleafs { display: flex; flex-direction: column; gap: 1px; }
.bc-mega-subleaf {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 0;
  font-size: 12px;
  color: var(--bc-text-700);
  transition: color .15s, padding .15s;
  line-height: 1.4;
}
.bc-mega-subleaf i { color: var(--bc-text-500); width: 11px; text-align: center; }
.bc-mega-subleaf:hover { color: var(--bc-primary); padding-right: 4px; }
.bc-mega-subleaf:hover i { color: var(--bc-primary); }
@keyframes bcMegaFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bc-mega-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Subcategory list column — single vertical column (client feedback img 1) */
.bc-mega-col--list { min-width: 0; }
.bc-mega-leaf-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bc-mega-col--feat {
  border-right: 1px solid #ECEFF6;
  padding-right: 14px;
  justify-content: flex-start;
}

.bc-mega-col-title {
  display: block;
  width: auto;
  padding: 0 0 6px 0;
  margin: 0 0 5px 0;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--bc-text-900);
  border-right: none;
  border-bottom: 2px solid var(--bc-accent);
  align-self: flex-start;
  transition: color .15s;
}
.bc-mega-col-title--plain { border-bottom-color: var(--bc-primary); }
.bc-mega-col-title:hover { color: var(--bc-primary); }

.bc-mega-leaf {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--bc-text-700);
  transition: color .15s, padding .15s;
  line-height: 1.5;
}
.bc-mega-leaf i { font-size: 10px; color: var(--bc-text-500); width: 12px; text-align: center; }
.bc-mega-leaf:hover { color: var(--bc-primary); padding-right: 4px; }
.bc-mega-leaf:hover i { color: var(--bc-primary); }

/* Featured product mini-card (slim, vertical) */
.bc-mega-prod {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ECEFF6;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bc-mega-prod:hover {
  border-color: var(--bc-primary);
  box-shadow: 0 8px 18px -10px rgba(42,117,187,.3);
  transform: translateY(-1px);
}
.bc-mega-prod-img {
  width: 100%; height: 96px;
  border-radius: 10px;
  background: var(--bc-primary-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.bc-mega-prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.bc-mega-prod-meta { display: flex; flex-direction: column; gap: 4px; }
.bc-mega-prod-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--bc-primary);
  background: var(--bc-primary-bg);
  padding: 2px 8px;
  border-radius: 999px;
}
.bc-mega-prod-name { font-size: 12px; font-weight: 600; color: var(--bc-text-900); line-height: 1.5; }
.bc-mega-empty { font-size: 12px; color: var(--bc-text-500); padding: 8px 0; }
.bc-mega-all-link {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bc-primary);
  padding-top: 6px;
  border-top: 1px solid #ECEFF6;
}
.bc-mega-all-link:hover { gap: 10px; }

/* ============================================================================
 * HERO — v2: distinctive gradient + softer decoration
 * ========================================================================== */
.bc-hero {
  background:
    radial-gradient(circle at 90% 0%, rgba(245,158,11,.18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(42,117,187,.18), transparent 50%),
    linear-gradient(135deg, #EAF2FB 0%, #F6F4EE 100%);
  border-radius: var(--bc-radius-2xl);
}
.bc-hero-badge {
  background: var(--bc-accent-bg);
  color: var(--bc-accent-dark);
  border: 1px solid #FCE7B5;
}
.bc-hero h1 .bc-accent { color: var(--bc-primary); }
.bc-hero h1 .bc-accent-warm { color: var(--bc-accent-dark); }

.bc-hero-img-decor {
  background:
    radial-gradient(circle at center, rgba(42,117,187,.10) 0%, transparent 60%),
    #fff;
  box-shadow: 0 20px 40px -16px rgba(43,54,116,.18);
  position: relative;
}
.bc-hero-img-decor::before,
.bc-hero-img-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .6;
}
.bc-hero-img-decor::before { width: 120px; height: 120px; background: var(--bc-primary); top: -20px; right: -20px; }
.bc-hero-img-decor::after  { width: 100px; height: 100px; background: var(--bc-accent);  bottom: -20px; left: -20px; }

/* ============================================================================
 * PRODUCT CARD — v2: distinct corner accent + amber discount badge
 * ========================================================================== */
.bc-product-card {
  border-radius: var(--bc-radius-2xl);
  border-color: #ECEFF6;
  box-shadow: var(--bc-card-shadow);
}
.bc-product-card:hover {
  box-shadow: var(--bc-card-shadow-h);
  transform: translateY(-2px);
}
.bc-product-image { border-radius: var(--bc-radius-2xl) var(--bc-radius-2xl) 0 0; }
.bc-product-badge--off,
.bc-product-badge {
  background: linear-gradient(135deg, var(--bc-accent), #d97706);
}
.bc-product-add {
  background: linear-gradient(120deg, var(--bc-primary), var(--bc-primary-dark));
  border-radius: 12px;
  width: 42px; height: 42px;
}
.bc-product-add:hover { transform: translateY(-2px) scale(1.04); }

/* ============================================================================
 * CATEGORY TILES — slightly more pronounced hover ring
 * ========================================================================== */
.bc-cat-tile { border-radius: var(--bc-radius-2xl); border-color: #ECEFF6; }
.bc-cat-tile:hover {
  border-color: var(--bc-accent);
  box-shadow: var(--bc-card-shadow-h);
}
.bc-cat-tile-icon {
  background: linear-gradient(135deg, var(--bc-primary-bg), var(--bc-accent-bg));
}

/* ============================================================================
 * FEATURE STRIP — v2: alternating accent
 * ========================================================================== */
.bc-features { border-radius: var(--bc-radius-2xl); box-shadow: var(--bc-card-shadow); border: none; }
.bc-feature-icon { background: var(--bc-primary-bg); }
.bc-feature:nth-child(even) .bc-feature-icon { background: var(--bc-accent-bg); color: var(--bc-accent-dark); }

/* ============================================================================
 * FORMS / CARDS — generic polish
 * ========================================================================== */
.bc-panel { border-radius: var(--bc-radius-2xl); box-shadow: var(--bc-card-shadow); border: none; }
.bc-input, .bc-select, .bc-textarea { border-radius: 12px; }
.bc-btn { border-radius: 12px; }
.bc-btn--primary {
  background: linear-gradient(120deg, var(--bc-primary), var(--bc-primary-dark));
}
.bc-btn--primary:hover {
  background: linear-gradient(120deg, var(--bc-primary-dark), #18467a);
}
.bc-btn--accent {
  background: linear-gradient(120deg, var(--bc-accent), var(--bc-accent-dark));
  color: #fff !important;
}
.bc-btn--accent:hover { box-shadow: 0 6px 18px -6px rgba(245,158,11,.55); }

/* ============================================================================
 * BREADCRUMB chip
 * ========================================================================== */
.bc-breadcrumb {
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #ECEFF6;
}

/* ============================================================================
 * RESPONSIVE FIXES
 * ========================================================================== */

/* Header: on mobile, hide the offer chip + most icons, show only menu + cart + login */
@media (max-width: 767px) {
  .bc-mainbar-inner {
    gap: 8px;
    padding: 10px 0;
  }
  .bc-logo-text { display: none; }
  .bc-search { order: 5; flex-basis: 100%; }
  .bc-actions { gap: 4px; }
  .bc-account-btn span { display: none; }
  .bc-account-btn { padding: 10px; }
  .bc-offer-chip { display: none !important; }
  .bc-icon-btn { width: 40px; height: 40px; }
  .bc-mainbar-inner { flex-wrap: wrap; }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .bc-offer-chip { display: none; }
  .bc-search { max-width: 320px; }
}

/* Mega-menu single-column on smaller laptops */
@media (max-width: 1180px) {
  .bc-mega-col-title, .bc-mega-leaf { width: 33.33%; }
}
@media (max-width: 900px) {
  .bc-mega-grid { grid-template-columns: 1fr; }
  .bc-mega-side { border-right: none; border-bottom: 1px solid var(--bc-text-300); flex-direction: row; flex-wrap: wrap; }
  .bc-mega-side-item { flex: 0 0 50%; }
}

/* Mobile menu: full-screen drawer */
#mobile-menu {
  position: fixed;
  top: 64px;
  right: -100%;
  bottom: 0;
  width: 78%;
  max-width: 320px;
  z-index: 200;
  overflow-y: auto;
  box-shadow: -10px 0 30px -10px rgba(0,0,0,.2);
  transition: right .25s ease;
  display: block;
  background: #fff;
  padding-top: 12px;
}
#mobile-menu.bc-open { right: 0; }
@media (min-width: 1024px) { #mobile-menu { display: none !important; } }
body.bc-menu-open { overflow: hidden; }
#mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43,54,116,.45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
#mobile-menu-backdrop.bc-open { opacity: 1; visibility: visible; }

/* ============================================================================
 * SECTION HEADINGS — v2 with amber dot
 * ========================================================================== */
.bc-section-title::before {
  background: linear-gradient(180deg, var(--bc-primary), var(--bc-accent));
  width: 5px;
  border-radius: 3px;
}

/* ============================================================================
 * FOOTER — v2: gradient backdrop strip
 * ========================================================================== */
.bc-footer {
  background:
    linear-gradient(180deg, #2B3674 0%, #1E2855 100%);
  position: relative;
}
.bc-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bc-primary), var(--bc-accent), var(--bc-primary));
}
.bc-footer-col-title::before {
  background: var(--bc-accent);
  height: 16px;
}

/* ============================================================================
 * ADMIN PANEL — apply barghchi-inspired theme so it matches the public site
 * Only applies when [data-admin] is set on <body>; the existing dark-mode
 * toggle (data-admin-theme="dark" on <html>) still works.
 * ========================================================================== */
body[data-admin] {
  font-family: 'IRANYekanX', 'Vazirmatn', 'Tahoma', sans-serif;
  background: #F1F5F6 !important;
  color: #2B3674 !important;
}

/* sidebar — ocean gradient (like barghchi nav but vertical) */
body[data-admin] .sidebar {
  background: linear-gradient(180deg, #2B3674 0%, #1f2a5c 100%) !important;
  color: #E0E5F2 !important;
  box-shadow: -4px 0 24px -8px rgba(43,54,116,.25);
}
body[data-admin] .sidebar-link {
  color: rgba(255,255,255,.78) !important;
  font-size: 13px;
}
body[data-admin] .sidebar-link i { color: rgba(255,255,255,.6); }
body[data-admin] .sidebar-link:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}
body[data-admin] .sidebar-link:hover i { color: var(--bc-accent); }
body[data-admin] .sidebar-link.active {
  background: linear-gradient(120deg, var(--bc-primary), var(--bc-primary-dark)) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px -4px rgba(42,117,187,.5);
}
body[data-admin] .sidebar-link.active i { color: var(--bc-accent); }

/* top header */
body[data-admin] header {
  background: #fff !important;
  border-bottom: 1px solid #ECEFF6 !important;
  box-shadow: 0 2px 8px -4px rgba(43,54,116,.08);
}
body[data-admin] header h1 { color: var(--bc-text-900) !important; }

/* Buttons */
body[data-admin] .btn-indigo {
  background: linear-gradient(120deg, var(--bc-primary), var(--bc-primary-dark)) !important;
}
body[data-admin] .btn-indigo:hover {
  box-shadow: 0 6px 18px -6px rgba(42,117,187,.55) !important;
}

/* Cards in admin */
body[data-admin] .bg-white {
  background: #fff !important;
  border: 1px solid #ECEFF6;
  box-shadow: var(--bc-card-shadow);
  border-radius: 16px;
}

/* Dashboard stat cards */
body[data-admin] .stat-card {
  background: #fff !important;
  border: 1px solid #ECEFF6;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--bc-card-shadow);
  transition: box-shadow .2s, transform .2s;
}
body[data-admin] .stat-card:hover {
  box-shadow: var(--bc-card-shadow-h);
  transform: translateY(-2px);
}
/* Stat-card icon tiles: the dashboard uses Tailwind `bg-gradient-to-br from-* to-*`
 * classes which may not all be present in the bundled offline tailwind build —
 * when missing they collapse to a dark/transparent box and the icon disappears.
 * We force vivid barghchi-friendly gradients here so the tiles always render
 * crisply offline, regardless of which Tailwind utilities shipped. */
body[data-admin] .stat-card .w-12.h-12.rounded-xl {
  background-image: linear-gradient(135deg, var(--bc-primary), var(--bc-primary-dark)) !important;
  box-shadow: 0 6px 16px -6px rgba(42,117,187,.5);
}
body[data-admin] .stat-card .w-12.h-12.rounded-xl i { color: #fff !important; font-size: 18px; }
body[data-admin] .stat-card .from-blue-500.to-indigo-600   { background-image: linear-gradient(135deg, #2A75BB, #1f4f8f) !important; }
body[data-admin] .stat-card .from-green-500.to-emerald-600 { background-image: linear-gradient(135deg, #16a34a, #047857) !important; }
body[data-admin] .stat-card .from-purple-500.to-pink-600   { background-image: linear-gradient(135deg, #6366f1, #4f46e5) !important; }
body[data-admin] .stat-card .from-amber-500.to-orange-600  { background-image: linear-gradient(135deg, #f59e0b, #ea580c) !important; }

/* Table polish */
body[data-admin] table { font-size: 13px; }
body[data-admin] thead { background: #F6F8FC !important; }
body[data-admin] thead th { color: #707EAE !important; font-weight: 700; }

/* Theme toggle button */
body[data-admin] .theme-toggle-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bc-primary-bg);
  color: var(--bc-primary);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
body[data-admin] .theme-toggle-btn:hover { background: var(--bc-accent-bg); color: var(--bc-accent-dark); }

/* Admin dark theme override (when user toggles) */
html[data-admin-theme="dark"] body[data-admin] {
  background: #0f172a !important;
  color: #E2E8F0 !important;
}
html[data-admin-theme="dark"] body[data-admin] header {
  background: #1e293b !important;
  border-bottom-color: #334155 !important;
}
html[data-admin-theme="dark"] body[data-admin] header h1 { color: #fff !important; }
html[data-admin-theme="dark"] body[data-admin] .bg-white,
html[data-admin-theme="dark"] body[data-admin] .stat-card {
  background: #1e293b !important;
  color: #E2E8F0 !important;
  border-color: #334155 !important;
}
html[data-admin-theme="dark"] body[data-admin] thead { background: #0f172a !important; }
html[data-admin-theme="dark"] body[data-admin] thead th { color: #94A3B8 !important; }
html[data-admin-theme="dark"] body[data-admin] .sidebar {
  background: linear-gradient(180deg, #0b1228 0%, #0f172a 100%) !important;
}

/* ============================================================================
 * UTILITY CLASSES used by new layout
 * ========================================================================== */
.bc-stack { display: flex; flex-direction: column; gap: 12px; }
.bc-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bc-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .bc-grid-2 { grid-template-columns: 1fr 1fr; } }
.bc-grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .bc-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.bc-text-center { text-align: center; }
.bc-mt-4 { margin-top: 16px; }
.bc-mt-6 { margin-top: 24px; }
.bc-mb-4 { margin-bottom: 16px; }
.bc-mb-6 { margin-bottom: 24px; }
.bc-py-8 { padding-top: 32px; padding-bottom: 32px; }
.bc-h1 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; color: var(--bc-text-900); margin: 0 0 16px; }
.bc-muted { color: var(--bc-text-700); }
.bc-link-primary { color: var(--bc-primary); font-weight: 600; }
.bc-link-primary:hover { color: var(--bc-primary-dark); }

/* Bootstrap-ish flex helpers used in pages */
.bc-flex { display: flex; }
.bc-flex-1 { flex: 1; }
.bc-items-center { align-items: center; }
.bc-justify-between { justify-content: space-between; }
.bc-gap-2 { gap: 8px; }
.bc-gap-3 { gap: 12px; }
.bc-gap-4 { gap: 16px; }

/* ============================================================================
 * ████  MOBILE UI/UX OVERHAUL 1.0.16-mobile  ████
 * Full barghchi-style mobile experience: clean header, full-width search row,
 * sticky bottom navigation, floating chat, responsive cards & spacing.
 * All rules scoped to <= 1023px so desktop layout is untouched.
 * ========================================================================== */

/* Mobile search row container (hidden on desktop) */
.bc-mobile-search { display: none; }

/* Bottom nav hidden by default (desktop) */
.bc-bottom-nav { display: none; }

@media (max-width: 1023px) {

  /* ---- HEADER: clean two-row layout (logo+actions, then full-width search) -- */
  .bc-header { box-shadow: 0 2px 10px rgba(43,54,116,.06); }

  .bc-mainbar-inner {
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 10px 0 !important;
    align-items: center;
  }

  /* Logo: show compact text again (brand identity matters) */
  .bc-logo { gap: 8px; }
  .bc-logo-mark { width: 38px; height: 38px; border-radius: 11px; }
  .bc-logo-text { display: flex !important; }
  .bc-logo-text .bc-logo-title { font-size: 16px; }
  .bc-logo-text .bc-logo-sub { font-size: 9.5px; }

  /* Hide the inline (desktop) search inside main bar on mobile */
  .bc-mainbar-inner > .bc-search { display: none !important; }

  /* Actions: keep cart + menu trigger, drop heart/login text to declutter */
  .bc-actions { gap: 6px; margin-right: auto; }
  .bc-actions .bc-icon-btn { width: 42px; height: 42px; }
  .bc-account-btn { padding: 9px 10px; border-radius: 12px; }
  .bc-account-btn span { display: none; }

  /* Order the mobile menu trigger to the far left, after actions */
  .bc-mobile-trigger {
    display: flex; order: 9; width: 42px; height: 42px;
    background: var(--bc-primary-bg);
  }

  /* ---- Full-width mobile search row (barghchi grey rounded bar) ---- */
  .bc-mobile-search {
    display: block;
    padding: 0 14px 12px;
    background: var(--bc-surface);
  }
  .bc-search--mobile { max-width: 100%; width: 100%; }
  .bc-search--mobile input {
    background: #F1F4F9 !important;
    border-radius: 14px;
    padding: 13px 46px 13px 16px;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px #EAEEF6;
  }

  /* ---- Add bottom padding to body so content isn't hidden behind nav ---- */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  /* ============================================================================
   * STICKY BOTTOM NAVIGATION (barghchi style)
   * ========================================================================== */
  .bc-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 300;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid #EEF1F8;
    box-shadow: 0 -6px 24px -8px rgba(43,54,116,.14);
    justify-content: space-around;
    align-items: stretch;
  }
  .bc-bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #98A2C0;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s;
    position: relative;
  }
  .bc-bn-ico { display: flex; align-items: center; justify-content: center; position: relative; }
  .bc-bn-ico svg { display: block; }
  .bc-bn-label { line-height: 1; }
  .bc-bn-item.bc-active { color: var(--bc-primary); }
  .bc-bn-item.bc-active::before {
    content: '';
    position: absolute; top: 0;
    width: 26px; height: 3px; border-radius: 0 0 4px 4px;
    background: var(--bc-primary);
  }

  /* Cart badge on bottom nav */
  .bc-bn-badge {
    position: absolute;
    top: -6px; left: -10px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--bc-error);
    color: #fff; font-size: 10px; font-weight: 700;
    display: none; align-items: center; justify-content: center;
    border: 2px solid #fff;
  }

  /* Prominent center "cart" floating button (replaces removed chat) */
  .bc-bn-center .bc-bn-ico {
    width: 54px; height: 54px;
    margin-top: -24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bc-primary), #1f5e9e);
    box-shadow: 0 10px 22px -6px rgba(42,117,187,.6);
    border: 4px solid #fff;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .bc-bn-center:active .bc-bn-ico { transform: scale(.94); }
  .bc-bn-center { color: var(--bc-primary); font-weight: 700; }
  .bc-bn-center.bc-active::before { display: none; }
  .bc-bn-center .bc-bn-badge { top: -26px; left: 50%; transform: translateX(60%); }

  /* ============================================================================
   * MOBILE CONTENT SPACING & CARDS
   * ========================================================================== */
  .bc-section { padding: 18px 0 !important; }
  .bc-container { padding: 0 14px; }

  /* Hero: tighter, centered, readable */
  .bc-hero { padding: 26px 18px !important; margin-top: 12px; border-radius: 18px; }
  .bc-hero-inner { gap: 18px; }

  /* Product grid: 2 columns on mobile with tighter gap */
  .bc-products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  /* Category tiles: 3 across on phones, larger touch targets */
  .bc-cat-tiles { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }

  /* Product card refinements for small screens */
  .bc-product-card { border-radius: 16px !important; }
  .bc-product-card .bc-product-title,
  .bc-product-card h3 { font-size: 13px !important; line-height: 1.5; }

  /* ── MOBILE ADD-TO-CART FIX (responsive parity with desktop) ──────────────
   * On narrow 2-column cards the price + round add-button shared a single
   * flex row, so the button was squeezed/clipped off-screen and customers on
   * phones could not add products to the cart. We now stack the footer: price
   * on top, then a full-width, clearly-labelled "افزودن به سبد" button below.
   * This guarantees the button is always visible with a large touch target. */
  .bc-product-foot {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .bc-product-price {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px !important;
  }
  .bc-product-add {
    width: 100% !important;
    height: 40px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
  }
  /* Inject a visible label next to the cart icon on mobile so the action is
     explicit (desktop keeps the compact icon-only button). */
  .bc-product-add::after {
    content: 'افزودن به سبد';
  }
  .bc-product-add:disabled::after { content: 'ناموجود'; }

  /* Features strip: 2x2 grid on mobile instead of cramped row */
  .bc-features { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .bc-feature { padding: 14px !important; }

  /* Footer: comfortable single column */
  .bc-footer-grid { gap: 22px; }

  /* Section titles a touch smaller */
  .bc-section-title { font-size: 18px !important; }

  /* Breadcrumb wraps nicely */
  .bc-breadcrumb { font-size: 12px; }

  /* Hide desktop top utility bar phrase overflow */
  .bc-topbar { display: none !important; }
}

/* Very small phones: 2 category tiles, keep cards readable */
@media (max-width: 360px) {
  .bc-cat-tiles { grid-template-columns: repeat(2, 1fr) !important; }
  .bc-bn-label { font-size: 9.5px; }
  .bc-logo-text .bc-logo-sub { display: none; }
}

/* ============================================================================
 * ████  ORDER CARDS + ORDER DETAIL MODAL 1.0.17  ████
 * صفحهٔ «سفارش‌های من» با جزئیات کامل. کار روی دسکتاپ و موبایل.
 * ========================================================================== */

/* --- Soft button variant --- */
.bc-btn--soft {
  background: var(--bc-primary-bg);
  color: var(--bc-primary) !important;
  border: 1px solid #DCE7F5;
}
.bc-btn--soft:hover { background: #DCE7F5; }

/* --- Order list / cards --- */
.bc-orders-list { display: flex; flex-direction: column; gap: 14px; }
.bc-order-card {
  background: var(--bc-surface);
  border: 1px solid #ECEFF6;
  border-radius: var(--bc-radius-lg);
  box-shadow: 0 4px 16px -10px rgba(43,54,116,.18);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.bc-order-card:hover { box-shadow: 0 10px 26px -12px rgba(43,54,116,.28); transform: translateY(-1px); }
.bc-order-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px;
  border-bottom: 1px dashed #ECEFF6;
  background: linear-gradient(180deg, #FAFBFE, #fff);
}
.bc-order-card-id { display: flex; flex-direction: column; gap: 5px; }
.bc-order-card-hash { font-weight: 800; color: var(--bc-primary); font-size: 14px; }
.bc-order-card-date { font-size: 12px; color: var(--bc-text-700); }
.bc-order-card-hash i, .bc-order-card-date i { font-size: 11px; margin-left: 2px; opacity: .7; }
.bc-order-card-body {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
}
.bc-order-card-total { display: flex; flex-direction: column; gap: 2px; }
.bc-order-card-total .bc-muted { font-size: 11px; }
.bc-order-card-total strong { font-size: 17px; color: var(--bc-text-900); font-weight: 800; }
.bc-order-card-total small { font-size: 11px; font-weight: 500; color: var(--bc-text-700); }

/* --- Modal --- */
.bc-modal { position: fixed; inset: 0; z-index: 400; display: none; }
.bc-modal.bc-open { display: block; }
.bc-modal-backdrop { position: absolute; inset: 0; background: rgba(43,54,116,.5); backdrop-filter: blur(2px); }
.bc-modal-box {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(620px, 94vw);
  max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
  animation: bcModalIn .22s ease;
}
@keyframes bcModalIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.bc-modal-body { padding: 20px; }
.bc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bc-modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--bc-text-900); }
.bc-modal-head h3 i { color: var(--bc-primary); margin-left: 6px; }
.bc-modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bc-base-bg); border: none; cursor: pointer;
  color: var(--bc-text-700); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.bc-modal-close:hover { background: var(--bc-error-bg); color: var(--bc-error); }

/* --- Order meta strip --- */
.bc-order-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  background: var(--bc-base-bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px;
}
.bc-order-meta > div { display: flex; flex-direction: column; gap: 4px; }
.bc-order-meta .bc-muted { font-size: 11px; }
.bc-order-meta strong { font-size: 13px; color: var(--bc-text-900); }

.bc-order-section-title {
  font-size: 13px; font-weight: 700; color: var(--bc-text-900);
  margin: 18px 0 10px; display: flex; align-items: center; gap: 7px;
}
.bc-order-section-title i { color: var(--bc-primary); }

/* --- Progress timeline --- */
.bc-order-steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.bc-order-steps::before {
  content: ''; position: absolute; top: 17px; right: 8%; left: 8%; height: 3px;
  background: #E6EAF3; border-radius: 3px; z-index: 0;
}
.bc-order-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.bc-order-step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 3px solid #E6EAF3;
  display: flex; align-items: center; justify-content: center;
  color: #B6BFD6; font-size: 14px; transition: all .2s;
}
.bc-order-step-label { font-size: 10.5px; color: var(--bc-text-700); text-align: center; line-height: 1.3; }
.bc-order-step.bc-done .bc-order-step-dot { border-color: var(--bc-primary); color: #fff; background: var(--bc-primary); }
.bc-order-step.bc-done .bc-order-step-label { color: var(--bc-text-900); font-weight: 600; }
.bc-order-step.bc-current .bc-order-step-dot { box-shadow: 0 0 0 4px rgba(42,117,187,.18); }
.bc-order-cancelled {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--bc-error-bg); color: var(--bc-error);
  padding: 14px; border-radius: 12px; font-weight: 700; font-size: 13px;
}

/* --- Items table --- */
.bc-order-items { border: 1px solid #ECEFF6; border-radius: 12px; overflow: hidden; }
.bc-order-item {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px;
  align-items: center; padding: 11px 14px; border-bottom: 1px solid #F1F3F9; font-size: 13px;
}
.bc-order-item:last-child { border-bottom: none; }
.bc-order-item--head { background: var(--bc-base-bg); font-weight: 700; color: var(--bc-text-700); font-size: 11.5px; }
.bc-order-item-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bc-order-item-name { font-weight: 600; color: var(--bc-text-900); }
.bc-order-item-sku { font-size: 11px; color: var(--bc-text-700); }
.bc-order-item-qty, .bc-order-item-price { color: var(--bc-text-700); white-space: nowrap; }
.bc-order-item-total { font-weight: 700; color: var(--bc-text-900); white-space: nowrap; }

/* --- Summary --- */
.bc-order-summary { background: var(--bc-base-bg); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.bc-order-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--bc-text-700); padding: 5px 0; }
.bc-order-summary-total { border-top: 1px dashed #D6DDEC; margin-top: 6px; padding-top: 11px; font-size: 15px; font-weight: 800; color: var(--bc-text-900); }

/* --- Shipping info --- */
.bc-order-shipping { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; background: #fff; border: 1px solid #ECEFF6; border-radius: 12px; padding: 14px 16px; }
.bc-order-shipping > div { display: flex; flex-direction: column; gap: 3px; }
.bc-order-shipping .bc-muted { font-size: 11px; }
.bc-order-shipping strong { font-size: 13px; color: var(--bc-text-900); font-weight: 600; }
.bc-order-shipping-addr { grid-column: 1 / -1; }

/* Mobile tweaks for order detail */
@media (max-width: 600px) {
  .bc-order-item { grid-template-columns: 1fr auto; row-gap: 4px; }
  .bc-order-item-price { grid-column: 1; font-size: 11.5px; }
  .bc-order-item-total { grid-column: 2; }
  .bc-order-item--head { display: none; }
  .bc-order-shipping { grid-template-columns: 1fr; }
  .bc-order-meta { grid-template-columns: 1fr; }
  .bc-modal-body { padding: 16px; }
  .bc-order-step-label { font-size: 9.5px; }
}

/* Payment status colors in order meta */
.bc-pay-ok { color: #2e7d32; }
.bc-pay-no { color: var(--bc-error); }

/* ===== Category archive header (B2) ===== */
.bc-cat-header {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid var(--bc-border, #e5e7eb);
  border-radius: 16px; padding: 18px 22px; margin: 14px 0 22px;
}
.bc-cat-header-media {
  flex: 0 0 auto; width: 120px; height: 120px; border-radius: 14px;
  overflow: hidden; background: #fff; border: 1px solid var(--bc-border, #e5e7eb);
  display: flex; align-items: center; justify-content: center;
}
.bc-cat-header-media img { width: 100%; height: 100%; object-fit: cover; }
.bc-cat-header-body { flex: 1 1 auto; min-width: 0; }
.bc-cat-header-desc { color: var(--bc-text-600, #555); font-size: 14px; line-height: 1.9; }
@media (max-width: 600px) {
  .bc-cat-header { flex-direction: column; text-align: center; padding: 16px; }
  .bc-cat-header-media { width: 96px; height: 96px; }
}

/* ===== Checkout payment/shipping method selectors (B3/B4) ===== */
.bc-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.bc-method-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--bc-border, #e5e7eb); border-radius: 12px;
  cursor: pointer; transition: all .15s; background: #fff;
}
.bc-method-opt:hover { border-color: var(--bc-primary, #2563eb); }
.bc-method-opt.is-selected { border-color: var(--bc-primary, #2563eb); background: #eff6ff; }
.bc-method-opt input[type=radio] { width: 18px; height: 18px; accent-color: var(--bc-primary, #2563eb); flex: 0 0 auto; }
.bc-method-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bc-method-name { font-weight: 700; font-size: 14px; color: var(--bc-text-900, #111); }
.bc-method-meta { font-size: 11.5px; color: var(--bc-text-600, #6b7280); }
.bc-method-cost { flex: 0 0 auto; font-weight: 700; font-size: 13px; color: var(--bc-primary, #2563eb); }

/* ===== C: Buy box v3 (barghchi/digikala style) ===== */
.bc-pd-buy--v3 { position: sticky; top: 90px; }
.bc-pd-assure { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--bc-border,#e5e7eb); border-radius: 12px; overflow: hidden; }
.bc-pd-assure-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; font-size: 13px; color: var(--bc-text-700,#374151); border-bottom: 1px solid #f1f3f5; }
.bc-pd-assure-row:last-child { border-bottom: none; }
.bc-pd-assure-ico { flex: 0 0 auto; width: 22px; text-align: center; color: var(--bc-primary,#2563eb); font-size: 15px; }
.bc-pd-assure-text { flex: 1 1 auto; line-height: 1.7; }
/* v2.10 (مشکل ۳): تصویر/نشان گارانتی محصول کنار متن گارانتی */
.bc-pd-assure-ico:has(.bc-pd-warranty-img) { width: 40px; }
.bc-pd-warranty-img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; background: #fff; display: inline-block; vertical-align: middle; }
.bc-pd-assure-cost { float: left; font-weight: 700; color: var(--bc-text-900,#111); }
.bc-pd-assure-fast { background: #fff7ed; }
.bc-pd-assure-fast .bc-pd-assure-ico { color: #ea580c; }
.bc-pd-assure-fast strong { color: #ea580c; }
.bc-pd-buy-save { display: inline-flex; align-items: center; gap: 6px; background: #fef2f2; color: #dc2626; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; margin: 6px 0; }
.bc-pd-buy-proforma { margin-top: 10px; background: #fff; border: 1.5px solid var(--bc-primary,#2563eb) !important; color: var(--bc-primary,#2563eb) !important; }
.bc-pd-buy-proforma:hover { background: #eff6ff !important; }

/* ===== B5: Proforma modal ===== */
.ncp-pf-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ncp-pf-box { background: #fff; border-radius: 16px; width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); direction: rtl; }
.ncp-pf-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--bc-border,#e5e7eb); }
.ncp-pf-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--bc-text-900,#111); display: flex; align-items: center; gap: 8px; }
.ncp-pf-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #9ca3af; }
.ncp-pf-form { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.ncp-pf-row { display: flex; flex-direction: column; gap: 5px; }
.ncp-pf-row label { font-size: 13px; font-weight: 600; color: var(--bc-text-700,#374151); }
.ncp-pf-input { border: 1.5px solid var(--bc-border,#e5e7eb); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: inherit; width: 100%; }
.ncp-pf-input:focus { outline: none; border-color: var(--bc-primary,#2563eb); }
.ncp-pf-actions { display: flex; gap: 10px; margin-top: 6px; }
.ncp-pf-actions .bc-btn { flex: 1; }

/* ===== v2.8: Brand strip inside mega-menu (نوار برندها) ===== */
.bc-mega-brands {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #E2E6F0;
}
.bc-mega-brands-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--bc-text-600, #6b7280);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bc-mega-brands-title i { color: var(--bc-primary); }
.bc-mega-brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bc-mega-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #ECEFF6;
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.bc-mega-brand img {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .72;
  transition: filter .15s ease, opacity .15s ease;
}
.bc-mega-brand:hover {
  border-color: var(--bc-primary);
  box-shadow: 0 6px 14px -8px rgba(43,54,116,.35);
  transform: translateY(-1px);
}
.bc-mega-brand:hover img { filter: grayscale(0); opacity: 1; }
.bc-mega-brand--all {
  font-size: 12px;
  font-weight: 700;
  color: var(--bc-primary);
  gap: 4px;
  background: #F4F6FC;
  border-color: transparent;
}
.bc-mega-brand--all:hover { background: #EAEEFA; transform: none; box-shadow: none; }

/* ===== v2.8: Homepage brand showcase (بخش برندها در صفحه اصلی) ===== */
.nx-brands {
  margin: 28px 0;
}
.nx-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) { .nx-brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .nx-brands-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .nx-brands-grid { grid-template-columns: repeat(6, 1fr); } }
.nx-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  background: #fff;
  border: 1px solid #ECEFF6;
  border-radius: var(--bc-radius-xl, 16px);
  padding: 10px 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nx-brand-card img {
  max-height: 40px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .7;
  transition: filter .18s ease, opacity .18s ease;
}
.nx-brand-card:hover {
  border-color: var(--bc-primary);
  box-shadow: 0 12px 26px -16px rgba(43,54,116,.4);
  transform: translateY(-2px);
}
.nx-brand-card:hover img { filter: grayscale(0); opacity: 1; }

/* ============================================================================
 * ████  ABOUT US PAGE (v2.9 — modern, responsive)  ████
 * صفحهٔ «درباره ما» — هیرو، آمار شمارشی، داستان، ارزش‌ها و CTA.
 * تمام بخش‌ها روی موبایل و دسکتاپ ریسپانسیو هستند.
 * ========================================================================== */
.ab-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--bc-primary);
  background: var(--bc-primary-bg); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 12px;
}
.ab-h2 { font-size: 26px; font-weight: 800; color: var(--bc-text-900); margin: 0 0 10px; line-height: 1.4; }

/* ---- HERO ---- */
.ab-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #102a43 0%, #1f5e9e 55%, #2A75BB 100%);
  color: #fff;
  border-radius: var(--bc-radius-2xl, 22px);
  margin: 18px 0 6px;
  padding: 0;
}
.bc-container > .ab-hero, .ab-hero { } /* no-op safety */
.ab-hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 56px 20px 60px;
  max-width: 760px; margin: 0 auto;
}
.ab-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-weight: 700; font-size: 13px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.ab-hero-title { font-size: 34px; font-weight: 900; line-height: 1.4; margin: 0 0 14px; }
.ab-hero-sub { font-size: 16px; line-height: 2; color: rgba(255,255,255,.88); margin: 0 auto 26px; max-width: 600px; }
.ab-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ab-hero-cta-ghost { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.35) !important; }
.ab-hero-cta-ghost:hover { background: rgba(255,255,255,.22) !important; }
.ab-hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 1; }
.ab-hero-glow--1 { width: 280px; height: 280px; background: #38bdf8; top: -90px; right: -60px; }
.ab-hero-glow--2 { width: 240px; height: 240px; background: #f59e0b; bottom: -100px; left: -50px; opacity: .35; }

/* ---- STATS ---- */
.ab-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.ab-stat {
  background: var(--bc-surface, #fff);
  border: 1px solid #ECEFF6;
  border-radius: var(--bc-radius-2xl, 20px);
  padding: 22px 12px; text-align: center;
  box-shadow: 0 6px 20px -14px rgba(43,54,116,.25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ab-stat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -16px rgba(42,117,187,.35); border-color: var(--bc-primary); }
.ab-stat-icon {
  width: 50px; height: 50px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; font-size: 20px;
  background: linear-gradient(135deg, var(--bc-primary-bg), #e8f1fb);
  color: var(--bc-primary);
}
.ab-stat-num { font-size: 26px; font-weight: 900; color: var(--bc-text-900); line-height: 1; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.ab-stat-suffix { font-size: 18px; color: var(--bc-primary); font-weight: 800; }
.ab-stat-label { margin-top: 8px; font-size: 13px; color: var(--bc-text-700); font-weight: 600; }

/* ---- STORY ---- */
.ab-story { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; }
.ab-story-body { line-height: 2.2; color: var(--bc-text-700); font-size: 15px; }
.ab-story-body p { margin: 0 0 14px; }
.ab-story-body strong { color: var(--bc-text-900); }
.ab-story-card {
  background: linear-gradient(160deg, #f8fbff, #eef4fb);
  border: 1px solid #E1EAF6; border-radius: var(--bc-radius-2xl, 20px);
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
}
.ab-story-card-row { display: flex; align-items: flex-start; gap: 12px; }
.ab-story-card-ico { color: var(--bc-success, #08A54A); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.ab-story-card-row strong { display: block; font-size: 15px; color: var(--bc-text-900); font-weight: 800; }
.ab-story-card-row span { display: block; font-size: 13px; color: var(--bc-text-700); margin-top: 2px; }

/* ---- VALUES ---- */
.ab-section-head { text-align: center; margin-bottom: 26px; }
.ab-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ab-value-card {
  background: var(--bc-surface, #fff); border: 1px solid #ECEFF6;
  border-radius: var(--bc-radius-2xl, 20px); padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ab-value-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(43,54,116,.32); border-color: var(--bc-primary); }
.ab-value-ico {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(135deg, var(--bc-primary), #1f5e9e); color: #fff;
}
.ab-value-card:nth-child(3n+2) .ab-value-ico { background: linear-gradient(135deg, var(--bc-accent, #f59e0b), #d97706); }
.ab-value-card:nth-child(3n) .ab-value-ico { background: linear-gradient(135deg, #08A54A, #0a7d3a); }
.ab-value-title { font-size: 17px; font-weight: 800; color: var(--bc-text-900); margin: 0 0 8px; }
.ab-value-desc { font-size: 14px; line-height: 2; color: var(--bc-text-700); margin: 0; }

/* ---- CTA ---- */
.ab-cta {
  background: linear-gradient(135deg, #1f5e9e, #2A75BB);
  border-radius: var(--bc-radius-2xl, 22px);
  padding: 36px 30px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.ab-cta-text h2 { font-size: 23px; font-weight: 800; margin: 0 0 8px; }
.ab-cta-text p { font-size: 15px; color: rgba(255,255,255,.9); margin: 0; line-height: 1.9; }
.ab-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ab-cta-btn-white { background: #fff !important; color: var(--bc-primary) !important; font-weight: 800; }
.ab-cta-btn-white:hover { background: #f1f5fb !important; }
.ab-cta-btn-outline { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.6) !important; font-weight: 700; }
.ab-cta-btn-outline:hover { background: rgba(255,255,255,.14) !important; }

/* ---- ABOUT RESPONSIVE ---- */
@media (max-width: 1023px) {
  .ab-stats { grid-template-columns: repeat(3, 1fr); }
  .ab-values { grid-template-columns: repeat(2, 1fr); }
  .ab-story { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 767px) {
  .ab-hero { margin: 12px 0 4px; border-radius: 18px; }
  .ab-hero-inner { padding: 40px 16px 44px; }
  .ab-hero-title { font-size: 25px; }
  .ab-hero-sub { font-size: 14px; }
  .ab-hero-cta .bc-btn { flex: 1 1 100%; justify-content: center; }
  .ab-h2 { font-size: 21px; }
  .ab-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ab-stat { padding: 18px 10px; }
  .ab-stat-num { font-size: 22px; }
  .ab-stat-icon { width: 44px; height: 44px; font-size: 17px; }
  .ab-values { grid-template-columns: 1fr; gap: 12px; }
  .ab-value-card { padding: 20px; }
  .ab-cta { padding: 26px 20px; text-align: center; justify-content: center; }
  .ab-cta-text h2 { font-size: 19px; }
  .ab-cta-actions { width: 100%; }
  .ab-cta-actions .bc-btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 360px) {
  .ab-stats { grid-template-columns: 1fr; }
}

/* ============================================================================
 * CART ACTION TOAST (2.11) — actionable "added to cart" confirmation with a
 * direct path to cart/checkout. Fixes client feedback that after «افزودن به
 * سبد» there was no direct route to the payment/cart step.
 * ========================================================================== */
.ncp-cart-toast {
  background: #fff;
  color: var(--bc-text-900, #2B3674);
  border: 1px solid var(--bc-text-300, #E3E8F4);
  border-right: 4px solid #08A54A;
  border-radius: 14px;
  box-shadow: 0 14px 40px -12px rgba(43,54,116,.28), 0 4px 12px -6px rgba(43,54,116,.14);
  padding: 12px 14px;
  min-width: 290px;
  max-width: 360px;
  animation: ncpCartToastIn .28s ease;
}
@keyframes ncpCartToastIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ncp-cart-toast-head { display: flex; align-items: flex-start; gap: 10px; }
.ncp-cart-toast-ico { color: #08A54A; font-size: 20px; line-height: 1.2; flex: 0 0 auto; }
.ncp-cart-toast-body { flex: 1 1 auto; min-width: 0; }
.ncp-cart-toast-title { display: block; font-size: 13.5px; font-weight: 700; }
.ncp-cart-toast-item {
  font-size: 12px; color: var(--bc-text-600, #707EAE); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ncp-cart-toast-x {
  flex: 0 0 auto; background: transparent; border: none; cursor: pointer;
  color: var(--bc-text-500, #A3AED0); font-size: 15px; padding: 2px 4px; line-height: 1;
}
.ncp-cart-toast-x:hover { color: var(--bc-text-900, #2B3674); }
.ncp-cart-toast-actions { display: flex; gap: 8px; margin-top: 10px; }
.ncp-cart-toast-btn {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 12.5px; font-weight: 700; padding: 9px 10px; border-radius: 10px;
  cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: all .15s;
}
.ncp-cart-toast-btn--primary {
  background: linear-gradient(120deg, var(--bc-primary, #2A75BB), var(--bc-primary-dark, #1f5a91));
  color: #fff;
}
.ncp-cart-toast-btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ncp-cart-toast-btn--ghost {
  background: #fff; color: var(--bc-text-700, #4B5675); border-color: var(--bc-text-300, #E3E8F4);
}
.ncp-cart-toast-btn--ghost:hover { background: var(--bc-base-bg, #F4F7FE); }
@media (max-width: 480px) {
  .ncp-cart-toast { min-width: auto; max-width: calc(100vw - 32px); }
}
