/*
Theme Name: WC Bridge Lab
Author: WC Bridge Lab
Description: Small, no-frills WooCommerce storefront for connector testing. Uses WooCommerce's own product, cart, checkout and order handling.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wc-bridge-lab
*/
:root { --ink:#12213a; --muted:#68758b; --line:#dce3ed; --bg:#f5f7fb; --blue:#245be4; --white:#fff; --green:#15804b; --red:#b82c35; --radius:12px; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; }
a { color:var(--blue); text-decoration:none; }
a:hover { text-decoration:underline; }
button, input { font:inherit; }
button, .button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border:0; border-radius:9px; padding:10px 15px; background:var(--blue); color:#fff; cursor:pointer; display:inline-block; font-weight:600; }
button:hover, .button:hover, input[type="submit"]:hover { filter:brightness(.92); text-decoration:none; }
button:disabled { opacity:.6; cursor:not-allowed; }
input[type="number"],input[type="text"],input[type="email"],input[type="tel"], select, textarea { max-width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 10px; background:#fff; color:var(--ink); }
:focus-visible { outline:3px solid #ffb424; outline-offset:2px; }
.wrap { width:min(1200px, calc(100% - 36px)); margin-inline:auto; }
.site-header { background:var(--white); border-bottom:1px solid var(--line); }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:78px; flex-wrap:wrap; padding:12px 0; }
.brand { color:var(--ink); font-size:21px; font-weight:800; letter-spacing:-.5px; }
.site-nav { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.site-nav a { font-weight:600; }
.site-nav .cart-link { background:#eaf0ff; border-radius:8px; padding:7px 12px; }
.site-main { padding:36px 0 60px; min-height:60vh; }
.panel { background:var(--white); padding:24px; border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 2px 10px rgba(19,36,66,.03); }
h1,h2,h3 { line-height:1.25; letter-spacing:-.5px; }
h1 { font-size:clamp(25px,3vw,34px); margin:0 0 9px; }
p { margin-top:0; }
.muted, .help { color:var(--muted); }
.section-header { display:flex; justify-content:space-between; align-items:end; gap:20px; flex-wrap:wrap; margin:0 0 22px; }
.section-header p { margin:4px 0 0; }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
.chip { display:inline-block; border:1px solid var(--line); border-radius:9px; background:#fff; padding:7px 12px; font-weight:600; }
.chip.active { background:#eaf0ff; border-color:#bbccfc; }
.table-scroll { max-width:100%; overflow-x:auto; }
table.catalog { width:100%; min-width:790px; border-collapse:collapse; }
.catalog th,.catalog td { text-align:left; vertical-align:middle; padding:13px 14px; border-bottom:1px solid #edf1f5; }
.catalog th { white-space:nowrap; color:var(--muted); font-size:12px; letter-spacing:.04em; text-transform:uppercase; background:#f8fafd; }
.catalog tr:last-child td { border-bottom:0; }
.catalog .product-name { font-weight:700; }
.catalog .subrow { background:#fafbfd; }
.catalog .subrow .product-name { padding-left:28px; font-weight:500; }
.catalog .number { font-variant-numeric:tabular-nums; }
.status { display:inline-block; font-size:12px; font-weight:700; border-radius:999px; padding:3px 10px; background:#e9f7ee; color:var(--green); white-space:nowrap; }
.status.out { color:var(--red); background:#fdecef; }
.status.neutral { color:#6e5c29; background:#fff4d4; }
.catalog .action { font-weight:650; white-space:nowrap; }
.catalog .price del { color:var(--muted); }
.catalog .price ins { text-decoration:none; }
.pagination { display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; padding-top:20px; }
.pagination .button { padding:8px 13px; }
.post-card { padding:24px 0; border-bottom:1px solid var(--line); }
.post-card:last-child { border-bottom:0; }
.post-card h2 { margin:0 0 8px; }
.post-meta { color:var(--muted); font-size:13px; }
.entry-content img, .post-thumbnail img { max-width:100%; height:auto; }
.entry-content { overflow-wrap:anywhere; }
.entry-content > *:first-child { margin-top:0; }
.site-footer { border-top:1px solid var(--line); background:#fff; padding:24px 0; color:var(--muted); font-size:13px; }
.site-footer .wrap { display:flex; gap:14px; justify-content:space-between; flex-wrap:wrap; }
/* Lightweight polish around WooCommerce's own templates; no WooCommerce template overrides. */
.wc-area .woocommerce, .wc-area .woocommerce-page { width:100%; }
.woocommerce .woocommerce-breadcrumb { font-size:13px; margin-bottom:18px; }
.woocommerce div.product, .woocommerce .woocommerce-cart-form, .woocommerce .checkout, .woocommerce .cart-collaterals { margin-top:16px; }
.woocommerce div.product .product_title { font-size:28px; }
.woocommerce div.product form.cart .variations select { min-width:170px; }
.woocommerce div.product form.cart .quantity .qty { width:80px; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error { border-radius:9px; }
.woocommerce table.shop_table { border-color:var(--line); border-collapse:separate; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background:var(--blue); color:#fff; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background:#1946bd; color:#fff; }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { margin-top:10px; }
@media(max-width:640px){ .wrap{width:min(100% - 24px,1200px);} .header-inner{align-items:start;} .site-nav{gap:12px;} .site-main{padding:24px 0 36px;} .panel{padding:16px;} .section-header{align-items:start;} }

/* WordPress discussion, when comments are enabled on blog posts. */
.comments-area { margin-top:28px; border-top:1px solid var(--line); padding-top:22px; }
.comment-list { padding-left:24px; }
.comment-list li { margin-bottom:20px; }
.comment-form label { display:block; font-weight:600; }
.comment-form input:not([type="submit"]), .comment-form textarea { display:block; width:100%; }
