/* =====================================================
   SKF Catalog – Tecnica Industriale
   Professional B2B Industrial Catalog CSS
   ===================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #1a1a1a; background: #f4f5f7; line-height: 1.6; min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #003057; text-decoration: none; }
a:hover { color: #E8002D; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* === CSS VARIABLES === */
:root {
  --primary: #003057;
  --primary-dark: #001f3a;
  --primary-light: #004a87;
  --accent: #E8002D;
  --accent-hover: #c00025;
  --success: #008A05;
  --white: #ffffff;
  --grey-50: #f8f9fa;
  --grey-100: #f4f5f7;
  --grey-200: #e9ecef;
  --grey-300: #dee2e6;
  --grey-400: #ced4da;
  --grey-600: #6c757d;
  --grey-800: #343a40;
  --grey-900: #1a1a1a;
  --max-w: 1400px;
  --nav-h: 70px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10);
  --shadow: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --transition: 0.2s ease;
}

/* === UTILITIES === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }
.text-muted { color: var(--grey-600); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-skf { background: #003057; color: #fff; }
.badge-new { background: #E8002D; color: #fff; }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  height: var(--nav-h);
}
.header-logo { flex-shrink: 0; }
.header-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.header-logo span {
  display: inline-block; color: #fff; font-weight: 700; font-size: 1.1rem;
  white-space: nowrap;
}

/* Search */
.header-search {
  flex: 1; max-width: 560px; position: relative;
}
.header-search form { display: flex; }
.header-search input {
  flex: 1; padding: 10px 16px; border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.95rem; background: rgba(255,255,255,0.12); color: #fff;
  outline: none; transition: border-color var(--transition);
}
.header-search input::placeholder { color: rgba(255,255,255,0.65); }
.header-search input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.18); }
.header-search button {
  padding: 10px 18px; background: var(--accent); color: #fff;
  border: none; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem; font-weight: 600; transition: background var(--transition);
}
.header-search button:hover { background: var(--accent-hover); }
.search-autocomplete {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--grey-300);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); z-index: 200; max-height: 320px;
  overflow-y: auto; display: none;
}
.search-autocomplete.visible { display: block; }
.autocomplete-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer;
  border-bottom: 1px solid var(--grey-200); transition: background var(--transition);
}
.autocomplete-item:hover, .autocomplete-item.active { background: var(--grey-50); }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-code { font-weight: 700; color: var(--primary); min-width: 120px; font-size: 0.9rem; }
.autocomplete-type { color: var(--grey-600); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header nav (right side) */
.header-nav {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.header-phone {
  color: rgba(255,255,255,0.85); font-size: 0.85rem; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.header-phone svg { width: 14px; height: 14px; }
.btn-rfq-header {
  background: var(--accent); color: #fff; padding: 9px 18px;
  border: none; border-radius: var(--radius); font-weight: 700;
  font-size: 0.9rem; white-space: nowrap; display: flex; align-items: center; gap: 8px;
  transition: background var(--transition);
}
.btn-rfq-header:hover { background: var(--accent-hover); color: #fff; }
.rfq-badge {
  background: #fff; color: var(--accent); border-radius: 50%;
  width: 20px; height: 20px; font-size: 0.75rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}

/* Nav bar (secondary) */
.nav-bar {
  background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-bar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 0;
}
.nav-link {
  display: block; color: rgba(255,255,255,0.82); padding: 12px 16px;
  font-size: 0.88rem; font-weight: 500; transition: all var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff; border-bottom-color: var(--accent);
}

/* Mobile toggle */
.hamburger { display: none; background: none; border: none; color: #fff; padding: 8px; }
.hamburger svg { width: 24px; height: 24px; }

/* === BREADCRUMBS === */
.breadcrumbs { background: #fff; border-bottom: 1px solid var(--grey-200); padding: 10px 0; }
.breadcrumbs-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.82rem;
}
.breadcrumbs a { color: var(--grey-600); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--grey-400); }
.breadcrumbs .current { color: var(--grey-800); font-weight: 500; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 64px 20px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.hero-tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 em { color: #ffd700; font-style: normal; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; border: 2px solid transparent;
  transition: all var(--transition); cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-rfq { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-rfq:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-rfq-accent { background: var(--accent); color: #fff; }
.btn-rfq-accent:hover { background: var(--accent-hover); color: #fff; }

/* === TRUST BAR === */
.trust-bar { background: #fff; border-bottom: 1px solid var(--grey-200); padding: 16px 0; }
.trust-bar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon { width: 36px; height: 36px; background: var(--grey-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.trust-text-main { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.trust-text-sub { font-size: 0.78rem; color: var(--grey-600); }

/* === SECTION HEADERS === */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--primary); }
.section-header p { color: var(--grey-600); margin-top: 8px; font-size: 1rem; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }

/* === CATEGORY GRID === */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.category-card {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 24px 20px; transition: all var(--transition); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.category-card:hover::before { transform: scaleX(1); }
.category-card-icon { font-size: 1.8rem; }
.category-card-name { font-weight: 700; font-size: 0.92rem; color: var(--primary); line-height: 1.3; }
.category-card-count { font-size: 0.8rem; color: var(--grey-600); }
.category-card-arrow { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 0.85rem; }

/* === PRODUCT CARDS (listing) === */
.product-listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.product-card {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.product-card-img { background: var(--grey-50); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--grey-200); }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform var(--transition); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-img .no-img { color: var(--grey-300); font-size: 3rem; }
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card-brand { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-600); }
.product-card-code { font-size: 1.05rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.product-card-type { font-size: 0.82rem; color: var(--grey-600); line-height: 1.4; }
.product-card-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.product-card-attr { background: var(--grey-100); border-radius: var(--radius-sm); padding: 3px 8px; font-size: 0.75rem; color: var(--grey-800); }
.product-card-actions { padding: 12px 16px; border-top: 1px solid var(--grey-200); display: flex; gap: 8px; }
.product-card-actions .btn { flex: 1; font-size: 0.8rem; padding: 8px 12px; }

/* === PRODUCT PAGE === */
.product-page { padding: 32px 0 64px; }
.product-layout {
  display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start;
  margin-bottom: 48px;
}
.product-image-wrap {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 32px; position: sticky; top: calc(var(--nav-h) + 20px);
}
.product-image-wrap img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.product-image-placeholder {
  aspect-ratio: 1/1; background: var(--grey-50); display: flex;
  align-items: center; justify-content: center; border-radius: var(--radius);
  color: var(--grey-400); font-size: 4rem;
}
.product-thumbnails { display: flex; gap: 8px; margin-top: 12px; }

.product-info { }
.product-brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.product-brand-badge {
  background: var(--primary); color: #fff; padding: 4px 12px;
  border-radius: var(--radius-sm); font-weight: 800; font-size: 0.9rem; letter-spacing: 1px;
}
.product-h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--grey-900); line-height: 1.2; margin-bottom: 8px; }
.product-type { font-size: 1rem; color: var(--grey-600); margin-bottom: 20px; }

.product-quick-specs {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
  padding: 16px; background: var(--grey-50); border-radius: var(--radius);
}
.quick-spec { text-align: center; }
.quick-spec-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-600); display: block; }
.quick-spec-value { font-size: 1rem; font-weight: 700; color: var(--primary); display: block; }

/* CTA Box */
.cta-box {
  background: var(--grey-50); border: 2px solid var(--grey-200); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
}
.cta-box-title { font-weight: 700; font-size: 1rem; color: var(--primary); margin-bottom: 16px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.cta-contact { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--grey-300); }
.cta-contact a {
  display: flex; align-items: center; gap: 8px; color: var(--grey-800);
  font-size: 0.9rem; font-weight: 600; transition: color var(--transition);
}
.cta-contact a:hover { color: var(--primary); }
.cta-availability { background: #fff; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; display: inline-block; margin-right: 6px; }
.avail-dot.in-stock { background: var(--success); }

/* Spec tables */
.spec-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.spec-section {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden;
}
.spec-section-header {
  background: var(--primary); color: #fff; padding: 12px 16px;
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) td { background: var(--grey-50); }
.spec-table td {
  padding: 10px 16px; border-bottom: 1px solid var(--grey-200); font-size: 0.88rem;
  vertical-align: middle;
}
.spec-table td:first-child { color: var(--grey-600); font-weight: 500; width: 55%; }
.spec-table td:last-child { font-weight: 600; color: var(--grey-900); }
.spec-table tr:last-child td { border-bottom: none; }

/* === FULL SPECS (full-width) === */
.full-spec-section {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.full-spec-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; cursor: pointer; background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200); font-weight: 700;
}
.full-spec-toggle:hover { background: var(--grey-100); }
.full-spec-body { overflow: hidden; }
.full-spec-table { width: 100%; border-collapse: collapse; }
.full-spec-table td { padding: 10px 20px; border-bottom: 1px solid var(--grey-200); font-size: 0.88rem; }
.full-spec-table td:first-child { color: var(--grey-600); width: 40%; font-weight: 500; }
.full-spec-table td:last-child { font-weight: 600; color: var(--grey-900); }
.full-spec-table tr:nth-child(even) td { background: var(--grey-50); }
.full-spec-table tr:last-child td { border-bottom: none; }

/* === RELATED PRODUCTS === */
.related-section { margin-bottom: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.related-card {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 16px 14px; text-decoration: none; color: inherit;
  transition: all var(--transition); display: flex; flex-direction: column; gap: 6px;
}
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow); color: inherit; }
.related-code { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.related-type { font-size: 0.78rem; color: var(--grey-600); }

/* === FAQ === */
.faq-section { margin-bottom: 48px; }
.faq-item { border: 1px solid var(--grey-200); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; cursor: pointer; background: #fff; font-weight: 600;
  font-size: 0.95rem; transition: background var(--transition);
}
.faq-question:hover { background: var(--grey-50); }
.faq-question .faq-icon { color: var(--accent); font-size: 1.2rem; font-weight: 700; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 16px 20px; border-top: 1px solid var(--grey-200); background: var(--grey-50); font-size: 0.9rem; color: var(--grey-800); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* === PAGINATION === */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 40px 0;
}
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition); color: var(--grey-800);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.disabled { opacity: 0.4; pointer-events: none; }
.page-ellipsis { color: var(--grey-600); padding: 0 4px; }

/* === CATEGORY PAGE === */
.category-page { padding: 32px 0 64px; }
.category-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filter-panel {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius);
  position: sticky; top: calc(var(--nav-h) + 20px); overflow: hidden;
}
.filter-panel-header {
  background: var(--primary); color: #fff; padding: 14px 16px;
  font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1px;
}
.filter-group { padding: 16px; border-bottom: 1px solid var(--grey-200); }
.filter-group-title { font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-600); margin-bottom: 10px; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.filter-option label { font-size: 0.85rem; cursor: pointer; color: var(--grey-800); }
.filter-option input[type="checkbox"] { accent-color: var(--primary); cursor: pointer; }
.filter-search { width: 100%; padding: 8px 12px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 10px; }
.filter-search:focus { outline: none; border-color: var(--primary); }

.category-content { }
.category-header { margin-bottom: 24px; }
.category-intro { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; font-size: 0.92rem; line-height: 1.7; color: var(--grey-800); }
.sort-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #fff; border: 1px solid var(--grey-200);
  border-radius: var(--radius); margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.sort-bar .count { font-size: 0.88rem; color: var(--grey-600); }
.sort-select { padding: 6px 12px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); font-size: 0.85rem; }

/* === RFQ PAGE === */
.rfq-page { padding: 32px 0 64px; }
.rfq-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.rfq-panel {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden;
}
.rfq-panel-header { background: var(--primary); color: #fff; padding: 16px 20px; font-weight: 700; font-size: 1rem; }
.rfq-panel-body { padding: 20px; }
.rfq-product-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.rfq-product-table th { padding: 10px 12px; background: var(--grey-100); text-align: left; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey-600); }
.rfq-product-table td { padding: 10px 12px; border-top: 1px solid var(--grey-200); font-size: 0.88rem; vertical-align: middle; }
.rfq-product-table .rfq-qty { width: 70px; padding: 4px 8px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); font-size: 0.88rem; text-align: center; }
.rfq-remove { background: none; border: none; color: var(--grey-400); font-size: 1.2rem; cursor: pointer; transition: color var(--transition); }
.rfq-remove:hover { color: var(--accent); }
.rfq-empty { padding: 48px 20px; text-align: center; color: var(--grey-600); }
.rfq-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.rfq-empty p { margin-bottom: 20px; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--grey-800); margin-bottom: 6px; }
.form-label .req { color: var(--accent); }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm); font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--transition); background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,48,87,0.1); }
.form-control.error { border-color: var(--accent); }
.form-error { color: var(--accent); font-size: 0.78rem; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.form-check label { font-size: 0.85rem; color: var(--grey-800); line-height: 1.5; }
.hp-field { display: none !important; } /* honeypot */

/* === ALERT === */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }

