/* ==========================================================================
   THEHAMMER - INDUSTRIAL WATER PUMP SOLUTIONS
   EUROPEAN MANUFACTURER DESIGN SYSTEM
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  /* THEHAMMER Brand Colors */
  --primary-red: #c8102e;
  --primary-red-hover: #a00c24;
  --primary-red-glow: rgba(200, 16, 46, 0.12);

  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #eaeaea;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);

  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #888888;
  --text-inverse: #ffffff;

  --border-color: #e0e0e0;
  --border-focus: #c8102e;

  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-danger: #c8102e;

  /* Shadows & Elevation */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-red: 0 4px 20px rgba(200, 16, 46, 0.25);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-heading: "Outfit", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --header-height: clamp(75px, 6vw + 35px, 115px);
  --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #262626;
  --bg-card: #1e1e1e;
  --bg-glass: rgba(18, 18, 18, 0.92);

  --text-primary: #f5f5f5;
  --text-secondary: #cccccc;
  --text-muted: #888888;

  --border-color: #2a2a2a;
  --border-focus: #c8102e;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--primary-red-hover);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-cols-4,
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-red);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-outline {
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary-red);
}

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

/* Logo & Branding */
.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* Header layout & logo modifications */
.site-header {
  overflow: visible;
}

.nav-wrapper {
  min-height: auto;
  display: flex;
  align-items: center;
}

.site-logo img,
.header-logo img,
.nav-logo img,
.site-logo-image {
  width: auto;
  height: clamp(70px, 5vw, 90px);
  max-width: 220px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: height var(--transition-normal);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-image {
  height: clamp(80px, 8vw + 40px, 125px);
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height var(--transition-normal);
}

/* Quote modals & form branding */
.quote-form-branding {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.quote-logo {
  width: clamp(200px, 20vw + 100px, 300px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* WhatsApp branded button theme overrides */
.whatsapp-button {
  background: #25d366 !important;
  color: #ffffff !important;
  border: none !important;
}

.whatsapp-button:hover {
  background: #1ebe5d !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  line-height: 1;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.whatsapp-icon i {
  display: block;
  color: currentColor;
  font-size: 26px;
  line-height: 1;
}

/* RTL layout alignment adjustments */
[dir="rtl"] .quote-form-branding,
[dir="rtl"] .about-branding,
[dir="rtl"] .contact-branding {
  direction: rtl;
}

html[dir="rtl"] .logo-certificate-image,
html[dir="rtl"] .about-logo,
html[dir="rtl"] .site-logo-image,
html[dir="rtl"] .footer-logo-image,
html[dir="rtl"] .quote-logo,
html[dir="rtl"] .logo-symbol {
  transform: none !important;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.brand-logo .brand-highlight {
  color: var(--primary-red);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-red);
}

.hero-slider {
  position: relative;
  min-height: calc(150vh - var(--header-height));
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.9) 0%,
      rgba(10, 10, 10, 0.65) 48%,
      rgba(10, 10, 10, 0.25) 100%
    ),
    url("images/final_hero.jpeg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: clamp(3.5rem, 6vh, 6rem) 0;
  box-sizing: border-box;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #ffffff !important;
}


.hero-title span {
   color: #ffffff !important;
}

/* Cards & Spec Badges */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

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

.spec-key {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-val {
  font-weight: 700;
  color: var(--primary-red);
  font-family: var(--font-mono);
}

.badge-unavailable {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.detail-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-normal);
}

.modal-container {
  background: var(--bg-card);
  border-top: 4px solid var(--primary-red);
  border-radius: var(--radius-md);
  width: min(95vw, 800px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px var(--primary-red-glow);
}

/* WhatsApp Floating Button */
.whatsapp-float,
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-normal);
}

.whatsapp-float:hover,
.floating-whatsapp:hover {
  background: #1ebe5d;
  color: #ffffff;
  transform: scale(1.1);
}

.whatsapp-float:focus-visible,
.floating-whatsapp:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35);
  outline-offset: 4px;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--primary-red);
  margin-top: 5rem;
}

