/* ============================================================================
 * NetCore Pro 1.0.10 — Barghchi-styled theme
 * Exact tokens extracted from barghchi.com:
 *   primary       rgb(42 117 187)   #2A75BB  (color-primary, ocean-blue)
 *   primary-bg    rgb(242 244 252)  #F2F4FC
 *   base-bg       rgb(241 245 246)  #F1F5F6
 *   error-default rgb(255 76 81)    #FF4C51
 *   error-bg      rgb(255 241 241)  #FFF1F1
 *   text-900      rgb(43 54 116)    #2B3674
 *   text-700      rgb(112 126 174)  #707EAE
 *   text-500      ~#A3AED0
 *   text-300      #E0E5F2
 *   shadow-1      0px 2px 8px 0px #838bb41f
 *
 * This stylesheet is loaded AFTER app.css so its rules win the cascade.
 * It defines a full design system: typography, header, nav, mega-menu,
 * hero, product cards, forms, footer, etc. — all matching barghchi.
 * ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* هویت بصری متمایز (مشکل ۶): پالت ایندیگو/بنفش عمیق به‌جای آبی اقیانوسی
     تا سایت از دیجی‌کالا/برق‌چی متمایز شود ولی همچنان حرفه‌ای و خنک بماند. */
  --bc-primary:        #4F46E5;  /* Indigo 600 */
  --bc-primary-rgb:    79, 70, 229;
  --bc-primary-dark:   #3730A3;  /* Indigo 800 */
  --bc-primary-light:  #EEF2FF;  /* Indigo 50 */
  --bc-primary-bg:     #F5F5FF;
  --bc-base-bg:        #F4F4FB;
  --bc-surface:        #FFFFFF;
  --bc-error:          #FF4C51;
  --bc-error-bg:       #FFF1F1;
  --bc-success:        #08A54A;
  --bc-success-bg:     #E8F8EF;
  --bc-amber:          #F59E0B;
  --bc-amber-bg:       #FFF4E0;
  --bc-text-900:       #2E2A6B;
  --bc-text-700:       #6E6A9C;
  --bc-text-500:       #A5A2C8;
  --bc-text-300:       #E3E1F2;
  --bc-text-200:       #ECEAF7;
  --bc-text-100:       #F4F3FB;
  --bc-shadow-1:       0 2px 8px 0 #838bb41f;
  --bc-shadow-2:       0 4px 16px 0 #838bb433;
  --bc-shadow-md:      0 8px 24px 0 #838bb429;
  --bc-radius-sm:      6px;
  --bc-radius:         10px;
  --bc-radius-lg:      14px;
  --bc-radius-xl:      20px;
  --bc-font:           'IRANYekanX', 'Vazirmatn', 'Tahoma', sans-serif;
  --bc-header-height:  64px;
}

/* ============================================================================
 * RESET / BASE — apply to site only, NOT admin (data-admin sets its own dark)
 * ========================================================================== */
html { scroll-behavior: smooth; }

