@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
  --text-main: #000000;
  --text-light: #444444;
  --bg-main: #FFFFFF;
  --bg-accent: #f4f5f7;
  --bg-dark: #111111;
  --brand-red: #E60000;
  --brand-red-hover: #CC0000;
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #1EBE5D;
  --border-light: #e5e5e5;
  --glass-bg: rgba(255, 255, 255, 0.85);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--bg-main);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: transparent;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.5rem;
}

.text-muted {
  color: var(--text-light);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--bg-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  position: relative;
}

.btn-primary {
  background-color: var(--brand-red);
  color: white;
  box-shadow: 0 4px 0 #a80000, 0 8px 15px rgba(230, 0, 0, 0.3);
  transform: translateY(0);
}

.btn-primary:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #a80000, 0 10px 20px rgba(230, 0, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #a80000, 0 2px 5px rgba(230, 0, 0, 0.3);
}

.btn-secondary {
  background-color: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 0 var(--border-light), 0 8px 15px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  border-color: #999;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #999, 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #999, 0 2px 5px rgba(0,0,0,0.05);
}

.btn-text {
  color: var(--brand-red);
  font-weight: 600;
  padding: 0;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-text:hover {
  color: var(--brand-red-hover);
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
  margin-inline-start: 0;
}

.nav-logo {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-logo:hover {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-light);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-red);
}

/* Keep white text on the red "Request a Quote" button (overrides .nav-links a) */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--brand-red);
}

.footer-logo {
  height: 70px;
  width: auto;
  margin-bottom: 1rem;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
  transition: var(--transition);
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #aaaaaa;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #aaaaaa;
  font-size: 0.9rem;
}



.hero {
  min-height: 100vh;
  padding-top: 5.5rem;
  display: flex;
  align-items: center;
  position: relative;
  background-color: transparent;
  overflow: hidden;
}

.hero-bg-video,
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.page-header--video {
  background-color: #0f172a !important;
  color: #ffffff;
  border-bottom: none;
}

.page-header--video::before {
  display: none !important;
}

.page-header--video::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  filter: none;
  animation: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.82) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-header-video {
  filter: blur(5px);
  transform: scale(1.05);
}

.page-header--video h1 {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.page-header--video .page-header-subtitle {
  color: rgba(255, 255, 255, 0.88) !important;
}

.page-header--video .slogan-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68) 0%, rgba(15, 23, 42, 0.82) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at right top, rgba(230, 0, 0, 0.08), transparent 40%),
    radial-gradient(circle at left bottom, rgba(0, 0, 0, 0.05), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 2px, transparent 2px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to left, black, transparent);
  -webkit-mask-image: linear-gradient(to left, black, transparent);
  animation: chemicalDrift 12s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes chemicalDrift {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }

  50% {
    transform: translateY(-30px) translateX(-15px) scale(1.1);
  }

  100% {
    transform: translateY(10px) translateX(15px) scale(1.05);
  }
}

.hero .container {
  position: relative;
  z-index: 5;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.slogan-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--bg-accent);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero .slogan-pill {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Product Detail Modal */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 2rem;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: var(--bg-main);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-modal-overlay.active .product-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--brand-red);
}

.modal-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-product-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: var(--bg-accent);
  border-radius: 12px;
  padding: 0.5rem;
  flex-shrink: 0;
}

.modal-title-block h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.modal-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: rgba(230, 0, 0, 0.15);
  color: var(--brand-red);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem 2rem;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--brand-red);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-section h4::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--brand-red);
  border-radius: 2px;
  display: inline-block;
}

.modal-section p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-section ul li {
  color: var(--text-light);
  font-size: 0.95rem;
  padding-left: 1.2rem;
  position: relative;
}

.modal-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: 700;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--bg-accent);
  border-radius: 12px;
  padding: 1.2rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-footer {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
}

.product-card[data-product] {
  cursor: pointer;
}

/* Base Product Cards & Catalog */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(230, 0, 0, 0.3);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 16 / 19;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-accent); /* = product photo background (#f4f5f7), so photos blend in */
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.product-card:hover .product-image-container img {
  transform: scale(1.06);
}

/* Interactive Product Applications Hover Overlay (Emojis & Uses) */
.product-uses-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 0.9rem 0.9rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 65%, rgba(15, 23, 42, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 4;
}

.product-card:hover .product-uses-overlay,
.product-card:focus-within .product-uses-overlay {
  opacity: 1;
  transform: translateY(0);
}

.uses-overlay-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fca5a5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.1rem;
}

.rtl .uses-overlay-title {
  letter-spacing: 0;
  font-size: 0.8rem;
}

.uses-chips-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.use-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  padding: 0.34rem 0.65rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .use-chip:nth-child(1),
.product-card:focus-within .use-chip:nth-child(1) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.04s;
}