/* ==========================================================================
   RTL & ARABIC SUPPORT
   ========================================================================== */

html[dir="rtl"] {
  --font-heading: "Outfit", "Cairo", -apple-system, sans-serif;
  --font-body: "Inter", "Noto Sans Arabic", -apple-system, sans-serif;
}

html[dir="rtl"] .hero-slider {
  background-image:
    linear-gradient(
      270deg,
      rgba(10, 10, 10, 0.9) 0%,
      rgba(10, 10, 10, 0.65) 48%,
      rgba(10, 10, 10, 0.25) 100%
    ),
    url("images/final_hero.jpeg");
}

html[dir="rtl"] .whatsapp-float {
  left: 2rem;
  right: auto;
}

html[dir="rtl"] .lang-dropdown {
  left: 0;
  right: auto !important;
}

html[dir="rtl"] #quoteListBadge {
  left: -8px;
  right: auto;
}

/* Force action button groups text-align to the logical end (left in RTL) */
html[dir="rtl"] div[style*="text-align: right"] {
  text-align: left !important;
}

html[dir="rtl"] .product-img-wrapper span[style*="left: 1rem"] {
  right: 1rem !important;
  left: auto !important;
}

/* LTR elements in RTL Arabic layout */
html[dir="rtl"] .font-mono,
html[dir="rtl"] .tech-val,
html[dir="rtl"] .spec-val,
html[dir="rtl"] td[style*="font-family: var(--font-mono)"],
html[dir="rtl"] #detailModel,
html[dir="rtl"] #quoteProductCode,
html[dir="rtl"] #quoteListTable td:nth-child(2),
html[dir="rtl"] .form-input[type="tel"],
html[dir="rtl"] .form-input[type="email"],
html[dir="rtl"] #contactPhone,
html[dir="rtl"] #contactEmail,
html[dir="rtl"] #quoteListPhone,
html[dir="rtl"] #quoteListEmail {
  direction: ltr !important;
  unicode-bidi: embed !important;
  text-align: left !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT & INTERACTIVE ELEMENTS OVERHAUL
   ========================================================================== */

/* Prevent horizontal body overflow */
html,
body {
  overflow-x: clip;
}

/* Responsive Headings */
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

/* Form Input Zoom Prevention & HIT Sizing */
.form-input,
.form-select,
.form-textarea {
  font-size: 16px !important;
  min-height: 44px;
}

.btn {
  min-height: 44px;
}

/* Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1050;
  flex-shrink: 0;
}

.mobile-menu-toggle .burger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: left center;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translateY(-2px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(2px);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1040;
  visibility: hidden;
  transition: visibility var(--transition-normal);
}

.mobile-nav-drawer.active {
  visibility: visible;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav-drawer.active .mobile-nav-overlay {
  opacity: 1;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

/* RTL Support for Drawer */
html[dir="rtl"] .mobile-nav-content {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--border-color);
  transform: translateX(-100%);
}

.mobile-nav-drawer.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-nav-close {
  font-size: 2.2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.mobile-nav-close:hover {
  color: var(--primary-red);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-normal);
}

.mobile-nav-link:hover {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

/* ==========================================================================
   REUSABLE BRANDING, TYPOGRAPHY & LAYOUT CLASSES
   ========================================================================== */

/* Section Spacing & Vertical Rhythm */
.section {
  padding: clamp(3.5rem, 6vw, 6.5rem) 0;
  width: 100%;
}

.section-secondary {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border-color);
}

.section-contact {
  border-top: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

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

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
}