body:not([data-admin]) {
  font-family: var(--bc-font) !important;
  background: var(--bc-base-bg) !important;
  color: var(--bc-text-900) !important;
  font-size: 14px;
  line-height: 1.7;
  font-feature-settings: 'ss01', 'ss02';
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

body:not([data-admin]) * { box-sizing: border-box; }
body:not([data-admin]) a { color: inherit; text-decoration: none; }
body:not([data-admin]) img { max-width: 100%; height: auto; display: block; }

body:not([data-admin]) ::-webkit-scrollbar { width: 8px; height: 8px; }
body:not([data-admin]) ::-webkit-scrollbar-track { background: var(--bc-base-bg); }
body:not([data-admin]) ::-webkit-scrollbar-thumb { background: #c8d0e7; border-radius: 6px; }
body:not([data-admin]) ::-webkit-scrollbar-thumb:hover { background: var(--bc-text-500); }

/* Persian numerals helper */
.bc-num { font-feature-settings: 'ss01', 'ss02'; }

/* ============================================================================
 * UTILITY MAPPING — translate the most common Tailwind classes the existing
 * page templates still use, so unrewritten pages get reasonable styling too.
 * ========================================================================== */
/* IMPORTANT: `-webkit-background-clip:text` is unreliable across browsers and
 * when it fails the gradient paints the whole box as a solid bar while the text
 * stays transparent (invisible). For an offline-first, bullet-proof site we use
 * a solid, high-contrast accent color instead — fully readable everywhere. */
body:not([data-admin]) .gradient-text {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: var(--bc-primary) !important;
  -webkit-text-fill-color: var(--bc-primary) !important;
  font-weight: 800;
}
body:not([data-admin]) .btn-primary {
  background: var(--bc-primary) !important;
  color: #fff !important;
  border: none;
  font-weight: 700;
  border-radius: var(--bc-radius);
  transition: background .2s, box-shadow .2s;
  font-family: var(--bc-font);
}
body:not([data-admin]) .btn-primary:hover {
  background: var(--bc-primary-dark) !important;
  box-shadow: 0 6px 16px rgba(42,117,187,.25);
}
body:not([data-admin]) .btn-primary:disabled { opacity: .55; cursor: not-allowed; }

body:not([data-admin]) .card-dark {
  background: var(--bc-surface) !important;
  border: 1px solid var(--bc-text-300) !important;
  box-shadow: var(--bc-shadow-1);
  border-radius: var(--bc-radius-lg);
  color: var(--bc-text-900);
}

/* Tailwind slate/cyan/blue overrides — keep for any leftover template */
body:not([data-admin]) .bg-slate-900,
body:not([data-admin]) .bg-slate-800,
body:not([data-admin]) .bg-slate-700,
body:not([data-admin]) [class*="bg-slate-"] { background-color: var(--bc-surface) !important; }
body:not([data-admin]) .bg-slate-800\/50 { background-color: var(--bc-primary-bg) !important; }
body:not([data-admin]) [class*="border-slate-"] { border-color: var(--bc-text-300) !important; }
body:not([data-admin]) .text-white,
body:not([data-admin]) [class*="text-slate-1"],
body:not([data-admin]) [class*="text-slate-2"],
body:not([data-admin]) [class*="text-slate-3"] { color: var(--bc-text-900) !important; }
body:not([data-admin]) [class*="text-slate-4"],
body:not([data-admin]) [class*="text-slate-5"],
body:not([data-admin]) [class*="text-slate-6"] { color: var(--bc-text-700) !important; }
body:not([data-admin]) [class*="text-cyan-"],
body:not([data-admin]) [class*="text-blue-"] { color: var(--bc-primary) !important; }
body:not([data-admin]) [class*="bg-cyan-"],
body:not([data-admin]) [class*="bg-blue-"] { background-color: var(--bc-primary) !important; }
body:not([data-admin]) [class*="border-cyan-"],
body:not([data-admin]) [class*="border-blue-"] { border-color: var(--bc-primary) !important; }
body:not([data-admin]) .bg-cyan-500\/10,
body:not([data-admin]) .bg-cyan-500\/20 { background-color: rgba(42,117,187,.10) !important; }
body:not([data-admin]) .from-cyan-500,
body:not([data-admin]) .from-blue-500,
body:not([data-admin]) .from-cyan-400 { --tw-gradient-from: var(--bc-primary) !important; }
body:not([data-admin]) .to-blue-500,
body:not([data-admin]) .to-blue-600,
body:not([data-admin]) .to-blue-700 { --tw-gradient-to: var(--bc-text-900) !important; }
body:not([data-admin]) .bg-gradient-to-br,
body:not([data-admin]) .bg-gradient-to-r {
  background-image: linear-gradient(135deg, var(--bc-primary), var(--bc-text-900)) !important;
}
body:not([data-admin]) .text-green-400 { color: var(--bc-success) !important; }
body:not([data-admin]) .text-red-400 { color: var(--bc-error) !important; }
body:not([data-admin]) .text-amber-400 { color: #B45309 !important; }
body:not([data-admin]) .bg-amber-500\/10 { background: var(--bc-amber-bg) !important; }

body:not([data-admin]) input,
body:not([data-admin]) select,
body:not([data-admin]) textarea {
  font-family: var(--bc-font);
  background: #fff !important;
  border: 1px solid var(--bc-text-300) !important;
  color: var(--bc-text-900) !important;
  border-radius: var(--bc-radius);
}
body:not([data-admin]) input:focus,
body:not([data-admin]) select:focus,
body:not([data-admin]) textarea:focus {
  outline: none;
  border-color: var(--bc-primary) !important;
  box-shadow: 0 0 0 3px rgba(42,117,187,.12);
}
body:not([data-admin]) input::placeholder,
body:not([data-admin]) textarea::placeholder { color: var(--bc-text-500); }
body:not([data-admin]) label { color: var(--bc-text-700); font-size: 13px; font-weight: 500; }

body:not([data-admin]) button { font-family: var(--bc-font); cursor: pointer; }

.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--bc-text-300);
  border-top-color: var(--bc-primary);
  border-radius: 50%;
  animation: bc-spin 0.8s linear infinite;
}
@keyframes bc-spin { to { transform: rotate(360deg); } }

/* ============================================================================
 * CONTAINER
 * ========================================================================== */
.bc-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 1024px) {
  .bc-container { padding: 0 24px; }
}

