/* SIOGEN Client Connect — B2B catalog + RFQ basket (quote-only, no prices). */
.scc-catalog { --scc-brand:#2e7d32; --scc-ink:#1b1b1b; --scc-muted:#6b7280;
  --scc-line:#e5e7eb; --scc-bg:#ffffff; --scc-soft:#f6f8f6;
  color:var(--scc-ink); font-size:15px; }
.scc-heading { margin:0 0 16px; }

/* Toolbar */
.scc-toolbar { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center;
  justify-content:space-between; margin:0 0 18px; }
.scc-search { display:flex; gap:6px; flex:1 1 240px; max-width:420px; }
.scc-search input[type=search] { flex:1; padding:8px 10px; border:1px solid var(--scc-line);
  border-radius:8px; font-size:14px; }
.scc-search button { padding:8px 14px; border:0; border-radius:8px; background:var(--scc-brand);
  color:#fff; font-weight:600; cursor:pointer; }
.scc-cats { display:flex; flex-wrap:wrap; gap:6px; }
.scc-chip { display:inline-block; padding:5px 12px; border:1px solid var(--scc-line);
  border-radius:999px; font-size:13px; text-decoration:none; color:var(--scc-ink); background:#fff; }
.scc-chip.is-active { background:var(--scc-brand); border-color:var(--scc-brand); color:#fff; }

/* Grid */
.scc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.scc-card { display:flex; flex-direction:column; border:1px solid var(--scc-line);
  border-radius:12px; overflow:hidden; background:var(--scc-bg); }
.scc-card-media { display:block; aspect-ratio:4/3; background:var(--scc-soft);
  display:flex; align-items:center; justify-content:center; overflow:hidden; }
.scc-card-media img { width:100%; height:100%; object-fit:cover; }
.scc-noimg { color:var(--scc-brand); font-weight:800; letter-spacing:2px; opacity:.25; font-size:20px; }
.scc-card-body { padding:12px 12px 6px; flex:1; }
.scc-card-cat { font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--scc-brand); font-weight:700; }
.scc-card-name { display:block; margin-top:3px; font-weight:600; color:var(--scc-ink); text-decoration:none; line-height:1.25; }
.scc-card-sku { font-size:12px; color:var(--scc-muted); font-family:ui-monospace,Menlo,monospace; margin-top:2px; }
.scc-card-desc { font-size:13px; color:var(--scc-muted); margin:8px 0 0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.scc-card-actions { display:flex; gap:8px; padding:10px 12px 12px; }

/* Buttons */
.scc-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:8px 12px; border-radius:8px; border:1px solid var(--scc-brand); background:var(--scc-brand);
  color:#fff; font-size:13px; font-weight:600; cursor:pointer; text-decoration:none; }
.scc-btn-ghost { background:#fff; color:var(--scc-brand); }
.scc-add { flex:1; }
.scc-add.is-added { background:#155724; border-color:#155724; }

/* Pager */
.scc-pager { display:flex; gap:6px; justify-content:center; margin:20px 0 0; }
.scc-page { padding:6px 11px; border:1px solid var(--scc-line); border-radius:8px;
  text-decoration:none; color:var(--scc-ink); }
.scc-page.is-active { background:var(--scc-brand); border-color:var(--scc-brand); color:#fff; }
.scc-empty { color:var(--scc-muted); padding:20px 0; }

/* Detail */
.scc-back { display:inline-block; margin-bottom:14px; color:var(--scc-brand); text-decoration:none; font-size:14px; }
.scc-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:26px; }
.scc-detail-media { background:var(--scc-soft); border:1px solid var(--scc-line); border-radius:12px;
  min-height:260px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.scc-detail-media img { width:100%; height:100%; object-fit:cover; }
.scc-detail-name { margin:6px 0 4px; font-size:24px; }
.scc-detail-sku { color:var(--scc-muted); font-size:13px; margin-bottom:12px; }
.scc-detail-desc { color:#333; line-height:1.6; }
.scc-specs { width:100%; border-collapse:collapse; margin:14px 0; font-size:14px; }
.scc-specs th, .scc-specs td { text-align:left; padding:7px 10px; border-bottom:1px solid var(--scc-line); vertical-align:top; }
.scc-specs th { width:40%; color:var(--scc-muted); font-weight:600; }
.scc-detail-actions { display:flex; align-items:center; gap:12px; margin-top:16px; flex-wrap:wrap; }
.scc-qtylabel { font-size:13px; color:var(--scc-muted); }
.scc-qty { width:70px; padding:7px 8px; border:1px solid var(--scc-line); border-radius:8px; margin-left:6px; }
@media (max-width:640px){ .scc-detail-grid { grid-template-columns:1fr; } }

/* RFQ basket — floating drawer */
.scc-fab { position:fixed; right:20px; bottom:20px; z-index:9998; border:0; border-radius:999px;
  padding:12px 18px; background:var(--scc-brand); color:#fff; font-weight:700; cursor:pointer;
  box-shadow:0 6px 20px rgba(0,0,0,.18); }
.scc-cart-count { display:inline-block; min-width:20px; padding:1px 6px; margin-left:6px;
  background:#fff; color:var(--scc-brand); border-radius:999px; font-size:12px; text-align:center; }
.scc-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:9998; }
.scc-drawer { position:fixed; top:0; right:0; height:100%; width:min(420px,92vw); z-index:9999;
  background:#fff; box-shadow:-8px 0 30px rgba(0,0,0,.2); overflow-y:auto; padding:22px 20px 40px; }
.scc-drawer-close { position:absolute; top:10px; right:14px; border:0; background:none;
  font-size:26px; line-height:1; cursor:pointer; color:var(--scc-muted); }
.scc-inline { border:1px solid var(--scc-line); border-radius:12px; padding:20px; max-width:560px; }
.scc-inquiry-title { margin:0 0 12px; }

/* Basket lines */
.scc-line { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--scc-line); }
.scc-line-name { flex:1; font-size:14px; line-height:1.2; }
.scc-line-sku { display:block; font-size:11px; color:var(--scc-muted); font-family:ui-monospace,Menlo,monospace; }
.scc-line-qty { width:60px; padding:5px 6px; border:1px solid var(--scc-line); border-radius:6px; }
.scc-line-del { border:0; background:none; color:#b91c1c; cursor:pointer; font-size:18px; line-height:1; }
.scc-lines-empty { color:var(--scc-muted); font-size:14px; }

/* Fields */
.scc-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; margin:14px 0 6px; }
.scc-fields label { display:flex; flex-direction:column; font-size:12px; color:var(--scc-muted); gap:4px; }
.scc-fields .scc-full { grid-column:1 / -1; }
.scc-fields input, .scc-fields textarea { padding:8px 10px; border:1px solid var(--scc-line);
  border-radius:8px; font-size:14px; color:var(--scc-ink); }
.scc-submit { width:100%; margin-top:10px; padding:11px; }
.scc-submit:disabled { opacity:.6; cursor:default; }
.scc-hp { position:absolute; left:-9999px; }
.scc-inquiry-result { margin:10px 0 0; font-size:14px; }
.scc-inquiry-result.is-error { color:#b91c1c; }
.scc-inquiry-result.is-ok { color:#155724; }

/* ── Hardening — some themes reset form controls so the inquiry inputs and
   the submit button rendered invisible (only their labels showed). Force a
   visible white field + dark text + solid border, and a green submit. ── */
.scc-inquiry .scc-fields input,
.scc-inquiry .scc-fields textarea {
	-webkit-appearance:none; appearance:none;
	display:block; width:100%; box-sizing:border-box;
	background:#fff !important;
	color:#1b1b1b !important;
	border:1px solid #c7ccd1 !important;
	border-radius:8px !important;
	padding:9px 11px !important;
	font-size:14px !important; line-height:1.35 !important;
	min-height:38px; box-shadow:none !important;
}
.scc-inquiry .scc-fields textarea { min-height:76px; resize:vertical; }
.scc-inquiry .scc-fields input::placeholder,
.scc-inquiry .scc-fields textarea::placeholder { color:#9aa0a6 !important; opacity:1; }
.scc-inquiry .scc-fields input:focus,
.scc-inquiry .scc-fields textarea:focus {
	outline:none !important; border-color:var(--scc-brand) !important;
	box-shadow:0 0 0 3px rgba(46,125,50,.16) !important;
}
.scc-inquiry .scc-fields label { color:#4b5563 !important; }
.scc-inquiry .scc-line-qty {
	background:#fff !important; color:#1b1b1b !important;
	border:1px solid #c7ccd1 !important; border-radius:6px !important;
}
.scc-inquiry .scc-submit,
.scc-catalog .scc-btn:not(.scc-btn-ghost) {
	background:var(--scc-brand) !important;
	color:#fff !important;
	border:1px solid var(--scc-brand) !important;
	-webkit-appearance:none; appearance:none;
}
.scc-catalog .scc-btn-ghost {
	background:#fff !important; color:var(--scc-brand) !important;
	border:1px solid var(--scc-brand) !important;
}

/* Storefront transform — reshape the theme's prose page layout into a shop from
   here, so it works even without a theme update. When the catalog is wrapped in
   the theme's title band + narrow prose column, hide the hero, widen the column,
   and clear the fixed header. All no-ops on the theme's own .section--store path
   (no preceding .page-hero, container already wide). Needs :has() — Safari 15.4+
   / Chrome 105+. */
.page-hero:has(+ .section .scc-catalog) { display:none !important; }
.section:has(.scc-catalog) {
	padding: calc(var(--header-h, 72px) + clamp(18px, 2.5vw, 40px)) 0 clamp(56px, 8vw, 110px) !important;
}
.entry-prose:has(.scc-catalog) { max-width: var(--container, 1180px) !important; }
.scc-grid { align-content: start; }

/* Storefront feel: a search/tool bar with a divider and a trailing inquiry
   button, roomier cards. */
.scc-toolbar { padding-bottom:16px; border-bottom:1px solid var(--scc-line); margin-bottom:22px;
  justify-content:flex-start; gap:12px 16px; }
.scc-inline-inquiry { margin-left:auto; white-space:nowrap; }
.scc-inline-inquiry .scc-cart-count { background:#fff !important; color:var(--scc-brand) !important; }
.scc-detail-actions .scc-cart-toggle .scc-cart-count { background:var(--scc-brand); color:#fff; }
.scc-grid { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:22px; }
.scc-card { transition:box-shadow .16s ease, transform .16s ease; }
.scc-card:hover { box-shadow:0 10px 30px rgba(0,0,0,.08); transform:translateY(-2px); }

/* The floating basket + drawer render OUTSIDE .scc-catalog, so the CSS custom
   properties don't reach them and the FAB fell back to transparent. Give it a
   solid green fill with literal colors. */
.scc-fab {
	background:#2e7d32 !important; color:#fff !important; border:0 !important;
	box-shadow:0 8px 24px rgba(0,0,0,.22) !important; opacity:1 !important;
}
.scc-fab .scc-cart-count { background:#fff !important; color:#2e7d32 !important; }
.scc-drawer { background:#fff !important; }