/* === RFQ FLOATING WIDGET === */
.rfq-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
}
.rfq-float-btn {
  background: var(--accent); color: #fff;
  border: none; border-radius: 50px; padding: 14px 22px;
  font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 16px rgba(232,0,45,0.4);
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.rfq-float-btn:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(232,0,45,0.5); transform: translateY(-2px); }
.rfq-float-count {
  background: #fff; color: var(--accent); border-radius: 50%;
  width: 22px; height: 22px; font-size: 0.78rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===================================================
   FLOATING CONTACT WIDGET (bottom-left)
   =================================================== */
#contact-fab-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none; /* wrapper is transparent — don't block page clicks */
}

/* Trigger button */
#contact-fab {
  width: 58px; height: 58px;
  background: var(--primary);
  color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,48,87,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  pointer-events: auto; /* always clickable */
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  flex-shrink: 0;
}
#contact-fab:hover {
  background: var(--primary-light);
  box-shadow: 0 6px 24px rgba(0,48,87,0.55);
  transform: translateY(-2px);
}
/* Pulsing ring to attract attention */
#contact-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0,48,87,0.35);
  animation: cw-pulse 2.2s ease-out infinite;
}
@keyframes cw-pulse {
  0%   { opacity: 1;   transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.55); }
  100% { opacity: 0;   transform: scale(1.55); }
}
/* Stop pulse when open */
#contact-fab-wrap.open #contact-fab::before { animation: none; opacity: 0; }
#contact-fab-wrap.open #contact-fab { background: #444; }