.section-tag {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

/* Header & Navigation Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher-wrapper {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: none;
  z-index: 1010;
  min-width: 130px;
  box-shadow: var(--shadow-lg);
}

.lang-dropdown-item {
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: background var(--transition-normal);
}

.lang-dropdown-item:hover {
  background: var(--bg-secondary);
}

.quote-list-btn {
  position: relative;
}

.quote-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-red-hover);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--bg-primary);
}

/* Hero Section Elements */
.hero-content {
  width: 100%;
  max-width: 760px;
  position: relative;
  z-index: 5;
}

.hero-logo-container {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-logo-image {
  width: clamp(200px, 25vw + 50px, 300px);
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-normal);
}

.hero-subtitle-tag {
  display: inline-block;
  background: var(--primary-red);
  color: #fff;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cccccc;
  margin-bottom: 2.25rem;
  margin-top: 1.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn-outline {
  color: #fff;
  border-color: #fff;
}

.hero-btn-outline:hover {
  background: #fff;
  color: var(--primary-red);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--primary-red);
}

/* About Section Elements */
.about-grid {
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.about-stat-value {
  color: var(--primary-red);
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 800;
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.about-logo-card {
  background: var(--bg-primary);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.about-logo-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
}

.about-logo-image {
  width: 100%;
  max-width: clamp(220px, 30vw + 60px, 340px);
  height: auto;
  object-fit: contain;
  display: block;
}

/* Catalog Filter Elements */
.catalog-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}

.search-input-wrapper {
  flex: 2;
  min-width: 200px;
}

.filter-select {
  width: auto;
}

.btn-reset-filters {
  height: 44px;
  display: inline-flex;
  align-items: center;
}

.catalog-results-count {
  width: 100%;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Contact Form Elements */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-md);
}

.form-actions {
  text-align: right;
  margin-top: 1.5rem;
}

.btn-cancel {
  margin-right: 0.5rem;
}

.form-input-readonly {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--primary-red);
}

