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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  /* Common */
  --accent: #f0a500;
  --accent-dark: #d4920a;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

  /* Light Theme */
  --primary: #1a3a6b;
  --primary-dark: #0f2550;
  --primary-light: #2a4a8a;
  --white: #ffffff;
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --light-gray: #f4f6f9;
  --mid-gray: #e0e5f0;
  --dark-gray: #555;
  --text-dark: #1a1a2e;
  --text-medium: #444;
  --text-light: #666;
  --border: #d0d7e8;
  --shadow: 0 4px 20px rgba(26, 58, 107, 0.12);
  --shadow-hover: 0 12px 40px rgba(26, 58, 107, 0.22);
  --shadow-lg: 0 15px 50px rgba(26, 58, 107, 0.15);
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.2);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --modal-btn-bg: #1b3a6b;
}

[data-theme="dark"] {
  --primary: #3a7bd5;
  --primary-dark: #00d2ff;
  --primary-light: #64b5f6;
  --white: #121212;
  --bg-body: #0d1117;
  --bg-card: #161b22;
  --light-gray: #0d1117;
  --mid-gray: #30363d;
  --dark-gray: #8b949e;
  --text-dark: #f0f6fc;
  --text-medium: #c9d1d9;
  --text-light: #8b949e;
  --border: #30363d;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 12px 45px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 15px 60px rgba(0, 0, 0, 0.7);
  --glass: rgba(13, 17, 23, 0.85);
  --glass-border: rgba(240, 246, 252, 0.1);
  --nav-bg: rgba(13, 17, 23, 0.95);
}

/* ===== PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  z-index: 2001;
  width: 0%;
  transition: width 0.1s ease-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

section,
.container {
  background: transparent;
}

.contact-card,
.hours-card,
.contact-form-card,
.map-card,
.product-card,
.wa-direct-card,
.chatbot-window,
.wa-window,
.wa-msg,
.wa-footer {
  background: var(--bg-card) !important;
  color: var(--text-dark);
  border-color: var(--border) !important;
}

#site-header {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* ===== LTR (English) MODE ===== */
.lang-en body {
  font-family: 'Inter', sans-serif;
  direction: ltr;
  text-align: left;
}

.lang-en .main-nav {
  direction: ltr;
}

.lang-en .section-header {
  text-align: center;
}

.lang-en .footer-links a::before {
  content: '›';
}

.lang-en .mobile-nav a:hover {
  padding-right: 0;
  padding-left: 12px;
}

.lang-en .contact-card:hover {
  transform: translateX(6px);
}

.lang-en .contact-card,
.lang-en .hours-card {
  text-align: left;
}

.lang-en .contact-card-body h4,
.lang-en .contact-card-body p,
.lang-en .contact-card-body a {
  text-align: left;
}

.lang-en .hours-item {
  text-align: left;
}

.lang-en .hours-card h3 {
  text-align: left;
}

.lang-en .about-content .section-header {
  text-align: left;
}

.lang-en .footer-brand {
  text-align: left;
}

.lang-en .footer-social {
  justify-content: flex-start;
}

.lang-en .slide-content {
  text-align: left;
}

.lang-en .section-divider::before {
  background: linear-gradient(to left, transparent, var(--accent));
}

.lang-en .section-divider::after {
  background: linear-gradient(to right, transparent, var(--accent));
}

/* LTR header layout naturally handled by LTR direction on body */

.lang-en .header-controls {
  margin-left: initial;
}

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-drop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lang-drop-btn:hover {
  border-color: var(--accent);
  background: #f8f9ff;
}

.lang-drop-btn .arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.lang-dropdown:hover .lang-drop-btn .arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% - 2px);
  /* Slight overlap to ensure no gap */
  right: 0;
  background: white;
  min-width: 130px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
  overflow: hidden;
  z-index: 9999;
  /* Super high priority */
  border: 1px solid var(--border);
  padding: 5px 0;
  /* Interior spacing */
  animation: slideDown 0.2s ease-out;
}

/* Bridging element to prevent losing hover state */
.lang-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.lang-dropdown:hover .lang-menu {
  display: block;
}

[dir="ltr"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-option {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s ease;
  text-align: inherit;
}

.lang-option:hover {
  background: #f0f4ff;
  color: var(--accent);
}

.lang-option.active {
  background: var(--primary);
  color: white;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header controls wrapper */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(26, 58, 107, 0.1);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

#site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(26, 58, 107, 0.12);
  border-bottom: 1px solid var(--glass-border);
  height: 75px;
}

.header-inner {
  transition: var(--transition);
}

#site-header.scrolled .header-inner {
  height: 75px;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 85px;
  gap: 20px;
  /* Force LTR layout for header parts to keep Logo Left & Dropdown Right */
  direction: ltr !important;
}

/* Ensure Nav items follow the page language for text alignment, but the container stays centered */
.main-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  direction: rtl;
}

/* Align contents within their grid cells */
.logo-wrap {
  display: flex;
  justify-content: flex-start;
  /* Logo Left */
}