/* Label beside button */
#contact-fab-label {
  position: absolute;
  left: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0,48,87,0.3);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s;
}
#contact-fab-label::before {
  content: '';
  position: absolute;
  left: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--primary);
  border-left: none;
}
#contact-fab-wrap.open #contact-fab-label { opacity: 0; pointer-events: none; }

/* Options panel — display:none when closed = zero space, zero events */
#contact-options {
  display: none;
  flex-direction: column;
  gap: 8px;
}
#contact-fab-wrap.open #contact-options {
  display: flex;
  pointer-events: auto; /* restore clicks for all links inside when open */
  animation: cw-slide-in 0.22s ease forwards;
}
@keyframes cw-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Each contact option row */
.cw-option {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #fff;
  border-radius: 50px;
  padding: 10px 16px 10px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid rgba(0,0,0,0.06);
}
.cw-option:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  color: #1a1a1a;
}
.cw-option-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
}
.cw-option-icon.phone  { background: var(--primary); }
.cw-option-icon.whatsapp { background: #25D366; }
.cw-option-icon.email  { background: #E8830D; }
.cw-option-icon.rfq    { background: var(--accent); }

/* Header inside options */
#cw-header {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 2px 12px rgba(0,48,87,0.3);
  max-width: 240px;
}
#cw-header strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }

/* Responsive */
@media (max-width: 480px) {
  #contact-fab-wrap { bottom: 16px; left: 16px; }
  #contact-fab-label { display: none; }
  .cw-option { font-size: 0.82rem; padding: 9px 14px 9px 9px; }
}

/* === TOAST NOTIFICATION === */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 12px 24px;
  border-radius: 50px; font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 2000;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.toast.visible { opacity: 1; }

/* === SEARCH PAGE === */
.search-page { padding: 32px 0 64px; }
.search-header { margin-bottom: 32px; }
.search-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.search-count { color: var(--grey-600); font-size: 0.9rem; margin-top: 4px; }
.no-results { text-align: center; padding: 64px 20px; }
.no-results-icon { font-size: 4rem; margin-bottom: 20px; }
.no-results h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 12px; }
.no-results p { color: var(--grey-600); margin-bottom: 24px; }