/* Footer Section Elements */
.footer-grid {
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-wrapper {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-text {
  font-size: 0.85rem;
  color: #aaaaaa;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-heading {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-list {
  list-style: none;
  font-size: 0.9rem;
}

.footer-list-item {
  margin-bottom: 0.6rem;
}

.footer-link {
  color: #ccc;
  transition: color var(--transition-normal);
}

.footer-link:hover {
  color: var(--primary-red);
}

.footer-contact-item {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  color: var(--primary-red);
}

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

.footer-attribution {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.footer-portfolio-link {
  color: #cccccc;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-normal, 0.3s ease);
}

.footer-portfolio-link:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.footer-attribution-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  transition: transform var(--transition-normal, 0.3s ease), color var(--transition-normal, 0.3s ease);
}

.footer-portfolio-link:hover .footer-attribution-icon {
  transform: translate(2px, -2px);
  color: var(--primary-red);
}

/* ==========================================================================
   OFFICIAL TECHNOLOGY PARTNERS SECTION
   ========================================================================== */
.section-partners {
  background: var(--bg-secondary);
}

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

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="dark"] .partner-card {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

.partner-img-container {
  width: 100%;
  height: 220px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.partner-img {
  max-width: 100%;
  max-height: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover .partner-img {
  transform: scale(1.05) !important;
}

.partner-card-body {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partner-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.partner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Modal Branding & Elements */
.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-logo-image {
  height: clamp(48px, 6vw + 20px, 65px);
  width: auto;
  object-fit: contain;
  display: block;
}

.modal-title {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-close {
  font-size: 1.75rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-normal);
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  display: none;
}

.modal-empty-icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.modal-empty-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.table-responsive-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.quote-table-header-row {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.quote-table-th {
  padding: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quote-table-th-right {
  padding: 1rem;
  text-align: right;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-divider-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.modal-section-title {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.modal-container-lg {
  width: min(95vw, 900px);
  max-width: 100%;
}

.modal-pre-title {
  font-family: var(--font-mono);
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.85rem;
}

.modal-detail-grid {
  gap: 2rem;
}

.modal-desc {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.detail-specs-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.whatsapp-float-icon {
  font-size: 26px;
}

/* Catalog Card Dynamic Output Styling */
.product-model {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-red);
  font-weight: 700;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Certificate Cards Dynamic Styling */
.certificate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.certificate-card:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.certificate-icon {
  width: 38px;
  height: 38px;
  color: var(--primary-red);
  margin-bottom: 0.75rem;
}

.certificate-title {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.certificate-issuer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Download Cards Dynamic Styling */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.download-title {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.download-info {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Spec Detail Modal Dynamic Layout */
.modal-spec-highlight {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-red);
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--primary-red);
  background: var(--bg-secondary);
  border-radius: 4px;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.modal-table-label {
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 45%;
}

.modal-table-value {
  padding: 0.75rem 0.5rem;
  color: var(--primary-red);
  font-family: var(--font-mono);
  font-weight: 600;
}

.modal-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.modal-component-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.modal-component-card:hover {
  border-color: var(--primary-red);
}

.modal-component-img-wrapper {
  height: 140px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-component-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.modal-component-body {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-component-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.modal-component-model {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Quote list / cart specific */
.quote-list-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Dropzone elements */
.dropzone {
  border: 2px dashed var(--border-color);
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-secondary);
  transition: border-color var(--transition-normal);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary-red);
}

.dropzone-icon {
  width: 32px;
  height: 32px;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.85rem;
}

.dropzone-preview {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--primary-red);
}

.logo-text-fallback {
  display: none;
  font-size: 1.5rem;
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  color: var(--text-primary);
  align-items: center;
}

.hero-logo-container .logo-text-fallback {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  color: #ffffff;
}

/* Text alignment helper classes */
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (8 VIEWPORTS BREAKPOINTS SUPPORT)
   ========================================================================== */

/* 1920px (Extra Large Screen Spacing & Layout Alignment) */
@media (min-width: 1441px) {
  .container {
    max-width: 1440px;
  }
}

/* 1440px (Standard Desktop Spacing & Alignment) */
@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

/* 1280px (Laptops / Small Desktops) */
@media (max-width: 1280px) {
  .container {
    max-width: 1100px;
  }
}

/* 1024px (Tablets / Landscape Viewports) */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .site-header .lang-switcher {
    display: none !important;
  }

  .main-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Catalog control alignment */
  .catalog-filters {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #catalogSearchInput {
    width: 100% !important;
  }

  .filter-select {
    width: 100% !important;
  }

  /* Hero stats layout columns stack */
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .grid-cols-4,
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slider {
    background-position: 35% center;
  }

  .site-logo img,
  .header-logo img,
  .nav-logo img,
  .site-logo-image {
    height: 65px;
    max-width: 190px;
  }
}

/* 768px (Tablets / Portrait Viewports) */
@media (max-width: 768px) {
  .container {
    max-width: 720px;
  }

  .hero-slider {
    background-image:
      linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 60%,
        rgba(10, 10, 10, 0.5) 100%
      ),
      url("images/final_hero.jpeg");
    background-position: center top;
    min-height: clamp(480px, 80vh, 650px);
    padding: 4rem 0;
  }

  .hero-slider::before {
    background-image:
      linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 60%,
        rgba(10, 10, 10, 0.5) 100%
      ),
      url("images/final_hero.jpeg") !important;
  }

  html[dir="rtl"] .hero-slider {
    background-image:
      linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 60%,
        rgba(10, 10, 10, 0.5) 100%
      ),
      url("images/final_hero.jpeg");
  }

  html[dir="rtl"] .hero-slider::before {
    background-image:
      linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 60%,
        rgba(10, 10, 10, 0.5) 100%
      ),
      url("images/final_hero.jpeg") !important;
  }

  .quote-btn-text {
    display: none !important;
  }

  #quoteListHeaderBtn {
    padding: 0.8rem 1rem !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .site-logo img,
  .header-logo img,
  .nav-logo img,
  .site-logo-image {
    height: 55px;
    max-width: 170px;
  }
}

/* 640px (Small Mobile Landscape / Large Phones) */
@media (max-width: 640px) {
  /* Hero stats completely vertical on mobile */
  .hero-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 2.5rem;
  }

  /* Modal responsive stacking */
  .modal-container {
    margin: 0.5rem auto;
    max-height: 95vh;
  }

  .modal-container .grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Adjust detail modal spec image */
  .detail-image {
    max-height: 250px;
    width: 100%;
    object-fit: contain;
  }

  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* 425px (Medium Mobile Portrait) */
@media (max-width: 425px) {
  .container {
    padding-inline: 1rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* 480px (Standard Mobile Button Stacking) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-slider {
    background-position: center top;
  }
}

/* 320px (Compact Mobile Breakpoint / No-Scroll Safeguard) */
@media (max-width: 320px) {
  .container {
    padding-inline: 0.75rem;
  }

  /* Compact header buttons */
  .header-actions {
    gap: 0.5rem;
  }

  /* Compact About Logo card padding */
  .about-logo-card {
    padding: 1rem;
  }

  /* Downloads list layout elements vertical stacking */
  .download-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .download-card .btn {
    width: 100% !important;
  }
}

/* Table spec wrapping */
#detailSpecsTable td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Responsive Quote List Table */
@media (max-width: 560px) {
  .quote-table thead {
    display: none !important;
  }
  .quote-table tr {
    display: block !important;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
  }
  .quote-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    border: none !important;
    text-align: right !important;
  }
  .quote-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-secondary);
    display: inline-block;
  }

  html[dir="rtl"] .quote-table td {
    text-align: left !important;
  }

  .quote-table td:first-child {
    justify-content: flex-start !important;
    gap: 1rem !important;
  }
  .quote-table td:first-child::before {
    display: none !important;
  }
  .quote-table td:last-child {
    justify-content: flex-end !important;
  }
}

/* Dynamic template helper classes */
.catalog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.catalog-empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--primary-red);
}

.product-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-red);
  color: #fff;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 2px;
  z-index: 10;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.product-spec-grid {
  margin: 0.75rem 0;
}

.spec-val-ltr {
  direction: ltr;
  text-align: left;
}

.product-card-btn {
  flex: 1;
}

.whatsapp-icon-mini {
  width: 16px;
  height: 16px;
  color: var(--primary-red);
}

.whatsapp-svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Spec Detail Modal specs */
.modal-table-row {
  border-bottom: 1px solid var(--border-color);
}

/* Quote Table Row & TDs */
.quote-table-row {
  border-bottom: 1px solid var(--border-color);
}

.quote-table-td-product {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-item-name {
  display: block;
}

.quote-table-td-code {
  padding: 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary-red);
  direction: ltr;
  text-align: left;
}

.quote-table-td-qty {
  padding: 1rem;
}

.qty-btn {
  font-weight: 700;
  padding: 0 0.25rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.qty-val {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.quote-table-td-remove {
  padding: 1rem;
  text-align: right;
}

.trash-icon {
  width: 14px;
  height: 14px;
}

/* Mobile Drawer elements styling */
.mobile-menu-logo-image {
  height: clamp(35px, 6vw + 15px, 55px);
  width: auto;
  object-fit: contain;
  display: block;
}

.mobile-lang-section {
  margin-bottom: 1.5rem;
}

.mobile-lang-label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
  color: var(--text-secondary);
}

.mobile-lang-buttons {
  display: flex;
  gap: 0.5rem;
}

.mobile-lang-btn {
  flex: 1;
  justify-content: center;
}

/* ==========================================================================
   CATEGORY FILTER BAR & CATEGORY CARDS SYSTEM
   ========================================================================== */

.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
  padding: 0.5rem 0;
}

.filter-pill {
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-pill:hover {
  background-color: var(--bg-tertiary);
  color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-2px);
}

.filter-pill.active {
  background-color: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.32);
}

/* Category Cards Grid & Cards */
.category-cards-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-red);
}