.product-card:hover .use-chip:nth-child(2),
.product-card:focus-within .use-chip:nth-child(2) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.1s;
}

.product-card:hover .use-chip:nth-child(3),
.product-card:focus-within .use-chip:nth-child(3) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.16s;
}

.use-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.92rem;
  flex-shrink: 0;
}

/* Hover Tooltip for Standard Chemical Pills */
.std-chem-pill {
  position: relative;
  overflow: visible !important;
}

.std-chem-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.95);
  background: #0f172a;
  color: #ffffff;
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 30;
}

.std-chem-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.std-chem-pill:hover .std-chem-tooltip,
.std-chem-pill:focus-visible .std-chem-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.product-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 2.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-card > * {
  transform: translateZ(40px);
  transition: transform 0.3s ease;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(230, 0, 0, 0.1);
  color: var(--brand-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Top Seller Badge */
.badge-top-seller {
  position: absolute;
  top: 15px;
  right: -10px;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(255, 75, 43, 0.4);
  z-index: 10;
  transform: rotate(3deg);
}

.rtl .badge-top-seller {
  right: auto;
  left: -10px;
  transform: rotate(-3deg);
}

/* Product Slider Quick Preview */
.product-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  align-items: stretch;
}

.product-preview > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-preview > div p {
  flex-grow: 1;
}

@media (max-width: 900px) {
  .product-preview {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Mobile Hamburger Menu */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Responsive Optimization Overhaul */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-main);
    flex-direction: column;
    padding: 6rem 1.75rem 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
  }

  .nav-links.active {
    right: 0;
  }

  .rtl .nav-links {
    right: auto;
    left: -100%;
    transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .rtl .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
  }

  .modal-specs {
    grid-template-columns: 1fr;
  }
}

/* Specific Mobile Optimization (Phones < 768px) */
@media (max-width: 767px) {
  :root {
    --header-height: 4.2rem;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1.2rem;
  }

  /* Compact Mobile Navbar */
  .navbar .container {
    height: 4.5rem;
    padding: 0 1.2rem;
  }

  .nav-brand {
    margin-inline-start: 0;
    display: flex;
    align-items: center;
    height: 100%;
  }

  .nav-logo {
    height: 44px;
    max-width: 190px;
    width: auto;
    object-fit: contain;
    display: block;
  }

  /* Scaled Mobile Hero */
  .hero {
    min-height: 100svh;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }

  .slogan-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.75rem;
  }

  .hero h1 {
    font-size: 1.65rem;
    line-height: 1.28;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.8rem;
  }

  .hero .btn {
    width: 100%;
    max-width: 320px;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
  }

  /* Section Headings */
  .section {
    padding: 3rem 0;
  }

  .section-title h2,
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  /* Product Cards Grid */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-card {
    padding: 1.25rem;
  }

  .product-image-container {
    aspect-ratio: 16 / 19;
    height: auto;
    padding: 0;
    background: var(--bg-accent);
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .product-image-container img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }

  .product-name {
    font-size: 1.15rem;
  }

  .product-desc {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .product-card-actions-grid {
    gap: 8px;
  }

  .product-card-actions-grid .btn {
    padding: 0.65rem 0.6rem;
    font-size: 0.85rem;
  }

  /* Formulation Calculator */
  .calc-wrapper {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .calc-form-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: 1.25rem;
  }

  .calc-table th,
  .calc-table td {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .calc-export-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .calc-export-actions .btn,
  .calc-export-actions .btn-wa-cart {
    width: 100%;
    font-size: 0.88rem;
    padding: 0.75rem;
  }

  /* Contact & Form Panel */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-panel {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .qty-chips-wrap {
    gap: 0.35rem;
  }

  .qty-chip {
    font-size: 0.76rem;
    padding: 0.32rem 0.65rem;
  }

  .location-card-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
  }

  .map-interactive-container {
    height: 260px;
  }

  /* Floating Action Buttons */
  .floating-wa {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }

  .quote-cart-btn {
    bottom: 4.8rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .quote-cart-btn i,
  .quote-cart-btn svg {
    width: 22px;
    height: 22px;
  }

  

  

  /* Slide-in Cart Drawer */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }

  .rtl .cart-drawer {
    left: -100vw;
    right: auto;
  }

  /* Modals */
  .modal-content,
  .coa-preview-modal {
    width: 95%;
    max-width: 95%;
    padding: 1.25rem;
    margin: 1rem;
  }
}

/* Animations */

.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up {
  transform: translateY(30px);
}

.fade-in {
  transform: translateY(0);
}

.slide-in-left {
  transform: translateX(-30px);
}

.slide-in-right {
  transform: translateX(30px);
}

.animate-in,
.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

.delay-600 {
  transition-delay: 600ms;
}

.delay-700 {
  transition-delay: 700ms;
}

.rtl {
  font-family: 'Cairo', 'Inter', sans-serif;
}


.rtl .hero-bg-pattern {
  transform: scaleX(-1);
}

.rtl .feature-card {
  border-left: none;
  border-right: 4px solid var(--brand-red);
}

.rtl .card-icon {
  margin-right: 0;
  margin-left: 1rem;
}

.rtl .footer-grid {
  text-align: right;
}

.rtl .btn-icon-right i {
  margin-left: 0;
  margin-right: 0.5rem;
}



.rtl .commitment-card {
  border-left: none;
  border-right: 4px solid var(--brand-red);
}

.rtl .product-image-container {
  border-radius: 8px 8px 0 0;
}

.rtl .info-item i {
  margin-right: 0;
  margin-left: 1.2rem;
}

/* Chemical Animation Canvas */
#chemical-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}
/* ========================================================
   ENHANCEMENTS & NEW COMPONENTS (B2B SUITE)
======================================================== */

/* --- Catalog Search & Filter Controls --- */
.catalog-controls-wrapper {
  margin-bottom: 2.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.search-box-container {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-box-container i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-accent);
  transition: var(--transition);
  color: var(--text-main);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-red);
  background-color: var(--bg-main);
  box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.08);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.filter-btn {
  background: var(--bg-accent);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background-color: #fff5f5;
}