/* ============================================================================
 * HEADER — exact barghchi 3-row structure
 *   row 1: top-bar (working hours + phone) — hidden on mobile
 *   row 2: main bar (logo + search + cart/wishlist/account)
 *   row 3: nav bar (categories mega menu + main links)
 * ========================================================================== */
.bc-header {
  background: var(--bc-surface);
  box-shadow: var(--bc-shadow-1);
  position: sticky; top: 0; z-index: 100;
}

.bc-topbar {
  display: none;
  border-bottom: 1px solid var(--bc-text-300);
  color: var(--bc-text-700);
  font-size: 12px;
}
@media (min-width: 768px) { .bc-topbar { display: block; } }
.bc-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.bc-topbar-left,
.bc-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bc-topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-topbar-item svg { color: var(--bc-text-900); }

.bc-mainbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}
.bc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.bc-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bc-primary), var(--bc-text-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.bc-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.bc-logo-text .bc-logo-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--bc-text-900);
}
.bc-logo-text .bc-logo-sub {
  font-size: 11px;
  color: var(--bc-text-700);
}

.bc-search {
  flex: 1;
  position: relative;
  max-width: 560px;
}
.bc-search input {
  width: 100%;
  background: var(--bc-base-bg) !important;
  border: 1px solid transparent !important;
  border-radius: var(--bc-radius-xl);
  padding: 12px 48px 12px 16px;
  font-size: 14px;
  color: var(--bc-text-900);
  transition: border-color .2s;
}
.bc-search input:focus {
  border-color: var(--bc-primary) !important;
  background: #fff !important;
}
.bc-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bc-text-700);
  pointer-events: none;
}

.bc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.bc-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bc-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bc-text-900);
  position: relative;
  transition: background .2s;
  border: none;
  cursor: pointer;
}
.bc-icon-btn:hover { background: var(--bc-text-300); }
.bc-icon-btn .bc-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--bc-error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bc-primary);
  color: #fff !important;
  border-radius: var(--bc-radius);
  font-weight: 600;
  font-size: 13px;
  border: none;
  transition: background .2s;
}
.bc-account-btn:hover { background: var(--bc-primary-dark); }
.bc-account-btn svg { color: #fff; }

/* Offer chip (special offers on left) */
.bc-offer-chip {
  display: none;
  align-items: center;
  gap: 10px;
}
@media (min-width: 1100px) { .bc-offer-chip { display: flex; } }
.bc-offer-chip .bc-offer-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bc-error-bg);
  color: var(--bc-error);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.bc-offer-chip:hover .bc-offer-icon { background: var(--bc-error); color: #fff; }
.bc-offer-text { display: flex; flex-direction: column; line-height: 1.2; }
.bc-offer-text small { font-size: 11px; color: var(--bc-text-700); }
.bc-offer-text strong { font-size: 13px; color: var(--bc-text-900); font-weight: 700; }

/* Navigation row */
.bc-navbar {
  display: none;
  border-top: 1px solid var(--bc-text-300);
}
@media (min-width: 1024px) { .bc-navbar { display: block; } }

.bc-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.bc-nav > li { position: relative; }
.bc-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  color: var(--bc-text-900);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.bc-nav-link:hover { color: var(--bc-primary); border-color: var(--bc-primary); }
.bc-nav-link.bc-categories-trigger {
  background: var(--bc-primary);
  color: #fff !important;
  padding: 14px 20px;
  border-radius: var(--bc-radius) var(--bc-radius) 0 0;
  font-weight: 700;
  border-bottom: none;
}
.bc-nav-link.bc-categories-trigger:hover { background: var(--bc-primary-dark); }

.bc-nav-spacer { flex: 1; }
.bc-nav-side {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--bc-text-700);
}
.bc-nav-side a { color: var(--bc-text-700); transition: color .2s; }
.bc-nav-side a:hover { color: var(--bc-primary); }