[data-theme="dark"] .category-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.category-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card-img {
  transform: scale(1.07);
}

.category-card-count-badge {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-card-title i {
  color: var(--primary-red);
  width: 20px;
  height: 20px;
}

.category-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.category-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-red);
}

.category-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.category-card:hover .category-card-action {
  gap: 0.6rem;
}

/* Category Detail View Navigation & Headers */
.category-page-nav {
  margin-bottom: 1.5rem;
}

.back-to-categories-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
}

.category-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.category-page-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-top: 0.5rem;
}

/* Categories Results Count under category cards (Step 3) */
.categories-results-count {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-red);
  text-align: center;
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  display: inline-block;
  margin-inline: auto;
}

#homepageCategoriesView {
  display: flex;
  flex-direction: column;
}

/* Breadcrumb Navigation (Step 6) */
.breadcrumbs-container {
  margin-bottom: 1.5rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumbs-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs-list a:hover {
  color: var(--primary-red);
}

.breadcrumb-separator {
  color: var(--text-muted);
  user-select: none;
}

.breadcrumb-active {
  color: var(--primary-red);
  font-weight: 600;
}

.category-page-title {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.category-page-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.6;
}

/* Coming Soon Empty State for Empty Categories */
.coming-soon-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.coming-soon-card {
  background-color: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 580px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coming-soon-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary-red-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.coming-soon-icon {
  width: 32px;
  height: 32px;
  color: var(--primary-red);
}

.coming-soon-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.coming-soon-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.coming-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.65rem 1.4rem;
}

/* ==========================================================================
   PREMIUM QUOTE LIST MODAL REDESIGN
   ========================================================================== */

.quote-modal-container {
  max-width: 960px;
  width: 95%;
  border-radius: var(--radius-lg, 16px);
  padding: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl, 0 20px 40px rgba(0, 0, 0, 0.25));
  animation: quoteModalScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes quoteModalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.quote-modal-header {
  padding: 1.25rem 1.75rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-modal-header-branding {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.quote-modal-header-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.quote-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.quote-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.2rem 0 0 0;
}

.quote-modal-body {
  padding: 1.75rem;
  max-height: calc(85vh - 90px);
  overflow-y: auto;
}

/* Empty State */
.quote-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.quote-empty-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(200, 16, 46, 0.15);
}

.quote-empty-icon {
  width: 36px;
  height: 36px;
}

.quote-empty-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.quote-empty-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.quote-browse-btn {
  border-radius: 9999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Summary Bar */
.quote-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 10px);
  margin-bottom: 1.25rem;
}

.quote-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quote-summary-badge strong {
  color: var(--primary-red);
  font-size: 1rem;
}

.quote-clear-btn {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.quote-clear-btn:hover {
  color: var(--primary-red);
}

/* Modal Grid Layout */
.quote-modal-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 868px) {
  .quote-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Cards List */
.quote-items-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 380px;
  overflow-y: auto;
  padding-inline-end: 0.25rem;
}

.quote-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-item-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quote-item-img-wrapper {
  width: 80px;
  height: 65px;
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.quote-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quote-item-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quote-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.quote-item-model {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quote-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}

.quote-qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.quote-qty-selector .qty-btn {
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.quote-qty-selector .qty-btn:hover {
  background: var(--primary-red);
  color: #fff;
}

.quote-qty-selector .qty-val {
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quote-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quote-remove-btn:hover {
  color: var(--primary-red);
  background: rgba(200, 16, 46, 0.1);
}

.quote-items-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Right Column: Requester Information Form */
.quote-form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
}

.quote-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

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

.quote-submit-btn {
  margin-top: 0.75rem;
  height: 46px;
  font-weight: 700;
}
