/* Fastener Shop Premium — black + #FF5E2B, full width, flat industrial look.
   Fonts are inherited from your site (Elementor). Colours can be overridden in Settings. */
.fsp-scope{
  --fsp-primary: #111111;
  --fsp-accent: #FF5E2B;
  --fsp-ink: #111111;
  --fsp-muted: #666666;
  --fsp-line: #e3e3e3;
  --fsp-soft: #f4f4f4;
  --fsp-on-primary: #ffffff;
  --fsp-radius: 6px;
  --fsp-font: var(--e-global-typography-text-font-family, system-ui), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fsp-head: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, system-ui)), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--fsp-font);
  color: var(--fsp-ink);
  line-height: 1.5;
  box-sizing: border-box;
}
.fsp-scope *, .fsp-scope *::before, .fsp-scope *::after{ box-sizing: border-box; }
.fsp-scope button{ font-family: inherit; cursor: pointer; }
.fsp-scope h1,.fsp-scope h2,.fsp-scope h3,.fsp-scope h4{ font-family: var(--fsp-head); color: var(--fsp-ink); margin: 0; }

/* Full width (breaks out of boxed Elementor containers) */
.fsp-shop{ width: 100vw; max-width: 100vw; position: relative; left: 50%; margin-left: -50vw; padding: 24px clamp(14px, 3vw, 56px) 56px; }