/* ============================================================================
 * MEGA-MENU — base styles moved to theme-barghchi-v2.css (full-width barghchi
 * layout). This block intentionally left minimal to avoid conflicting rules.
 * ========================================================================== */

/* ============================================================================
 * MOBILE MENU
 * ========================================================================== */
.bc-mobile-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bc-primary-bg);
  border: none;
  border-radius: 50%;
  color: var(--bc-text-900);
  cursor: pointer;
}
@media (min-width: 1024px) { .bc-mobile-trigger { display: none; } }

#mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--bc-text-300);
  padding: 16px;
}
#mobile-menu.bc-open { display: block; }
#mobile-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--bc-radius);
  color: var(--bc-text-900);
  font-size: 14px;
  font-weight: 500;
}
#mobile-menu a:hover { background: var(--bc-primary-bg); color: var(--bc-primary); }

/* ============================================================================
 * HERO / SLIDER
 * ========================================================================== */
.bc-hero {
  background: linear-gradient(135deg, #E8F1FB 0%, #F2F4FC 50%, #FEF3F2 100%);
  border-radius: var(--bc-radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}
.bc-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .bc-hero-inner { grid-template-columns: 1.2fr 1fr; }
}
.bc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border-radius: 999px;
  color: var(--bc-primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: var(--bc-shadow-1);
}
.bc-hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--bc-text-900);
  line-height: 1.3;
  margin: 0 0 16px;
}
.bc-hero h1 .bc-accent { color: var(--bc-primary); }
.bc-hero p {
  color: var(--bc-text-700);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 24px;
}
.bc-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bc-hero-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bc-hero-img-decor {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: var(--bc-radius-xl);
  box-shadow: var(--bc-shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: var(--bc-primary);
  background-image: radial-gradient(circle at center, rgba(42,117,187,.08) 0%, transparent 60%);
}

/* ============================================================================
 * BUTTONS
 * ========================================================================== */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--bc-radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--bc-font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.bc-btn--primary {
  background: var(--bc-primary);
  color: #fff !important;
}
.bc-btn--primary:hover {
  background: var(--bc-primary-dark);
  box-shadow: 0 6px 16px rgba(42,117,187,.25);
}
.bc-btn--ghost {
  background: transparent;
  color: var(--bc-text-900);
  border-color: var(--bc-text-300);
}
.bc-btn--ghost:hover {
  border-color: var(--bc-primary);
  color: var(--bc-primary);
}
.bc-btn--danger {
  background: var(--bc-error);
  color: #fff !important;
}
.bc-btn--danger:hover { background: #e63a40; }
.bc-btn--block { display: flex; width: 100%; }
.bc-btn--lg { padding: 14px 28px; font-size: 15px; }
.bc-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none !important; }

/* ============================================================================
 * SECTION HEADINGS
 * ========================================================================== */
.bc-section { padding: 32px 0; }
.bc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.bc-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bc-text-900);
  position: relative;
  padding-right: 14px;
  margin: 0;
}
.bc-section-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: var(--bc-primary);
  border-radius: 2px;
}
.bc-section-more {
  color: var(--bc-primary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bc-section-more:hover { color: var(--bc-primary-dark); }

/* ============================================================================
 * CATEGORY TILES (home)
 * ========================================================================== */
.bc-cat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .bc-cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .bc-cat-tiles { grid-template-columns: repeat(6, 1fr); } }

.bc-cat-tile {
  background: #fff;
  border: 1px solid var(--bc-text-300);
  border-radius: var(--bc-radius-lg);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bc-cat-tile:hover {
  border-color: var(--bc-primary);
  box-shadow: var(--bc-shadow-md);
  transform: translateY(-2px);
}
.bc-cat-tile-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bc-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--bc-primary);
}
.bc-cat-tile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bc-text-900);
}
.bc-cat-tile-count {
  font-size: 11px;
  color: var(--bc-text-700);
}

