/* Jensen Millwork Lab — warehouse store styles. Plain, dense, no animation. */
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #111; background: #fff; font-size: 16px; line-height: 1.5; }
a { color: #0b5394; }
a:hover { text-decoration: underline; }

.header { border-bottom: 3px solid #111; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.logo { font-size: 22px; font-weight: bold; letter-spacing: 0.5px; text-decoration: none; color: #111; white-space: nowrap; }
.logo span { font-weight: normal; font-size: 14px; color: #555; display: block; letter-spacing: 0; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a { color: #111; text-decoration: none; font-weight: bold; }
.nav a:hover { text-decoration: underline; }
.searchbox { flex: 1 1 240px; }
.searchbox input { width: 100%; padding: 9px 10px; font-size: 16px; border: 2px solid #111; }
.cart-btn { padding: 9px 16px; font-size: 16px; font-weight: bold; background: #ffc220; border: 2px solid #111; cursor: pointer; }

.strip { background: #ffc220; padding: 8px 20px; font-weight: bold; border-bottom: 1px solid #111; }
.main { max-width: 1080px; margin: 0 auto; padding: 20px; }
h1 { font-size: 26px; margin: 0 0 12px 0; }
h2 { font-size: 20px; margin: 28px 0 10px 0; border-bottom: 2px solid #111; padding-bottom: 4px; }
.partno { font-weight: bold; font-size: 1.15em; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { border: 1px solid #999; padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #eee; }
.price { white-space: nowrap; font-weight: bold; }
.stock { color: #1a7f1a; font-weight: bold; }

.tiles { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.tile { border: 2px solid #111; padding: 14px 18px; flex: 1 1 200px; text-decoration: none; color: #111; }
.tile strong { display: block; font-size: 18px; }
.tile span { color: #555; }
.tile:hover { background: #f7f7f7; }

.trust { border: 2px solid #111; padding: 12px 16px; margin: 20px 0; }
.trust ul { margin: 6px 0; padding-left: 20px; }

.footer { border-top: 3px solid #111; padding: 16px 20px; color: #444; font-size: 14px; }
.footer a { color: #444; }

.btn { display: inline-block; padding: 10px 20px; font-size: 16px; font-weight: bold; background: #ffc220; border: 2px solid #111; color: #111; text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffcf4d; text-decoration: none; }
.btn-secondary { background: #fff; }
input[type="text"], input[type="email"], input[type="number"], select, textarea { padding: 9px 10px; font-size: 16px; border: 2px solid #111; width: 100%; }
label { display: block; font-weight: bold; margin: 12px 0 4px 0; }
.form-row { max-width: 520px; }

.product-layout { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.product-images { flex: 1 1 300px; }
.product-images img { width: 100%; border: 2px solid #111; margin-bottom: 10px; }
.img-placeholder { border: 2px dashed #999; padding: 40px 16px; text-align: center; color: #555; margin-bottom: 10px; background: #f7f7f7; }
.product-buy { flex: 1 1 300px; border: 2px solid #111; padding: 16px; }
.pack-option { display: block; border: 1px solid #999; padding: 8px 10px; margin: 6px 0; cursor: pointer; }
.pack-option input { margin-right: 8px; }
.fitbox { border: 2px solid #111; padding: 12px 16px; margin: 20px 0; }
.fitbox .nofit { color: #a00; }

.filterbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.filterbar button { padding: 8px 14px; font-size: 15px; font-weight: bold; background: #fff; border: 2px solid #111; cursor: pointer; }
.filterbar button.active { background: #ffc220; }

#cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; }
#cart-overlay.open { display: block; }
#cart-drawer { display: none; position: fixed; top: 0; right: 0; width: 380px; max-width: 92vw; height: 100%; background: #fff; border-left: 3px solid #111; z-index: 101; padding: 20px; overflow-y: auto; }
#cart-drawer.open { display: block; }
.cart-line { border-bottom: 1px solid #ccc; padding: 10px 0; }
.cart-line .rm { color: #a00; cursor: pointer; font-size: 14px; }
.qtyctl { display: inline-flex; gap: 6px; align-items: center; }
.qtyctl button { width: 28px; height: 28px; font-size: 16px; font-weight: bold; cursor: pointer; }
.totals { margin: 16px 0; }
.totals td:last-child { text-align: right; }
.notice { border: 2px solid #111; background: #f7f7f7; padding: 12px 16px; margin: 16px 0; }
.error { color: #a00; font-weight: bold; }
.success { border: 2px solid #1a7f1a; padding: 14px 16px; margin: 16px 0; }
