/* ============================================
   PICHAZ ELECTRIC — style.css
   Mobile First | RTL | Persian
   ============================================ */


/* ===== 1. CSS VARIABLES ===== */
:root {
  /* Colors */
  --clr-bg:          #071A16;
  --clr-bg-2:        #0B211B;
  --clr-surface:     #102B24;
  --clr-surface-2:   #15362C;
  --clr-border:      #1E4A3A;
  --clr-border-2:    #2A604B;

  --clr-orange:      #FF6A00;
  --clr-orange-dim:  #D95700;
  --clr-orange-glow: rgba(255, 106, 0, 0.18);
  --clr-orange-soft: rgba(255, 106, 0, 0.08);

  --clr-white:       #FFFFFF;
  --clr-text:        #D8E4F0;
  --clr-text-muted:  #8FAFA2;
  --clr-text-faint:  #55786B;

  /* Typography */
  --font-main: 'Vazirmatn', system-ui, sans-serif;

  --fs-xs:   0.72rem;
  --fs-sm:   0.82rem;
  --fs-base: 0.95rem;
  --fs-md:   1.05rem;
  --fs-lg:   1.2rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.6rem;
  --fs-hero: clamp(1.8rem, 7vw, 3.6rem);

  /* Spacing */
  --space-xs:  0.4rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.35);
  --shadow-orange: 0 0 24px rgba(255,92,0,0.25);
  --shadow-glow:   0 0 60px rgba(255, 106, 0, 0.12);

  /* Transitions */
  --tr-fast:   150ms ease;
  --tr-base:   280ms ease;
  --tr-slow:   480ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-h:  64px;
  --container: 1100px;
  --section-py: 80px;
}


/* ===== 2. RESET + BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--tr-fast);
}

ul, ol { list-style: none; }

img, svg, video { display: block; max-width: 100%; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-main);
}

input, textarea, select {
  font-family: var(--font-main);
  font-size: var(--fs-base);
}

:focus-visible {
  outline: 2px solid var(--clr-orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--clr-orange);
  color: var(--clr-white);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.hidden   { display: none !important; }
.sr-only  {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ===== 3. SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: var(--clr-border-2);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-orange); }


/* ===== 4. TYPOGRAPHY UTILITIES ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-orange);
  background: var(--clr-orange-soft);
  border: 1px solid var(--clr-orange-glow);
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.section-sub {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  max-width: 500px;
  margin-inline: auto;
}


/* ===== 5. BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--tr-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-orange);
  color: var(--clr-white);
  box-shadow: 0 0 0 0 var(--clr-orange-glow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--clr-orange-dim);
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border-2);
}
.btn-ghost:hover {
  border-color: var(--clr-orange);
  color: var(--clr-orange);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }


/* ===== 6. ANIMATE ON SCROLL ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--tr-slow), transform var(--tr-slow);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== 7. LOADING SCREEN ===== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.loader-ring {
  width: 80px;
  height: 80px;
  animation: loader-spin 1.4s linear infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

.loader-track { opacity: 0.12; }

.loader-arc {
  stroke-dashoffset: 0;
  transform-origin: center;
  animation: loader-dash 1.4s ease-in-out infinite;
}

@keyframes loader-dash {
  0%   { stroke-dasharray: 20 194; stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 100 114; stroke-dashoffset: -40; }
  100% { stroke-dasharray: 20 194; stroke-dashoffset: -214; }
}

.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: loader-pulse 1.4s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.loader-en {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--clr-orange);
}

.loader-fa {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  font-weight: 400;
}


/* ===== 8. HEADER ===== */
#site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(7, 26, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr-base), background var(--tr-base);
}

#site-header.scrolled {
  border-bottom-color: var(--clr-border);
  background: rgba(7, 26, 22, 0.96);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header-logo { display: flex; align-items: center; }

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-placeholder {
  width: 80px;
  height: 40px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: transform var(--tr-base);
}
.header-logo:hover .logo-placeholder { transform: scale(1.08); }

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-en {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--clr-orange);
  line-height: 1;
}

.logo-fa {
  font-size: 0.65rem;
  color: var(--clr-text-muted);
  line-height: 1;
}

/* Desktop Nav */
.desktop-nav { display: none; }

.desktop-nav ul {
  display: flex;
  gap: var(--space-md);
}

.desktop-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  padding: 0.3rem 0;
  position: relative;
  transition: color var(--tr-fast);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--clr-orange);
  border-radius: var(--r-full);
  transition: width var(--tr-base);
}