/* ============================================================================
 * PRODUCT CARD
 * ========================================================================== */
.bc-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .bc-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .bc-products-grid { grid-template-columns: repeat(4, 1fr); } }

.bc-product-card {
  background: #fff;
  border: 1px solid var(--bc-text-300);
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.bc-product-card:hover {
  border-color: var(--bc-primary);
  box-shadow: var(--bc-shadow-md);
}
.bc-product-image {
  display: block;
  aspect-ratio: 1;
  background: var(--bc-base-bg);
  position: relative;
  overflow: hidden;
}
.bc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s;
}
.bc-product-card:hover .bc-product-image img { transform: scale(1.05); }

.bc-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--bc-error);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 1;
}
.bc-product-badge--new { background: var(--bc-success); }

.bc-product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bc-product-brand {
  font-size: 11px;
  color: var(--bc-text-700);
  margin-bottom: 4px;
  min-height: 16px;
}
.bc-product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bc-text-900);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin-bottom: 12px;
  transition: color .2s;
}
.bc-product-title:hover { color: var(--bc-primary); }

.bc-product-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  gap: 8px;
}
.bc-product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.bc-product-price-old {
  font-size: 11px;
  color: var(--bc-text-500);
  text-decoration: line-through;
}
.bc-product-price-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--bc-text-900);
}
.bc-product-price-unit {
  font-size: 11px;
  color: var(--bc-text-700);
  margin-right: 4px;
}
.bc-product-price--call {
  font-size: 12px;
  color: var(--bc-text-700);
  font-weight: 600;
}

.bc-product-add {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bc-primary);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.bc-product-add:hover { background: var(--bc-primary-dark); transform: scale(1.08); }
.bc-product-add:disabled { background: var(--bc-text-300); cursor: not-allowed; transform: none; }

.bc-product-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 6px;
}
.bc-product-tag--in { background: var(--bc-success-bg); color: #07623A; }
.bc-product-tag--out { background: var(--bc-error-bg); color: #B91C1C; }

/* ============================================================================
 * FEATURE STRIP (4 badges before footer)
 * ========================================================================== */
.bc-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid var(--bc-text-300);
  border-radius: var(--bc-radius-lg);
  padding: 20px;
}
@media (min-width: 768px) { .bc-features { grid-template-columns: repeat(4, 1fr); } }

.bc-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
}
.bc-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bc-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--bc-primary);
  flex-shrink: 0;
}
.bc-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bc-text-900);
  margin: 0 0 2px;
}
.bc-feature-desc {
  font-size: 12px;
  color: var(--bc-text-700);
}

/* ============================================================================
 * PANEL (generic card)
 * ========================================================================== */
.bc-panel {
  background: #fff;
  border: 1px solid var(--bc-text-300);
  border-radius: var(--bc-radius-lg);
  padding: 20px;
  box-shadow: var(--bc-shadow-1);
}
.bc-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bc-text-300);
}
.bc-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bc-text-900);
  margin: 0;
}

/* ============================================================================
 * FORMS
 * ========================================================================== */
.bc-form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bc-form-row label { font-size: 13px; font-weight: 500; color: var(--bc-text-700); }
.bc-input,
.bc-select,
.bc-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--bc-text-300);
  border-radius: var(--bc-radius);
  background: #fff;
  font-family: var(--bc-font);
  font-size: 14px;
  color: var(--bc-text-900);
  transition: border-color .2s, box-shadow .2s;
}
.bc-input:focus,
.bc-select:focus,
.bc-textarea:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px rgba(42,117,187,.12);
}
.bc-textarea { min-height: 100px; resize: vertical; }
.bc-form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .bc-form-grid--2 { grid-template-columns: 1fr 1fr; } }

/* ============================================================================
 * BREADCRUMB
 * ========================================================================== */
.bc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bc-text-700);
  margin: 16px 0;
  flex-wrap: wrap;
}
.bc-breadcrumb a { color: var(--bc-text-700); }
.bc-breadcrumb a:hover { color: var(--bc-primary); }
.bc-breadcrumb .bc-breadcrumb-sep { color: var(--bc-text-300); }
.bc-breadcrumb .bc-breadcrumb-current { color: var(--bc-text-900); font-weight: 500; }