.filter-btn.active {
  background-color: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.25);
}

.no-products-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-accent);
  border-radius: 12px;
  border: 1.5px dashed var(--border-light);
}

.no-products-found i {
  color: var(--brand-red);
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
}

/* --- Catalog Top Actions (Download PDF Button) --- */
.catalog-top-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-pdf-catalog {
  background: linear-gradient(135deg, #111111, #222222);
  color: white;
  border: 1px solid #333;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-pdf-catalog:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 20px rgba(230, 0, 0, 0.3);
}



.quote-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #111111;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* --- B2B Quote Cart Slide-in Drawer --- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--bg-main);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer-overlay.active .cart-drawer {
  right: 0;
}

.cart-drawer-header {
  padding: 1.5rem 1.5rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-accent);
}

.cart-drawer-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-drawer-header p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--brand-red);
}

.cart-drawer-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-accent);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  align-items: center;
  transition: var(--transition);
}

.cart-item:hover {
  border-color: #ccc;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--bg-accent);
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cart-item-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.cart-qty-input {
  width: 65px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
}

.cart-unit-select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: inherit;
  background: white;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.cart-item-remove:hover {
  color: var(--brand-red);
  background: #ffebeb;
}

.cart-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-light);
}

.cart-empty-state i {
  color: #ccc;
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-accent);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-wa-cart {
  background-color: var(--whatsapp-green);
  color: white;
  border: none;
  padding: 0.85rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.btn-wa-cart:hover {
  background-color: var(--whatsapp-green-hover);
  transform: translateY(-2px);
  color: white;
}

.btn-form-cart {
  background-color: var(--brand-red);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-form-cart:hover {
  background-color: var(--brand-red-hover);
  color: white;
}

.btn-clear-cart {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  align-self: center;
}

.btn-clear-cart:hover {
  color: var(--brand-red);
}

/* Product Card Action Buttons layout */
.product-card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.btn-add-quote {
  background-color: var(--bg-accent);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.btn-add-quote:hover {
  background-color: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
}

/* --- Trust Badges Section --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.trust-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-red);
  opacity: 0;
  transition: opacity 0.3s;
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 0, 0, 0.3);
}

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

.trust-icon {
  width: 54px;
  height: 54px;
  background: rgba(230, 0, 0, 0.08);
  color: var(--brand-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.trust-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- Industries We Empower Section --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.industry-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-red);
}

.industry-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.industry-card:hover .industry-icon {
  background: var(--brand-red);
  transform: scale(1.08);
}

.industry-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.industry-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.55;
  flex-grow: 1;
}

/* --- Full Catalog CTA Banner --- */
.catalog-cta-banner {
  background: linear-gradient(135deg, #111111 0%, #1e1e1e 100%);
  color: white;
  border-radius: 16px;
  padding: 3.5rem 3rem;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 0, 0, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner-text h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: white;
}

.cta-banner-text p {
  font-size: 1.1rem;
  color: #cccccc;
  max-width: 600px;
}

/* --- FAQ Accordion Section --- */
.faq-accordion {
  max-width: 1120px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 1rem 1.25rem;
}

@media (max-width: 900px) {
  .faq-accordion {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #ccc;
}

.faq-question {
  width: 100%;
  padding: 1.3rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--brand-red);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.3rem;
}

/* --- About Page Stats & Values --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.stat-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  background: white;
  border-color: var(--brand-red);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 600;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg-main);
  border-left: 4px solid var(--brand-red);
  padding: 2rem;
  border-radius: 0 12px 12px 0;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.value-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Contact Page Direct WhatsApp Action & Map --- */
.btn-whatsapp-action {
  background-color: #25D366;
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 0.75rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: var(--transition);
}

.btn-whatsapp-action:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.map-container {
  margin-top: 3.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  height: 380px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer Social Links --- */
.footer-social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #222222;
  color: #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid #333333;
}

.social-icon-btn:hover {
  background: var(--brand-red);
  color: white;
  transform: translateY(-3px);
  border-color: var(--brand-red);
}

/* --- RTL (Arabic) Adjustments for New Components --- */
.rtl .search-input {
  padding: 0.9rem 3rem 0.9rem 1.2rem;
}

.rtl .search-box-container i {
  left: auto;
  right: 1.2rem;
}





.rtl .cart-drawer {
  right: auto;
  left: -460px;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.2);
}

.rtl .cart-drawer-overlay.active .cart-drawer {
  right: auto;
  left: 0;
}

.rtl .faq-question {
  text-align: right;
}

.rtl .value-card {
  border-left: 1px solid var(--border-light);
  border-right: 4px solid var(--brand-red);
  border-radius: 12px 0 0 12px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .trust-grid,
  .industries-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .trust-grid,
  .industries-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-text p {
    margin: 0 auto;
  }


}

/* ===================================================
   Visual & Motion Animations (Enterprise-grade)
   =================================================== */

/* 1. Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--brand-red) 0%, #ff4b4b 50%, #ff8080 100%);
  z-index: 100000;
  width: 0%;
  box-shadow: 0 0 12px rgba(230, 0, 0, 0.7);
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* 2. Aurora / Soft Mesh Glow Animation for All White Sections & Page Headers */
.chemistry-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* Home page blocks (industries, products, steps, blog) host the glow too: content sits above it. */
.gk-hs { position: relative; }
.gk-hs > .container { position: relative; z-index: 5; }

.hero .container,
.page-header .container,
.section > .container,
.section > .about-content {
  position: relative;
  z-index: 5;
}

.page-header,
.section {
  position: relative;
  overflow: hidden;
}

.page-header {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--border-light);
}

.page-header::before,
.section::before {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 640px;
  max-height: 640px;
  top: -180px;
  left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 0, 0, 0.11) 0%, rgba(255, 75, 43, 0.05) 45%, rgba(230, 0, 0, 0) 72%);
  filter: blur(45px);
  opacity: 1 !important;
  pointer-events: none;
  z-index: 0;
  animation: auroraDriftLeft 11s ease-in-out infinite alternate;
}