.header-controls {
  display: flex;
  justify-content: flex-end;
  /* Dropdown Right */
  gap: 12px;
}

/* Mobile adjustments (Hamburger should still be visible) */
@media (max-width: 991px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }
}

/* Logo */
.logo-wrap img {
  height: 56px;
  object-fit: contain;
  transition: var(--transition);
}

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

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  /* زيادة المسافة بين زر وآخر داخل القائمة */
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--accent);
  background: rgba(26, 58, 107, 0.06);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  left: 8px;
  right: 8px;
}

.main-nav a.active {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-body);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--accent);
  padding-right: 12px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 600px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

.slide.active .slide-bg {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
      rgba(10, 20, 50, 0.8) 0%,
      rgba(10, 20, 50, 0.5) 50%,
      rgba(10, 20, 50, 0.2) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 40px 60px;
  color: var(--white);
  animation: slideIn 0.8s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.slide-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.4);
}

.slide-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240, 165, 0, 0.5);
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.slider-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-prev {
  right: 20px;
}

.slider-next {
  left: 20px;
}

.slider-dots {
  position: absolute;
  z-index: 5;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary);
  color: var(--white);
  padding: 32px 0;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-left: none;
}

.stat-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 400;
}

/* ===== SECTION TITLE ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.6px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 20px;
  width: fit-content;
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent));
}

.section-divider::after {
  background: linear-gradient(to left, transparent, var(--accent));
}

.section-divider-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  background:
    radial-gradient(circle at 16% 24%, rgba(26, 58, 107, 0.08), transparent 22%),
    linear-gradient(180deg, #f5f8fc 0%, #eef3fa 100%);
  padding: 72px 0 78px;
  position: relative;
  overflow: hidden;
}

.features-strip::before,
.features-strip::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.features-strip::before {
  top: 120px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.16), transparent 70%);
  filter: blur(20px);
}

.features-strip::after {
  bottom: -40px;
  left: 10%;
  width: 260px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(26, 58, 107, 0.08), transparent 72%);
  filter: blur(18px);
}

.features-strip .container {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.feature-card {
  --feature-accent: var(--primary);
  --feature-accent-strong: var(--primary-dark);
  --feature-tint: rgba(26, 58, 107, 0.12);
  background: var(--white);
  border-radius: 28px;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  box-shadow: 0 18px 40px rgba(26, 58, 107, 0.14);
  transition: var(--transition);
  border: 1px solid rgba(26, 58, 107, 0.1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, var(--feature-tint), transparent 55%);
  z-index: 0;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--feature-accent), var(--feature-accent-strong));
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-14px);
  box-shadow: 0 30px 60px rgba(26, 58, 107, 0.2);
  border-color: rgba(26, 58, 107, 0.16);
}

.feature-card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  min-width: 44px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(26, 58, 107, 0.08);
  color: var(--feature-accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 22px rgba(26, 58, 107, 0.08);
}

.lang-en .feature-card-badge {
  left: auto;
  right: 18px;
}

.feature-icon {
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, var(--feature-accent), var(--feature-accent-strong));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 14px 28px rgba(26, 58, 107, 0.24);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-icon {
  transform: translateY(-4px) rotate(-6deg);
  box-shadow: 0 18px 32px rgba(26, 58, 107, 0.28);
}

.feature-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.45;
}

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

.feature-card-bearings {
  --feature-accent: #1d4ed8;
  --feature-accent-strong: #1e3a8a;
  --feature-tint: rgba(29, 78, 216, 0.14);
}

.feature-card-grease {
  --feature-accent: #f97316;
  --feature-accent-strong: #b91c1c;
  --feature-tint: rgba(249, 115, 22, 0.14);
}

.feature-card-fasteners {
  --feature-accent: #0f766e;
  --feature-accent-strong: #1f3c88;
  --feature-tint: rgba(15, 118, 110, 0.14);
}

/* ===== BRANDS / PRODUCTS SECTION ===== */
.brands-section {
  background:
    radial-gradient(circle at left 35%, rgba(26, 58, 107, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  position: relative;
  overflow: hidden;
}

.brands-section::before,
.brands-section::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.brands-section::before {
  top: 150px;
  left: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 58, 107, 0.08), transparent 70%);
  filter: blur(18px);
}

.brands-section::after {
  display: none;
}

.brands-section .container {
  position: relative;
  z-index: 1;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: stretch;
}

.brand-card {
  --brand-accent: var(--primary);
  --brand-accent-strong: var(--primary-dark);
  --brand-tint: rgba(26, 58, 107, 0.08);
  --brand-panel: linear-gradient(180deg, rgba(26, 58, 107, 0.05), rgba(240, 165, 0, 0.02));
  background: var(--white);
  border-radius: 28px;
  border: 1px solid rgba(26, 58, 107, 0.12);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 16px 40px rgba(26, 58, 107, 0.12);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  isolation: isolate;
  transform-origin: center bottom;
}

.brand-card:nth-child(2),
.brand-card:nth-child(4) {
  margin-top: 26px;
}