.desktop-nav a:hover,
.desktop-nav a.active { color: var(--clr-white); }

.desktop-nav a:hover::after,
.desktop-nav a.active::after { width: 100%; }


/* ===== 9. HAMBURGER ===== */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background var(--tr-fast);
}

.menu-toggle:hover { background: var(--clr-surface); }

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: var(--r-full);
  transition: transform var(--tr-base), opacity var(--tr-base), width var(--tr-base);
}

.menu-toggle span:nth-child(2) { width: 70%; margin-right: auto; }

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ===== 10. MOBILE NAV OVERLAY ===== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(7, 26, 22, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tr-slow), visibility var(--tr-slow);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-nav-link {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-text-muted);
  position: relative;
  transition: color var(--tr-base);
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 6px;
  height: 6px;
  background: var(--clr-orange);
  border-radius: 50%;
  transition: transform var(--tr-base);
}

.mobile-nav-link:hover {
  color: var(--clr-white);
}
.mobile-nav-link:hover::before {
  transform: translateY(-50%) scale(1);
}


/* ===== 11. DESKTOP BREAKPOINT — HEADER ===== */
@media (min-width: 768px) {
  .desktop-nav { display: block; }
  .menu-toggle  { display: none; }

  :root { --header-h: 70px; }

  .logo-placeholder { width: 80px; height: 40px; }
  .logo-en { font-size: var(--fs-xs); }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--space-xl); }
}
/* ===== 12. HERO SECTION ===== */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* Background Grid */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 74, 58, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 74, 58, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
}

/* Orange Glow Orb */
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 120vw);
  height: min(600px, 120vw);
  background: radial-gradient(circle, rgba(255, 106, 0, 0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: hero-glow-pulse 4s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  padding-block: var(--space-2xl);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-orange);
  background: var(--clr-orange-soft);
  border: 1px solid var(--clr-orange-glow);
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
  letter-spacing: 0.05em;
}

.hero-badge i {
  font-size: 0.65rem;
  animation: bolt-flash 2s ease-in-out infinite;
}

@keyframes bolt-flash {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Title */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-title-en {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--clr-orange);
  text-transform: uppercase;
}

.hero-title-fa {
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.25;
}

.hero-title-fa em {
  font-style: normal;
  color: var(--clr-orange);
}

/* Sub */
.hero-sub {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  max-width: 520px;
  line-height: 1.9;
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Stat Pills */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--space-sm) var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-orange);
  line-height: 1;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--clr-border-2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid var(--clr-border-2);
  border-radius: var(--r-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--clr-orange);
  border-radius: var(--r-full);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  60%       { transform: translateY(14px); opacity: 0.2; }
}

/* Hero Desktop */
@media (min-width: 768px) {
  .hero-content { gap: var(--space-xl); }
  .hero-sub     { font-size: var(--fs-base); }
}


/* ===== 13. SECTION SPACING ===== */
section {
  padding-block: var(--section-py);
}

section:nth-child(even) {
  background: var(--clr-bg-2);
}


/* ===== 14. ABOUT SECTION ===== */
.about-grid {
  display: grid;
  gap: var(--space-xl);
}

/* About Text */
.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-text p {
  color: var(--clr-text-muted);
  line-height: 1.9;
  font-size: var(--fs-sm);
}

.about-text strong {
  color: var(--clr-orange);
  font-weight: 700;
}

/* Brand Cards */
.brand-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.brand-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--tr-base), transform var(--tr-base), box-shadow var(--tr-base);
}

.brand-card:hover {
  border-color: var(--clr-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-orange);
}

.brand-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--clr-orange-soft);
  border: 1px solid var(--clr-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-orange);
  font-size: var(--fs-base);
}

.brand-label {
  font-size: var(--fs-xs);
  color: var(--clr-orange);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-white);
  margin-top: 2px;
}

.brand-card p {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* About Desktop */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-2xl);
  }

  .brand-cards {
    grid-template-columns: 1fr;
  }

  .about-text p { font-size: var(--fs-base); }
}


/* ===== 15. PRODUCTS SECTION ===== */

/* Main Product Group Tabs */
.product-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 6px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  border-radius: var(--r-md);
  transition: all var(--tr-base);
}

.tab-btn.active {
  background: var(--clr-orange);
  color: var(--clr-white);
  box-shadow: var(--shadow-orange);
}