.page-header::after,
.section::after {
  content: '';
  position: absolute;
  width: 48vw;
  height: 48vw;
  max-width: 600px;
  max-height: 600px;
  bottom: -200px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08) 0%, rgba(230, 0, 0, 0.07) 45%, rgba(15, 23, 42, 0) 72%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: auroraDriftRight 13s ease-in-out infinite alternate;
}

@keyframes auroraDriftLeft {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(120px, 50px) scale(1.15);
  }
  100% {
    transform: translate(240px, -20px) scale(0.95);
  }
}

@keyframes auroraDriftRight {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-140px, -40px) scale(1.18);
  }
  100% {
    transform: translate(-220px, 30px) scale(0.92);
  }
}

/* 3. 3D Tilt & Glowing Cursor Hover */
.tilt-card {
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.tilt-card::after {
  content: '';
  position: absolute;
  top: var(--glow-y, 50%);
  left: var(--glow-x, 50%);
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(230, 0, 0, 0.12) 0%, rgba(230, 0, 0, 0) 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
  z-index: 2;
}

.tilt-card:hover::after {
  opacity: 1;
}

/* 4. Stat Counter Enhancement */
.stat-number {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* 5. Keyframe Shimmer & Pulse Effects */
@keyframes subtle-pulse {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(230, 0, 0, 0.2); }
  50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(230, 0, 0, 0.35); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(230, 0, 0, 0.2); }
}

.pulse-glow {
  animation: subtle-pulse 3.5s infinite ease-in-out;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-elem {
  animation: float-gentle 4s ease-in-out infinite;
}

/* ===================================================
   Smart B2B Features (Calculator, Search & COA Preview)
   =================================================== */

/* 1. Live Search & Highlight */
.search-count-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: center;
}

.search-highlight {
  background-color: rgba(230, 0, 0, 0.18);
  color: var(--brand-red);
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

/* 2. Formulation & Batch Calculator */
.calc-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
}