/* ============================================================================
 * PRODUCT DETAIL PAGE
 * ========================================================================== */
.bc-product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: #fff;
  border-radius: var(--bc-radius-lg);
  padding: 24px;
  box-shadow: var(--bc-shadow-1);
  border: 1px solid var(--bc-text-300);
}
@media (min-width: 768px) { .bc-product-detail { grid-template-columns: 1fr 1fr; } }
.bc-product-detail-img {
  aspect-ratio: 1;
  background: var(--bc-base-bg);
  border-radius: var(--bc-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bc-product-detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }

.bc-product-detail-info h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--bc-text-900);
  margin: 0 0 8px;
  line-height: 1.5;
}
.bc-product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--bc-text-700);
  margin-bottom: 16px;
}
.bc-product-detail-meta span {
  background: var(--bc-primary-bg);
  padding: 4px 10px;
  border-radius: 999px;
}
.bc-product-detail-priceblock {
  background: var(--bc-base-bg);
  border-radius: var(--bc-radius);
  padding: 16px;
  margin: 16px 0;
}
.bc-product-detail-priceblock .bc-price-old {
  font-size: 13px;
  color: var(--bc-text-500);
  text-decoration: line-through;
}
.bc-product-detail-priceblock .bc-price-now {
  font-size: 26px;
  font-weight: 800;
  color: var(--bc-text-900);
}
.bc-product-detail-priceblock .bc-price-unit {
  font-size: 14px;
  color: var(--bc-text-700);
  margin-right: 6px;
}
.bc-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bc-text-300);
  border-radius: var(--bc-radius);
  overflow: hidden;
  background: #fff;
}
.bc-qty button {
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: var(--bc-text-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bc-qty button:hover { background: var(--bc-primary-bg); color: var(--bc-primary); }
.bc-qty input {
  width: 50px;
  text-align: center;
  border: none !important;
  background: transparent !important;
  font-weight: 700;
  color: var(--bc-text-900);
  font-family: var(--bc-font);
}
.bc-qty input:focus { box-shadow: none !important; }

/* ============================================================================
 * TABLES (account orders/tickets)
 * ========================================================================== */
.bc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-family: var(--bc-font);
}
.bc-table th {
  background: var(--bc-primary-bg);
  color: var(--bc-text-900);
  font-weight: 700;
  text-align: right;
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--bc-text-300);
}
.bc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bc-text-300);
  color: var(--bc-text-900);
  font-size: 13px;
}
.bc-table tr:last-child td { border-bottom: none; }
.bc-table tr:hover td { background: var(--bc-primary-bg); }

/* ============================================================================
 * TAGS / BADGES (status)
 * ========================================================================== */
.bc-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.bc-status--success { background: var(--bc-success-bg); color: #07623A; }
.bc-status--error   { background: var(--bc-error-bg); color: #B91C1C; }
.bc-status--warn    { background: var(--bc-amber-bg); color: #B45309; }
.bc-status--info    { background: var(--bc-primary-bg); color: var(--bc-primary); }
.bc-status--muted   { background: #F1F5F6; color: var(--bc-text-700); }

/* ============================================================================
 * ALERTS / EMPTY STATES
 * ========================================================================== */
.bc-alert {
  padding: 12px 16px;
  border-radius: var(--bc-radius);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-alert--info { background: var(--bc-primary-bg); color: var(--bc-primary); }
.bc-alert--warn { background: var(--bc-amber-bg); color: #B45309; }
.bc-alert--error { background: var(--bc-error-bg); color: var(--bc-error); }
.bc-alert--success { background: var(--bc-success-bg); color: #07623A; }

.bc-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--bc-text-700);
}
.bc-empty-icon {
  font-size: 56px;
  color: var(--bc-text-300);
  margin-bottom: 16px;
}
.bc-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bc-text-900);
  margin-bottom: 8px;
}

/* ============================================================================
 * PAGINATION
 * ========================================================================== */
.bc-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.bc-pagination button,
.bc-pagination a {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bc-radius);
  background: #fff;
  border: 1px solid var(--bc-text-300);
  color: var(--bc-text-900);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  font-family: var(--bc-font);
}
.bc-pagination button:hover,
.bc-pagination a:hover {
  border-color: var(--bc-primary);
  color: var(--bc-primary);
}
.bc-pagination .bc-active,
.bc-pagination button.bc-active {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
  color: #fff !important;
}

/* ============================================================================
 * SIDEBAR FILTERS
 * ========================================================================== */
.bc-sidebar {
  background: #fff;
  border: 1px solid var(--bc-text-300);
  border-radius: var(--bc-radius-lg);
  padding: 18px;
}
.bc-sidebar-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--bc-text-900);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bc-text-300);
  margin-bottom: 14px;
}
.bc-sidebar-group { margin-bottom: 18px; }
.bc-sidebar-group:last-child { margin-bottom: 0; }
.bc-sidebar-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bc-text-900);
  margin-bottom: 8px;
}

