/*
Theme Name: Luminex Research Center
Theme URI: https://luminexresearchcenter.com/
Author: Luminex Research Center
Description: A clean, laboratory-inspired WooCommerce theme for research peptide suppliers. Includes a product-led homepage, shop styling, article layouts and a research-use-only compliance notice.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luminex
Tags: e-commerce, one-column, custom-menu, custom-logo, featured-images, blog, translation-ready
WC requires at least: 7.0
WC tested up to: 9.0
*/

:root {
  --lx-radius: 0.875rem;
  --lx-background: #ffffff;
  --lx-surface: #f5f6f9;
  --lx-foreground: #232a36;
  --lx-muted: #6b7280;
  --lx-border: #e5e8ef;
  --lx-primary: #2f6bef;
  --lx-primary-dark: #1f4fc4;
  --lx-primary-foreground: #ffffff;
  --lx-accent: #35b8e0;
  --lx-gradient: linear-gradient(100deg, #35b8e0, #3f5fe0);
  --lx-shadow-card: 0 1px 2px rgba(60, 72, 100, .06), 0 12px 32px rgba(60, 72, 100, .08);
  --lx-shadow-float: 0 8px 40px rgba(60, 72, 100, .16);
  --lx-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--lx-background);
  color: var(--lx-foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lx-primary); text-decoration: none; }
a:hover { color: var(--lx-primary-dark); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.lx-container { max-width: var(--lx-max); margin: 0 auto; padding: 0 20px; }
.lx-section { padding: 64px 0; }
.lx-surface { background: var(--lx-surface); }
.lx-muted { color: var(--lx-muted); }
.lx-lead { max-width: 46rem; color: var(--lx-muted); font-size: 1.05rem; }

/* Header */
.lx-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lx-border);
}
.lx-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; max-width: var(--lx-max); margin: 0 auto; }
.lx-brand { display: flex; align-items: center; gap: 12px; color: var(--lx-foreground); }
.lx-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--lx-gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.lx-brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.15; }
.lx-brand-sub { display: block; font-size: .8rem; font-weight: 500; color: var(--lx-muted); }
.lx-brand-sub em { font-style: normal; color: var(--lx-primary); }

.lx-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: .92rem; font-weight: 500; }
.lx-nav a { color: rgba(35,42,54,.82); }
.lx-nav a:hover, .lx-nav .current-menu-item > a { color: var(--lx-primary); }
.lx-header-actions { display: flex; align-items: center; gap: 14px; }

.lx-btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: 10px 22px; border-radius: 999px;
  font-size: .92rem; font-weight: 600;
  background: var(--lx-gradient); color: var(--lx-primary-foreground);
  box-shadow: var(--lx-shadow-float);
}
.lx-btn:hover { opacity: .9; color: #fff; }
.lx-btn-ghost { background: none; box-shadow: none; border: 1px solid var(--lx-border); color: var(--lx-foreground); }
.lx-btn-ghost:hover { border-color: var(--lx-primary); color: var(--lx-primary); }

.lx-menu-toggle { display: none; background: none; border: 1px solid var(--lx-border); border-radius: 10px; padding: 8px 12px; font-size: .85rem; }

/* Hero */
.lx-hero { background: var(--lx-surface); padding: 72px 0; }
.lx-hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.1fr .9fr; }
.lx-eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-primary); background: rgba(47,107,239,.09); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.lx-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.lx-hero-media img { border-radius: 20px; box-shadow: var(--lx-shadow-card); }