.calc-form-panel {
  background: var(--bg-accent);
  padding: 2.2rem;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rtl .calc-form-panel {
  border-right: none;
  border-left: 1px solid var(--border-light);
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-select,
.calc-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--bg-white);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.calc-select:focus,
.calc-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.calc-number-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-unit {
  position: absolute;
  right: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  pointer-events: none;
}

.rtl .calc-unit {
  right: auto;
  left: 1rem;
}

.calc-results-panel {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-results-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.calc-table-responsive {
  overflow-x: auto;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.calc-table th {
  background-color: #f8fafc;
  color: #475569;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-light);
}

.rtl .calc-table th {
  text-align: right;
}

.calc-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
}

.calc-table tr:hover {
  background-color: #fff9f9;
}

.calc-meta-notes {
  background-color: #fff5f5;
  border-left: 4px solid var(--brand-red);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #475569;
}

.rtl .calc-meta-notes {
  border-left: none;
  border-right: 4px solid var(--brand-red);
}

.calc-export-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .calc-form-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

/* 3. Interactive COA Preview Lightbox Modal */
.coa-preview-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coa-preview-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.coa-preview-modal {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.coa-preview-modal-overlay.active .coa-preview-modal {
  transform: scale(1);
}

.coa-modal-top-bar {
  padding: 1.1rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coa-modal-top-bar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.coa-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 0 4px;
}

.coa-modal-close-btn:hover {
  color: var(--brand-red);
}

.coa-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  background: #ffffff;
}

.coa-fast-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  background: #ffffff;
  position: relative;
}

.coa-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: 2px dashed #10b981;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  transform: rotate(-5deg);
}

.rtl .coa-stamp {
  right: auto;
  left: 1.5rem;
  transform: rotate(5deg);
}

/* Quick Quantity Selection Pills */
.qty-chips-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.qty-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.qty-chip:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.qty-chip.active {
  background: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.25);
}

/* Enhanced Interactive Location Map Card */
.location-map-card {
  margin-top: 3.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.location-card-header {
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.location-card-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.location-pin-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(230, 0, 0, 0.1);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-interactive-container {
  height: 420px;
  width: 100%;
  position: relative;
}

.map-interactive-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}




/* Formulation Calculator Mobile Card View (< 768px) */
@media (max-width: 767px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.25rem;
  }

  .calc-form-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 0 0 1.25rem 0;
  }

  .calc-results-panel {
    padding: 0;
    gap: 1rem;
  }

  .calc-results-title {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }

  .calc-table thead {
    display: none;
  }

  .calc-table, 
  .calc-table tbody, 
  .calc-table tr, 
  .calc-table td {
    display: block;
    width: 100%;
  }

  .calc-table tr {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .calc-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.85rem;
  }

  .calc-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .calc-table td.td-material {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.35rem;
  }

  .calc-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    font-size: 0.8rem;
  }

  .calc-table td.td-material::before {
    display: none;
  }

  .calc-weight-val {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.95rem;
  }

  .badge-ratio {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
  }

  .badge-pack-spec {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .calc-meta-notes {
    padding: 0.85rem;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .calc-export-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .calc-export-actions .btn,
  .calc-export-actions .btn-wa-cart {
    width: 100%;
    font-size: 0.88rem;
    padding: 0.75rem;
  }
}

/* ===================================================
   UNIFIED FLOATING ACTION BUTTONS (DESKTOP & MOBILE)
   =================================================== */

/* Base Desktop Styles */
.floating-wa {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  width: 58px !important;
  height: 58px !important;
  background-color: #25D366 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
  z-index: 9999 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
  text-decoration: none !important;
}

.floating-wa:hover {
  background-color: #1eb956 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55) !important;
  color: #ffffff !important;
}

.floating-wa i,
.floating-wa svg {
  width: 28px !important;
  height: 28px !important;
  stroke: #ffffff !important;
  display: block !important;
}

.quote-cart-btn {
  position: fixed !important;
  bottom: 6.5rem !important; /* Exactly 4.5rem above WhatsApp */
  right: 2rem !important;
  width: 58px !important;
  height: 58px !important;
  background-color: #e60000 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(230, 0, 0, 0.35) !important;
  z-index: 9998 !important;
  cursor: pointer !important;
  border: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.quote-cart-btn:hover {
  background-color: #cc0000 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 10px 28px rgba(230, 0, 0, 0.5) !important;
  color: #ffffff !important;
}

.quote-cart-btn i,
.quote-cart-btn svg {
  width: 24px !important;
  height: 24px !important;
  stroke: #ffffff !important;
  display: block !important;
}

.quote-badge {
  position: absolute !important;
  top: -3px !important;
  right: -3px !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ffffff !important;
  line-height: 1 !important;
}

/* RTL Desktop Positioning (Left Side) */
.rtl .floating-wa {
  right: auto !important;
  left: 2rem !important;
}

.rtl .quote-cart-btn {
  right: auto !important;
  left: 2rem !important;
}

.rtl .quote-badge {
  right: auto !important;
  left: -3px !important;
}

/* Mobile Screens (< 768px) */
@media (max-width: 767px) {
  .floating-wa {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
    width: 50px !important;
    height: 50px !important;
  }

  .floating-wa i,
  .floating-wa svg {
    width: 24px !important;
    height: 24px !important;
  }

  .quote-cart-btn {
    bottom: 5rem !important; /* Stacked right above WhatsApp */
    right: 1.25rem !important;
    width: 50px !important;
    height: 50px !important;
  }

  .quote-cart-btn i,
  .quote-cart-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  .rtl .floating-wa {
    right: auto !important;
    left: 1.25rem !important;
  }

  .rtl .quote-cart-btn {
    right: auto !important;
    left: 1.25rem !important;
  }
}

/* ===================================================
   MOBILE STICKY BOTTOM APP BAR (1-THUMB APP-LIKE UX)
   =================================================== */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 68px;
  }

  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    align-items: center;
    justify-content: space-around;
    padding: 4px 6px env(safe-area-inset-bottom, 4px);
  }

  .mob-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: #475569;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    padding: 4px 0;
    transition: color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-bar-item i,
  .mob-bar-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: stroke 0.2s ease;
    display: block;
  }

  .mob-bar-item:active {
    transform: scale(0.92);
  }

  .mob-bar-wa {
    color: #25D366;
  }

  .mob-bar-cart {
    color: #E60000;
  }

  .mob-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #E60000;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    line-height: 1;
  }

  .rtl .mob-cart-badge {
    right: auto;
    left: -8px;
  }

  /* Hide duplicate standalone floating buttons on phone */
  .floating-wa,
  .quote-cart-btn {
    display: none !important;
  }
}

