:root {
  --xchem-navy: #0a2d52;
  --xchem-navy-dark: #061e38;
  --xchem-orange: #e8751a;
  --xchem-orange-hover: #cf6510;
  --xchem-light: #f4f7fb;
  --xchem-text: #1a2b3c;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--xchem-text);
  background: #fff;
}

html[dir="rtl"] body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

.navbar-brand .logo-x {
  color: var(--xchem-orange);
  font-weight: 800;
}

.navbar-brand .logo-chem {
  color: var(--xchem-navy);
  font-weight: 800;
}

.navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 20px rgba(10, 45, 82, 0.08);
}

.nav-link {
  font-weight: 500;
  color: var(--xchem-navy) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--xchem-orange) !important;
}

.btn-xchem {
  background: var(--xchem-orange);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 0.375rem;
}

.btn-xchem:hover {
  background: var(--xchem-orange-hover);
  color: #fff;
}

.btn-outline-xchem {
  border: 2px solid var(--xchem-navy);
  color: var(--xchem-navy);
  font-weight: 600;
}

.btn-outline-xchem:hover {
  background: var(--xchem-navy);
  color: #fff;
}

.hero {
  background: linear-gradient(135deg, var(--xchem-navy-dark) 0%, var(--xchem-navy) 55%, #134a7a 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(232, 117, 26, 0.12));
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero .lead {
  opacity: 0.92;
  max-width: 36rem;
}

.section-title {
  color: var(--xchem-navy);
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  background: var(--xchem-orange);
  margin-top: 0.5rem;
  border-radius: 2px;
}

html[dir="rtl"] .section-title::after {
  margin-right: 0;
  margin-left: auto;
}

.product-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(10, 45, 82, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10, 45, 82, 0.15);
}

.product-card .card-img-wrap {
  background: var(--xchem-light);
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card img {
  max-height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.badge-pack {
  background: var(--xchem-navy);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-detail {
  background: var(--xchem-light);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.product-detail h3 {
  color: var(--xchem-navy);
  font-weight: 700;
}

.tech-table {
  font-size: 0.9rem;
}

.tech-table th {
  background: var(--xchem-navy);
  color: #fff;
  font-weight: 600;
}

.about-block {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(10, 45, 82, 0.06);
}

.contact-card {
  border-left: 4px solid var(--xchem-orange);
  background: var(--xchem-light);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

html[dir="rtl"] .contact-card {
  border-left: none;
  border-right: 4px solid var(--xchem-orange);
}

.contact-card a {
  color: var(--xchem-navy);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--xchem-orange);
}

.contact-card .contact-phone {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

footer {
  background: var(--xchem-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

footer a {
  color: var(--xchem-orange);
  text-decoration: none;
}

footer a:hover {
  color: #ffb366;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}

html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 1.5rem;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}

.lang-switch {
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--xchem-orange);
  color: var(--xchem-orange);
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
}

.lang-switch:hover {
  background: var(--xchem-orange);
  color: #fff;
}

.gallery-img {
  border-radius: 0.75rem;
  object-fit: cover;
  width: 100%;
  height: 180px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
