/* LABO SCIENTIFIC V45: FINAL CSS */
:root { 
    --blue: #0056b3; 
    --dark: #004494; 
    --orange: #ff6600; 
    --text: #333; 
    --bg-light: #f8f9fa;
    --border: #e5e5e5;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 14px; color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--text); transition: 0.2s; } a:hover { color: var(--blue); }

/* --- 1. UTILITY BAR --- */
.top-bar { background: #f8f9fa; border-bottom: 1px solid #e5e5e5; padding: 6px 0; font-size: 12px; color: #666; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
.top-bar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.top-link { color: #666; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.top-link:hover { color: var(--blue); text-decoration: underline; }
.top-text { color: #666; font-weight: 500; cursor: default; }
.top-divider { color: #ddd; }

/* --- 2. HEADER --- */
.header-bg { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 500; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; gap: 30px; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 26px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: -0.5px; flex-shrink: 0; }
.logo span { color: #333; font-weight: 300; }

/* SEARCH BAR */
.search-wrap { flex: 1; max-width: 600px; position: relative; }
.search-box { display: flex; width: 100%; }
.search-input { flex: 1; height: 40px; border: 1px solid #ccc; border-right: none; border-radius: 4px 0 0 4px; padding: 0 15px; font-size: 16px; background: #fff; outline: none; color: #333; transition: 0.2s; }
.search-input:focus { border-color: var(--blue); box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); }
.search-btn { background: var(--blue); color: #fff; border: none; height: 40px; padding: 0 25px; font-weight: 700; border-radius: 0 4px 4px 0; cursor: pointer; text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; line-height: 40px; }
.search-btn:hover { background: var(--dark); }
.search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ddd; border-top: none; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; display: none; border-radius: 0 0 4px 4px; }
.search-dropdown.active { display: block; }

/* SEARCH SUGGESTIONS & ICONS */
.search-suggestion { padding: 12px 15px; border-bottom: 1px solid #f5f5f5; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.search-suggestion:hover { background: #f0f8ff; }
.suggestion-count { background: #e3f2fd; color: var(--blue); padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.search-suggestion .icon-sm { width: 14px; height: 14px; margin-right: 10px; color: #999; vertical-align: middle; }
.suggestion-row { display: flex; align-items: center; font-size: 13px; color: #555; margin-bottom: 6px; }
.suggestion-row b { color: #333; margin-right: 5px; }

/* HEADER ICONS & MOBILE MENU */
.header-actions { display: flex; align-items: center; gap: 15px; }
.cart-wrap { cursor: pointer; padding: 5px; position: relative; margin-left: 10px; }
.cart-badge { position: absolute; top: -2px; right: -5px; background: var(--orange); color: #fff; font-size: 10px; font-weight: bold; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #fff; }
.mobile-toggle { display: none; cursor: pointer; padding: 5px; }

/* MOBILE MENU DRAWER */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }
.mobile-menu { position: fixed; top: 0; left: 0; height: 100%; width: 280px; background: #fff; z-index: 2000; transform: translateX(-100%); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 20px; display: flex; flex-direction: column; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-overlay.open { display: block; }
.mobile-link { display: block; padding: 15px 0; border-bottom: 1px solid #eee; font-weight: 600; font-size: 16px; color: #333; }

/* --- 3. HERO & PROMOS --- */
.hero-section { position: relative; height: 450px; background: #fff; display: flex; align-items: center; border-bottom: 1px solid #eee; overflow: hidden; }
.spline-layer { position: absolute; top: 0; right: 0; width: 50%; height: 100%; z-index: 1; pointer-events: auto; } 
.hero-content { position: relative; z-index: 2; max-width: 50%; padding-left: 20px; }
.hero-content h1 { font-size: 50px; font-weight: 800; color: #111; margin: 0 0 20px; line-height: 1.1; }
.hero-btns { display: flex; gap: 15px; margin-top: 30px; }

/* BUTTONS */
.btn-primary { background: var(--orange); color: #fff; padding: 12px 28px; border-radius: 4px; font-weight: 700; border: none; cursor: pointer; display: inline-block; transition: 0.2s; }
.btn-primary:hover { background: #e05a00; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); padding: 10px 24px; border-radius: 4px; font-weight: 700; cursor: pointer; display: inline-block; transition: 0.2s; }
.btn-outline:hover { background: #f0f8ff; }
.btn-add-cart { background: var(--orange); color: #fff; border: none; padding: 8px 16px; border-radius: 4px; font-weight: 600; cursor: pointer; font-size: 12px; }
.btn-add-cart:hover { background: #e05a00; }

/* V45: PREMIUM PROMO CARDS */
.promo-header { text-align: center; margin-bottom: 50px; }
.promo-header h2 { font-size: 32px; color: var(--blue); margin-bottom: 10px; font-weight: 800; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.promo-card { 
    background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; 
    transition: 0.3s; display: flex; flex-direction: column; height: 100%; 
    text-decoration: none !important; color: inherit; cursor: pointer; position: relative;
}
.promo-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--blue); }
.promo-card:hover .promo-title { color: var(--blue); }

/* V45 Badge */
.promo-badge { position: absolute; top: 15px; left: 15px; background: #e3f2fd; color: var(--blue); font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; z-index: 10; border: 1px solid rgba(0,86,179,0.1); }

.promo-img { height: 200px; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f9f9f9; padding: 10px; }
.promo-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.promo-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.promo-title { font-size: 20px; font-weight: 700; color: #222; margin: 0 0 10px; transition: color 0.2s; }
.promo-text { color: #666; font-size: 14px; line-height: 1.6; margin-bottom: 0; flex: 1; }

/* --- 4. CART & QUOTE MODAL --- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }
.cart-overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 400px; background: #fff; box-shadow: -5px 0 30px rgba(0,0,0,0.15); z-index: 2000; transform: translateX(100%); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { padding: 20px; background: var(--blue); color: #fff; font-weight: 700; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.cart-item-img { width: 60px; height: 60px; object-fit: contain; border: 1px solid #eee; padding: 5px; }
.cart-info { flex: 1; }
.cart-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.cart-meta { font-size: 11px; color: #888; }
.cart-price { font-weight: 700; font-size: 14px; text-align: right; }
.cart-remove { font-size: 11px; color: red; text-decoration: underline; cursor: pointer; text-align: right; display: block; margin-top: 4px; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; background: #f9f9f9; }
.btn-checkout { width: 100%; background: var(--blue); color: #fff; padding: 12px; border: none; font-weight: 700; cursor: pointer; border-radius: 4px; font-size: 16px; }

/* SMART QUOTE MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 500px; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); overflow: hidden; animation: slideUp 0.3s; }
.modal-header { background: var(--blue); color: #fff; padding: 20px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; }
.modal-body { padding: 25px; }
.modal-form-group { margin-bottom: 15px; }
.modal-label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: #555; }
.modal-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; }
.modal-input:focus { border-color: var(--blue); }
.quote-summary { background: #f9f9f9; padding: 15px; border-radius: 4px; font-size: 13px; color: #555; margin-bottom: 20px; border: 1px solid #eee; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- 5. PAGE LAYOUTS --- */
.page-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 30px; min-height: 600px; }
.sidebar { border-right: 1px solid #eee; padding-right: 20px; }
.filter-title { font-size: 12px; text-transform: uppercase; font-weight: 800; color: #999; margin-bottom: 15px; letter-spacing: 1px; }
.result-row { display: flex; border: 1px solid #eee; margin-bottom: 15px; border-radius: 6px; overflow: hidden; transition: 0.2s; background: #fff; }
.result-row:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: var(--blue); }
.res-img { width: 120px; padding: 15px; display: flex; align-items: center; justify-content: center; background: #fcfcfc; border-right: 1px solid #eee; }
.res-img img { max-width: 90px; max-height: 90px; object-fit: contain; }
.res-data { flex: 1; padding: 20px; }
.res-tag { background: #e3f2fd; color: var(--blue); font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; display: inline-block; }
.res-title { font-size: 18px; font-weight: 700; color: var(--blue); margin: 0 0 5px; display: block; }
.price-dual { font-family: 'Consolas', monospace; font-size: 14px; font-weight: 700; text-align: right; margin-bottom: 8px; }
.prod-layout { display: grid; grid-template-columns: 400px 1fr; gap: 50px; padding: 40px 0; }
.prod-image-box { border: 1px solid #eee; height: 400px; display: flex; align-items: center; justify-content: center; border-radius: 6px; padding: 20px; }
.prod-image-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prod-title-main { font-size: 32px; color: #222; margin: 0 0 10px; font-weight: 800; }

/* REC ENGINE */
.rec-section { margin-top: 60px; border-top: 1px solid #eee; padding-top: 40px; }
.rec-header { font-size: 20px; font-weight: 800; color: #222; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.rec-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px; transition: 0.2s; position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.rec-card:hover { border-color: var(--blue); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateY(-3px); }
.rec-img { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; background: #f9f9f9; border-radius: 4px; }
.rec-img img { max-width: 80px; max-height: 80px; object-fit: contain; }
.rec-cat { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; margin-bottom: 5px; }
.rec-title { font-size: 14px; font-weight: 700; color: var(--blue); line-height: 1.4; margin-bottom: 10px; flex: 1; }
.rec-price { font-weight: 700; color: #333; font-size: 13px; margin-top: auto; }

/* DATA SHEET TABS & FACTS */
.datasheet-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 30px; align-items: start; }
.prod-main { min-width: 0; }
.prod-sidebar { width: 320px; flex-shrink: 0; }
.prod-header-badge { background: #e3f2fd; color: var(--blue); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; display: inline-block; margin-bottom: 10px; text-transform: uppercase; }
.prod-h1 { font-size: 32px; font-weight: 800; color: #111; margin: 0 0 10px 0; line-height: 1.2; }
.prod-sku-tag { color: #888; font-size: 13px; font-family: 'Consolas', monospace; margin-bottom: 25px; display: block; }
.prod-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 30px; }
.tab-btn { padding: 12px 25px; font-weight: 600; color: #666; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: 0.2s; font-size: 14px; }
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }
.bio-text { font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 20px; }
.bio-label { font-weight: 700; color: #222; display: block; margin-bottom: 5px; margin-top: 15px; }
.fact-box { border: 1px solid #eee; border-radius: 8px; padding: 25px; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.04); }
.structure-img { height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; background: #fff; mix-blend-mode: multiply; border-bottom: 1px solid #f5f5f5; }
.structure-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.fact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 25px; font-size: 13px; }
.fact-row { display: flex; justify-content: space-between; border-bottom: 1px dashed #eee; padding-bottom: 8px; }
.fact-key { font-weight: 600; color: #666; }
.fact-val { font-weight: 700; color: #222; font-family: 'Consolas', monospace; text-align: right; }

/* CONTENT PAGES */
.content-section { padding: 80px 0; max-width: 800px; margin: 0 auto; }
.content-header { text-align: center; margin-bottom: 60px; border-bottom: 1px solid #eee; padding-bottom: 40px; }
.content-h1 { font-size: 42px; font-weight: 800; color: #111; margin-bottom: 20px; letter-spacing: -1px; }
.content-lead { font-size: 20px; color: #555; line-height: 1.6; max-width: 650px; margin: 0 auto; font-weight: 300; }
.text-block { margin-bottom: 50px; }
.text-h2 { font-size: 24px; font-weight: 700; color: var(--blue); margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.text-p { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 20px; text-align: justify; }
.text-ul { list-style: none; padding: 0; margin-bottom: 25px; }
.text-ul li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #555; font-size: 16px; line-height: 1.6; }
.text-ul li::before { content: "•"; color: var(--orange); font-weight: bold; font-size: 24px; position: absolute; left: 0; top: -6px; }
.signature-box { background: #f8f9fa; border-left: 5px solid var(--blue); padding: 40px; border-radius: 8px; margin-top: 60px; position: relative; }
.sig-quote { font-size: 20px; font-style: italic; color: #333; font-family: 'Georgia', serif; line-height: 1.6; margin-bottom: 20px; }
.sig-author { font-weight: 700; font-size: 16px; color: #111; text-transform: uppercase; letter-spacing: 1px; }
.sig-role { font-size: 13px; color: #777; margin-top: 5px; }

/* --- 6. FOOTER --- */
footer { margin-top: 80px; border-top: 4px solid var(--blue); }
.footer-main { background-color: #0f172a; color: #cbd5e1; padding: 60px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; }
.footer-about p { line-height: 1.6; margin-bottom: 20px; opacity: 0.8; max-width: 320px; }
.footer-contact-link { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-bottom: 12px; font-weight: 500; transition: 0.2s; }
.footer-contact-link:hover { color: var(--orange); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { background-color: #020617; padding: 20px 0; color: #64748b; font-size: 12px; border-top: 1px solid #1e293b; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 15px; }
.legal-text { opacity: 0.8; }

/* RESPONSIVE */
.loader-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.98); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.spinner { width: 40px; height: 40px; border: 4px solid #eee; border-top: 4px solid var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) { 
    .mobile-toggle { display: block; } 
    .header-main { flex-wrap: wrap; justify-content: space-between; gap: 15px; padding: 10px 15px; }
    .search-wrap { order: 3; min-width: 100%; margin: 0; }
    
    .hero-section { flex-direction: row; height: 280px; padding: 0; text-align: left; align-items: center; overflow: hidden; }
    .hero-content { width: 60%; max-width: 60%; padding-left: 20px; margin-bottom: 0; z-index: 10; }
    .hero-content h1 { font-size: 22px; margin-bottom: 8px; line-height: 1.2; }
    .hero-content p { font-size: 11px; line-height: 1.4; margin-bottom: 15px; max-width: 95%; }
    .hero-btns { justify-content: flex-start; gap: 8px; }
    .btn-primary, .btn-outline { padding: 8px 12px; font-size: 11px; white-space: nowrap; }
    .spline-layer { position: absolute; width: 50%; right: -10px; height: 100%; top: 0; opacity: 1; }

    .footer-grid, .page-grid, .prod-layout, .datasheet-grid { grid-template-columns: 1fr; } 
    .sidebar, .prod-sidebar { display: none; } 
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .content-h1 { font-size: 32px; }
    .content-lead { font-size: 18px; }
    .content-section { padding: 40px 20px; }
}