.tab-btn:not(.active):hover {
  color: var(--clr-white);
  background: var(--clr-surface-2);
}

.tab-btn:focus-visible,
.product-category-tab:focus-visible,
.btn-product-action:focus-visible {
  outline: 2px solid var(--clr-orange);
  outline-offset: 3px;
}

/* Secondary Category Tabs */
.product-category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 2px 2px 8px;
  margin-bottom: var(--space-lg);
  max-width: 100%;
}

.product-category-tabs::-webkit-scrollbar { display: none; }

.product-category-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 42px;
  padding: 0.55rem 1rem;
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: all var(--tr-base);
}

.product-category-tab:hover,
.product-category-tab.active {
  color: var(--clr-orange);
  border-color: var(--clr-orange);
  background: var(--clr-orange-soft);
}

.product-category-tab.active {
  box-shadow: 0 0 0 1px var(--clr-orange-glow);
}

/* Category Information */
.product-category-intro {
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-inline-start: 3px solid var(--clr-orange);
  background: var(--clr-surface);
  border-radius: var(--r-md);
}

.product-category-intro h3 {
  color: var(--clr-white);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-category-intro p {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 540px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Product Card */
.product-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--tr-base), transform var(--tr-base), box-shadow var(--tr-base), opacity var(--tr-base);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
}

.product-card-visible { opacity: 1; transform: translateY(0); }

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-orange-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--tr-base);
  pointer-events: none;
}

.product-card:hover {
  border-color: var(--clr-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-orange);
}

.product-card:hover::before { opacity: 1; }

.product-card--soon { opacity: 0.65; }

/* Card Header */
.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--clr-orange-soft);
  border: 1px solid var(--clr-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-orange);
  font-size: var(--fs-base);
  flex-shrink: 0;
}

.product-brand-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-orange);
  background: var(--clr-orange-soft);
  border: 1px solid var(--clr-orange-glow);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

.product-brand-tag.taba {
  color: #F2A23A;
  background: rgba(255, 106, 0, 0.08);
  border-color: rgba(255, 106, 0, 0.20);
}

/* Card Body */
.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-body h4 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-white);
}

.product-card-body p {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  line-height: 1.7;
  unicode-bidi: isolate;
}

/* Keep dynamically rendered short phrases (e.g. "Coming soon...")
   in the same direction as their actual language. */
.product-card-body h4,
.product-card-body p,
.product-category-intro h3,
.product-category-intro p {
  unicode-bidi: isolate;
}

/* Card Actions */
.product-card-footer {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--clr-border);
}

.product-actions {
  display: grid;
  gap: 0.45rem;
}

.btn-product-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-text-muted);
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--clr-border-2);
  border-radius: var(--r-md);
  transition: all var(--tr-base);
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.btn-product-action:hover:not(:disabled) {
  border-color: var(--clr-orange);
  color: var(--clr-orange);
}

.btn-product-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .product-tabs { flex-direction: column; }
  .product-category-intro { padding-inline: var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  .product-card { opacity: 1; transform: none; transition: none; }
}

/* ===== 16. WARRANTY ACTIVATION SECTION ===== */
.warranty-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .warranty-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-2xl);
  }
}

/* Warranty Info */
.warranty-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.warranty-info p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.9;
}

/* Warranty Pills */
.warranty-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.warranty-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-orange);
  background: var(--clr-orange-soft);
  border: 1px solid var(--clr-orange-glow);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
}

.warranty-pill i { font-size: 0.65rem; }

/* Warranty Card */
.warranty-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.warranty-card-header {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
}

.warranty-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--clr-orange-soft);
  border: 1px solid var(--clr-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-orange);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

.warranty-card-header h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-white);
}

