/**
 * FASTENEXX INDUSTRIAL E-COMMERCE STYLESHEET
 * Matching input/demo.jpeg specification
 */

:root {
  --fx-bg-black: #0a0b0d;
  --fx-bg-header: #0e1013;
  --fx-bg-nav: #14171c;
  --fx-bg-card: #191c22;
  --fx-bg-card-hover: #20242c;
  --fx-bg-input: #1a1d23;
  --fx-border-dark: #272c36;
  --fx-border-subtle: #1e2229;
  
  --fx-amber: #f59e0b;
  --fx-amber-hover: #d97706;
  --fx-amber-light: #fef3c7;
  --fx-amber-glow: rgba(245, 158, 11, 0.25);
  
  --fx-silver: #c5cad0;
  --fx-silver-light: #e5e7eb;
  --fx-text-muted: #9ca3af;
  --fx-text-white: #ffffff;
  --fx-text-dark: #111827;

  --fx-success: #10b981;
  --fx-danger: #ef4444;
  --fx-info: #0284c7;

  --fx-radius: 6px;
  --fx-radius-pill: 50px;
  --fx-font-main: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

body {
  font-family: var(--fx-font-main);
  background-color: #0f1216;
  color: #e2e8f0;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* =======================================================
   HEADER MATCHING DEMO.JPEG
   ======================================================= */
.fx-topbar {
  background: #08090b;
  font-size: 12px;
  color: var(--fx-text-muted);
  padding: 6px 0;
  border-bottom: 1px solid #1a1d23;
}
.fx-topbar a {
  color: var(--fx-silver);
  margin-left: 16px;
}
.fx-topbar a:hover {
  color: var(--fx-amber);
}

.fx-main-header {
  background: var(--fx-bg-header);
  padding: 16px 0;
  border-bottom: 1px solid var(--fx-border-dark);
}

/* LOGO */
.fx-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.fx-logo-emblem {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(var(--fx-amber) 0deg 180deg, var(--fx-silver) 180deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
  position: relative;
  flex-shrink: 0;
}
.fx-logo-inner {
  width: 100%;
  height: 100%;
  background: #111317;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2e3440;
}
.fx-logo-inner i {
  color: var(--fx-silver);
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}
.fx-brand-text {
  display: flex;
  flex-direction: column;
}
.fx-brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.1;
  text-transform: uppercase;
}
.fx-brand-tagline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--fx-amber);
  text-transform: uppercase;
  margin-top: 3px;
}

