@import url('mega-menu.css?v=3.0.0');

/* ==========================================================================
   OFFLINE LOCAL FONTS: YEKAN BAKH (DESIGN.md Gold Standard Persian Typography)
   Zero External CDN Dependency / Sub-millisecond rendering / 1M Concurrency Standard
   ========================================================================== */
@font-face {
  font-family: 'Yekan Bakh';
  src: url('../assets/fonts/yekanbakh/YekanBakh-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('../assets/fonts/yekanbakh/YekanBakh-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('../assets/fonts/yekanbakh/YekanBakh-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('../assets/fonts/yekanbakh/YekanBakh-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('../assets/fonts/yekanbakh/YekanBakh-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('../assets/fonts/yekanbakh/YekanBakh-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Fallback: Local Vazirmatn */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* English International Font: Inter */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   SIMCHI E-COMMERCE PLATFORM DESIGN SYSTEM (DESIGN.md)
   Palette: Clean White (#F8FAFC / #FFFFFF) + Charcoal/Black Typography (#0F172A / #334155)
   Accents: Industrial Crimson Red (#E52B38 / #A31D24)
   Inspired by Barghsan.com - 1M Concurrency Standard
   ========================================================================== */

:root {
  /* Clean White Palette */
  --bg-deep: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.98);
  --bg-glass-card: #FFFFFF;
  --bg-glass-hover: #F8FAFC;
  
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-glass: #E2E8F0;
  --border-glow: rgba(255, 184, 0, 0.35);
  
  /* Caterpillar Industrial Yellow Tokens */
  --cat-yellow: #FFB800;
  --cat-yellow-hover: #E5A300;
  --cat-yellow-dark: #C68A00;
  --cat-yellow-glow: 0 4px 18px rgba(255, 184, 0, 0.38);
  --cat-yellow-tint: rgba(255, 184, 0, 0.12);
  --cat-yellow-soft: #FFFBEB;

  /* Industrial Deep Jet Black & Charcoal */
  --cat-black: #111111;
  --cat-black-soft: #18181B;
  --cat-black-card: #141416;
  --cat-black-elevated: #1F2937;

  /* Seamless Aliases for Site-wide Consistency */
  --barghsan-red: #FFB800;
  --barghsan-red-hover: #E5A300;
  --barghsan-red-dark: #C68A00;
  --barghsan-red-glow: 0 4px 18px rgba(255, 184, 0, 0.38);
  --barghsan-red-tint: rgba(255, 184, 0, 0.12);

  --copper-primary: #FFB800;
  --copper-hover: #E5A300;
  --copper-glow: 0 4px 18px rgba(255, 184, 0, 0.35);
  --cyan-voltage: #0284C7;
  --cyan-glow: 0 0 15px rgba(2, 132, 199, 0.25);
  --emerald-success: #10B981;
  --rose-danger: #EF4444;

  /* Typography: High-Contrast Black & Charcoal */
  --text-main: #111111;
  --text-muted: #334155;
  --text-dim: #64748B;
  --text-inverse: #FFFFFF;

  /* Professional Modern Persian Typography: Yekan Bakh (Primary) + Vazirmatn (Fallback) */
  --font-sans: 'Yekan Bakh', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows for Clean White UI */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 4px 20px rgba(0, 0, 0, 0.06);
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@keyframes skeletonPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15.5px;
  }
}

/* Base Styles & Typography */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea, optgroup {
  font-family: inherit;
  font-size: inherit;
}

/* Multi-Language Typography Switching */
:root:lang(en), [lang="en"], [dir="ltr"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.2px;
}

:root:lang(ar), [lang="ar"] {
  font-family: 'Vazirmatn', 'Yekan Bakh', Tahoma, Arial, sans-serif !important;
}

:root:lang(fa), [lang="fa"] {
  font-family: 'Yekan Bakh', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="ltr"] button, [dir="ltr"] input, [dir="ltr"] select, [dir="ltr"] textarea,
[lang="en"] button, [lang="en"] input, [lang="en"] select, [lang="en"] textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

[lang="ar"] button, [lang="ar"] input, [lang="ar"] select, [lang="ar"] textarea {
  font-family: 'Vazirmatn', 'Yekan Bakh', Tahoma, Arial, sans-serif !important;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism / White Surface Utility */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   NAVIGATION & HEADER (Barghsan Style)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Brand & Logo */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text-block h1, .brand-name-heading {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-latin-sub {
  color: #B45309;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-badge {
  font-size: 0.82rem;
  background: #FFFBEB;
  color: #B45309;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #FDE68A;
  font-weight: 800;
  white-space: nowrap;
}

/* Middle Navigation Links with Dynamic Gliding Caterpillar Yellow Line (Hover Only) */
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  white-space: nowrap;
  flex-shrink: 1;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.nav-links a:hover {
  color: #111111;
  font-weight: 800;
}

/* Single Dynamic Sliding Tracker (Only visible on hover, glides smoothly across items) */
.nav-sliding-tracker {
  position: absolute;
  bottom: -4px;
  height: 3px;
  background: var(--cat-yellow, #FFB800);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.85);
  transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}

/* Action Buttons in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Caterpillar Industrial Action Buttons with Hover Accent Line */
.barghsan-btn-red {
  background: var(--cat-yellow);
  color: #111111 !important;
  border: 1.5px solid var(--cat-yellow);
  padding: 6px 12px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.barghsan-btn-red::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background: #111111;
  transition: left 0.25s ease, right 0.25s ease;
  pointer-events: none;
}

.barghsan-btn-red:hover::after {
  left: 0;
  right: 0;
}

.barghsan-btn-red:hover {
  background: var(--cat-yellow-hover);
  border-color: var(--cat-yellow-hover);
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.4);
}

.barghsan-btn-white {
  background: #FFFFFF;
  color: #111111 !important;
  border: 1.5px solid #CBD5E1;
  padding: 6px 12px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.barghsan-btn-white::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background: var(--cat-yellow);
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.8);
  transition: left 0.25s ease, right 0.25s ease;
  pointer-events: none;
}

.barghsan-btn-white:hover::after {
  left: 0;
  right: 0;
}

.barghsan-btn-white:hover {
  background: #111111;
  color: var(--cat-yellow) !important;
  border-color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-arrow-icon {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

/* Minimal Circular Language Flags */
.lang-flags-minimal, .lang-selector-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 5px;
}

.flag-circle-btn, .lang-flag-btn {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 50%;
  padding: 0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.flag-circle-btn:hover, .lang-flag-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.flag-circle-btn.active, .lang-flag-btn.active {
  opacity: 1;
  border-color: var(--cat-yellow-dark);
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.4);
  transform: scale(1.08);
}

.flag-svg, .flag-icon-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* User Account Button with Hover Dropdown */
.user-profile-hover-wrap {
  position: relative;
}

.user-profile-trigger-btn {
  background: #F8FAFC;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.user-profile-trigger-btn:hover {
  background: #FFFBEB;
  border-color: var(--cat-yellow);
  color: #111111;
}

.user-hover-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 300px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Reveal dropdown on hover */
.user-profile-hover-wrap:hover .user-hover-dropdown,
.user-hover-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-hover-head {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.user-hover-head h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.user-hover-head p {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.user-hover-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hover-input {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.hover-input:focus {
  border-color: var(--barghsan-red);
  box-shadow: 0 0 0 3px rgba(229, 43, 56, 0.1);
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin: 4px 0;
}

.remember-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.forgot-pass-link {
  color: var(--barghsan-red);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.forgot-pass-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.btn-hover-login {
  background: var(--barghsan-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-hover-login:hover {
  background: var(--barghsan-red-hover);
}

.btn-hover-register {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-hover-register:hover {
  background: #F8FAFC;
  border-color: var(--border-strong);
}

/* Cart Button */
.cart-icon-btn {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.cart-icon-btn:hover {
  border-color: var(--barghsan-red);
  color: var(--barghsan-red);
}

.cart-badge {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 9999px;
  padding: 2px 7px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
}

/* ==========================================================================
   HERO SECTION & UPPER-THIRD LARGE SEARCH BAR
   ========================================================================== */
.hero-section {
  padding: 44px 0 36px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  color: #92400E;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 20px;
  white-space: nowrap;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.35;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* UPPER-THIRD LARGE SEARCH BOX */
.upper-search-box-wrap {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 50;
}

.search-input-container {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-container:focus-within {
  border-color: var(--barghsan-red);
  box-shadow: 0 8px 30px rgba(229, 43, 56, 0.15);
}

.search-main-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.05rem;
  padding: 10px 14px;
  font-family: inherit;
}

.search-main-input::placeholder {
  color: var(--text-dim);
}

.search-icon-trigger {
  color: var(--barghsan-red);
  display: flex;
  align-items: center;
  padding: 0 8px;
}

/* FLOATING SEARCH MODAL RESULT WINDOW */
.floating-search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 480px;
  overflow-y: auto;
  padding: 16px;
  z-index: 200;
  display: none;
}

.floating-search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  gap: 16px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #F8FAFC;
}

.search-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.search-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.search-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.search-item-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.search-item-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.code-numeric-pill {
  display: inline-block;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ==========================================================================
   PRODUCTS CATALOG GRID & CARDS
   ========================================================================== */
.catalog-section {
  padding: 50px 0;
}

.section-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-head-title h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-head-title p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  white-space: nowrap;
  scrollbar-width: thin;
}

.cat-tab-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.cat-tab-btn:hover {
  border-color: var(--cat-yellow);
  color: #111111;
  background: #FFFBEB;
}

.cat-tab-btn.active {
  background: #111111;
  border-color: #111111;
  color: var(--cat-yellow);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1380px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--cat-yellow);
  box-shadow: 0 16px 36px rgba(255, 184, 0, 0.2);
}

.product-thumb-container {
  width: 100%;
  height: 195px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.product-thumb-container:hover {
  border-color: var(--cat-yellow);
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.25);
}

.product-thumb-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-thumb-container:hover img {
  transform: scale(1.06);
}

.product-title-text {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.6;
  min-height: 46px;
  height: auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-specs-list {
  list-style: none;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-specs-list li {
  display: flex;
  justify-content: space-between;
}

.product-price-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price-val {
  font-size: 1.16rem;
  font-weight: 900;
  color: #111111 !important;
  font-family: inherit;
  background: #F8FAFC;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E2E8F0;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn-open-order-tab {
  flex: 1;
  background: var(--cat-yellow);
  color: #111111;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 800;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.25);
}

.btn-open-order-tab:hover {
  background: var(--cat-yellow-hover);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.35);
}

.btn-add-quick-cart {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-quick-cart:hover {
  background: #FFFBEB;
  border-color: var(--cat-yellow);
  color: #B45309;
}

/* ==========================================================================
   TECHNICAL ARTICLES SECTION
   ========================================================================== */
.articles-section {
  padding: 50px 0;
  background: #F8FAFC;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.article-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.article-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.article-card h4, .article-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.5;
}

.article-card p, .article-excerpt {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.article-card-footer, .article-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.btn-read-article, .article-read-btn {
  color: var(--cat-yellow-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-read-article:hover, .article-read-btn:hover {
  text-decoration: underline;
  color: #111111;
}

/* ==========================================================================
   CUSTOMER REVIEWS LINE
   ========================================================================== */
.reviews-section {
  padding: 50px 0;
}

.reviews-carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFBEB;
  color: #B45309;
  border: 1.5px solid #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
}

.review-author-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.review-author-info span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
}

.review-comment-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.review-stars-row {
  color: #F59E0B;
  display: flex;
  gap: 2px;
}

/* ==========================================================================
   GLASS ACCORDION FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 50px 0;
  background: #F8FAFC;
}

.faq-accordion-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-item {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-accordion-item:hover {
  border-color: var(--border-strong);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 24px;
  text-align: right;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.25s;
}

.faq-accordion-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--barghsan-red);
  color: #FFFFFF;
}

.faq-answer-content {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.faq-accordion-item.active .faq-answer-content {
  display: block;
}

/* ==========================================================================
   DUAL-SECTION FOOTER (Matching Barghsan Screenshot Exactly)
   Left: Crimson Red with 2 Interactive Google Maps + Addresses + Phone Numbers
   Right: Dark Charcoal with Enamad & Samandehi Badges + 3 Link Columns
   ========================================================================== */
.barghsan-dual-footer {
  margin-top: 70px;
  padding: 0 20px 40px;
}

.footer-inner-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Left Section: Industrial Asphalt Black with Caterpillar Yellow Accents */
.footer-red-card {
  background: #141416;
  border-left: 3px solid var(--cat-yellow);
  flex: 1.05;
  padding: 36px 30px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 440px;
}

.office-location-block {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: stretch;
}

.office-location-block:last-of-type {
  margin-bottom: 20px;
}

.office-map-frame {
  width: 155px;
  height: 115px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 184, 0, 0.35);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.google-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.office-info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.office-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.office-diamond-icon {
  font-size: 0.95rem;
  color: var(--cat-yellow);
}

.office-title-row h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
}

.office-data-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #E2E8F0;
}

.office-data-row svg {
  color: var(--cat-yellow);
  flex-shrink: 0;
}

.office-data-row.address-row {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 2px;
  align-items: flex-start;
}

.contact-number-val {
  font-weight: 700;
  font-family: var(--font-sans);
  direction: ltr;
  display: inline-block;
  color: var(--cat-yellow);
}

.footer-social-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.social-circle-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 184, 0, 0.5);
  background: rgba(255, 184, 0, 0.08);
  color: var(--cat-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.social-circle-link:hover {
  background: var(--cat-yellow);
  color: #111111;
  border-color: var(--cat-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.35);
}

/* Right Section: Dark Charcoal Badges & Links */
.footer-dark-card {
  background: #1F2937;
  flex: 1.15;
  padding: 36px 36px;
  color: #F1F5F9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dark-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}

.trust-badges-wrap {
  display: flex;
  gap: 14px;
}

.trust-badge-card {
  width: 72px;
  height: 72px;
  background: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-label-enamad {
  color: #0F172A;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.5px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-stripes {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 28px;
}

.brand-stripes span {
  display: block;
  height: 3px;
  background: #FFFFFF;
  border-radius: 2px;
}

.brand-stripes span:nth-child(1) { width: 100%; }
.brand-stripes span:nth-child(2) { width: 75%; }
.brand-stripes span:nth-child(3) { width: 50%; }
.brand-stripes span:nth-child(4) { width: 25%; }

.brand-text h2 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.05;
  letter-spacing: 1px;
}

.brand-fa-title {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
}

.dark-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.footer-col-nav h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
  white-space: nowrap;
}

.footer-col-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-nav a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-col-nav a:hover {
  color: #FFFFFF;
}

.dark-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #94A3B8;
}

.scroll-top-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #1F2937;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  background: #F1F5F9;
}

/* ==========================================================================
   ADMIN WORKSPACE & MODAL (Hidden by default, opened ONLY via /admin)
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-overlay.active {
  display: flex;
}

.admin-login-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.admin-login-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.admin-login-box p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.admin-input-control {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  margin-bottom: 18px;
  text-align: center;
}

.admin-input-control:focus {
  border-color: var(--barghsan-red);
}

.admin-login-submit {
  width: 100%;
  background: var(--barghsan-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-login-submit:hover {
  background: var(--barghsan-red-hover);
}

.admin-workspace {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 9999;
  display: none;
  flex-direction: column;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.admin-workspace.active {
  display: flex;
}

.admin-top-bar {
  background: #111111;
  color: #FFFFFF;
  border-bottom: 2px solid var(--cat-yellow);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-workspace-body {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 70px);
  position: relative;
}

.admin-sidebar {
  width: 280px;
  background: #F8FAFC;
  border-left: 1px solid var(--border-subtle);
  padding: 20px 14px 60px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto !important;
  max-height: calc(100vh - 70px);
  position: sticky;
  top: 70px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  flex-shrink: 0;
}

.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.admin-tab-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: #334155;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: right;
  width: 100%;
}

.admin-tab-item:hover {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #111111;
}

.admin-tab-item.active {
  background: #111111;
  border-color: #111111;
  color: var(--cat-yellow);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.admin-main-panel {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  background: #FFFFFF;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
}

.cart-drawer-overlay.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 380px;
  max-width: 90vw;
  background: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  z-index: 501;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-head {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background: #F8FAFC;
}

/* Article Modal */
.article-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.article-modal-overlay.active {
  display: flex;
}

.article-modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.9rem;
    padding: 4px;
  }
  .barghsan-btn-red, .barghsan-btn-white {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 1240px) {
  .header-container {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 8px 16px;
  }
  .brand-wrapper {
    order: 1;
  }
  .header-actions {
    order: 2;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 960px) {
  .footer-inner-wrapper {
    flex-direction: column;
  }
  .footer-red-card {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .brand-text-block h1, .brand-name-heading {
    font-size: 1.15rem;
  }
  .brand-latin-sub {
    display: none;
  }
  .header-actions .barghsan-btn-white,
  .header-actions .barghsan-btn-red {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}


/* ==========================================================================
   NEON BLINKING SPECIAL DISCOUNT BANNER (Configurable via Admin)
   ========================================================================== */
.simchi-neon-banner {
  background: #090D16;
  border-bottom: 2px solid var(--neon-color, #FFB800);
  box-shadow: 0 4px 25px rgba(255, 184, 0, 0.35);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 95;
}

.simchi-neon-banner.size-small { padding: 6px 14px; font-size: 0.85rem; }
.simchi-neon-banner.size-medium { padding: 10px 16px; font-size: 0.95rem; }
.simchi-neon-banner.size-large { padding: 16px 20px; font-size: 1.1rem; }

.neon-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.neon-badge-pulse {
  background: var(--neon-color, #FFB800);
  color: #111111;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px var(--neon-color, #FFB800);
  animation: neonPulse 1.4s infinite ease-in-out;
  white-space: nowrap;
}

@keyframes neonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px var(--neon-color, #FFB800);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 25px var(--neon-color, #FFB800), 0 0 40px var(--neon-color, #FFB800);
  }
}

.neon-text-blinking {
  color: #FFFFFF;
  font-weight: 800;
  text-shadow: 0 0 8px var(--neon-color, #FFB800), 0 0 15px var(--neon-color, #FFB800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.neon-text-blinking.is-blinking {
  animation: neonFlicker 2.2s infinite;
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow: 0 0 8px var(--neon-color, #FFB800), 0 0 20px var(--neon-color, #FFB800);
  }
  20%, 24%, 55% {
    opacity: 0.5;
    text-shadow: none;
  }
}

.neon-banner-action-btn {
  background: rgba(255, 184, 0, 0.2);
  border: 1.5px solid var(--neon-color, #FFB800);
  color: #FFFFFF;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.neon-banner-action-btn:hover {
  background: var(--neon-color, #FFB800);
  color: #111111;
}
.neon-banner-action-btn:hover {
  background: var(--neon-color, #FFB800);
  color: #111111;
  box-shadow: 0 0 15px var(--neon-color, #FFB800);
}

/* ==========================================================================
   OFFICE SOCIAL CONTACT PANEL (Replacing Showroom in Footer)
   ========================================================================== */
.office-social-contact-panel {
  background: rgba(0, 0, 0, 0.18);
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 14px;
}

/* ==========================================================================
   ADMIN MANAGEMENT WORKSPACE & FORMS
   ========================================================================== */
.admin-badge-count {
  background: var(--barghsan-red);
  color: #fff;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 0.72rem;
  margin-right: auto;
}

.admin-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  font-family: var(--font-sans);
  direction: rtl;
  text-rendering: geometricPrecision;
}

.admin-table th {
  background: #F8FAFC;
  padding: 16px 18px;
  text-align: right;
  border-bottom: 2px solid #E2E8F0;
  font-weight: 800;
  color: #0F172A;
  font-size: 0.98rem;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #E2E8F0;
  color: #1E293B;
  vertical-align: middle;
  font-size: 0.98rem;
  line-height: 1.8;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.admin-table tr:hover td {
  background: #FFFBEB;
}

.order-status-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-block;
  white-space: nowrap;
}

.status-pending { background: #FEF3C7; color: #B45309; }
.status-approved { background: #E0E7FF; color: #4338CA; }
.status-ready { background: #D1FAE5; color: #065F46; }
.status-shipped { background: #ECFDF5; color: #047857; }
.status-cancelled { background: #FEE2E2; color: #B91C1C; }

/* Enhanced High-Readability Admin Table */
.admin-table.compact-table {
  width: 100%;
  table-layout: auto;
  font-size: 0.98rem;
}

.admin-table.compact-table th {
  padding: 15px 16px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0F172A;
}

.admin-table.compact-table td {
  padding: 14px 16px;
  font-size: 0.98rem;
  line-height: 1.8;
  white-space: normal;
  word-break: normal;
}

.admin-table.compact-table td.col-code {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #92400E;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
  direction: ltr;
  font-size: 0.95rem;
}

.admin-table.compact-table td.col-title {
  min-width: 280px;
  max-width: none;
  font-weight: 700;
  color: #111111;
  line-height: 1.8;
  font-size: 1rem;
}

.admin-table.compact-table td.col-actions {
  white-space: nowrap;
}

/* Studio Image Thumbnails - 4x Larger */
.admin-thumb-btn {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  padding: 3px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.admin-thumb-btn:hover {
  border-color: var(--cat-yellow);
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.35);
  transform: scale(1.08);
}

.admin-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* Studio Lightbox Modal */
.studio-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.studio-lightbox-overlay.active {
  display: flex;
}

.studio-lightbox-box {
  background: #18181B;
  border: 1.5px solid rgba(255, 184, 0, 0.5);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 720px;
  width: 100%;
  color: #FFFFFF;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 184, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.studio-lightbox-preview {
  width: 100%;
  height: 380px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 2px solid #27272A;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

.studio-lightbox-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Article Card Studio Images */
.article-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: #FDE68A;
  box-shadow: 0 14px 30px rgba(255, 184, 0, 0.16);
}

.article-thumb-cover {
  width: 100%;
  height: 190px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.article-thumb-cover img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-thumb-cover img {
  transform: scale(1.08);
}

/* Bottom Neon Banner (Edge-to-Edge Full Width, 3x Wider, No Box Frame) */
.simchi-neon-banner.bottom-neon-banner {
  width: 100%;
  border-top: 3px solid var(--neon-bottom-color, #FFB800);
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: 0 -6px 30px rgba(255, 184, 0, 0.3);
  margin-top: 48px;
  min-height: 120px;
  padding: 28px 48px;
  box-sizing: border-box;
}

.bottom-neon-banner .neon-banner-inner {
  max-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 0 24px;
  flex-wrap: wrap;
}

.bottom-neon-banner .neon-text-blinking {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(255, 184, 0, 0.6);
  flex: 0 1 auto;
  text-align: center;
  margin: 0;
}

/* Bale and Eitaa Social Icons */
.social-circle-link.bale-link:hover {
  background: #00A693 !important;
  border-color: #00A693 !important;
  color: #FFFFFF !important;
}

.social-circle-link.eitaa-link:hover {
  background: #F97316 !important;
  border-color: #F97316 !important;
  color: #FFFFFF !important;
}

/* Interactive Admin Modal */
.admin-submodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-submodal-overlay.active {
  display: flex;
}

.admin-submodal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.partner-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
  background: #F8FAFC;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.partner-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.partner-detail-item label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.partner-detail-item span {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 800;
}

.clickable-partner-code {
  color: var(--barghsan-red);
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  transition: color 0.2s;
}

.clickable-partner-code:hover {
  color: var(--barghsan-red-hover);
  text-decoration-style: solid;
}

/* =========================================================================
   ARIAN CABLE 4X LOGO & CONTINUOUS RUNNING TICKER & FOOTER CONTACT SYSTEM
   ========================================================================= */

/* 4X Upscaled Transparent Header & Footer Logos */
.brand-logo-img-4x {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.brand-wrapper:hover .brand-logo-img-4x {
  transform: scale(1.02);
}

.footer-logo-4x {
  height: 82px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

/* Continuous Running Ticker Bar (زیر بنر جشنواره) */
.arian-ticker-bar {
  background: linear-gradient(90deg, #090D16 0%, #172033 50%, #090D16 100%);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  border-bottom: 2px solid #F59E0B;
  color: #FFFFFF;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  z-index: 35;
  direction: ltr; /* Keeps track translation consistent */
}

.arian-ticker-inner {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.arian-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: arianTickerSlide 75s linear infinite;
}

.arian-ticker-bar:hover .arian-ticker-track {
  animation-play-state: paused;
}

.arian-ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  direction: rtl; /* Persian content inside track */
  white-space: nowrap;
}

.arian-ticker-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #F8FAFC;
}

.arian-ticker-node .ticker-pill {
  background: #F59E0B;
  color: #0F172A;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.arian-ticker-node .ticker-accent {
  color: #FDE047;
  font-weight: 900;
}

.arian-ticker-sep {
  color: #F59E0B;
  opacity: 0.85;
  font-size: 1rem;
}

@keyframes arianTickerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer Contact & Telephony Cards */
.footer-contact-group {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: none !important;
}

.contact-card-box:hover {
  border-color: rgba(255, 184, 0, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.contact-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #FDE047;
}

.contact-numbers-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-tel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.02rem;
  direction: ltr;
  background: transparent !important;
  padding: 2px 0 !important;
  border: none !important;
  box-shadow: none !important;
  transition: color 0.2s;
}

.contact-tel-chip:hover {
  background: transparent !important;
  color: #F59E0B !important;
}

.contact-tel-chip.direct-chip {
  border-color: rgba(34, 197, 94, 0.4);
}

.contact-tel-chip.direct-chip:hover {
  background: #22C55E;
  color: #064E3B;
  border-color: #22C55E;
}

.footer-agencies-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-agencies-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #E2E8F0;
  line-height: 1.5;
}

.footer-agencies-list li::before {
  content: "✔";
  color: #F59E0B;
  font-weight: 900;
  font-size: 0.8rem;
}

/* Authentic Social Media Circular Icons (Identical 44px size) */
.footer-social-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.social-circle-link {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 184, 0, 0.45) !important;
  background: rgba(255, 184, 0, 0.08) !important;
  color: var(--cat-yellow) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.social-circle-link svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  transition: transform 0.25s ease;
}

.social-circle-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.social-circle-link:hover svg {
  transform: scale(1.08);
}

.social-circle-link.bale-link:hover {
  background: #00A859 !important;
  border-color: #00A859 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(0, 168, 89, 0.45);
}

.social-circle-link.telegram-link:hover {
  background: #229ED9 !important;
  border-color: #229ED9 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.45);
}

.social-circle-link.whatsapp-link:hover {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.social-circle-link.instagram-link:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
  border-color: #d6249f !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(214, 36, 159, 0.45);
}

/* Smart Telephone Chip & Copy Toast Feedback */
.contact-tel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.02rem;
  direction: ltr;
  background: transparent !important;
  padding: 2px 0 !important;
  border: none !important;
  box-shadow: none !important;
  transition: color 0.2s;
}

.contact-tel-chip.copied {
  background: #16A34A !important;
  color: #FFFFFF !important;
  border-color: #22C55E !important;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.arian-phone-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #F8FAFC;
  border: 1.5px solid #F59E0B;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.25);
  padding: 12px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  direction: rtl;
}

.arian-phone-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .brand-logo-img-4x {
    height: 54px;
    max-width: 190px;
  }
  .footer-logo-4x {
    height: 64px;
  }
  .arian-ticker-node {
    font-size: 0.82rem;
  }
  .arian-ticker-bar {
    padding: 7px 0;
  }
}

/* ==========================================================================
   FLOATING CIRCULAR SCROLL-TO-TOP BUTTON (Fixed Bottom-Left)
   ========================================================================== */
.floating-scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #111827;
  color: var(--cat-yellow);
  border: 2px solid var(--cat-yellow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 184, 0, 0.35);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-scroll-top-btn:hover {
  transform: translateY(-4px) scale(1.1);
  background: var(--cat-yellow);
  color: #111827;
  box-shadow: 0 10px 30px rgba(255, 184, 0, 0.6);
}

/* ==========================================================================
   TOP 5X-WIDE ROTATING DISCOUNT SHOWCASE (Expanded 1cm Wider, Full Screen Span)
   ========================================================================== */
.top-discount-showcase-section {
  width: 100%;
  background: #0B0F17;
  border-bottom: 2.5px solid var(--cat-yellow);
  padding: 34px 0 36px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.discount-showcase-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 32px;
  box-sizing: border-box;
}

.discount-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.discount-showcase-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discount-showcase-title {
  color: #F8FAFC;
  font-size: 1.05rem;
  font-weight: 800;
}

.discount-catalog-btn {
  background: var(--cat-yellow);
  color: #111111 !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(255, 184, 0, 0.35);
  transition: all 0.2s ease;
}

.discount-catalog-btn:hover {
  transform: translateY(-2px);
  background: var(--cat-yellow-hover);
}

.discount-marquee-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.discount-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: discountMarqueeScroll 80s linear infinite;
}

.discount-marquee-viewport:hover .discount-marquee-track {
  animation-play-state: paused;
}

@keyframes discountMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.discount-card-item {
  width: 228px;
  min-width: 228px;
  background: #171E2E;
  border: 1.5px solid #2A364F;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
}

.discount-card-item:hover {
  border-color: var(--cat-yellow);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(255, 184, 0, 0.3);
  background: #1E273A;
}

.discount-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.discount-card-square-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: 155px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.discount-card-square-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.discount-card-title {
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.discount-card-prices {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.discount-card-old-price {
  color: #94A3B8;
  font-size: 0.75rem;
  text-decoration: line-through;
}



/* ==========================================================================
   MID-PAGE 2X ROLLING DISCOUNT BANNER (Edge-to-Edge Full Width, No Box Frame)
   ========================================================================== */
.mid-rolling-discount-banner-wrap {
  width: 100%;
  max-width: 100%;
  margin: 48px 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.mid-rolling-discount-card {
  width: 100%;
  background: linear-gradient(135deg, #0B1120 0%, #172236 100%);
  border-top: 2px solid var(--cat-yellow);
  border-bottom: 2px solid var(--cat-yellow);
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 36px 48px;
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  gap: 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 184, 0, 0.15);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.mid-rolling-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mid-rolling-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mid-rolling-sub-badge {
  background: rgba(255, 184, 0, 0.15);
  color: var(--cat-yellow);
  border: 1px solid var(--cat-yellow);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
}

.mid-rolling-title {
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.35;
}

.mid-rolling-desc {
  color: #CBD5E1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.mid-rolling-carousel-col {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.rolling-thumbs-viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.rolling-thumbs-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: rollingThumbsScroll 32s linear infinite;
}

.rolling-thumbs-viewport:hover .rolling-thumbs-track {
  animation-play-state: paused;
}

@keyframes rollingThumbsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.rolling-thumb-item {
  width: 185px;
  min-width: 185px;
  height: 220px;
  background: #151E2E;
  border: 1.5px solid #2B3C58;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  box-sizing: border-box;
}

.rolling-thumb-item:hover {
  transform: translateY(-5px);
  border-color: var(--cat-yellow);
  box-shadow: 0 12px 28px rgba(255, 184, 0, 0.3);
}

.rolling-thumb-item .thumb-img-box {
  width: 115px;
  height: 115px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.rolling-thumb-item .thumb-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rolling-thumb-item .thumb-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F8FAFC;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 6px;
  line-height: 1.3;
}

.rolling-thumb-item .thumb-prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 1px;
  margin-top: auto;
}

.rolling-thumb-item .thumb-old-price {
  font-size: 0.72rem;
  color: #94A3B8;
  text-decoration: line-through;
}

.rolling-thumb-item .thumb-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #111111 !important;
  font-family: inherit;
}

@media (max-width: 992px) {
  .mid-rolling-discount-card {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADVANCED RESPONSIVE DESIGN FOR ALL SCREENS (MOBILE, TABLET & DESKTOP)
   ========================================================================== */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   DIGIKALA-GRADE ULTRA-RESPONSIVE MOBILE & TABLET SUITE (DESIGN.md)
   Compact 2-Column Product Grid / Swipeable Category Chips / Fixed Mobile App Bar
   ========================================================================== */

/* Mobile Bottom Navigation Bar Base (Hidden on Desktop) */
.mobile-bottom-nav {
  display: none;
}

/* Tablet Optimizations (768px - 1024px) */
@media (max-width: 1024px) {
  .header-container {
    gap: 8px;
    padding: 6px 14px;
  }
  .category-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding: 4px 6px 10px !important;
    margin-bottom: 12px !important;
    justify-content: flex-start !important;
  }
  .category-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .cat-tab-btn {
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    border-radius: 9999px !important;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 0 8px !important;
  }
  .product-card {
    padding: 10px !important;
    border-radius: 12px !important;
  }
  .product-thumb-container {
    height: 150px !important;
    padding: 8px !important;
    margin-bottom: 8px !important;
  }
  .product-title-text {
    font-size: 0.9rem !important;
    min-height: 40px !important;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 8px !important;
  }
}

/* ==========================================================================
   DIGIKALA-GRADE ULTRA-COMPACT MOBILE ARCHITECTURE (max-width: 768px)
   Zero Wobble / Instant 2-Column Grid / High Density / iOS Safe Area
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Global Viewport & Touch Optimization */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100% !important;
    -webkit-tap-highlight-color: transparent !important;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }

  button, a, input, select {
    touch-action: manipulation !important;
  }

  /* Prevent iOS Safari auto-zooming on focus */
  input[type="text"], input[type="number"], input[type="tel"], textarea, select {
    font-size: 16px !important;
  }

  /* 2. Compact Header */
  .header-container {
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 8px !important;
    gap: 4px !important;
  }
  .brand-wrapper {
    order: 1 !important;
    gap: 6px !important;
  }
  .brand-logo-img-4x {
    height: 34px !important;
    width: auto !important;
  }
  .brand-text-block h1, .brand-name-heading {
    font-size: 0.98rem !important;
    margin: 0 !important;
    font-weight: 900 !important;
  }
  .brand-latin-sub {
    display: none !important;
  }
  .header-actions {
    order: 2 !important;
    gap: 4px !important;
  }
  .user-btn-label {
    display: none !important;
  }
  .user-profile-trigger-btn {
    padding: 4px !important;
    height: 32px !important;
    width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
  .cart-icon-btn {
    height: 32px !important;
    padding: 0 6px !important;
  }
  .header-search-wrap {
    order: 3 !important;
    width: 100% !important;
    margin-top: 2px !important;
  }
  .header-search-input {
    width: 100% !important;
    height: 36px !important;
    padding: 0 32px 0 10px !important;
    border-radius: 8px !important;
  }
  .nav-links {
    display: none !important;
  }

  /* 3. Ticker Bar */
  .arian-ticker-bar {
    height: 28px !important;
    font-size: 0.68rem !important;
    border-bottom-width: 1px !important;
  }

  /* 4. Top Discount Showcase - Ultra Compact */
  .top-discount-showcase-section {
    padding: 6px 0 8px !important;
    border-bottom-width: 1.5px !important;
  }
  .discount-showcase-container {
    padding: 0 6px !important;
  }
  .discount-showcase-header {
    margin-bottom: 4px !important;
    gap: 6px !important;
    justify-content: space-between !important;
  }
  .discount-showcase-title {
    display: none !important; /* Hide long subtitle to save vertical fold */
  }
  .neon-badge-pulse {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
  }
  .discount-catalog-btn {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
  }
  .discount-card-item {
    width: 130px !important;
    min-width: 130px !important;
    padding: 6px !important;
    gap: 4px !important;
    border-radius: 8px !important;
  }
  .discount-card-item .discount-card-img-wrap {
    height: 52px !important;
  }
  .discount-card-title {
    font-size: 0.7rem !important;
    -webkit-line-clamp: 1 !important;
    min-height: auto !important;
    margin-bottom: 2px !important;
  }
  .discount-card-price {
    font-size: 0.72rem !important;
  }

  /* 5. Ultra-Compact Hero Section (Immediate Product Visibility) */
  .hero-section {
    padding: 8px 0 6px !important;
    margin: 0 !important;
  }
  .hero-pill {
    display: none !important;
  }
  .hero-subtitle {
    display: none !important;
  }
  .hero-title {
    font-size: 1.05rem !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
  }
  .upper-search-box-wrap {
    height: 38px !important;
    max-width: 98% !important;
    margin: 0 auto !important;
  }
  .search-input-container {
    height: 38px !important;
    border-radius: 8px !important;
  }
  .search-icon-trigger {
    right: 8px !important;
  }
  .search-icon-trigger svg {
    width: 18px !important;
    height: 18px !important;
  }
  .search-main-input {
    height: 38px !important;
    padding: 0 32px 0 65px !important;
  }
  .search-main-input::placeholder {
    font-size: 0.72rem !important;
  }
  .search-input-container .barghsan-btn-red {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    left: 4px !important;
    height: 30px !important;
  }

  /* 6. Digikala Horizontal Category Chips */
  .catalog-section {
    padding: 8px 0 16px !important;
  }
  .section-head-bar {
    margin-bottom: 4px !important;
    padding: 0 6px !important;
  }
  .section-head-title h3 {
    font-size: 0.98rem !important;
    margin: 0 !important;
    font-weight: 900 !important;
  }
  .section-head-title p {
    display: none !important;
  }

  .category-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 5px !important;
    padding: 2px 4px 8px !important;
    margin: 4px 0 8px !important;
    justify-content: flex-start !important;
  }
  .category-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .cat-tab-btn {
    flex-shrink: 0 !important;
    padding: 5px 11px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
  }
  .cat-tab-btn.active {
    background: #DC2626 !important;
    border-color: #DC2626 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3) !important;
  }

  /* 7. Digikala 2-Column Compact High-Density Product Grid */
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 0 4px !important;
    margin-top: 8px !important;
  }
  .product-card {
    padding: 6px !important;
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #FFFFFF !important;
    min-width: 0 !important;
    transition: none !important;
  }
  .product-card:hover {
    transform: none !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
  }
  .product-thumb-container {
    height: 105px !important;
    padding: 4px !important;
    margin-bottom: 4px !important;
    border-radius: 6px !important;
    background: #F8FAFC !important;
    border: 1px solid #F1F5F9 !important;
  }
  .product-thumb-container img {
    max-width: 90% !important;
    max-height: 90% !important;
  }
  .code-numeric-pill {
    font-size: 0.6rem !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
  }
  .product-card [style*="موجود در انبار"] {
    font-size: 0.6rem !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
  }
  .product-title-text {
    font-size: 0.74rem !important;
    line-height: 1.3 !important;
    min-height: 2.6em !important;
    max-height: 2.6em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 2px 0 4px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
  }
  .product-specs-list {
    font-size: 0.64rem !important;
    gap: 1px !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    color: #64748B !important;
  }
  .product-specs-list li {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .product-price-row {
    padding-top: 4px !important;
    border-top: 1px dashed #E2E8F0 !important;
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
  }
  .product-price-row span {
    font-size: 0.62rem !important;
    color: #64748B !important;
  }
  .product-price-val {
  font-size: 1.16rem;
  font-weight: 900;
  color: #111111 !important;
  font-family: inherit;
  background: #F8FAFC;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E2E8F0;
}
  .product-card-actions {
    margin-top: 4px !important;
  }
  .btn-open-order-tab {
    height: 30px !important;
    padding: 0 4px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
  }
  .btn-open-order-tab svg {
    width: 13px !important;
    height: 13px !important;
    margin-left: 3px !important;
  }

  #btnOpenFullCatalogTab {
    padding: 8px 24px !important;
    font-size: 0.85rem !important;
    margin-top: 10px !important;
  }

  /* 8. Middle Rolling Banner */
  .mid-rolling-discount-banner-wrap {
    margin: 12px 0 !important;
  }
  .mid-rolling-discount-card {
    padding: 10px 8px !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .mid-rolling-title {
    font-size: 0.95rem !important;
  }
  .mid-rolling-desc {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  /* 9. Articles Section Compact 2-Column */
  .articles-section {
    padding: 14px 0 !important;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 0 4px !important;
  }
  .article-card {
    padding: 6px !important;
    border-radius: 8px !important;
  }
  .article-cover-wrap {
    height: 80px !important;
    margin-bottom: 4px !important;
  }
  .article-card-title {
    font-size: 0.74rem !important;
    line-height: 1.3 !important;
    min-height: 2.6em !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 2px !important;
  }
  .article-card-snippet {
    display: none !important;
  }
  .article-card-meta {
    font-size: 0.62rem !important;
    padding-top: 4px !important;
  }

  /* 10. FAQs Compact */
  .faq-section {
    padding: 14px 0 !important;
  }
  .faq-accordion-item {
    margin-bottom: 5px !important;
    border-radius: 8px !important;
  }
  .faq-accordion-header {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
  }
  .faq-accordion-body {
    padding: 8px 10px !important;
    font-size: 0.74rem !important;
    line-height: 1.6 !important;
  }

  /* 11. Footer Compact Streamline */
  .barghsan-dual-footer {
    padding: 20px 0 10px !important;
  }
  .footer-inner-wrapper {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 6px !important;
  }
  .footer-red-card, .footer-dark-card {
    padding: 12px !important;
    border-radius: 10px !important;
  }
  .office-location-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .google-map-iframe {
    height: 110px !important;
    border-radius: 8px !important;
  }
  .footer-agencies-list {
    font-size: 0.72rem !important;
    line-height: 1.6 !important;
  }
  .dark-links-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .footer-nav-col h4 {
    font-size: 0.82rem !important;
    margin-bottom: 6px !important;
  }
  .footer-nav-col ul li a {
    font-size: 0.72rem !important;
    line-height: 1.6 !important;
  }
  .trust-badges-wrap {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .trust-badge-card {
    padding: 8px !important;
    font-size: 0.72rem !important;
  }
  .footer-bottom-copy {
    padding-top: 8px !important;
    margin-top: 8px !important;
    font-size: 0.68rem !important;
  }

  /* 12. Digikala Fixed Bottom Navigation Bar with iOS Safe Area */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(52px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #E2E8F0;
    z-index: 9990;
    align-items: center;
    justify-content: space-around;
    padding-left: 4px;
    padding-right: 4px;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
  }
  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #64748B;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 800;
    border: none;
    background: transparent;
    cursor: pointer;
    flex: 1;
    padding: 3px 0;
    transition: color 0.15s ease;
    user-select: none;
  }
  .mob-nav-item svg {
    width: 19px !important;
    height: 19px !important;
  }
  .mob-nav-item:hover, .mob-nav-item:active {
    color: #DC2626;
  }

  /* 13. Cart Drawer Mobile Screen */
  .cart-drawer {
    width: 100% !important;
    max-width: 100vw !important;
    border-radius: 16px 16px 0 0 !important;
  }
  .floating-scroll-top-btn {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    width: 38px !important;
    height: 38px !important;
    left: 12px !important;
  }

  /* 14. Order Page Mobile Clean */
  .order-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 10px !important;
  }
  .product-image-stage {
    position: relative !important;
    top: 0 !important;
    height: 180px !important;
    padding: 10px !important;
  }
  .order-product-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
  }
  .specs-table {
    font-size: 0.76rem !important;
  }
  .calculator-box {
    padding: 10px !important;
  }
  .total-display-bar {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .total-display-bar button {
    width: 100% !important;
  }
}

/* ==========================================================================
   ADMIN PANEL & CUSTOMER PANEL FONT QUALITY & BUTTON HARMONY (DESIGN.md)
   ========================================================================== */
.admin-table, .admin-table th, .admin-table td,
.admin-form-card, .admin-sidebar, .admin-top-bar,
.admin-modal-box, .crm-table, .crm-card {
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* ==========================================================================
   ULTRA-SLEEK LUXURY-GRADE ACTION & MODAL BUTTONS (DESIGN.md Standard)
   ========================================================================== */
.admin-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  user-select: none;
  position: relative;
  outline: none;
}

.admin-btn-primary {
  background: linear-gradient(180deg, #E52B38 0%, #C81E1E 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #991B1B !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 10px rgba(200, 30, 30, 0.28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.admin-btn-primary:hover {
  background: linear-gradient(180deg, #F03846 0%, #D32525 100%) !important;
  border-color: #881515 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px rgba(200, 30, 30, 0.4);
  transform: translateY(-1px);
}

.admin-btn-primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.28);
}

.admin-btn-cancel,
.admin-btn-secondary {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.admin-btn-cancel:hover,
.admin-btn-secondary:hover {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%) !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.admin-btn-cancel:active,
.admin-btn-secondary:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-btn-edit {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  color: #1E293B !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-btn-edit:hover {
  background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%) !important;
  border-color: #86EFAC !important;
  color: #166534 !important;
  box-shadow: 0 3px 10px rgba(22, 101, 52, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.admin-btn-edit:active {
  transform: translateY(1px);
}

.admin-btn-delete {
  background: linear-gradient(180deg, #FEF2F2 0%, #FEE2E2 100%) !important;
  color: #DC2626 !important;
  border: 1px solid #FECACA !important;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-btn-delete:hover {
  background: linear-gradient(180deg, #FEE2E2 0%, #FCA5A5 100%) !important;
  border-color: #F87171 !important;
  color: #991B1B !important;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.admin-btn-delete:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgba(220, 38, 38, 0.2);
}

.admin-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 380px;
}

.admin-search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #0F172A;
  background: #FFFFFF;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.admin-search-input:focus {
  outline: none;
  border-color: #D92626;
  box-shadow: 0 0 0 3px rgba(217, 38, 38, 0.12);
}

.admin-search-icon {
  position: absolute;
  left: 12px;
  color: #94A3B8;
  pointer-events: none;
  display: flex;
  align-items: center;
}


/* =========================================================================
   HEADER SHIPPING FEATURE BADGE (Matching Reference Screenshot)
   ========================================================================= */
.header-shipping-feature {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 2px 4px;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  cursor: default;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: none !important;
}

.header-shipping-feature:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.shipping-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D92626;
  flex-shrink: 0;
}

.shipping-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: right;
}

.shipping-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.2px;
}

.shipping-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #D92626;
  letter-spacing: -0.2px;
}

@media (max-width: 768px) {
  .header-shipping-feature {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 2px 4px;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  cursor: default;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: none !important;
}
}


/* =========================================================================
   COMPACT ARTICLES SECTION STYLING (User Request)
   ========================================================================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

.article-card {
  padding: 10px 12px !important;
  border-radius: 12px !important;
}

.article-thumb-cover,
.article-thumb-wrap {
  height: 125px !important;
}

.article-title {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  margin-bottom: 6px !important;
  min-height: 40px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.article-excerpt {
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.article-footer {
  font-size: 0.80rem !important;
  padding-top: 8px !important;
}

.article-category-badge {
  font-size: 0.72rem !important;
  padding: 2px 8px !important;
}


/* =========================================================================
   ADMIN LIVE SUPPORT CHAT & CUSTOMER DETAILS CENTER
   ========================================================================= */

.admin-chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 170px);
  min-height: 580px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.admin-chat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar - Chat History List */
.admin-chat-sidebar {
  width: 320px;
  border-left: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.admin-chat-search-wrap {
  padding: 12px;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.admin-chat-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  background: #F8FAFC;
  box-sizing: border-box;
}

.admin-chat-search-input:focus {
  border-color: #C5161D;
  background: #FFFFFF;
}

.admin-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-chat-card {
  padding: 12px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.admin-chat-card:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.admin-chat-card.active {
  background: #FEF2F2;
  border-color: #C5161D;
  box-shadow: 0 2px 8px rgba(197, 22, 29, 0.12);
}

.admin-chat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-chat-card-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0F172A;
}

.admin-chat-card-time {
  font-size: 0.72rem;
  color: #64748B;
}

.admin-chat-card-phone {
  font-size: 0.78rem;
  color: #0284C7;
  font-weight: 700;
  direction: ltr;
  text-align: right;
}

.admin-chat-card-preview {
  font-size: 0.8rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.admin-chat-card-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(197, 22, 29, 0.1);
  color: #C5161D;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

/* Center - Active Chat Stream & Reply */
.admin-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #FFFFFF;
}

.admin-chat-header {
  padding: 12px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.admin-chat-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #0F172A;
  font-size: 0.95rem;
}

.admin-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FAFAFA;
}

/* Message bubbles in admin panel */
.admin-bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 80%;
}

.admin-bubble-row.from-customer {
  align-self: flex-start;
}

.admin-bubble-row.from-admin {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.admin-bubble-content {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
}

.from-customer .admin-bubble-content {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-top-left-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.from-admin .admin-bubble-content {
  background: #1E293B;
  color: #FFFFFF;
  border-top-right-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-bubble-time {
  font-size: 0.7rem;
  opacity: 0.75;
  display: block;
  margin-top: 4px;
  direction: ltr;
  text-align: right;
}

/* Reply Footer */
.admin-chat-footer {
  padding: 12px 20px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.admin-canned-replies {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.admin-canned-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}

.admin-canned-btn:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #0F172A;
}

.admin-reply-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-reply-textarea {
  flex: 1;
  height: 44px;
  padding: 8px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  background: #F8FAFC;
  box-sizing: border-box;
  transition: all 0.2s;
}

.admin-reply-textarea:focus {
  border-color: #C5161D;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(197, 22, 29, 0.1);
}

.admin-reply-send-btn {
  padding: 0 18px;
  height: 44px;
  background: #C5161D;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-reply-send-btn:hover {
  background: #9E1016;
  transform: translateY(-1px);
}

/* Right - Customer Profile Details Sidebar */
.admin-chat-details-panel {
  width: 280px;
  border-right: 1px solid #E2E8F0;
  background: #F8FAFC;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-shrink: 0;
}

.admin-details-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-details-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.admin-details-label {
  color: #64748B;
}

.admin-details-value {
  color: #0F172A;
  font-weight: 700;
}


/* Product Card Hover Enhancements (Matching electro-tech.ir style) */
.product-hover-quick-icons {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
  z-index: 4;
}

.product-card:hover .product-hover-quick-icons {
  opacity: 1;
  transform: translateX(0);
}

.quick-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.quick-icon-btn:hover {
  background: #111111;
  color: #F59E0B;
  border-color: #111111;
}

.product-hover-specs-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.25s ease;
  margin-top: 0;
  background: #F8FAFC;
  border-radius: 8px;
  font-size: 0.78rem;
}

.product-card:hover .product-hover-specs-drawer {
  max-height: 220px;
  opacity: 1;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed #CBD5E1;
}

.hover-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  color: #475569;
}

.hover-spec-row:last-child {
  border-bottom: none;
}

.hover-spec-row strong {
  color: #0F172A;
  font-weight: 800;
}


/* Continuous Slow Rolling Customer Reviews Ticker */
.reviews-ticker-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.reviews-ticker-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: arianReviewsSlide 85s linear infinite;
  direction: ltr;
}

.reviews-ticker-viewport:hover .reviews-ticker-track {
  animation-play-state: paused;
}

@keyframes arianReviewsSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

.review-card-rolling {
  width: 360px;
  min-width: 360px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  direction: rtl;
}

.review-card-rolling:hover {
  transform: translateY(-4px);
  border-color: #F59E0B;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* === USER ADJUSTMENTS (MINIMAL PRICES, SLIM FOOTER, WHITE ROLLING PRICES, COMPARE BADGES) === */

/* 1. White Price in Rolling Tickers */
.rolling-thumb-item .thumb-price {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  font-family: inherit !important;
}

/* 2. Minimal Product Price & Unit in Cards and Catalog */
.product-price-row {
  margin-top: auto !important;
  padding-top: 8px !important;
  border-top: 1px solid #F1F5F9 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 4px !important;
}
.product-price-row span {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #64748B !important;
}
.product-price-val {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  font-family: inherit !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  white-space: nowrap !important;
}

/* 3. Stretched and Slim Minimal Footer (Height reduced ~2cm) */
.barghsan-dual-footer {
  margin-top: 45px !important;
  padding: 0 14px 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.footer-inner-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}
.footer-red-card {
  background: #141416 !important;
  border-left: 3px solid var(--cat-yellow) !important;
  flex: 1.05 !important;
  padding: 16px 22px !important;
  color: #FFFFFF !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-width: 440px !important;
}
.footer-dark-card {
  background: #1F2937 !important;
  flex: 1.15 !important;
  padding: 16px 24px !important;
  color: #F1F5F9 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.footer-red-card .office-title-row {
  margin-bottom: 6px !important;
  padding-bottom: 6px !important;
}
.footer-red-card .footer-agencies-list {
  margin: 6px 0 !important;
  gap: 3px !important;
}
.footer-red-card .footer-agencies-list li {
  padding: 1px 0 !important;
  font-size: 0.8rem !important;
}
.footer-dark-card .dark-card-head {
  padding-bottom: 10px !important;
  margin-bottom: 12px !important;
}
.footer-contact-group {
  margin-top: 8px !important;
  gap: 5px !important;
}
.contact-numbers-row {
  gap: 12px !important;
}

/* 4. Comparison Quick Action and Red Badges */
.quick-icon-btn.compare-btn {
  position: relative !important;
}
.quick-icon-btn.compare-active {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #DC2626 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
}
.compare-badge-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  animation: popBadge 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popBadge {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Floating Compare Capsule */
.floating-compare-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}
.floating-compare-bar.visible {
  transform: translateX(-50%) translateY(0);
}
.floating-compare-btn {
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.floating-compare-btn:hover {
  background: #DC2626;
}
.floating-compare-clear {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
}
.floating-compare-clear:hover {
  color: #F87171;
}

/* Top & Mid Ticker Running Prices 100% Pure White & Crisp */
.discount-card-new-price,
.discount-card-new-price .price-num,
.discount-card-new-price .price-unit,
.discount-card-prices span:last-child {
  color: #FFFFFF !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  font-family: inherit !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  background: transparent !important;
}

.rolling-thumb-item .thumb-price,
.rolling-thumb-item .thumb-price .price-num,
.rolling-thumb-item .thumb-price .price-unit {
  color: #FFFFFF !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  font-family: inherit !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  background: transparent !important;
}

@media (max-width: 960px) {
  .footer-inner-wrapper {
    flex-direction: column !important;
  }
  .footer-red-card {
    min-width: 0 !important;
    width: 100% !important;
    border-left: none !important;
    border-bottom: 3px solid var(--cat-yellow) !important;
  }
  .footer-dark-card {
    min-width: 0 !important;
    width: 100% !important;
  }
}