.brand-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-strong));
  z-index: 2;
}

.brand-card::after {
  content: '';
  position: absolute;
  top: -35%;
  left: -35%;
  width: 65%;
  height: 180%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 65%);
  transform: rotate(18deg) translateX(-120%);
  transition: transform 0.7s ease;
  z-index: 1;
}

.brand-card:hover {
  transform: translateY(-14px) scale(1.015);
  box-shadow: 0 30px 60px rgba(26, 58, 107, 0.18);
  border-color: rgba(26, 58, 107, 0.2);
}

.brand-card:hover::after {
  transform: rotate(18deg) translateX(250%);
}

.brand-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--brand-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 24px;
}

.brand-img-wrap::before,
.brand-img-wrap::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.brand-img-wrap::before {
  inset: 18px;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 58%);
  opacity: 0.85;
}

.brand-img-wrap::after {
  right: -34px;
  bottom: -34px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-tint), transparent 68%);
  transition: transform 0.6s ease;
}

.brand-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--brand-accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(26, 58, 107, 0.08);
}

.lang-en .brand-tag {
  right: auto;
  left: 18px;
}

.brand-img-wrap img {
  position: relative;
  z-index: 1;
  max-height: 172px;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 18px 25px rgba(26, 58, 107, 0.12));
}

.brand-card:hover .brand-img-wrap img {
  transform: translateY(-6px) scale(1.08);
}

.brand-card:hover .brand-img-wrap::after {
  transform: scale(1.12);
}

.brand-info {
  padding: 22px 22px 24px;
  border-top: 1px solid rgba(26, 58, 107, 0.08);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 249, 252, 0.96));
}

.brand-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(26, 58, 107, 0.06);
  color: var(--brand-accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(26, 58, 107, 0.08);
}

.brand-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.55;
}

.brand-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.9;
  flex: 1;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(26, 58, 107, 0.05);
  color: var(--brand-accent-strong);
  font-weight: 800;
  font-size: 0.86rem;
  border: 1px solid rgba(26, 58, 107, 0.08);
  transition: var(--transition);
}

.brand-card:hover .brand-btn {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-strong));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(26, 58, 107, 0.18);
}

.brand-btn svg {
  transition: var(--transition);
}

.brand-card:hover .brand-btn svg {
  transform: translateX(-4px);
}

.lang-en .brand-card:hover .brand-btn svg {
  transform: translateX(4px);
}

.brand-card-molyslip {
  --brand-accent: #e11d2e;
  --brand-accent-strong: #9f1239;
  --brand-tint: rgba(225, 29, 46, 0.18);
  --brand-panel: linear-gradient(180deg, rgba(225, 29, 46, 0.12), rgba(255, 255, 255, 0.92));
}

.brand-card-accor {
  --brand-accent: #b91c1c;
  --brand-accent-strong: #3b2a2a;
  --brand-tint: rgba(185, 28, 28, 0.16);
  --brand-panel: linear-gradient(180deg, rgba(59, 42, 42, 0.08), rgba(255, 255, 255, 0.94));
}

.brand-card-palco {
  --brand-accent: #c28a10;
  --brand-accent-strong: #1d4ed8;
  --brand-tint: rgba(29, 78, 216, 0.16);
  --brand-panel: linear-gradient(180deg, rgba(194, 138, 16, 0.12), rgba(29, 78, 216, 0.05) 70%, rgba(255, 255, 255, 0.92));
}

.brand-card-uop {
  --brand-accent: #f97316;
  --brand-accent-strong: #1e3a8a;
  --brand-tint: rgba(30, 58, 138, 0.18);
  --brand-panel: linear-gradient(180deg, rgba(30, 58, 138, 0.12), rgba(249, 115, 22, 0.05) 72%, rgba(255, 255, 255, 0.94));
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.about-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(240, 165, 0, 0.08);
  border-radius: 50%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-content .section-header {
  text-align: right;
  margin-bottom: 32px;
}

.about-content .section-title {
  color: var(--white);
}

.about-content .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.about-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.about-feat-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.35);
}

.about-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  height: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(240, 165, 0, 0.4);
}

.about-img-badge .num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.about-img-badge .label {
  font-size: 0.78rem;
  opacity: 0.9;
}

#about-home {
  background:
    radial-gradient(circle at left 30%, rgba(255, 255, 255, 0.05), transparent 18%),
    radial-gradient(circle at 88% 78%, rgba(240, 165, 0, 0.12), transparent 18%),
    linear-gradient(135deg, #173563 0%, #23467e 52%, #1d3f74 100%);
}

#about-home .container {
  position: relative;
  z-index: 1;
}

#about-home .about-grid {
  gap: 72px;
  align-items: center;
}

#about-home .about-home-header {
  margin-bottom: 26px;
}

#about-home .about-home-tag {
  background: linear-gradient(135deg, var(--accent), #ffc83d);
  color: #7a4b00;
  box-shadow: 0 12px 26px rgba(240, 165, 0, 0.24);
}

#about-home .about-content .section-title {
  max-width: 620px;
  line-height: 1.3;
}