/* ===================================================
   MODERN MOBILE BOTTOM SHEET (APP-LIKE BOTTOM DRAWER)
   =================================================== */
.cart-sheet-handle,
.modal-sheet-handle {
  display: none;
}

@media (max-width: 767px) {
  .cart-sheet-handle,
  .modal-sheet-handle {
    display: block;
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 4px;
    margin: 10px auto 4px auto;
    cursor: grab;
    flex-shrink: 0;
  }

  /* Cart Drawer Mobile Bottom Sheet */
  .cart-drawer-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .cart-drawer {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 86vh !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(105%) !important;
    transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: var(--bg-main) !important;
  }

  .cart-drawer-overlay.active .cart-drawer {
    transform: translateY(0) !important;
  }

  .cart-drawer-header {
    padding: 0.75rem 1.25rem !important;
    background: var(--bg-accent);
    border-bottom: 1px solid var(--border-light);
  }

  .cart-drawer-header h3 {
    font-size: 1.15rem;
  }

  .cart-drawer-body {
    padding: 1rem 1.25rem !important;
    max-height: 50vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .cart-drawer-footer {
    padding: 1rem 1.25rem !important;
    background: #ffffff !important;
    border-top: 1px solid var(--border-light) !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
  }

  /* Product Details Modal Mobile Bottom Sheet */
  .product-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .product-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-radius: 24px 24px 0 0 !important;
    transform: translateY(105%) scale(1) !important;
    transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1) !important;
    margin: 0 !important;
  }

  .product-modal-overlay.active .product-modal {
    transform: translateY(0) scale(1) !important;
  }

  .modal-close {
    top: 0.8rem;
    right: 0.8rem;
  }

  .rtl .modal-close {
    right: auto;
    left: 0.8rem;
  }
}

/* --- Cart Tonnage Stepper Controls (+ / -) --- */
.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.cart-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-stepper-btn {
  background: #f8fafc;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.cart-stepper-btn i,
.cart-stepper-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  display: block;
}

.cart-stepper-btn:hover {
  background: #fee2e2;
  color: var(--brand-red);
}

.cart-stepper-btn:active {
  transform: scale(0.9);
  background: #fecaca;
}

.cart-item-qty-input {
  width: 52px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  padding: 0;
  -moz-appearance: textfield;
}

.cart-item-qty-input::-webkit-outer-spin-button,
.cart-item-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  text-transform: uppercase;
}

/* ===================================================
   iPAD & TABLET RESPONSIVE OPTIMIZATION (768px – 1180px)
   Covers iPad Mini (768px), iPad Air (820px), iPad Pro 11" (834px),
   iPad Pro 12.9" (1024px), and iPad Landscape (1024px – 1180px)
   =================================================== */

