/*
Theme Name: Molentra Research Commerce
Theme URI: https://molentra.gr
Author: Molentra
Description: Bilingual WooCommerce theme for lawful in-vitro and analytical research materials.
Version: 0.2.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: molentra
*/

:root {
  --navy: #071a33;
  --navy-2: #0f315d;
  --blue: #1475bc;
  --blue-2: #2498df;
  --ice: #eef6fd;
  --ice-2: #dcecf9;
  --white: #ffffff;
  --ink: #102944;
  --muted: #5d7389;
  --line: #c9ddeb;
  --shadow: 0 14px 42px rgba(20, 64, 103, .12);
  --button-shadow: 0 6px 0 #0a4f87, 0 12px 24px rgba(8, 77, 130, .2);
  --radius: 22px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.62 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 800px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 16px; top: 16px; z-index: 999; padding: 12px 16px; background: var(--white); }

.research-bar { padding: 9px 16px; color: var(--white); background: var(--navy); text-align: center; font-weight: 760; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 24px; }
.brand-menu-trigger { display: inline-flex; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--navy); padding: 8px 0; cursor: pointer; font: inherit; font-size: 21px; font-weight: 900; letter-spacing: .08em; }
.brand-mark { width: 22px; height: 22px; border: 2px dotted var(--blue); border-radius: 50%; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 6px; background: var(--blue); border-radius: 3px; }
.brand-chevron { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 10px; color: var(--blue); transition: transform .2s ease; }
.brand-menu-trigger[aria-expanded="true"] .brand-chevron { transform: rotate(180deg); }
.header-links { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.header-links a { text-decoration: none; font-weight: 720; }
.header-links a:hover { color: var(--blue); }
.language-flags { display: flex; gap: 7px; }
.flag-link { width: 46px; height: 42px; display: grid; place-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: 0 4px 0 var(--ice-2); font-size: 23px; }
.flag-link[aria-current="true"] { border-color: var(--blue); box-shadow: 0 4px 0 #7cb8df; }
.header-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; color: var(--white); background: linear-gradient(180deg, var(--blue-2), var(--blue)); border-radius: 13px; box-shadow: 0 5px 0 #0a4f87; text-decoration: none; font-weight: 850; }
.header-login:active { transform: translateY(3px); box-shadow: 0 2px 0 #0a4f87; }

.menu-scrim { position: fixed; inset: 0; z-index: 88; background: rgba(7,26,51,.45); opacity: 0; visibility: hidden; transition: .22s ease; }
.menu-drawer { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(460px, 94vw); padding: 28px 30px; background: var(--white); transform: translateX(-102%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: 30px 0 60px rgba(7,26,51,.18); overflow: auto; }
.menu-open .menu-scrim { opacity: 1; visibility: visible; }
.menu-open .menu-drawer { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-head b { font-size: 22px; }
.drawer-close { border: 0; background: transparent; color: var(--navy); font-size: 36px; line-height: 1; cursor: pointer; }
.drawer-nav { display: grid; }
.drawer-nav > a, .drawer-nav .research-label { padding: 17px 2px; border-bottom: 1px solid #e1edf5; text-decoration: none; font-size: 19px; font-weight: 790; }
.drawer-nav .research-label { border: 0; padding-bottom: 6px; color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.drawer-nav .research-sub { padding: 10px 2px 10px 22px; border: 0; font-size: 17px; }
.drawer-spacer { flex: 1; min-height: 40px; }
.drawer-order { margin-top: 28px; text-align: center; }
.drawer-languages { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

.button, button.button, input[type="submit"].button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border: 1px solid #0a5d9d; border-radius: 14px; color: var(--white); background: linear-gradient(180deg, #279be0 0%, #1575bb 100%); box-shadow: var(--button-shadow); text-decoration: none; font: inherit; font-weight: 850; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-2px); color: var(--white); background: linear-gradient(180deg, #32a9ed, #1475bc); }
.button:active, .woocommerce a.button:active, .woocommerce button.button:active { transform: translateY(4px); box-shadow: 0 2px 0 #0a4f87; }
.button.secondary { color: var(--blue); background: var(--white); border-color: var(--line); box-shadow: 0 5px 0 #bed7e8, 0 12px 22px rgba(42,102,144,.1); }
.button.secondary:hover { color: var(--navy); background: #fafdff; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; letter-spacing: -.025em; }
h1 { margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6vw, 78px); font-weight: 500; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; }
h3 { font-size: 23px; }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 22px); max-width: 720px; }
.microcopy { color: var(--muted); font-size: 13px; }

.hero { padding: 80px 0 54px; background: linear-gradient(125deg, #f8fbfe 0%, var(--ice) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 24px; }
.hero-visual { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.hero-visual img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.availability-pill { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; color: var(--navy); background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(11,53,89,.12); font-size: 13px; font-weight: 850; letter-spacing: .08em; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #18aa72; box-shadow: 0 0 0 5px rgba(24,170,114,.14); }
.signal-strip { border-block: 1px solid var(--line); background: var(--white); }
.signal-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 17px 0; text-align: center; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.section { padding: 88px 0; }
.section.soft { background: var(--ice); }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; margin-bottom: 38px; }
.section-head h2 { margin: 0; }
.section-head > p { color: var(--muted); font-size: 17px; }
.product-showcase { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.product-showcase-image { min-height: 480px; background: var(--ice); }
.product-showcase-image img { width: 100%; height: 100%; object-fit: cover; }
.product-showcase-copy { padding: clamp(30px, 5vw, 62px); }
.product-showcase-copy > span { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.product-showcase-copy h3 { margin: 14px 0; font-family: Georgia, "Times New Roman", serif; font-size: 44px; font-weight: 500; }
.product-showcase-copy dl { margin: 28px 0 34px; }
.product-showcase-copy dl div { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 760; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 7px 0 #d6e8f5; }
.card b.card-number { color: var(--blue); font-size: 12px; letter-spacing: .14em; }
.card p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps .card { min-height: 220px; }
.research-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.research-card { min-height: 300px; padding: 34px; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, #fff 0%, #eef7fd 100%); text-decoration: none; box-shadow: var(--shadow); }
.research-card span { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.research-card p { color: var(--muted); }
.research-card i { margin-top: auto; color: var(--blue); font-style: normal; font-weight: 850; }
.shipping-panel, .partner-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: clamp(34px, 6vw, 70px); border-radius: var(--radius); }
.shipping-panel { background: var(--navy); color: #d9e8f4; }
.shipping-panel h2 { color: var(--white); }
.shipping-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shipping-facts div { padding: 22px; border: 1px solid #30527a; border-radius: 15px; background: #0d284a; }
.partner-panel { border: 1px solid var(--line); background: var(--ice); }
.faq details { padding: 22px 0; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--navy); font-size: 19px; font-weight: 830; }
.faq details p { color: var(--muted); max-width: 850px; }

.page-hero { padding: 72px 0; background: var(--ice); }
.page-content { padding: 72px 0; }
.page-content .entry-content { max-width: 820px; }
.page-content .entry-content p, .page-content .entry-content li { color: #405c74; font-size: 18px; }
.secure-price-message { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--ice); }

.library-hero, .article-hero { padding: 76px 0; background: linear-gradient(125deg, #f8fbfe 0%, var(--ice) 100%); border-bottom: 1px solid var(--line); }
.library-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.library-hero h1, .article-hero h1 { max-width: 980px; font-size: clamp(42px, 5vw, 68px); }
.library-section { padding: 76px 0 94px; }
.article-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { min-height: 330px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(155deg, #fff 0%, #f1f8fd 100%); box-shadow: var(--shadow); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(20,64,103,.16); }
.article-card span { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.article-card h2 { margin: 18px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; }
.article-card p { color: var(--muted); }
.article-card i { margin-top: auto; color: var(--blue); font-style: normal; font-weight: 850; }
.article-page { padding: 62px 0 88px; }
.article-summary { margin-bottom: 28px; padding: 24px 28px; border-left: 4px solid var(--blue); border-radius: 0 16px 16px 0; background: var(--ice); }
.article-summary p { margin: 0; color: var(--ink); font-size: 20px; }
.article-toc { margin: 32px 0 58px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 7px 0 #d6e8f5; }
.article-toc b { color: var(--navy); }
.article-toc ol { margin: 14px 0 0; padding-left: 22px; }
.article-toc a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-sections section { scroll-margin-top: 130px; padding: 36px 0; border-top: 1px solid var(--line); }
.article-sections h2, .article-sources h2 { margin: 0 0 18px; font-size: clamp(31px, 4vw, 43px); }
.article-sections p, .article-sources li { color: #405c74; font-size: 18px; }
.article-sources { margin-top: 34px; padding: 34px; border-radius: 18px; background: var(--ice); }
.article-sources li { margin: 12px 0; }
.article-sources a { color: var(--blue); overflow-wrap: anywhere; }
.article-boundary { padding: 42px 0; color: #d9e8f4; background: var(--navy); }
.article-boundary b { color: var(--white); font-size: 12px; letter-spacing: .16em; }
.article-boundary a { color: var(--white); font-weight: 850; }

.site-footer { padding: 64px 0 26px; color: #b8c9d9; background: #06172e; }
.footer-notice { margin-bottom: 52px; font-size: 18px; line-height: 1.8; }
.footer-notice b { display: block; margin-bottom: 12px; color: var(--white); font-size: 12px; letter-spacing: .18em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 48px; }
.footer-brand { color: var(--white); font-size: 34px; font-weight: 900; }
.footer-column b { display: block; margin-bottom: 18px; color: #88a3bd; font-size: 11px; letter-spacing: .18em; }
.footer-column a { display: block; margin: 10px 0; text-decoration: none; }
.footer-disclaimer { margin-top: 54px; padding: 26px 30px; border-left: 3px solid #d5e6f4; background: #0b2340; }
.footer-disclaimer b { color: var(--white); font-size: 12px; letter-spacing: .14em; }
.footer-disclaimer p { margin-bottom: 0; }
.copyright { margin-top: 30px; padding-top: 20px; border-top: 1px solid #213a57; font-size: 12px; }

.woocommerce .woocommerce-breadcrumb { margin: 28px auto; width: min(calc(100% - 40px), var(--max)); color: var(--muted); }
.woocommerce div.product { width: min(calc(100% - 40px), var(--max)); margin: 50px auto 90px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { margin-bottom: 0; }
.woocommerce div.product .product_title { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.woocommerce div.product form.cart .button { float: none; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .quantity .qty { min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.woocommerce-account .woocommerce { width: min(calc(100% - 40px), var(--max)); margin: 60px auto; }

@media (max-width: 980px) {
  .header-links > a:not(.header-login) { display: none; }
  .hero-grid, .product-showcase, .section-head, .shipping-panel, .partner-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .card-grid, .research-columns { grid-template-columns: 1fr 1fr; }
  .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .library-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .article-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .research-bar { font-size: 10px; }
  .header-inner { min-height: 68px; }
  .brand-menu-trigger { font-size: 16px; letter-spacing: .05em; }
  .brand-mark { width: 18px; height: 18px; }
  .brand-chevron { display: none; }
  .header-login { padding: 0 13px; font-size: 13px; }
  .flag-link { width: 40px; height: 38px; font-size: 20px; }
  .language-flags { display: none; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .hero { padding-top: 44px; }
  .hero-grid { gap: 38px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .availability-pill { position: static; border-radius: 0; }
  .signal-inner, .card-grid, .research-columns, .steps, .footer-grid, .shipping-facts { grid-template-columns: 1fr; }
  .article-card-grid { grid-template-columns: 1fr; }
  .library-hero, .article-hero { padding: 54px 0; }
  .library-hero h1, .article-hero h1 { font-size: 40px; }
  .article-card { min-height: 0; }
  .article-summary, .article-toc, .article-sources { padding: 22px; }
  .signal-inner span:nth-child(n+3) { display: none; }
  .section { padding: 62px 0; }
  .product-showcase-image { min-height: 280px; }
  .product-showcase-copy dl div { grid-template-columns: 1fr; gap: 2px; }
  .menu-drawer { padding: 22px; }
}