#about-home .about-text {
  max-width: 640px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 2;
}

#about-home .about-features {
  gap: 14px;
  margin-bottom: 34px;
}

#about-home .about-feat-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

#about-home .about-feat-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(240, 165, 0, 0.14);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#about-home .about-feat-icon svg {
  width: 16px;
  height: 16px;
}

#about-home .about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

#about-home .about-cta {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(240, 165, 0, 0.28);
}

#about-home .about-cta:hover {
  box-shadow: 0 22px 42px rgba(240, 165, 0, 0.36);
}

#about-home .about-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}

#about-home .about-trust-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

#about-home .about-trust-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

#about-home .about-img-wrap {
  min-height: 480px;
}

#about-home .about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -18px 42px 56px -22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 36px;
  pointer-events: none;
}

#about-home .about-img-glow {
  position: absolute;
  inset: auto auto 30px -10px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.26), transparent 70%);
  filter: blur(18px);
}

#about-home .about-img-main {
  height: 460px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  z-index: 1;
}

#about-home .about-img-overlay {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(240, 165, 0, 0.28) 0 10%, transparent 10% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%);
  z-index: 2;
  pointer-events: none;
}

#about-home .about-floating-chip {
  position: absolute;
  z-index: 3;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(10, 20, 50, 0.18);
}

#about-home .about-floating-chip-top {
  top: 22px;
  left: -22px;
}

#about-home .about-floating-chip-bottom {
  right: -18px;
  bottom: 84px;
}

#about-home .about-img-badge {
  bottom: -14px;
  right: -16px;
  border-radius: 20px;
  padding: 18px 22px;
  z-index: 4;
}

/* ===== PRODUCTS PAGE HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="20" fill="rgba(240,165,0,0.07)"/></svg>');
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
}

.breadcrumb {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  opacity: 0.75;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== STORE CONTROLS ===== */
.store-controls {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo-wrap img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s;
}

.brand-logo-wrap img:hover {
  transform: scale(1.05);
}

.search-wrap {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 16px 24px 16px 50px;
  border: 2px solid #eee;
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #f9f9f9;
}

.search-input:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 5px 15px rgba(255, 165, 0, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cat-btn {
  padding: 10px 24px;
  border-radius: 25px;
  border: 2px solid #eee;
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  color: var(--text-muted);
}

.cat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

 [data-theme="dark"] .cat-btn {
   color: #000 !important;
 }

 [data-theme="dark"] .cat-btn:hover {
   color: var(--accent) !important;
 }

 [data-theme="dark"] .cat-btn.active {
   color: #fff !important;
 }

.cat-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

/* ===== PRODUCT CARD ENHANCEMENTS ===== */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-badges {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}

.badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-new {
  background: #00c853;
}

.badge-best {
  background: #ff3d00;
}

.badge-hot {
  background: #f50057;
}

.product-price {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.price-currency {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.product-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  color: #ffc107;
}

/* ===== STORE PAGE STYLES ===== */
.store-page .product-card {
  background: white;
  border: 1px solid #eee;
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.store-page .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.store-page .product-img-wrap {
  background: #fdfdfd;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-page .product-img-wrap img {
  max-height: 200px;
  object-fit: contain;
}

.store-buy-btn {
  background: #25d366;
  color: white !important;
  border-color: #25d366 !important;
}

.store-buy-btn:hover {
  background: #128c7e;
  border-color: #128c7e;
}

.store-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('Assets/hero3.jpg');
  background-size: cover;
  background-position: center;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.brand-separator {
  grid-column: 1 / -1;
  padding: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-separator h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.brand-separator .line {
  height: 2px;
  background: var(--border);
  flex: 1;
}

.brand-separator .brand-logo-small {
  height: 30px;
  object-fit: contain;
  opacity: 0.8;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.product-img-wrap {
  height: 240px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  max-height: 200px;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.1);
}

.product-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.product-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-temp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.product-temp svg {
  color: var(--accent);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.spec-tag {
  background: var(--light-gray);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.product-actions .btn-primary {
  flex: 1;
  min-width: 80px;
}

.product-actions .btn-outline {
  flex: 1;
  min-width: 80px;
}

.product-actions .product-quantity-controls {
  flex: 1;
  margin: 0;
  min-width: 100px;
  justify-content: center;
}

.btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  transition: var(--transition);
  background: none;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== ABOUT PAGE ===== */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.about-page-text h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
}

.about-page-text p {
  color: var(--dark-gray);
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-img-round {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.value-card:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.value-card:hover h3 {
  color: var(--white);
}

.value-card p {
  font-size: 0.88rem;
  color: var(--dark-gray);
}

.value-card:hover p {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--light-gray);
  padding: 80px 0;
}

#contact-page {
  position: relative;
  overflow: hidden;
}

#contact-page::before,
#contact-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

#contact-page::before {
  top: 110px;
  right: -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.12), transparent 72%);
}

#contact-page::after {
  bottom: 40px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(26, 58, 107, 0.1), transparent 72%);
}