/* 1. iPad Landscape & Compact Desktop (901px – 1180px) */
@media (min-width: 901px) and (max-width: 1180px) {
  .container {
    padding: 0 2rem;
  }

  .navbar .container {
    height: 5rem;
  }

  .nav-logo {
    height: 40px;
    max-width: 175px;
  }

  .nav-links {
    gap: 1.15rem;
  }

  .nav-links a {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .nav-links .btn {
    padding: 0.48rem 0.95rem !important;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    min-height: 82vh;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .features-grid,
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .feature-card,
  .value-card {
    padding: 1.75rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.75rem;
  }

  .contact-container {
    grid-template-columns: 1fr 1.15fr !important;
    gap: 2.25rem !important;
  }

  .contact-info-panel {
    padding: 2.25rem !important;
  }

  .calc-wrapper {
    grid-template-columns: 300px 1fr;
  }
}

/* 2. iPad Portrait & Standard Tablets (768px – 900px) */
@media (min-width: 768px) and (max-width: 900px) {
  .container {
    padding: 0 2rem;
  }

  .navbar .container {
    height: 4.8rem;
  }

  .nav-brand {
    margin-inline-start: 0;
  }

  .nav-logo {
    height: 42px;
    max-width: 185px;
  }

  /* Slide-out Drawer Menu on iPad Portrait */
  .nav-links {
    width: 320px;
    height: 100dvh;
    padding: 5.5rem 2rem 2.5rem;
    gap: 1.35rem;
    overflow-y: auto;
    align-items: stretch;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    width: 100%;
    font-size: 1.05rem;
    padding: 0.35rem 0;
  }

  .nav-links .btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem !important;
  }

  /* Scaled Tablet Typography & Hero */
  h1 {
    font-size: 2.35rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero {
    min-height: 76vh;
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }

  .hero p {
    font-size: 1.1rem;
    max-width: 640px;
  }

  .section {
    padding: 4.25rem 0;
  }

  /* 2-Column Balanced Grids on iPad Portrait */
  .features-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .features-grid > *:nth-child(3):last-child,
  .values-grid > *:nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .feature-card,
  .value-card {
    padding: 1.85rem;
  }

  .trust-grid,
  .industries-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  /* About Page Image Scaling on iPad Portrait */
  .about-content {
    gap: 2.5rem !important;
  }

  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Contact Page on iPad Portrait: Keep 2-column form inputs */
  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .form-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
  }

  /* Footer: Keep 3 columns on iPad Portrait */
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }

  /* Modals on iPad Portrait: Keep side-by-side header & 2-col specs */
  .modal-header {
    flex-direction: row;
    text-align: left;
  }

  .rtl .modal-header {
    text-align: right;
  }

  .modal-specs {
    grid-template-columns: 1fr 1fr;
  }

  .product-modal {
    max-width: 680px;
    width: 92%;
  }
}

/* ===================================================
   NAVBAR FIT (2026-11-27): 7 links + 2 buttons + language toggle
   Keeps the logo clear of the links at every width.
   =================================================== */
.nav-brand { flex-shrink: 0; margin-inline-end: 1.5rem; }
.nav-links a { white-space: nowrap; }

@media (min-width: 1281px) {
  .nav-links { gap: clamp(0.9rem, 1.05vw, 1.5rem); }
  .nav-links .btn { white-space: nowrap; }
}

/* Compact desktop (1101px – 1280px) */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav-logo { height: 40px; max-width: 175px; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.92rem; }
  .nav-links .btn { padding: 0.48rem 0.95rem !important; font-size: 0.86rem; white-space: nowrap; }
}

/* Small laptops & iPad landscape (901px – 1100px): slide-out menu, same as tablets */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100dvh;
    background: var(--bg-main);
    flex-direction: column;
    padding: 5.5rem 2rem 2.5rem;
    gap: 1.35rem;
    overflow-y: auto;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
  }
  .nav-links.active { right: 0; }
  .rtl .nav-links { right: auto; left: -100%; transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); }
  .rtl .nav-links.active { left: 0; }
  .nav-links li { width: 100%; }
  .nav-links a { display: flex; width: 100%; font-size: 1.05rem; padding: 0.35rem 0; }
  .nav-links .btn { width: 100%; justify-content: center; padding: 0.7rem 1rem !important; }
}

/* ===================================================
   LIQUID GLASS + UNSLOP PASS (2026-11-28)
   Glass only where content passes behind it: navbar, mobile
   bottom bar, floating buttons, the label on product photos and
   the home search box (it overlaps the hero photo).
   One recipe, neutral shadows, no coloured glows.
   Everything else is a solid surface with a hairline.
   =================================================== */
:root {
  --glass-tint: rgba(255, 255, 255, 0.64);
  --glass-tint-strong: rgba(255, 255, 255, 0.78);
  --glass-blur: blur(18px) saturate(180%);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.28);
  --hairline: rgba(15, 23, 42, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
  --r-control: 10px;
  --r-card: 16px;
  --r-panel: 20px;
}

/* Navbar */
.navbar {
  background: var(--glass-tint-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--hairline);
  box-shadow: var(--glass-hi);
}
.navbar.scrolled {
  background: var(--glass-tint);
  box-shadow: var(--glass-hi), 0 1px 0 var(--hairline), 0 10px 30px -14px rgba(15, 23, 42, 0.2);
}