/* SEARCH BAR */
.fx-search-bar {
  display: flex;
  align-items: center;
  background: var(--fx-bg-input);
  border: 1.5px solid var(--fx-border-dark);
  border-radius: var(--fx-radius-pill);
  padding: 2px 4px 2px 18px;
  transition: all 0.25s ease;
  width: 100%;
}
.fx-search-bar:focus-within {
  border-color: var(--fx-amber);
  box-shadow: 0 0 0 3px var(--fx-amber-glow);
}
.fx-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  width: 100%;
  padding: 10px 0;
}
.fx-search-bar input::placeholder {
  color: #717d91;
}
.fx-search-bar button {
  background: var(--fx-amber);
  color: #0b0c0e;
  border: none;
  width: 44px;
  height: 38px;
  border-radius: var(--fx-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.2s;
  flex-shrink: 0;
}
.fx-search-bar button:hover {
  background: #fbbf24;
}

/* HEADER USER & CART BUTTONS */
.fx-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.fx-action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.fx-action-item:hover {
  color: var(--fx-amber);
}
.fx-action-item i {
  font-size: 18px;
}
.fx-divider {
  width: 1px;
  height: 20px;
  background: var(--fx-border-dark);
}
.fx-cart-badge {
  background: var(--fx-amber);
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 4px;
}

/* =======================================================
   NAVBAR (MATCHING DEMO.JPEG)
   ======================================================= */
.fx-nav-strip {
  background: var(--fx-bg-nav);
  border-bottom: 1px solid var(--fx-border-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.fx-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.fx-nav-links::-webkit-scrollbar {
  display: none;
}
.fx-nav-item {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  color: #e2e8f0;
  text-transform: uppercase;
  transition: all 0.2s;
}
.fx-nav-item:hover {
  color: var(--fx-amber);
  background: rgba(245, 158, 11, 0.06);
}
.fx-nav-item.all-cats {
  color: var(--fx-amber);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
}
.fx-nav-sep {
  color: #333a46;
  padding: 0 4px;
}
.fx-bulk-orders-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: var(--fx-radius);
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.fx-bulk-orders-cta:hover {
  background: var(--fx-amber);
  color: #0a0b0d;
}
.fx-bb-badge {
  width: 26px;
  height: 26px;
  background: var(--fx-amber);
  color: #0b0c0e;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
}

/* =======================================================
   HERO BANNER
   ======================================================= */
.fx-hero-section {
  background: linear-gradient(135deg, #0e1116 0%, #171b22 60%, #1e242e 100%);
  border-bottom: 1px solid var(--fx-border-dark);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
.fx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--fx-amber);
  color: var(--fx-amber);
  padding: 4px 14px;
  border-radius: var(--fx-radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.fx-hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}
.fx-hero-title span {
  color: var(--fx-amber);
}
.fx-hero-subtitle {
  font-size: 16px;
  color: var(--fx-text-muted);
  margin-bottom: 28px;
  max-width: 540px;
}
.fx-btn-amber {
  background: var(--fx-amber);
  color: #0a0b0d;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--fx-radius);
  border: none;
  font-size: 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
  box-shadow: 0 4px 14px var(--fx-amber-glow);
}
.fx-btn-amber:hover {
  background: #fbbf24;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.fx-btn-outline {
  border: 1.5px solid var(--fx-border-dark);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--fx-radius);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.fx-btn-outline:hover {
  border-color: var(--fx-amber);
  color: var(--fx-amber);
  background: rgba(245, 158, 11, 0.05);
}

/* =======================================================
   PRODUCT CARDS & SPEC BADGES
   ======================================================= */
.fx-card {
  background: var(--fx-bg-card);
  border: 1px solid var(--fx-border-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.fx-card:hover {
  transform: translateY(-4px);
  border-color: var(--fx-amber);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}
.fx-card-img-wrap {
  height: 200px;
  background: #111419;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--fx-border-subtle);
}
.fx-card-img-wrap > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.fx-card-img-wrap img {
  max-height: 174px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.fx-card:hover .fx-card-img-wrap img {
  transform: scale(1.06);
}
.fx-zoom-trigger-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 6;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(17, 20, 25, 0.88);
  border: 1px solid var(--fx-border-dark);
  color: var(--fx-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}
.fx-zoom-trigger-btn:hover {
  background: var(--fx-amber);
  border-color: var(--fx-amber);
  color: #0a0b0d;
  transform: scale(1.08);
}
.fx-grade-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(17, 20, 25, 0.9);
  border: 1px solid #10b981;
  color: #10b981;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.fx-din-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(17, 20, 25, 0.9);
  border: 1px solid var(--fx-amber);
  color: var(--fx-amber);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}
.fx-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
  background: var(--fx-bg-card);
}

/* ===== Product image zoom: lightbox + detail-page hover magnifier ===== */
.fx-zoom-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 9, 11, 0.94);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
}
.fx-zoom-overlay.open { display: flex; }
.fx-zoom-stage {
  width: min(86vw, 86vh, 760px); aspect-ratio: 1 / 1;
  overflow: hidden; border-radius: 10px; cursor: zoom-in;
  background: #111419; border: 1px solid var(--fx-border-dark);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.fx-zoom-stage img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform 0.12s ease-out;
}
.fx-zoom-close {
  position: absolute; top: 18px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--fx-bg-card); border: 1px solid var(--fx-border-dark);
  color: #fff; font-size: 18px; cursor: pointer;
}
.fx-zoom-close:hover { background: var(--fx-amber); color: #000; border-color: var(--fx-amber); }
.fx-zoom-caption { color: #fff; font-weight: 700; margin-top: 14px; text-align: center; max-width: 760px; }
.fx-zoom-hint { color: var(--fx-text-muted); font-size: 12px; margin-top: 4px; }

.fx-detail-zoom {
  position: relative; overflow: hidden; border-radius: 8px;
  background: #111419; border: 1px solid var(--fx-border-subtle);
  cursor: zoom-in; aspect-ratio: 1 / 1; max-height: 460px; margin: 0 auto;
}
.fx-detail-zoom img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform 0.12s ease-out;
}
.fx-detail-zoom .fx-zoom-trigger-btn { width: 38px; height: 38px; font-size: 15px; }

/* ===== Searchable Filter Combobox (Material Grade & DIN / ISO Standard) ===== */
.fx-combo { position: relative; }
.fx-combo-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fx-combo-input {
  padding-right: 54px !important;
  cursor: text;
}
.fx-combo-clear {
  position: absolute;
  right: 28px;
  background: transparent;
  border: none;
  color: var(--fx-text-muted);
  font-size: 13px;
  padding: 2px 5px;
  cursor: pointer;
  line-height: 1;
}
.fx-combo-clear:hover { color: var(--fx-amber); }
.fx-combo-chevron {
  position: absolute;
  right: 10px;
  color: var(--fx-text-muted);
  font-size: 11px;
  pointer-events: none;
}
.fx-combo-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #13161c;
  border: 1px solid var(--fx-border-dark);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75);
  z-index: 1040;
  display: none;
  padding: 4px;
}
.fx-combo.open .fx-combo-menu { display: block; }
.fx-combo-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #e2e8f0;
  cursor: pointer;
}
.fx-combo-option:hover,
.fx-combo-option.active {
  background: rgba(245, 158, 11, 0.16);
  color: var(--fx-amber);
}
.fx-combo-count {
  font-size: 11px;
  color: var(--fx-text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
  margin-left: 8px;
}
.fx-combo-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--fx-text-muted);
  text-align: center;
}