#contact-page .container {
  max-width: 1440px;
  position: relative;
  z-index: 1;
}

#contact-page .contact-page-layout {
  display: grid;
  grid-template-columns: minmax(400px, 440px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

#contact-page .contact-sidebar,
#contact-page .contact-main {
  display: grid;
  gap: 24px;
  align-content: start;
}

#contact-page .contact-grid-small {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

#contact-page .contact-card {
  cursor: default;
  border-radius: 24px;
  padding: 26px;
}

#contact-page .contact-card:hover {
  border-color: rgba(26, 58, 107, 0.16);
  box-shadow: var(--shadow-hover);
}

#contact-page .contact-card-large,
#contact-page .contact-card-compact {
  background: linear-gradient(180deg, rgba(26, 58, 107, 0.05), rgba(240, 165, 0, 0.04)) !important;
}

#contact-page .contact-card-large {
  min-height: 184px;
}

#contact-page .contact-card-compact {
  min-height: 172px;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

#contact-page .contact-card-large:hover,
#contact-page .contact-card-compact:hover {
  transform: translateY(-4px);
}

.lang-en #contact-page .contact-card-large:hover,
.lang-en #contact-page .contact-card-compact:hover {
  transform: translateY(-4px);
}

#contact-page .contact-card-body {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

#contact-page .contact-card-body p {
  line-height: 1.85;
}

#contact-page .contact-card-body a {
  display: inline-block;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#contact-page .contact-card-body a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

#contact-page .contact-card-compact .contact-card-icon {
  align-self: flex-start;
}

#contact-page .contact-card-compact .contact-card-body {
  width: 100%;
  gap: 8px;
}

#contact-page .contact-card-note {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.65;
}

#contact-page .contact-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(26, 58, 107, 0.16);
}

#contact-page .contact-card-icon.is-pin {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

#contact-page .contact-card-icon.is-call {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

#contact-page .contact-card-icon.is-mobile {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

#contact-page .contact-card-icon.is-facebook {
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  font-family: 'Inter', sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  text-transform: lowercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateX(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}

.contact-card-body h4 {
  font-size: 0.88rem;
  color: var(--dark-gray);
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card-body p,
.contact-card-body a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-card-body a:hover {
  color: var(--accent);
}

/* Hours */
.hours-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.hours-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 600;
  color: var(--primary);
}

.hours-time {
  color: var(--dark-gray);
}

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 20px;
}

.hours-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

#contact-home {
  background:
    radial-gradient(circle at 14% 22%, rgba(26, 58, 107, 0.06), transparent 18%),
    linear-gradient(180deg, #f6f9fd 0%, #eef4fb 100%);
  position: relative;
  overflow: hidden;
}

#contact-home .container {
  position: relative;
  z-index: 1;
}

#contact-home .section-header {
  margin-bottom: 40px;
}

#contact-home .home-contact-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: stretch;
}

#contact-home .contact-info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-content: start;
}

#contact-home .home-contact-card {
  background: linear-gradient(180deg, rgba(26, 58, 107, 0.04), rgba(255, 255, 255, 0.92)) !important;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(26, 58, 107, 0.1);
  border: 1px solid rgba(26, 58, 107, 0.08) !important;
  cursor: default;
}

#contact-home .home-contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(26, 58, 107, 0.16) !important;
}

#contact-home .home-contact-card-address {
  grid-column: 1 / -1;
  min-height: 164px;
}

#contact-home .contact-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

#contact-home .contact-card-body p {
  line-height: 1.85;
}

#contact-home .contact-card-body a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#contact-home .contact-card-body a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

#contact-home .contact-card-note {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
}

#contact-home .contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(26, 58, 107, 0.16);
}

#contact-home .contact-card-icon.is-pin {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

#contact-home .contact-card-icon.is-call {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

#contact-home .contact-card-icon.is-mobile {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

#contact-home .contact-card-icon.is-facebook {
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: lowercase;
}

#contact-home .home-hours-card {
  height: 100%;
  min-height: 100%;
  padding: 30px;
  border-radius: 28px;
  text-align: right;
  background: linear-gradient(180deg, rgba(26, 58, 107, 0.06), rgba(255, 255, 255, 0.96)) !important;
  box-shadow: 0 22px 42px rgba(26, 58, 107, 0.12);
  display: flex;
  flex-direction: column;
}

.lang-en #contact-home .home-hours-card {
  text-align: left;
}

#contact-home .home-hours-card h3 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26, 58, 107, 0.08);
}

#contact-home .hours-list {
  display: grid;
  gap: 12px;
  flex: 1;
  align-content: start;
}

#contact-home .hours-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(26, 58, 107, 0.08);
  background: rgba(26, 58, 107, 0.03);
}

#contact-home .hours-item:last-child {
  border-bottom: 1px solid rgba(26, 58, 107, 0.08);
}

#contact-home .hours-time {
  font-weight: 700;
}

#contact-home .hours-time-off {
  color: #dc2626;
}

#contact-home .hours-status-wrap {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: center;
}