/* Trust strip */
.lx-trust { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.lx-trust-item { border: 1px solid var(--lx-border); border-radius: var(--lx-radius); padding: 22px; background: #fff; }
.lx-trust-item h3 { margin-bottom: 6px; }
.lx-trust-item p { margin: 0; color: var(--lx-muted); font-size: .93rem; }

/* Products / cards */
.lx-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.lx-card, ul.products li.product {
  border: 1px solid var(--lx-border); border-radius: 18px; background: #fff;
  padding: 18px; transition: box-shadow .2s ease; list-style: none;
}
.lx-card:hover, ul.products li.product:hover { box-shadow: var(--lx-shadow-card); }
.lx-card img, ul.products li.product img { border-radius: 12px; background: var(--lx-surface); margin-bottom: 14px; }
.lx-card h3, ul.products li.product h2 { font-size: .95rem; font-weight: 600; margin: 0 0 6px; }
.lx-price, ul.products li.product .price { color: var(--lx-primary); font-weight: 700; font-size: 1.05rem; }
del { color: var(--lx-muted); font-weight: 400; font-size: .9rem; }

/* WooCommerce */
.woocommerce ul.products { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: left; }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button {
  background: var(--lx-gradient) !important; color: #fff !important;
  border-radius: 999px !important; padding: 10px 22px !important; font-weight: 600 !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button:hover { opacity: .9; }
.woocommerce span.onsale { background: var(--lx-primary); border-radius: 999px; }
.woocommerce div.product .product_title { font-size: 2rem; }
.woocommerce div.product p.price { color: var(--lx-primary); font-weight: 700; }
.woocommerce .woocommerce-tabs ul.tabs li { border-radius: 999px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--lx-primary); }
.woocommerce .quantity input, .woocommerce input[type="text"], .woocommerce input[type="email"],
.woocommerce input[type="tel"], .woocommerce textarea, .woocommerce select {
  border: 1px solid var(--lx-border); border-radius: 10px; padding: 10px 12px;
}

/* Shop filter bar */
.lx-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.lx-filter a { border: 1px solid var(--lx-border); border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 600; color: var(--lx-foreground); }
.lx-filter a:hover, .lx-filter a.is-active { border-color: var(--lx-primary); color: var(--lx-primary); }
.lx-search { position: relative; margin-top: 24px; }
.lx-search input[type="search"] { width: 100%; border: 1px solid var(--lx-border); border-radius: 999px; padding: 13px 20px; font-size: .95rem; }
.lx-search input[type="search"]:focus { outline: none; border-color: var(--lx-primary); }

/* Articles */
.lx-article { max-width: 46rem; margin: 0 auto; }
.lx-article h2 { margin-top: 2em; }
.lx-article ul, .lx-article ol { padding-left: 1.2rem; }
.lx-post-list { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.lx-breadcrumb { font-size: .88rem; color: var(--lx-muted); }

/* Notices */
.lx-notice { border: 1px solid var(--lx-border); border-left: 4px solid var(--lx-primary); background: var(--lx-surface); border-radius: 12px; padding: 16px 20px; font-size: .9rem; color: var(--lx-muted); }
.lx-topbar { background: var(--lx-foreground); color: rgba(255,255,255,.85); font-size: .8rem; text-align: center; padding: 8px 20px; }

/* Footer */
.lx-footer { border-top: 1px solid var(--lx-border); margin-top: 40px; }
.lx-footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); padding: 48px 20px; max-width: var(--lx-max); margin: 0 auto; font-size: .92rem; color: var(--lx-muted); }
.lx-footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lx-footer-grid a { color: var(--lx-muted); }
.lx-footer-grid a:hover { color: var(--lx-primary); }
.lx-footer-bottom { border-top: 1px solid var(--lx-border); max-width: var(--lx-max); margin: 0 auto; padding: 20px; font-size: .78rem; color: var(--lx-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; clip: auto; width: auto; height: auto; padding: 10px; background: #fff; }

@media (max-width: 1024px) {
  .lx-grid, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .lx-post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .lx-hero-grid { grid-template-columns: 1fr; }
  .lx-trust { grid-template-columns: 1fr; }
  .lx-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .lx-footer-grid { grid-template-columns: 1fr; }
  .lx-menu-toggle { display: inline-block; }
  .lx-nav { display: none; width: 100%; }
  .lx-nav.is-open { display: block; }
  .lx-nav ul { flex-direction: column; gap: 14px; padding: 16px 0 4px; }
  .lx-header-inner { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .lx-grid, .woocommerce ul.products, .lx-post-list { grid-template-columns: 1fr; }
}