/* Floating buttons: tinted glass, neutral shadow */
.floating-wa,
.quote-cart-btn {
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 8px 22px -8px rgba(15, 23, 42, 0.4) !important;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease) !important;
}
.floating-wa { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), rgba(37, 211, 102, 0.82) !important; }
.floating-wa:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), rgba(30, 185, 86, 0.9) !important; }
.quote-cart-btn { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), rgba(230, 0, 0, 0.8) !important; }
.quote-cart-btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), rgba(204, 0, 0, 0.88) !important; }
.floating-wa:hover, .quote-cart-btn:hover { transform: none !important; }
.floating-wa:active, .quote-cart-btn:active { transform: scale(0.95) !important; }

/* Mobile bottom bar: floating glass pill */
@media (max-width: 767px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bottom-bar {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    height: 60px;
    padding: 4px 8px;
    border-radius: var(--r-panel);
    background: var(--glass-tint);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-hi), 0 0 0 1px rgba(15, 23, 42, 0.05), var(--glass-shadow);
  }
  .mob-bar-item { color: #334155; }
}

/* Products page filter: solid, quiet */
.catalog-controls-wrapper {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.filter-btn {
  background: #ffffff;
  border: 1px solid var(--hairline);
  color: var(--text-main);
  box-shadow: none;
}
.filter-btn:hover { background: var(--bg-accent); border-color: rgba(15, 23, 42, 0.16); color: var(--text-main); }
.filter-btn.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; box-shadow: none; }

/* ---------- Background: no drifting colour washes ---------- */
.page-header::before, .page-header::after,
.section::before, .section::after { display: none !important; }
.hero-bg-pattern { display: none !important; }
.scroll-progress-bar { background: var(--brand-red); box-shadow: none; height: 3px; }

/* ---------- Motion: nothing loops, nothing jumps ---------- */
.pulse-glow, .floating-elem, .animate-float { animation: none !important; }
.animate-on-scroll { transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up { transform: translateY(44px); }
.slide-in-left { transform: translateX(-56px); }
.slide-in-right { transform: translateX(56px); }
:where([dir="rtl"]) .slide-in-left { transform: translateX(56px); }
:where([dir="rtl"]) .slide-in-right { transform: translateX(-56px); }
/* Plain reveals (no direction class) also rise instead of only fading. */
.animate-on-scroll:not(.fade-up, .fade-in, .slide-in-left, .slide-in-right, .visible) { transform: translateY(32px); }
/* Cards that use the old reveal classes get the same stronger rise as the auto-detected ones. */
:is(.product-card, .trust-card, .industry-card, .stat-card, .value-card, .gk-card, .gk-add-card, .gk-app, .gk-sus-card).animate-on-scroll:not(.visible) {
  transform: translateY(28px);
}
:is(.product-card, .trust-card, .industry-card, .stat-card, .value-card, .gk-card, .gk-add-card, .gk-app, .gk-sus-card).animate-on-scroll {
  /* longhands so the .delay-* stagger classes keep working */
  transition-property: opacity, transform;
  transition-duration: 0.7s, 0.7s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1), cubic-bezier(0.16, 1, 0.3, 1);
}
.btn { transition: var(--transition); border-radius: var(--r-control); }
.btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn-pdf-catalog:hover, .btn-wa-cart:hover,
.btn-whatsapp-action:hover, .social-icon-btn:hover, .nav-logo:hover,
.product-card:hover, .trust-card:hover, .industry-card:hover, .stat-card:hover, .value-card:hover,
.gk-card:hover, .gk-add-card:hover, .gk-app:hover, .gk-ind-nav a:hover, .gk-hind a:hover, .gk-hprod a:hover,
.gk-hblog a:hover, .gk-res-quick a:hover, .gk-res-cats a:hover, .gk-sus-card:hover, .gk-sus-read a.card:hover { transform: none !important; }
.product-card:hover .product-image-container img, .gk-add-card:hover .gk-add-img img,
.gk-hind a:hover img, .industry-card:hover .industry-icon { transform: none !important; }
.btn:active { transform: scale(0.98) !important; }
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll, .fade-up, .slide-in-left, .slide-in-right { transform: none !important; transition: opacity 0.3s linear !important; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-weight: 600; }
.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl .slogan-pill,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0 !important; }
.gk-home-stats b, .stat-number { font-variant-numeric: tabular-nums; }

/* ---------- Radii: control 10, card 16, panel 20 ---------- */
.product-card, .trust-card, .industry-card, .stat-card, .value-card, .gk-add-card { border-radius: var(--r-card); }
.gk-add-img { border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0 !important; }
.search-input { border-radius: var(--r-control); }

/* ---------- Fallbacks ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar, .navbar.scrolled, .mobile-bottom-bar { background: #ffffff !important; }
  .floating-wa { background: #25D366 !important; }
  .quote-cart-btn { background: #e60000 !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .navbar, .navbar.scrolled, .mobile-bottom-bar, .gk-hsearch .box { background: #ffffff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .floating-wa { background: #25D366 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .quote-cart-btn { background: #e60000 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .gk-photo figcaption { background: #ffffff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