.warranty-card-header p {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* Warranty Form */
.warranty-form {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: var(--space-sm);
  color: var(--clr-text-faint);
  font-size: var(--fs-xs);
  pointer-events: none;
  transition: color var(--tr-base);
}

.input-wrapper input {
  width: 100%;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 0.7rem var(--space-lg) 0.7rem var(--space-sm);
  color: var(--clr-white);
  font-size: var(--fs-sm);
  transition: border-color var(--tr-base), box-shadow var(--tr-base), background var(--tr-base);
}

.input-wrapper input::placeholder {
  color: var(--clr-text-faint);
  font-size: var(--fs-xs);
}

.input-wrapper input:focus {
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 3px var(--clr-orange-soft);
  outline: none;
}

.input-wrapper:focus-within .input-icon {
  color: var(--clr-orange);
}

.input-wrapper input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.input-wrapper input.is-valid {
  border-color: rgba(34, 197, 94, 0.7);
}

.field-error {
  min-height: 1.1rem;
  color: #f87171;
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/* Warranty Submit Loading */
.submit-loading { display: none; }

.warranty-form.is-loading .submit-label { display: none; }
.warranty-form.is-loading .submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Warranty Result */
.warranty-result {
  border-radius: var(--r-md);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  padding: var(--space-sm) var(--space-md);
}

.warranty-result.result-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.warranty-result.result-warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.warranty-result.result-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}

.result-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.result-inner i { color: var(--clr-orange); margin-top: 0.25rem; }
.warranty-result.result-success .result-inner i { color: #22c55e; }
.warranty-result.result-warning .result-inner i { color: #f59e0b; }
.warranty-result.result-error .result-inner i { color: #ef4444; }

@media (max-width: 767px) {
  .warranty-form { padding: var(--space-md); }
  .warranty-card-header { padding-inline: var(--space-md); }
}


/* ===== 17. CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-2xl);
  }
}

/* Contact Cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  transition: border-color var(--tr-base), transform var(--tr-base), box-shadow var(--tr-base);
  cursor: pointer;
}

.contact-card:hover {
  border-color: var(--clr-orange);
  transform: translateX(-4px);
  box-shadow: var(--shadow-orange);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--clr-orange-soft);
  border: 1px solid var(--clr-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-orange);
  font-size: var(--fs-base);
  flex-shrink: 0;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.contact-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-faint);
  font-weight: 600;
}

.contact-value {
  font-size: var(--fs-sm);
  color: var(--clr-white);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  color: var(--clr-text-faint);
  font-size: var(--fs-xs);
  flex-shrink: 0;
  transition: color var(--tr-base), transform var(--tr-base);
}

.contact-card:hover .contact-arrow {
  color: var(--clr-orange);
  transform: translateX(-4px);
}

/* Map */
.map-wrapper {
  position: relative;
  height: 320px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-card);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.3) brightness(0.85);
  transition: filter var(--tr-base);
}

.map-wrapper:hover iframe {
  filter: grayscale(0) brightness(0.95);
}

.map-open-btn {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-orange);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-orange);
  white-space: nowrap;
  transition: background var(--tr-base), transform var(--tr-base);
}

.map-open-btn:hover {
  background: var(--clr-orange-dim);
  transform: translateX(-50%) translateY(-2px);
}

@media (min-width: 768px) {
  .map-wrapper { height: 100%; min-height: 380px; }
}


/* ===== 18. FOOTER ===== */
#site-footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-xl);
}

.footer-inner {
  display: grid;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.6fr 1fr 1fr;
    align-items: start;
    gap: var(--space-2xl);
  }
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: opacity var(--tr-fast);
}

.footer-logo:hover { opacity: 0.8; }

.footer-logo-mark {
  width: 80px;
  height: 40px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.footer-tagline {
  font-size: var(--fs-xs);
  color: var(--clr-text-faint);
  line-height: 1.7;
  max-width: 260px;
}

/* Footer Nav */
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  position: relative;
  padding-right: var(--space-md);
  transition: color var(--tr-fast);
}

.footer-nav a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--clr-orange);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--tr-base);
}

.footer-nav a:hover {
  color: var(--clr-white);
}

.footer-nav a:hover::before { opacity: 1; }

/* Footer Contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  transition: color var(--tr-fast);
}

.footer-contact-link i {
  width: 18px;
  text-align: center;
  color: var(--clr-orange);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

.footer-contact-link:hover { color: var(--clr-white); }

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-block: var(--space-md);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

.footer-bottom span {
  font-size: var(--fs-xs);
  color: var(--clr-text-faint);
}

.footer-brands-badge {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.brand-badge {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
}

.brand-badge.industrial {
  color: var(--clr-orange);
  background: var(--clr-orange-soft);
  border: 1px solid var(--clr-orange-glow);
}

.brand-badge.home {
  color: #F2A23A;
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.20);
}


/* ===== 19. BACK TO TOP ===== */
#backToTop {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-md);
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--clr-orange);
  color: var(--clr-white);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-orange);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--tr-base), visibility var(--tr-base),
              transform var(--tr-base), background var(--tr-base);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--clr-orange-dim);
  transform: translateY(-3px);
}