/* ---------- Toolbar ---------- */
.fsp-toolbar{ display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fsp-search{ position: relative; flex: 1 1 320px; max-width: 480px; }
.fsp-search svg{ position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--fsp-muted); pointer-events: none; }
.fsp-search input{ width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; font: inherit; font-size: 15px; color: var(--fsp-ink); outline: none; }
.fsp-search input:focus{ border-color: var(--fsp-ink); box-shadow: 0 0 0 1px var(--fsp-ink); }
.fsp-tools{ display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fsp-count{ color: var(--fsp-muted); font-size: 14px; }
.fsp-select{ height: 46px; padding: 0 38px 0 14px; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; font: inherit; font-size: 14px; color: var(--fsp-ink); appearance: none; -webkit-appearance: none; outline: none; }
.fsp-select:focus{ border-color: var(--fsp-ink); }

.fsp-chips{ display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--fsp-line); scrollbar-width: thin; }
.fsp-pill{ flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 4px; border: 1px solid #cfcfcf; background: #fff; color: var(--fsp-ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.fsp-pill small{ font-weight: 600; font-size: 12px; color: var(--fsp-muted); }
.fsp-pill:hover{ border-color: var(--fsp-ink); }
.fsp-pill[aria-pressed="true"]{ background: var(--fsp-ink); border-color: var(--fsp-ink); color: #fff; }
.fsp-pill[aria-pressed="true"] small{ color: var(--fsp-accent); }

/* ---------- Grid + cards ---------- */
.fsp-grid{ display: grid; grid-template-columns: repeat(var(--fsp-cols, 4), minmax(0, 1fr)); gap: 22px; }
.fsp-card{ display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); overflow: hidden; text-decoration: none !important; color: inherit; transition: border-color .2s, box-shadow .2s; outline: none; position: relative; }
.fsp-card::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fsp-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.fsp-card:hover, .fsp-card:focus-visible{ border-color: #bdbdbd; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.fsp-card:hover::after, .fsp-card:focus-visible::after{ transform: scaleX(1); }
.fsp-card:focus-visible{ outline: 2px solid var(--fsp-ink); outline-offset: 2px; }
.fsp-card-img{ position: relative; aspect-ratio: 1 / 1; background: var(--fsp-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--fsp-line); }
.fsp-card-img img{ width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.fsp-ph{ width: 46%; height: auto; color: #c4c4c4; }
.fsp-badge{ position: absolute; top: 0; left: 0; background: var(--fsp-ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
.fsp-card-body{ padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fsp-card-title{ font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--fsp-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.fsp-card-mat{ font-size: 13.5px; color: var(--fsp-muted); }
.fsp-card-foot{ margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.fsp-card-foot .fsp-sz{ color: var(--fsp-muted); }
.fsp-card-foot .fsp-view{ color: var(--fsp-accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.fsp-card:hover .fsp-view{ text-decoration: underline; }

.fsp-empty{ grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--fsp-muted); border: 1px dashed #cfcfcf; border-radius: var(--fsp-radius); }
.fsp-more{ display: flex; justify-content: center; margin-top: 32px; }
.fsp-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 28px; border-radius: 4px; border: 2px solid var(--fsp-ink); background: var(--fsp-ink); color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s; }
.fsp-btn:hover{ background: var(--fsp-accent); border-color: var(--fsp-accent); color: #fff; }
.fsp-btn.fsp-ghost{ background: #fff; color: var(--fsp-ink); }
.fsp-btn.fsp-ghost:hover{ background: var(--fsp-ink); border-color: var(--fsp-ink); color: #fff; }
.fsp-btn.fsp-hot{ background: var(--fsp-accent); border-color: var(--fsp-accent); color: #fff; }
.fsp-btn.fsp-hot:hover{ background: var(--fsp-ink); border-color: var(--fsp-ink); }
.fsp-btn.fsp-sm{ height: 44px; padding: 0 18px; font-size: 13px; }

/* ---------- Modal ---------- */
.fsp-modal, .fsp-drawer{ position: fixed; inset: 0; z-index: 999990; display: flex; align-items: center; justify-content: center; padding: 24px; }
.fsp-modal[hidden], .fsp-drawer[hidden]{ display: none; }
.fsp-backdrop{ position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.fsp-dialog{ position: relative; width: 100%; max-width: 1180px; max-height: calc(100vh - 48px); background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.4); outline: none; }
.fsp-dlg-bar{ display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 22px; border-bottom: 1px solid var(--fsp-line); background: #fff; }
.fsp-crumb{ font-size: 13px; color: var(--fsp-muted); }
.fsp-crumb b{ color: var(--fsp-ink); font-weight: 700; }
.fsp-nav{ display: flex; gap: 6px; }
.fsp-ico{ width: 38px; height: 38px; border-radius: 4px; border: 1px solid #cfcfcf; background: #fff; color: var(--fsp-ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.fsp-ico:hover{ background: var(--fsp-ink); border-color: var(--fsp-ink); color: #fff; }
.fsp-ico svg{ width: 18px; height: 18px; }
.fsp-dlg-body{ display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); min-height: 0; flex: 1; overflow: hidden; }
.fsp-gal{ background: var(--fsp-soft); display: flex; gap: 12px; padding: 22px; border-right: 1px solid var(--fsp-line); min-height: 0; }
.fsp-thumbs{ display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 100%; }
.fsp-thumb{ width: 64px; height: 64px; flex: 0 0 auto; border: 2px solid transparent; border-radius: 4px; background: #fff; padding: 3px; overflow: hidden; }
.fsp-thumb img{ width: 100%; height: 100%; object-fit: contain; display: block; }
.fsp-thumb[aria-current="true"], .fsp-thumb:hover{ border-color: var(--fsp-accent); }
.fsp-stage{ flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; background: #fff; border: 1px solid var(--fsp-line); border-radius: 4px; padding: 10px; }
.fsp-stage img{ max-width: 100%; max-height: 62vh; object-fit: contain; }
.fsp-stage .fsp-ph{ width: 52%; }
.fsp-info{ padding: 26px 30px; overflow-y: auto; min-height: 0; }
.fsp-i-cat{ display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fsp-accent); margin-bottom: 4px; }
.fsp-i-title{ font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.fsp-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fsp-tag{ display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 3px; background: var(--fsp-soft); color: var(--fsp-ink); border: 1px solid var(--fsp-line); }
.fsp-tag.ok{ background: #fff; border-color: var(--fsp-accent); color: var(--fsp-accent); }
.fsp-i-desc{ color: #444; font-size: 15px; margin: 0 0 18px; }
.fsp-sec{ border-top: 1px solid var(--fsp-line); padding: 16px 0; }
.fsp-sec-h{ display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.fsp-sec-h span{ font-weight: 500; font-size: 13px; color: var(--fsp-muted); }
.fsp-seg{ display: inline-flex; border: 1px solid #cfcfcf; border-radius: 4px; overflow: hidden; }
.fsp-seg button{ border: 0; background: #fff; padding: 9px 22px; font-size: 14px; font-weight: 700; color: var(--fsp-ink); }
.fsp-seg button + button{ border-left: 1px solid #cfcfcf; }
.fsp-seg button[aria-pressed="true"]{ background: var(--fsp-ink); color: #fff; }
.fsp-opts{ display: flex; flex-wrap: wrap; gap: 8px; max-height: 168px; overflow-y: auto; padding: 2px; margin: -2px; }
.fsp-opt{ min-width: 56px; height: 40px; padding: 0 13px; border-radius: 4px; border: 1px solid #cfcfcf; background: #fff; color: var(--fsp-ink); font-size: 14px; font-weight: 600; }
.fsp-opt:hover{ border-color: var(--fsp-ink); }
.fsp-opt[aria-pressed="true"]{ border-color: var(--fsp-accent); background: var(--fsp-accent); color: #fff; }
.fsp-field{ width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 4px; font: inherit; font-size: 14.5px; color: var(--fsp-ink); outline: none; background: #fff; resize: vertical; }
.fsp-field:focus{ border-color: var(--fsp-ink); box-shadow: 0 0 0 1px var(--fsp-ink); }
.fsp-sec.fsp-err{ animation: fspShake .35s; }
.fsp-sec.fsp-err .fsp-sec-h{ color: #c0200b; }
@keyframes fspShake{ 20%,60%{ transform: translateX(-4px);} 40%,80%{ transform: translateX(4px);} }
.fsp-errmsg{ color: #c0200b; font-size: 13px; margin-top: 8px; font-weight: 600; }
.fsp-qty{ display: inline-flex; align-items: center; border: 1px solid #cfcfcf; border-radius: 4px; overflow: hidden; }
.fsp-qty button{ width: 42px; height: 44px; border: 0; background: var(--fsp-soft); font-size: 20px; font-weight: 600; color: var(--fsp-ink); }
.fsp-qty button:hover{ background: var(--fsp-ink); color: #fff; }
.fsp-qty input{ width: 76px; height: 44px; border: 0; text-align: center; font: inherit; font-size: 16px; font-weight: 700; outline: none; -moz-appearance: textfield; }
.fsp-qty input::-webkit-outer-spin-button, .fsp-qty input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.fsp-sum{ background: var(--fsp-soft); border-left: 3px solid var(--fsp-accent); padding: 11px 14px; font-size: 14px; margin: 4px 0 14px; }
.fsp-sum b{ color: var(--fsp-ink); }
.fsp-cta{ display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: -26px; background: #fff; padding: 12px 0 4px; border-top: 1px solid var(--fsp-line); }
.fsp-cta .fsp-btn{ flex: 1 1 200px; height: 52px; }
.fsp-trust{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.fsp-trust div{ text-align: center; font-size: 12.5px; color: #444; padding: 10px 6px; border: 1px solid var(--fsp-line); border-radius: 4px; font-weight: 600; }
.fsp-trust svg{ width: 20px; height: 20px; display: block; margin: 0 auto 4px; color: var(--fsp-accent); }

/* ---------- Enquiry FAB + drawer ---------- */
.fsp-fab{ position: fixed; right: 20px; bottom: 20px; z-index: 999980; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 4px; border: 0; background: var(--fsp-accent); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.fsp-fab[hidden]{ display: none; }
.fsp-fab:hover{ background: var(--fsp-ink); }
.fsp-fab svg{ width: 20px; height: 20px; }
.fsp-fab em{ font-style: normal; background: #fff; color: var(--fsp-ink); min-width: 24px; height: 24px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding: 0 7px; }
.fsp-drawer{ justify-content: flex-end; padding: 0; z-index: 999995; }
.fsp-panel{ position: relative; width: 100%; max-width: 440px; height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.3); }
.fsp-panel header{ display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 3px solid var(--fsp-accent); background: var(--fsp-ink); }
.fsp-panel h3{ font-size: 18px; color: #fff; }
.fsp-panel header .fsp-ico{ background: transparent; border-color: #555; color: #fff; }
.fsp-items{ flex: 1; overflow-y: auto; padding: 6px 20px; }
.fsp-it{ display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--fsp-line); }
.fsp-it b{ font-size: 15px; }
.fsp-it .fsp-it-s{ grid-column: 1; font-size: 13.5px; color: var(--fsp-muted); }
.fsp-it .fsp-it-q{ grid-column: 1; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.fsp-it .fsp-it-q button{ width: 30px; height: 30px; border-radius: 4px; border: 1px solid #cfcfcf; background: #fff; font-weight: 700; }
.fsp-it .fsp-it-q span{ min-width: 36px; text-align: center; font-weight: 700; }
.fsp-it .fsp-rm{ grid-column: 2; grid-row: 1 / span 3; align-self: start; border: 0; background: transparent; color: #c0200b; font-size: 13px; font-weight: 600; padding: 4px; }
.fsp-none{ text-align: center; color: var(--fsp-muted); padding: 60px 10px; }
.fsp-panel footer{ padding: 16px 20px 20px; border-top: 1px solid var(--fsp-line); display: grid; gap: 10px; background: var(--fsp-soft); }
.fsp-panel footer .fsp-btn{ width: 100%; height: 48px; }
.fsp-wa{ background: #1fa855 !important; border-color: #1fa855 !important; color: #fff !important; }
.fsp-row2{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fsp-toast{ position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 1000010; background: #111; color: #fff; padding: 12px 18px; border-radius: 4px; border-left: 4px solid var(--fsp-accent); font-size: 14px; font-weight: 600; max-width: 90vw; }
html.fsp-lock, html.fsp-lock body{ overflow: hidden !important; }
body{ overflow-x: clip; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px){ .fsp-grid{ grid-template-columns: repeat(min(var(--fsp-cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 860px){
  .fsp-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fsp-card-body{ padding: 10px 11px 12px; }
  .fsp-card-title{ font-size: 15px; }
  .fsp-modal{ padding: 0; align-items: flex-end; }
  .fsp-dialog{ max-height: 100vh; height: 100vh; border-radius: 0; }
  .fsp-dlg-body{ grid-template-columns: 1fr; overflow-y: auto; display: block; }
  .fsp-gal{ border-right: 0; border-bottom: 1px solid var(--fsp-line); padding: 14px; flex-direction: column-reverse; }
  .fsp-thumbs{ flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .fsp-stage{ min-height: 230px; }
  .fsp-stage img{ max-height: 40vh; }
  .fsp-info{ overflow: visible; padding: 18px 16px 26px; }
  .fsp-cta{ bottom: 0; position: sticky; flex-wrap: nowrap; gap: 8px; }
  .fsp-cta .fsp-btn{ flex: 1 1 0; height: 48px; padding: 0 8px; font-size: 13px; }
}
@media (max-width: 480px){
  .fsp-card-foot .fsp-sz{ display: none; }
  .fsp-toolbar{ flex-direction: column; align-items: stretch; }
  .fsp-search{ max-width: none; }
  .fsp-tools{ justify-content: space-between; }
  .fsp-trust{ grid-template-columns: 1fr; }
  .fsp-fab{ right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce){ .fsp-scope *{ animation: none !important; transition: none !important; } }
