/* ScrewNet brand layer – loaded last. One font (matches the logo wordmark) and one button system. */
:root {
  --font-retail: "Figtree", Arial, sans-serif;
  --font-display: "Figtree", Arial, sans-serif;
  --snx-brand: #d4202c;        /* primary action (Add to cart, checkout, submit) */
  --snx-brand-dark: #b1121e;   /* primary hover */
  --snx-ink: #17232d;          /* secondary dark button (Buy now) */
  --snx-ink-dark: #0b141a;
}

/* ---------- Font: the whole site uses the logo's typeface ---------- */
html, body, button, input, select, textarea,
body.sn-storefront, body.sn-storefront *:not(svg):not(svg *):not(code):not(.coupon-copy > span):not([class*="mono"]) {
  font-family: "Figtree", Arial, sans-serif;
}
body.sn-storefront h1, body.sn-storefront h2, body.sn-storefront h3, body.sn-storefront h4,
body.sn-storefront .snx-footer, body.sn-storefront .snx-footer * { font-family: "Figtree", Arial, sans-serif !important; }
body.sn-storefront h1, body.sn-storefront h2, body.sn-storefront h3 { font-weight: 700 !important; letter-spacing: -.02em !important; }

/* ---------- Primary buttons: brand red ---------- */
body.sn-storefront .add-cart-button,
body.sn-storefront .sticky-bar-btn,
body.sn-storefront .product-card .card-quick-add,
body.sn-storefront .global-cart-drawer .drawer-checkout,
body.sn-storefront .bulk-submit-btn,
body.sn-storefront .submit-review-btn,
body.sn-storefront .sn-button,
body.sn-storefront .woocommerce #place_order,
body.sn-storefront .woocommerce .checkout-button,
body.sn-storefront .woocommerce button.button.alt {
  background: var(--snx-brand) !important; border: 1px solid var(--snx-brand) !important; color: #fff !important;
  font-weight: 700 !important; letter-spacing: .02em; border-radius: 6px !important; box-shadow: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
body.sn-storefront .add-cart-button:hover,
body.sn-storefront .sticky-bar-btn:hover,
body.sn-storefront .product-card .card-quick-add:hover,
body.sn-storefront .global-cart-drawer .drawer-checkout:hover,
body.sn-storefront .bulk-submit-btn:hover,
body.sn-storefront .submit-review-btn:hover,
body.sn-storefront .sn-button:hover,
body.sn-storefront .woocommerce #place_order:hover,
body.sn-storefront .woocommerce .checkout-button:hover,
body.sn-storefront .woocommerce button.button.alt:hover {
  background: var(--snx-brand-dark) !important; border-color: var(--snx-brand-dark) !important; color: #fff !important;
}
body.sn-storefront .add-cart-button svg, body.sn-storefront .sticky-bar-btn svg, body.sn-storefront .card-quick-add svg { color: #fff !important; stroke: currentColor; }

/* ---------- Buy now: solid dark, readable text, red on hover ---------- */
body.sn-storefront .pdp-buy-now-btn {
  width: 100% !important; min-height: 54px !important;
  background: var(--snx-ink) !important; border: 1px solid var(--snx-ink) !important; color: #fff !important;
  font-size: 17px !important; font-weight: 800 !important; letter-spacing: .06em !important; text-transform: uppercase;
  border-radius: 6px !important; box-shadow: none !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
body.sn-storefront .pdp-buy-now-btn span, body.sn-storefront .pdp-buy-now-btn svg { color: #fff !important; font-size: inherit !important; opacity: 1 !important; }
body.sn-storefront .pdp-buy-now-btn:hover:not(:disabled) { background: var(--snx-brand) !important; border-color: var(--snx-brand) !important; color: #fff !important; transform: translateY(-1px); }
body.sn-storefront .pdp-buy-now-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Add to cart on the PDP: same size as Buy now */
body.sn-storefront .pdp-qty-add-row .add-cart-button { min-height: 54px !important; font-size: 16px !important; text-transform: uppercase; }

/* ---------- Secondary buttons: outline, fill dark on hover ---------- */
body.sn-storefront .pdp-bulk-rfq-btn,
body.sn-storefront .button-outline,
body.sn-storefront .resource-download-btn,
body.sn-storefront .product-card .card-choose-options-btn {
  background: #fff !important; color: var(--snx-ink) !important; border: 1px solid #cfd6dc !important; font-weight: 700 !important; border-radius: 6px !important;
}
body.sn-storefront .pdp-bulk-rfq-btn:hover,
body.sn-storefront .button-outline:hover,
body.sn-storefront .resource-download-btn:hover,
body.sn-storefront .product-card .card-choose-options-btn:hover {
  background: var(--snx-ink) !important; color: #fff !important; border-color: var(--snx-ink) !important;
}

/* ---------- Product specifications table (single-value attributes) ---------- */
.pdp-attr-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 4px; border: 1px solid #e3e8ec; border-radius: 8px; overflow: hidden; background: #fff; font-size: 14px; }
.pdp-attr-table th, .pdp-attr-table td { padding: 11px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid #edf0f2; }
.pdp-attr-table tr:last-child th, .pdp-attr-table tr:last-child td { border-bottom: 0; }
.pdp-attr-table th { width: 42%; background: #f6f8f9; color: #5b6770; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.pdp-attr-table td { color: var(--snx-ink); font-weight: 600; }
@media (max-width: 767px) { .pdp-attr-table { font-size: 13px; } .pdp-attr-table th, .pdp-attr-table td { padding: 10px 12px; } .pdp-attr-table th { width: 46%; } }

/* Checkout login gate banner (account page) */
.snx-login-gate { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #f3c7cb; background: #fff5f5; border-radius: 10px; color: #17232d; }
.snx-login-gate svg { color: #d4202c; flex: none; margin-top: 2px; }
.snx-login-gate strong { display: block; font-size: 15px; }
.snx-login-gate span { display: block; margin-top: 2px; font-size: 13px; color: #5b6770; line-height: 1.5; }

/* ---------- Header: black, white logo, sticky ---------- */
body.sn-storefront .sn-utility { background: #000 !important; color: #d9dee2 !important; border-bottom: 1px solid #1c1f22; }
body.sn-storefront .sn-header {
  position: -webkit-sticky !important; position: sticky !important; top: 0 !important; z-index: 9999 !important;
  background: #0a0a0a !important; color: #fff !important; border-bottom: 1px solid #1f2327 !important; box-shadow: 0 6px 22px rgba(0,0,0,.28) !important;
}
body.admin-bar.sn-storefront .sn-header { top: 32px !important; }
body.sn-storefront .sn-header-main { min-height: 78px !important; }
body.sn-storefront .sn-navigation { border-top: 1px solid #1f2327 !important; background: #0a0a0a !important; }
body.sn-storefront .sn-navigation-inner { min-height: 46px !important; }
body.sn-storefront .sn-logo img { filter: none !important; }
body.sn-storefront .sn-logo > span { color: #aab3ba !important; }
body.sn-storefront .sn-header .sn-icon, body.sn-storefront .sn-header .sn-icon span, body.sn-storefront .sn-header .sn-icon svg { color: #fff !important; }
body.sn-storefront .sn-header .sn-icon:hover, body.sn-storefront .sn-header .sn-icon:hover span { color: #ff6b75 !important; }
body.sn-storefront .sn-desktop-nav a, body.sn-storefront .sn-nav-list a { color: #e8ecef !important; }
body.sn-storefront .sn-desktop-nav a:hover, body.sn-storefront .sn-nav-list .current-menu-item > a { color: #fff !important; }
body.sn-storefront .sn-categories > summary { color: #fff !important; }
body.sn-storefront .sn-categories > summary svg { color: #fff !important; }
body.sn-storefront .sn-navigation-inner > .sn-categories { border-right-color: #2a2f34 !important; }
body.sn-storefront .sn-rfq-link { color: #ff6b75 !important; }
body.sn-storefront .sn-rfq-link:hover { color: #fff !important; }
body.sn-storefront .sn-header-search form { background: #fff !important; border-color: #fff !important; }
body.sn-storefront .sn-header .cart-badge, body.sn-storefront .sn-header [data-sn-cart-count] { background: #d4202c !important; color: #fff !important; }
/* dropdowns that open from the black header stay white and readable */
body.sn-storefront .sn-category-links, body.sn-storefront .sn-category-links a { color: #17232d; }
/* announcement strip under the header scrolls away normally */
@media (max-width: 767px) { body.sn-storefront .sn-header-main { min-height: 64px !important; } }

/* Logo must not be blended into the (now black) header, and body must not become a scroll container (breaks sticky on mobile) */
body.sn-storefront .sn-logo img { mix-blend-mode: normal !important; opacity: 1 !important; filter: none !important; }
html, html body, body.sn-storefront { overflow-x: clip !important; overflow-y: visible !important; }

/* ---------- Top bar = running announcement marquee ---------- */
body.sn-storefront .sn-utility.sn-marquee { background: #000 !important; color: #fff !important; border-bottom: 1px solid #1c1f22; }
.sn-utility.sn-marquee .sn-utility-inner { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.sn-marquee__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.sn-marquee__track { display: flex; width: max-content; animation: snx-marquee 40s linear infinite; will-change: transform; }
.sn-marquee:hover .sn-marquee__track { animation-play-state: paused; }
.sn-marquee__group { display: flex; flex: none; }
.sn-marquee__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 46px 0 0; white-space: nowrap; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #fff; }
.sn-marquee__item svg { color: #ff4d58; flex: none; }
.sn-marquee__item a { color: #fff !important; font-weight: 800; text-decoration: none; border-bottom: 1px solid #ff4d58; }
.sn-marquee__item a:hover { color: #ff6b75 !important; }
.sn-utility.sn-marquee .sn-utility-links { display: flex; align-items: center; gap: 22px; flex: none; }
.sn-utility.sn-marquee .sn-utility-links a { color: #e8ecef; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; text-decoration: none; }
@keyframes snx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 767px) { .sn-utility.sn-marquee .sn-utility-links { display: none; } .sn-utility.sn-marquee .sn-utility-inner { min-height: 34px; } .sn-marquee__item { font-size: 11.5px; padding-right: 32px; } .sn-marquee__track { animation-duration: 28s; } }
@media (prefers-reduced-motion: reduce) { .sn-marquee__track { animation: none; } .sn-marquee__viewport { overflow-x: auto; } }
