/* Product catalogue, product page and quote cart. Tokens come from assets/css/molgenium.css. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.6 var(--font); background: var(--white); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.eyebrow { display: block; font: 600 13px/1.4 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.mg-hero .eyebrow { color: var(--brand-soft) !important; }
.lead { font: 400 18px/1.6 var(--font); color: var(--ink-2); max-width: 64ch; margin-top: 16px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--radius); border: 1.5px solid transparent; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--brand); color: var(--white) !important; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--outline { border-color: var(--brand); color: var(--brand) !important; background: var(--white); }
.btn--outline:hover { background: var(--brand); color: var(--white) !important; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Catalogue hero ---------- */
.cat-hero .lead { color: rgba(255, 255, 255, .85); }
.cat-search { display: flex; align-items: center; gap: 10px; max-width: 760px; margin-top: 28px; padding: 8px 8px 8px 18px; background: var(--white); border-radius: var(--radius-card); box-shadow: 0 20px 50px rgba(20, 8, 50, .3); }
.cat-search svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.cat-search input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; outline: 0; font: 400 16px/1.4 var(--font); color: var(--ink); background: none; padding: 10px 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.hero-facts b { color: var(--white); }

/* ---------- Layout ---------- */
.cat-body { background: var(--tint); padding: 48px 0 96px; }
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.cat-side { position: sticky; top: 110px; }
.side-title { font: 600 12px/1.4 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.side-title + nav { margin-bottom: 28px; }
.fam-list, .sub-list { display: grid; gap: 4px; }
.fam-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; background: transparent; transition: background .15s; }
.fam-list a span { display: flex; align-items: center; gap: 10px; }
.fam-list a i { width: 10px; height: 10px; border-radius: 3px; background: var(--fam, var(--brand)); flex: none; }
.fam-list a b { font-weight: 600; font-size: 13px; color: var(--ink-3); }
.fam-list a:hover { background: var(--white); }
.fam-list a.on { background: var(--white); box-shadow: var(--shadow-card); color: var(--brand); }
.sub-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-list a { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.sub-list a b { color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.sub-list a:hover, .sub-list a.on { border-color: var(--brand); color: var(--brand); }
.side-help { padding: 18px; border-radius: var(--radius-card); background: var(--deep); color: rgba(255, 255, 255, .8); font-size: 14px; }
.side-help b { display: block; color: var(--white); margin-bottom: 6px; }
.side-help a { display: inline-block; margin-top: 10px; color: var(--brand-soft); font-weight: 600; text-decoration: none; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.toolbar p { color: var(--ink-2); }
.toolbar p b { color: var(--ink); }
.toolbar label { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.toolbar select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: 500 14px var(--font); background: var(--white); color: var(--ink); }

/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.ptile { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(circle at 80% 20%, var(--c2), transparent 55%), linear-gradient(135deg, var(--c1), var(--deep)); overflow: hidden; }
.ptile::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.5px); background-size: 14px 14px; }
.ptile img { width: 100%; height: 100%; object-fit: contain; background: var(--white); padding: 10px; position: relative; }
.ptile svg { position: relative; width: 56px; height: 56px; fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.pcard:hover .ptile svg { transform: scale(1.08) rotate(-4deg); }
.ptile-cat { position: absolute; left: 14px; bottom: 10px; font: 500 12px 'JetBrains Mono', monospace; color: rgba(255, 255, 255, .85); letter-spacing: .04em; }
.badge-gmp { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--validated); font: 700 11px/1 var(--font); font-style: normal; letter-spacing: .08em; }
.pbody { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.pcat { font: 500 12.5px 'JetBrains Mono', monospace; color: var(--brand); }
.pbody h2 { font: 600 16.5px/1.35 var(--font); margin: 6px 0 6px; }
.pbody h2 a { color: var(--ink); text-decoration: none; }
.pbody h2 a:hover { color: var(--brand); }
.pmeta { font-size: 13.5px; color: var(--ink-3); }
.pfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.empty { padding: 48px; text-align: center; background: var(--white); border-radius: var(--radius-card); }
.empty b { display: block; font-size: 18px; margin-bottom: 6px; }
.empty a { color: var(--brand); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager a { min-width: 42px; padding: 10px 14px; border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; text-align: center; font-weight: 500; box-shadow: var(--shadow-card); }
.pager a.on, .pager a:hover { background: var(--brand); color: var(--white); }

/* ---------- Floating quote cart ---------- */
.cart-fab { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px; background: var(--deep); color: var(--white); text-decoration: none; font: 600 15px var(--font); box-shadow: 0 16px 40px rgba(20, 8, 50, .35); transition: transform .2s; }
.cart-fab[hidden] { display: none; }
.cart-fab:hover { transform: translateY(-2px); }
.cart-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-fab b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--brand); font-size: 13px; }
.cart-fab.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.1); } }