#contact-page .hours-card {
  padding: 30px;
  border-radius: 24px;
  text-align: right;
  background: linear-gradient(180deg, rgba(26, 58, 107, 0.05), rgba(255, 255, 255, 0)) !important;
}

.lang-en #contact-page .hours-card {
  text-align: left;
}

#contact-page .hours-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 22px;
}

#contact-page .hours-list {
  display: grid;
  gap: 12px;
}

#contact-page .hours-item {
  padding: 14px 16px;
  border: 1px solid rgba(26, 58, 107, 0.08);
  background: rgba(26, 58, 107, 0.03);
  border-radius: 16px;
}

#contact-page .hours-item:last-child {
  border-bottom: 1px solid rgba(26, 58, 107, 0.08);
}

#contact-page .hours-time {
  font-weight: 700;
}

#contact-page .hours-time-off {
  color: #dc2626;
}

#contact-page .hours-status-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.wa-direct-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(140deg, #0a7c53 0%, #129263 48%, #1fbb73 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 60px rgba(18, 146, 99, 0.28);
}

.wa-direct-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}

.wa-direct-kicker {
  display: inline-flex;
  justify-self: start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.wa-direct-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.wa-direct-emblem {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.wa-direct-copy h3 {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.wa-direct-copy p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.wa-direct-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wa-metric {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.wa-metric span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.wa-metric strong {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.6;
}

.wa-direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wa-direct-primary,
.wa-direct-secondary {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
}

.wa-direct-primary {
  background: #ffffff;
  color: #0a7c53;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.wa-direct-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.wa-direct-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
}

.wa-direct-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.wa-direct-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
}

.wa-direct-note-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fef08a;
  box-shadow: 0 0 0 8px rgba(254, 240, 138, 0.14);
  flex-shrink: 0;
}

.wa-direct-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.wa-direct-orb-one {
  top: -40px;
  left: -20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 72%);
}

.wa-direct-orb-two {
  bottom: -70px;
  right: -10px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

@media (max-width: 1024px) {
  #contact-page .contact-page-layout {
    grid-template-columns: 1fr;
  }

  #contact-page .contact-grid-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #contact-page {
    padding: 64px 0;
  }

  #contact-page .contact-page-layout,
  #contact-page .contact-sidebar,
  #contact-page .contact-main {
    gap: 22px;
  }

  #contact-page .contact-grid-small,
  .wa-direct-metrics {
    grid-template-columns: 1fr;
  }

  #contact-page .contact-card-compact {
    min-height: 0;
  }

  .wa-direct-card {
    padding: 24px;
  }

  .wa-direct-head,
  .wa-direct-actions {
    flex-direction: column;
  }

  .wa-direct-primary,
  .wa-direct-secondary {
    width: 100%;
  }

  #contact-page .hours-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  #contact-page .contact-card {
    padding: 22px;
  }

  .wa-direct-emblem {
    width: 58px;
    height: 58px;
    font-size: 1.7rem;
  }

  .wa-direct-copy h3 {
    font-size: 1.35rem;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 100px;
  left: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand img {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.88rem;
  opacity: 0.7;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.7);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--accent);
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-icon {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-contact-text a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-contact-text a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom span {
  color: var(--accent);
}

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: var(--transition);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-gray);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--dark-gray);
}

.modal-close:hover {
  background: var(--primary);
  color: var(--white);
}

.modal-body {
  padding: 28px;
}

.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 28px;
}

.modal-img-wrap {
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 240px;
}

.modal-img-wrap img {
  max-height: 200px;
  object-fit: contain;
}

.modal-product-info h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}

.modal-product-info .modal-brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.modal-product-info .modal-temp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  background: var(--light-gray);
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-product-info p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

.modal-specs h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.modal-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-medium);
}

.modal-spec-item svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Table in Modal */
.modal-table-section {
  margin-top: 24px;
}

.modal-table-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 14px;
  text-align: right;
  font-weight: 600;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-medium);
}

.data-table tr:hover td {
  background: var(--light-gray);
}