/* ============================================================================
 * BLOG CARDS
 * ========================================================================== */
.bc-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .bc-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bc-blog-grid { grid-template-columns: repeat(3, 1fr); } }

.bc-blog-card {
  background: #fff;
  border: 1px solid var(--bc-text-300);
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.bc-blog-card:hover { border-color: var(--bc-primary); box-shadow: var(--bc-shadow-md); }
.bc-blog-card-img {
  aspect-ratio: 16/9;
  background: var(--bc-base-bg);
  overflow: hidden;
}
.bc-blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bc-blog-card:hover .bc-blog-card-img img { transform: scale(1.05); }
.bc-blog-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bc-blog-card-cat { font-size: 11px; color: var(--bc-primary); font-weight: 600; }
.bc-blog-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bc-text-900);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bc-blog-card-excerpt {
  font-size: 12px;
  color: var(--bc-text-700);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bc-blog-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--bc-text-500);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--bc-text-300);
}

/* ============================================================================
 * FOOTER
 * ========================================================================== */
.bc-footer {
  background: var(--bc-text-900);
  color: var(--bc-text-300);
  margin-top: 48px;
  padding: 32px 0 24px;
}
.bc-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 768px) { .bc-footer-grid { grid-template-columns: repeat(4, 1fr); } }

.bc-footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  position: relative;
  padding-right: 10px;
}
.bc-footer-col-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: var(--bc-primary);
  border-radius: 2px;
}
.bc-footer-col ul { list-style: none; margin: 0; padding: 0; }
.bc-footer-col li { margin-bottom: 8px; }
.bc-footer-col a {
  color: var(--bc-text-300);
  font-size: 13px;
  transition: color .2s;
}
.bc-footer-col a:hover { color: #fff; }
.bc-footer-col p { font-size: 13px; color: var(--bc-text-300); line-height: 1.9; }

.bc-footer-newsletter input {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #fff !important;
  border-radius: var(--bc-radius);
  padding: 10px 14px;
  width: 100%;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: var(--bc-font);
}
.bc-footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.bc-footer-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.bc-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s, color .2s;
}
.bc-footer-social a:hover { background: var(--bc-primary); }

.bc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  font-size: 12px;
  color: var(--bc-text-500);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ============================================================================
 * TOAST
 * ========================================================================== */
#toast-container > * {
  background: #fff !important;
  color: var(--bc-text-900) !important;
  border: 1px solid var(--bc-text-300);
  box-shadow: var(--bc-shadow-md);
  border-radius: var(--bc-radius);
}

/* ============================================================================
 * Skip link
 * ========================================================================== */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--bc-primary); color: #fff;
  padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; }

/* ============================================================================
 * Account page sidebar
 * ========================================================================== */
.bc-account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .bc-account-grid { grid-template-columns: 240px 1fr; }
}
.bc-account-side {
  background: #fff;
  border: 1px solid var(--bc-text-300);
  border-radius: var(--bc-radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: fit-content;
}
.bc-account-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--bc-radius);
  color: var(--bc-text-900);
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.bc-account-side a:hover { background: var(--bc-primary-bg); color: var(--bc-primary); }
.bc-account-side a.bc-active {
  background: var(--bc-primary);
  color: #fff;
}
.bc-account-side a.bc-active i,
.bc-account-side a.bc-active svg { color: #fff; }