/* === STATIC PAGES === */
.static-page { padding: 48px 0 80px; }
.static-page h1 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.static-page .page-date { color: var(--grey-600); font-size: 0.88rem; margin-bottom: 32px; }
.static-content { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 40px; max-width: 860px; }
.static-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 28px 0 12px; }
.static-content p { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.7; color: var(--grey-800); }
.static-content ul { margin: 0 0 16px 20px; list-style: disc; }
.static-content ul li { margin-bottom: 6px; font-size: 0.95rem; line-height: 1.7; color: var(--grey-800); }
.static-content a { color: var(--primary); text-decoration: underline; }

/* === FOOTER === */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-brand img { height: 36px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 280px; }
.footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { color: rgba(255,255,255,0.8); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; transition: color var(--transition); }
.footer-contact a:hover { color: #fff; }
.footer-col-title { font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 20px; }

/* SKF note */
.skf-disclaimer {
  background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 24px; padding-top: 16px;
  font-size: 0.76rem; color: rgba(255,255,255,0.4); line-height: 1.6;
}

/* === LOADING === */
.loading { display: flex; align-items: center; justify-content: center; padding: 48px; gap: 12px; color: var(--grey-600); }
.spinner { width: 24px; height: 24px; border: 3px solid var(--grey-300); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .product-layout { grid-template-columns: 360px 1fr; }
  .category-layout { grid-template-columns: 220px 1fr; }
  .rfq-layout { grid-template-columns: 1fr 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-image-wrap { position: static; }
  .category-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .rfq-layout { grid-template-columns: 1fr; }
  .spec-sections { grid-template-columns: 1fr; }
  .hero { padding: 40px 20px; }
  .hero-stats { gap: 20px; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .trust-bar-inner { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .header-search { display: none; }
  .header-search.mobile-open { display: block; width: 100%; position: absolute; top: var(--nav-h); left: 0; background: var(--primary); padding: 12px 16px; z-index: 200; }
  .hamburger { display: block; }
  .header-phone { display: none; }
  .nav-bar { display: none; }
  .nav-bar.open { display: block; }
  .nav-bar-inner { flex-direction: column; gap: 0; }
  .nav-link { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 14px 16px; }
  .product-listing { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .rfq-float { bottom: 16px; right: 16px; }
}
@media (max-width: 480px) {
  .product-listing { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .pagination { gap: 4px; }
  .page-link { width: 34px; height: 34px; }
  .btn-lg { padding: 12px 20px; }
  .hero h1 { font-size: 1.5rem; }
}

/* === PRINT === */
@media print {
  .site-header, .site-footer, .rfq-float, .nav-bar, #contact-fab-wrap, #cookie-bar { display: none; }
  .product-layout { grid-template-columns: 1fr; }
}

/* ===================================================
   COOKIE CONSENT BAR
   =================================================== */
#cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8500;
  background: rgba(20, 30, 48, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.88);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#cookie-bar.cb-visible {
  transform: translateY(0);
}
#cookie-bar p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  color: rgba(255,255,255,0.82);
}
#cookie-bar p strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
  font-size: 0.86rem;
}
#cookie-bar a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
  white-space: nowrap;
}
#cookie-bar a:hover { color: #fff; }
#cookie-bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
#cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
#cookie-accept:hover { background: var(--primary-light); }
#cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
#cookie-decline:hover { color: #fff; border-color: rgba(255,255,255,0.45); }
@media (max-width: 600px) {
  #cookie-bar { padding: 12px 16px; }
  #cookie-bar p { font-size: 0.78rem; }
  #cookie-accept, #cookie-decline { padding: 7px 12px; font-size: 0.76rem; }
}