/* ===== ANIMATIONS ===== */
[class*="fade-"] {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

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

.fade-down {
  transform: translateY(-50px);
}

.fade-left {
  transform: translateX(50px);
}

.fade-right {
  transform: translateX(-50px);
}

.fade-in {
  transform: scale(0.95);
}

[class*="fade-"].visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* WhatsApp Chat Widget */
.wa-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  /* Default for English */
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

/* Float Button */
.wa-float-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.wa-float-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wa-float-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Chat Window */
.wa-window {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 340px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom left;
}

.wa-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-header {
  background: #075e54;
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  padding: 5px;
}

.wa-header-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.wa-header-info span {
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-header-info span::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  display: inline-block;
}

.wa-body {
  padding: 20px;
  background: var(--light-gray);
  max-height: 300px;
  min-height: 100px;
}

.wa-msg {
  background: var(--bg-body);
  padding: 10px 15px;
  border-radius: 0 15px 15px 15px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  max-width: 85%;
}

.wa-footer {
  padding: 15px;
  background: var(--mid-gray);
  display: flex;
  gap: 10px;
  align-items: center;
}

.wa-input {
  flex: 1;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

.wa-send {
  background: none;
  border: none;
  color: #075e54;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.wa-send:hover {
  transform: scale(1.1);
}

/* RTL Override for Arabic */
[dir="rtl"] .wa-window {
  left: auto;
  right: 0;
  transform-origin: bottom right;
}

[dir="rtl"] .wa-widget {
  left: auto;
  right: 30px;
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* Pure CSS Reveal Effect */
.reveal {
  position: relative;
  overflow: hidden;
}

.reveal::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal.visible::after {
  transform: translateX(100%);
}

.reveal-text {
  opacity: 0;
  transition: opacity 0.1s 0.3s;
}

.reveal.visible .reveal-text {
  opacity: 1;
}

/* AI Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  /* Default for English */
  z-index: 9998;
  font-family: 'Inter', sans-serif;
}

.chatbot-btn {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(26, 58, 107, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  animation: chatbot-pulse 2s infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes chatbot-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(26, 58, 107, 0.6);
  }

  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 15px rgba(26, 58, 107, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(26, 58, 107, 0);
  }
}

.chatbot-btn:hover {
  transform: scale(1.1) translateY(-5px);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 25px rgba(240, 165, 0, 0.5);
  animation: none;
}

.chatbot-btn:hover svg {
  transform: scale(1.15) rotate(-10deg);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  height: 450px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chatbot-header {
  background: var(--primary);
  padding: 10px 15px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
  min-height: 60px;
}

.chatbot-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.chatbot-avatar {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  /* To let the status dot show */
}

.chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.chatbot-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #2ced1f;
  border: 2px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
}

.chatbot-header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chatbot-header-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.chatbot-header-info span {
  font-size: 0.75rem;
  opacity: 0.9;
  display: block;
}

#chatbot-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.6rem;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s;
  line-height: 1;
}

#chatbot-close:hover {
  opacity: 1;
}

.chatbot-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
}

/* Form Styles */
.chatbot-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-form h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.chatbot-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  font-size: 0.9rem;
}

.chatbot-form button {
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.3s;
}

.chatbot-form button:hover {
  opacity: 0.9;
}

/* Message Styles */
.chat-msg {
  margin-bottom: 10px;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-msg.bot {
  background: #e9ecef;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chatbot-footer {
  padding: 15px;
  border-top: 1px solid #eee;
  display: none;
  /* Shown after lead submission */
  gap: 10px;
  background: white;
}

.chatbot-footer input {
  flex: 1;
  border: none;
  background: #f0f2f5;
  padding: 10px 15px;
  border-radius: 20px;
  outline: none;
  font-size: 0.9rem;
}

.chatbot-footer button {
  background: var(--primary);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* RTL Adjustment for AI Chatbot */
[dir="rtl"] .chatbot-widget {
  right: auto;
  left: 30px;
}

[dir="rtl"] .chatbot-window {
  right: auto;
  left: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-card:nth-child(2),
  .brand-card:nth-child(4) {
    margin-top: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-wrap {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  #about-home .about-grid {
    gap: 48px;
  }

  #about-home .about-img-wrap {
    max-width: 720px;
    margin: 0 auto;
  }

  #about-home .about-floating-chip-top {
    top: 18px;
    left: 18px;
  }

  #about-home .about-floating-chip-bottom {
    right: 18px;
    bottom: 74px;
  }

  #contact-home .home-contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-slider {
    height: 480px;
  }

  .slide-content {
    padding: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 28px 24px 24px;
  }

  #about-home .about-features {
    grid-template-columns: 1fr;
  }

  #about-home .about-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  #about-home .about-img-main {
    height: 380px;
  }

  #about-home .about-floating-chip {
    display: none;
  }

  #about-home .about-img-badge {
    right: 14px;
    bottom: 14px;
  }

  .brands-grid {
    grid-template-columns: 1fr;
  }

  .brand-card:nth-child(2),
  .brand-card:nth-child(4) {
    margin-top: 0;
  }

  .brand-img-wrap {
    height: 210px;
    padding: 28px 20px 22px;
  }

  .brand-info {
    padding: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  #contact-home .contact-info-cards {
    width: 100%;
    grid-template-columns: 1fr;
  }

  #contact-home .home-contact-card-address {
    grid-column: auto;
  }

  #contact-home .home-contact-card,
  #contact-home .home-hours-card {
    padding: 22px;
  }

  .about-page-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .slide-content h1 {
    font-size: 1.8rem;
  }
}

/* ===== ENHANCED CONTACT FORM STYLES ===== */
.contact-form-card {
  transition: var(--transition);
}

#contact-page .contact-form-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--border) !important;
  background: linear-gradient(180deg, rgba(240, 165, 0, 0.08), rgba(255, 255, 255, 0) 150px), var(--bg-card) !important;
  box-shadow: var(--shadow-lg);
}

.contact-form-accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.contact-form-head {
  margin-bottom: 28px;
}