/* ===== Header Live Search Auto-Suggestions ===== */
.fx-search-wrap { position: relative; width: 100%; }
.fx-suggest-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #13161c;
  border: 1px solid var(--fx-border-dark);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.85);
  z-index: 1080;
  display: none;
  max-height: 460px;
  overflow-y: auto;
}
.fx-suggest-box.open { display: block; }
.fx-suggest-section {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fx-amber);
  padding: 8px 14px 4px;
  background: #0e1015;
  border-bottom: 1px solid var(--fx-border-subtle);
}
.fx-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  color: #e5e7eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}
.fx-suggest-item:hover,
.fx-suggest-item.active {
  background: rgba(245, 158, 11, 0.14);
  color: #ffffff;
}
.fx-suggest-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #111419;
  border: 1px solid var(--fx-border-dark);
  object-fit: contain;
  flex-shrink: 0;
  padding: 2px;
}
.fx-suggest-meta {
  min-width: 0;
  flex: 1;
}
.fx-suggest-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-suggest-sub {
  font-size: 11px;
  color: var(--fx-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.fx-suggest-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-amber);
  white-space: nowrap;
}
.fx-suggest-footer {
  display: block;
  text-align: center;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-amber);
  background: #0e1015;
  border-top: 1px solid var(--fx-border-dark);
  text-decoration: none;
}
.fx-suggest-footer:hover {
  background: var(--fx-amber);
  color: #0a0b0d;
}
.fx-suggest-mark {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border-radius: 2px;
  padding: 0 2px;
}

/* ===== Sticky Top Header & Sticky Catalog LHS Filter Sidebar ===== */
.fx-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1060;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}
@media (min-width: 768px) {
  .fx-sticky-sidebar {
    position: sticky;
    top: 148px;
    max-height: calc(100vh - 164px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #272c36 #111419;
  }
  .fx-sticky-sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .fx-sticky-sidebar::-webkit-scrollbar-track {
    background: #111419;
    border-radius: 6px;
  }
  .fx-sticky-sidebar::-webkit-scrollbar-thumb {
    background: #2c3340;
    border-radius: 6px;
  }
  .fx-sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--fx-amber);
  }
}
.fx-card-sku {
  font-size: 11px;
  color: var(--fx-text-muted);
  font-family: monospace;
}
.fx-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 6px 0 10px;
  line-height: 1.35;
  height: 40px;
  overflow: hidden;
}
.fx-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.fx-spec-tag {
  background: #111419;
  border: 1px solid #232832;
  color: var(--fx-silver);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}
.fx-card-pricing {
  margin-top: auto;
  border-top: 1px solid #222731;
  padding-top: 12px;
}
.fx-unit-price {
  font-size: 11px;
  color: var(--fx-text-muted);
}
.fx-main-price {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}
.fx-main-price span {
  color: var(--fx-amber);
  font-size: 13px;
}
.fx-pack-pill {
  font-size: 12px;
  color: var(--fx-silver);
  margin-bottom: 8px;
}

/* =======================================================
   TRUST BAR & VALUE PROPS
   ======================================================= */
.fx-trust-bar {
  background: #13161c;
  border-top: 1px solid var(--fx-border-dark);
  border-bottom: 1px solid var(--fx-border-dark);
  padding: 24px 0;
}
.fx-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fx-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--fx-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.fx-trust-text h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}
.fx-trust-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--fx-text-muted);
}

/* =======================================================
   WHATSAPP FLOATING BUTTON
   ======================================================= */
.fx-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fx-whatsapp-btn:hover {
  transform: scale(1.12);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}
.fx-whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: #181c22;
  color: #ffffff;
  border: 1px solid var(--fx-border-dark);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* =======================================================
   FOOTER
   ======================================================= */
.fx-footer {
  background: #08090b;
  border-top: 1px solid var(--fx-border-dark);
  padding: 50px 0 20px;
  font-size: 13px;
  color: var(--fx-text-muted);
}
.fx-footer h5 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}
.fx-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fx-footer ul li {
  margin-bottom: 9px;
}
.fx-footer ul li a:hover {
  color: var(--fx-amber);
}
.fx-footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1a1e24;
  font-size: 12px;
}

/* ADMIN STYLING */
.fx-admin-sidebar {
  background: #0c0e12;
  border-right: 1px solid var(--fx-border-dark);
  min-height: 100vh;
}
.fx-admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #94a3b8;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.fx-admin-nav a:hover,
.fx-admin-nav a.active {
  background: rgba(245, 158, 11, 0.08);
  color: #ffffff;
  border-left-color: var(--fx-amber);
}