/* ===== 20. REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}

/* ===== BILINGUAL / RTL-LTR ===== */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-inline: var(--space-sm) 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  background: var(--clr-surface);
  width: max-content;
}
.language-btn {
  min-width: 36px;
  min-height: 32px;
  padding: 0 .55rem;
  border: 0;
  border-radius: var(--r-full);
  color: var(--clr-text-muted);
  background: transparent;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast), transform var(--tr-fast);
}
.language-btn:hover { color: var(--clr-white); }
.language-btn.active {
  color: var(--clr-white);
  background: var(--clr-orange);
  box-shadow: var(--shadow-orange);
}
.language-btn:focus-visible {
  outline: 2px solid var(--clr-orange);
  outline-offset: 2px;
}

.lang-en .header-inner,
.lang-en .desktop-nav ul,
.lang-en .hero-content,
.lang-en .hero-actions,
.lang-en .hero-stats,
.lang-en .about-grid,
.lang-en .brand-cards,
.lang-en .products-grid,
.lang-en .warranty-grid,
.lang-en .contact-grid,
.lang-en .footer-inner,
.lang-en .footer-bottom-inner {
  direction: ltr;
}

.lang-en .section-header,
.lang-en .about-text,
.lang-en .brand-card,
.lang-en .product-card,
.lang-en .warranty-info,
.lang-en .warranty-form,
.lang-en .contact-card,
.lang-en .footer-inner,
.lang-en .footer-bottom-inner {
  text-align: left;
}

.lang-en .section-header,
.lang-en .hero-content,
.lang-en .hero-actions,
.lang-en .hero-stats {
  /* Preserve the original centered composition while using LTR flow. */
  text-align: center;
}

.lang-en .section-sub { margin-inline: auto; }

.lang-en .product-category-tabs,
.lang-en .product-tabs,
.lang-en .product-card-header,
.lang-en .product-card-body,
.lang-en .product-card-footer,
.lang-en .product-actions,
.lang-en .btn-product-action,
.lang-en .warranty-card,
.lang-en .warranty-pills,
.lang-en .warranty-pill,
.lang-en .form-group,
.lang-en .form-group label,
.lang-en .input-wrapper,
.lang-en .input-wrapper input,
.lang-en .input-wrapper textarea,
.lang-en .input-wrapper select,
.lang-en .warranty-result,
.lang-en .contact-card,
.lang-en .contact-card-body,
.lang-en .footer-nav,
.lang-en .footer-contact {
  direction: ltr;
}

.lang-en .product-category-intro {
  border-inline-start: 3px solid var(--clr-orange);
  border-inline-end: 0;
  text-align: left;
}
.lang-en .input-icon { right: auto; left: var(--space-sm); }
.lang-en .input-wrapper input {
  padding-left: var(--space-lg);
  padding-right: var(--space-sm);
}
.lang-en .btn-product-action { justify-content: center; text-align: center; }
.lang-en .contact-arrow { transform: none; }
.lang-en .contact-card:hover { transform: translateX(4px); }
.lang-en .contact-card:hover .contact-arrow { transform: translateX(4px); }
.lang-en .footer-nav a {
  padding-left: var(--space-md);
  padding-right: 0;
}
.lang-en .footer-nav a::before { left: 0; right: auto; }
.lang-en #backToTop { left: auto; right: var(--space-md); }

@media (min-width: 768px) {
  /* Header columns size to their actual content; the main logo area absorbs
     only the remaining space so short labels do not create long backgrounds. */
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: center;
    column-gap: clamp(1rem, 2.5vw, 2.5rem);
  }
  .header-logo {
    min-width: 0;
    width: max-content;
  }
  .desktop-nav {
    width: max-content;
    justify-self: center;
  }
  .desktop-nav ul {
    width: max-content;
    align-items: center;
  }
  .language-switcher {
    justify-self: end;
    margin-inline: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: start;
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .footer-brand { min-width: 0; }
  .footer-nav,
  .footer-contact {
    width: max-content;
    max-width: 100%;
    justify-self: start;
  }
  .footer-nav ul { width: max-content; }
  .footer-contact-link {
    width: max-content;
    max-width: 100%;
  }
}

.footer-nav a,
.footer-contact-link {
  display: inline-flex;
  width: fit-content;
}

@media (max-width: 767px) {
  .language-switcher { margin-inline: 0 .5rem; }
  .footer-nav,
  .footer-contact { width: 100%; }
}