.contact-form-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-form-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 165, 0, 0.18), rgba(26, 58, 107, 0.18));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-form-copy h3 {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-form-copy p {
  color: var(--text-light);
  line-height: 1.8;
}

#contact-page .custom-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.form-block {
  width: 100%;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  letter-spacing: 0.3px;
}

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

.input-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--primary-light);
  opacity: 0.6;
  pointer-events: none;
  transition: var(--transition);
}

.lang-en .input-icon {
  right: auto;
  left: 18px;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 14px 58px 14px 18px;
  background: #fdfdfd;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-dark);
  text-align: right;
}

.lang-en .input-wrapper input,
.lang-en .input-wrapper textarea {
  padding: 14px 18px 14px 58px;
  text-align: left;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.08);
}

.input-wrapper:focus-within .input-icon {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.input-wrapper-textarea {
  align-items: flex-start;
}

.input-wrapper-textarea textarea {
  min-height: 160px;
  padding-top: 18px;
  resize: vertical;
}

.input-icon-textarea {
  top: 22px;
  transform: none;
}

.input-wrapper-textarea:focus-within .input-icon-textarea {
  transform: scale(1.1);
}

.captcha-container {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(26, 58, 107, 0.03);
}

.captcha-question {
  min-width: 74px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(26, 58, 107, 0.12);
  color: var(--primary);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
}

.captcha-equals {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 900;
}

.captcha-input-wrap {
  min-width: 0;
  padding: 0 6px;
  border: 1px solid rgba(26, 58, 107, 0.12);
  border-radius: 14px;
  background: var(--bg-card);
}

.captcha-refresh {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(26, 58, 107, 0.22);
  transition: var(--transition);
}

#contact-page .contact-map-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--border) !important;
  background: linear-gradient(180deg, rgba(26, 58, 107, 0.05), rgba(255, 255, 255, 0) 140px), var(--bg-card) !important;
  box-shadow: var(--shadow-lg);
}

.contact-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.contact-map-tag {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(240, 165, 0, 0.14);
  color: #9a6700;
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-map-copy h3 {
  margin: 10px 0 6px;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 900;
}

.contact-map-copy p {
  color: var(--text-light);
  line-height: 1.8;
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(26, 58, 107, 0.2);
  transition: var(--transition);
}

.contact-map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(26, 58, 107, 0.26);
}

.contact-map-frame {
  height: 380px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--light-gray);
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.btn-primary-glow {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(26, 58, 107, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(26, 58, 107, 0.35);
  letter-spacing: 1px;
}

.btn-primary-glow:hover::after {
  opacity: 1;
}

.btn-primary-glow:active {
  transform: translateY(0);
}

.form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  display: none;
  animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#refresh-captcha:hover {
  filter: grayscale(0) rotate(180deg);
  transform: translateY(-2px) rotate(180deg);
}

.captcha-container:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.05);
}

#captcha-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  padding: 12px 6px !important;
}

#captcha-input::-webkit-inner-spin-button,
#captcha-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  #contact-page .contact-form-card,
  #contact-page .contact-map-card {
    padding: 24px;
  }

  .contact-form-title,
  .contact-map-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-map-frame {
    height: 300px;
  }

  .captcha-container {
    grid-template-columns: 1fr;
  }

  .captcha-question,
  .captcha-refresh {
    width: 100%;
  }

  .captcha-equals {
    display: none;
  }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background: var(--light-gray);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--primary);
  margin: 0 10px;
}

.theme-toggle:hover {
  background: var(--mid-gray);
  transform: rotate(15deg) scale(1.1);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .theme-toggle:hover {
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.4), rgba(15, 37, 80, 0.5));
  border-color: rgba(240, 165, 0, 0.6);
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(26, 58, 107, 0.25);
  color: #fff;
}

[data-theme="dark"] .theme-toggle:active {
  transform: rotate(15deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(26, 58, 107, 0.2);
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.2), rgba(15, 37, 80, 0.3));
  border: 1px solid rgba(240, 165, 0, 0.3);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(26, 58, 107, 0.15);
  backdrop-filter: blur(8px);
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== CART ICON & BADGE ===== */
.cart-btn {
  background: var(--light-gray);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--primary);
  position: relative;
  margin: 0 5px;
}

.cart-btn:hover {
  background: var(--mid-gray);
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* Enhanced Quantity Controls */
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--light-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.qty-btn:hover:not(:disabled) {
  background: var(--border);
  transform: scale(1.05);
}

.qty-btn:active:not(:disabled) {
  transform: scale(0.95);
}

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

.qty-display {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}

.product-quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-add-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-add-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-card);
  z-index: 3001;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-overlay.open .cart-sidebar {
  right: 0;
}

[dir="rtl"] .cart-sidebar {
  right: auto;
  left: -400px;
}

[dir="rtl"] .cart-overlay.open .cart-sidebar {
  left: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--light-gray);
  border-radius: 8px;
}

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

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--light-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-body);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary);
}

.cart-checkout-btn {
  width: 100%;
  padding: 15px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.cart-checkout-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}
