/*
Theme Name: Surplus Equipment Deals Marketplace
Theme URI: https://surplusequipmentdeals.com
Author: Surplus Equipment Deals
Description: Mobile-ready equipment marketplace with built-in inventory management.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sed-marketplace
*/
:root{--navy:#091a39;--red:#c91e30;--blue:#164a92;--light:#f3f6fa;--ink:#16233a}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:var(--light);line-height:1.55}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}.wrap{max-width:1220px;margin:auto;padding:0 20px}.topline{height:6px;background:linear-gradient(90deg,var(--red) 0 33%,white 33% 66%,var(--blue) 66%)}header{background:#fff;box-shadow:0 2px 15px #101e3216}header .inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:13px;padding-bottom:13px}.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:20px;color:var(--navy)}.brand img{width:110px;height:65px;object-fit:cover;border-radius:5px}nav{display:flex;flex-wrap:wrap;gap:20px}nav a{font-weight:700;color:var(--navy)}.hero{background:linear-gradient(110deg,#071731eF,#173e78d9),url('assets/sed-logo.png') center/cover;color:white;padding:70px 0}.hero h1{font-size:clamp(34px,5vw,64px);line-height:1.06;margin:0 0 12px}.hero p{font-size:19px;max-width:720px}.btn{display:inline-block;background:var(--red);border:0;border-radius:6px;color:white;padding:12px 20px;font-weight:800;cursor:pointer}.btn:hover{color:white;background:#a71828;text-decoration:none}.btn.blue{background:var(--blue)}section{padding:35px 0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.listing{background:white;border:1px solid #dbe2ec;border-radius:12px;overflow:hidden;box-shadow:0 5px 15px #12234410}.listing .pic{aspect-ratio:16/10;background:#dbe4ef;display:block;overflow:hidden}.listing .pic img{width:100%;height:100%;object-fit:cover}.listing .body{padding:17px}.listing h3{font-size:19px;margin:0 0 6px}.price{font-size:24px;font-weight:900;color:var(--navy)}.meta{color:#536078;font-size:14px}.tag{display:inline-block;background:#e7edf8;color:#173c7d;border-radius:4px;padding:3px 9px;font-size:12px;font-weight:800}.sold{background:#fee4e7;color:#a5182b}.filters{background:white;border:1px solid #dce2e9;border-radius:10px;padding:18px;display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px}.filters input,.filters select{padding:12px;border:1px solid #c6d0de;border-radius:6px;width:100%;font:inherit}.detail{display:grid;grid-template-columns:1.5fr 1fr;gap:30px}.panel{background:white;border-radius:12px;padding:24px;border:1px solid #dfe4ec}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:7px}.gallery a:first-child{grid-column:1/-1}.gallery a:first-child img{aspect-ratio:16/9}.spec{border-bottom:1px solid #e3e7ed;padding:9px 0}.spec b{display:inline-block;min-width:105px}footer{background:var(--navy);color:#fff;padding:30px 0;margin-top:45px}footer a{color:white}.notice{background:#eaf0f8;padding:15px;border-radius:8px}.pagination{margin:30px 0}.pagination .page-numbers{padding:8px 12px;background:white;margin-right:4px;border-radius:5px}@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:1fr 1fr}.detail{grid-template-columns:1fr}header .inner{flex-direction:column}nav{justify-content:center}}@media(max-width:560px){.grid,.filters{grid-template-columns:1fr}.hero{padding:42px 0}.brand{font-size:17px}.brand img{width:85px;height:54px}.panel{padding:15px}}

/* Sold equipment: four cards across on desktop; responsive on smaller screens. */
.grid.sold-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.sold-grid .listing .body{padding:14px}
.sold-grid .listing h3{font-size:17px}
.sold-grid .price{font-size:22px}
@media(max-width:900px){.grid.sold-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.grid.sold-grid{grid-template-columns:1fr}}

/* Four-column cards on both Current Listings and Sold Equipment. */
@media(min-width:901px){.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.grid .listing .body{padding:14px}.grid .listing h3{font-size:17px}.grid .price{font-size:22px}}