/* ---------- Product page ---------- */
.crumbs-lite { font-size: 14px; color: var(--ink-3); padding: 24px 0 0; }
.crumbs-lite a { color: var(--ink-2); text-decoration: none; }
.crumbs-lite a:hover { color: var(--brand); }
.pd-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 28px 0 56px; align-items: start; }
.pd-media { position: sticky; top: 110px; }
.pd-media .ptile { aspect-ratio: 4 / 3; border-radius: var(--radius-card); }
.pd-media .ptile svg { width: 110px; height: 110px; }
.pd-media .ptile-cat { font-size: 15px; left: 20px; bottom: 16px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd-thumbs img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 4px; cursor: pointer; }
.pd-info h1 { font: 600 32px/1.2 var(--font); letter-spacing: -.02em; margin: 10px 0 12px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tags span { padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--deep-2); font: 600 12.5px var(--font); }
.pd-tags .mono { background: var(--deep); color: var(--white); font-weight: 500; }
.pd-short { color: var(--ink-2); margin-top: 16px; }
.buybox { margin-top: 26px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-card); }
.buybox h3 { font: 600 13px/1.4 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.sizes { display: grid; gap: 8px; }
.size { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.size:hover { border-color: var(--brand-soft); }
.size input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.size .s-size { font-weight: 600; min-width: 80px; }
.size .s-sku { font: 500 13px 'JetBrains Mono', monospace; color: var(--ink-3); flex: 1; }
.size .s-price { font-size: 14px; color: var(--ink-2); }
.size:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.buyrow { display: flex; gap: 10px; margin-top: 16px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink-2); }
.qty input { width: 52px; text-align: center; border: 0 !important; box-shadow: none !important; font: 600 16px var(--font); }
.buyrow .btn { flex: 1; }
.added { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: #e2f3ef; color: var(--validated); font-weight: 500; font-size: 14.5px; }
.added.show { display: block; }
.added a { color: var(--validated); font-weight: 700; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.assure span { display: flex; gap: 8px; align-items: flex-start; }
.assure span::before { content: "✓"; color: var(--validated); font-weight: 700; }
.pd-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tabs-row { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs-row button { padding: 14px 18px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 15px var(--font); color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.tabs-row button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tabpanel { padding: 32px 0 72px; max-width: 900px; color: var(--ink-2); line-height: 1.75; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font: 600 18px/1.3 var(--font); color: var(--ink); margin: 28px 0 12px; }
.tabpanel h3:first-child { margin-top: 0; }
.tabpanel p { margin: 0 0 14px; }
.tabpanel ul { padding-left: 20px; margin: 0 0 14px; }
.tabpanel table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.tabpanel th { background: var(--deep); color: var(--white); text-align: left; padding: 10px 14px; font-weight: 600; }
.tabpanel td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tabpanel tr:nth-child(even) td { background: #faf8fe; }
.related { background: var(--tint); padding: 56px 0 80px; }
.related h2 { font: 600 26px/1.2 var(--font); margin-bottom: 20px; }
.related .pgrid { grid-template-columns: repeat(4, 1fr); }
.made-by { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- Cart page ---------- */
.cart-wrap { padding: 40px 0 96px; }
.cart-wrap h1 { font: 600 34px/1.2 var(--font); letter-spacing: -.02em; }
.cart-grid { display: grid; grid-template-columns: 1fr 400px; gap: 36px; margin-top: 28px; align-items: start; }
.cart-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.cart-row:first-child { border-top: 0; }
.cart-row h3 { font: 600 16px/1.35 var(--font); }
.cart-row h3 a { color: var(--ink); text-decoration: none; }
.cart-row p { font-size: 13.5px; color: var(--ink-3); }
.cart-row .rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 13.5px; text-decoration: underline; }
.cart-row .rm:hover { color: var(--alert); }
.cart-empty { padding: 48px; text-align: center; color: var(--ink-2); }
.checkout { padding: 26px; border-radius: var(--radius-card); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); position: sticky; top: 110px; }
.checkout h2 { font: 600 20px/1.3 var(--font); margin-bottom: 4px; }
.checkout .sum { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; color: var(--ink-2); }
.checkout form { display: grid; gap: 14px; }
.checkout label { font: 500 14px var(--font); display: block; margin-bottom: 6px; }
.checkout input, .checkout textarea { width: 100%; padding: 11px 13px; border: 1px solid #cfcbd9; border-radius: var(--radius); font: 400 15px var(--font); }
.checkout textarea { min-height: 90px; resize: vertical; }
.checkout .note { font-size: 13px; color: var(--ink-3); }
.status { display: none; padding: 12px 14px; border-radius: var(--radius); font-size: 14.5px; }
.status.ok { display: block; background: #e2f3ef; color: var(--validated); }
.status.err { display: block; background: #fbe5ec; color: var(--alert); }
.steps-mini { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-2); counter-reset: s; }
.steps-mini li { display: flex; gap: 10px; }
.steps-mini li::before { counter-increment: s; content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--brand); font: 700 12px var(--font); }

@media (max-width: 1100px) {
    .pgrid, .related .pgrid { grid-template-columns: repeat(2, 1fr); }
    .cart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .cat-layout, .pd-top { grid-template-columns: 1fr; }
    .cat-side, .pd-media, .checkout { position: static; }
    .assure { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .pgrid, .related .pgrid { grid-template-columns: 1fr; }
    .cat-search { flex-wrap: wrap; }
    .cat-search .btn { width: 100%; }
    .toolbar { flex-direction: column; align-items: flex-start; }
    .cart-row { grid-template-columns: 1fr; }
    .pd-info h1 { font-size: 26px; }
}
