/* CSS Variables & Base */

:root{
    --cardinal:#990000;
    --cardinal-dark:#7a0000;
    --gold:#FFC72C;

    --bg:#f7f7f8;
    --panel:#ffffff;
    --text:#1f2328;
    --muted:#6b7280;
    --border:#e5e7eb;

    --max:1200px;
    --radius-lg:14px;
    --radius-md:12px;
    --radius-sm:8px;
    --shadow-sm:0 1px 2px rgba(0,0,0,.04);
    --shadow-md:0 6px 18px rgba(0,0,0,.06);
}

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

html, body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

img, picture, video, canvas, svg { display:block; max-width:100%; }
input, button, select, textarea { font:inherit; color:inherit; }
button { cursor:pointer; }

a { color:var(--cardinal); text-decoration:none; }
a:hover { text-decoration:underline; }

:focus-visible {
    outline:3px solid var(--gold);
    outline-offset:2px;
}

/* Motion safety */

@media (prefers-reduced-motion:reduce){
    * { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* Layout Helpers */

.wrap { max-width:var(--max); margin:0 auto; padding:0 16px; }
.w-full { width:100%; }

/* Header / Navbar */

header{
    position:sticky; top:0; z-index:50;
    background:linear-gradient(90deg,var(--cardinal),var(--cardinal-dark));
    color:#fff;
    border-bottom:4px solid var(--gold);
    box-shadow:var(--shadow-sm);
}

.nav{ display:flex; align-items:center; gap:18px; justify-content:space-between; padding:14px 0; }
.brand{ font-weight:800; letter-spacing:.4px; }
.brand small{ font-weight:600; opacity:.9; }
.links{ display:flex; gap:14px; flex-wrap:wrap; }
.links a{ color:#fff; opacity:.95; padding:6px 10px; border-radius:8px; }
.links a:hover{ background:rgba(255,255,255,.08); text-decoration:none; }

.cta{
    background:var(--gold); color:#3b2f00;
    border-radius:10px; padding:8px 12px; font-weight:700;
    border:1px solid rgba(0,0,0,.06);
}

/* Hero */

.hero{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    margin:18px 0;
    padding:22px;
    box-shadow:var(--shadow-sm);
}
.hero h1{ margin:2px 0 6px; font-size:clamp(22px,3.2vw,30px); }
.hero p{ margin:0 0 14px; color:var(--muted); }

.search{ display:flex; gap:10px; }
.search input{
    flex:1;
    padding:14px 14px;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    font-size:16px;
    background:#fff;
}
.search button{
    padding:12px 16px; border:0; border-radius:var(--radius-md);
    background:var(--cardinal); color:#fff; font-weight:700;
}

/* Stats + Summary Bar */

.stats{
    display:flex; gap:18px; flex-wrap:wrap;
    color:#111; background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    padding:10px 14px; margin:14px 0;
    box-shadow:var(--shadow-sm);
}
.stats span{ color:#111; }

.summary{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-md); padding:10px 14px; box-shadow:var(--shadow-sm);
}
.summary .left{ font-weight:600; }
.summary .right{ display:flex; gap:8px; align-items:center; }
.summary select,
.summary button{
    padding:10px 12px; border:1px solid var(--border);
    border-radius:var(--radius-sm); background:#fff;
}
.summary .reset{ background:#fff; color:#111; }

/* Main Layout (Filters + Grid) */

.layout{ display:grid; grid-template-columns:260px 1fr; gap:18px; margin:18px 0; }
@media (max-width:980px){ .layout{ grid-template-columns:1fr; } }

/* Sidebar Filters */

.filters{
    background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-md); padding:16px; box-shadow:var(--shadow-sm);
}
.filters h3{ margin:6px 0 8px; }
.filters hr{ border:0; border-top:1px solid var(--border); margin:12px 0; }
.check{ display:flex; align-items:center; gap:8px; margin:8px 0; }
.range{ margin:8px 0; }
.range input[type="range"]{ width:100%; }
.filters select{
    width:100%;
    padding:10px;
    border-radius:var(--radius-sm);
    border:1px solid var(--border);
    background:#fff;
}
.filters .btn{ margin-top:8px; }

/* Grid & Cards */

.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:1180px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:700px){ .grid{ grid-template-columns:1fr; } }

.card{
    background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-md); overflow:hidden;
    display:flex; flex-direction:column;
    box-shadow:var(--shadow-sm);
}
.thumb{
    aspect-ratio:4/3;
    background:#f2f2f2;
    display:block; background-size:cover; background-position:center;
}
.card .meta{ padding:12px; }
.title{ font-weight:700; margin:0 0 6px; }
.price{ font-weight:800; }
.badge{
    display:inline-block; font-size:12px;
    border:1px solid var(--border);
    border-radius:999px; padding:2px 8px; margin-left:8px;
    color:#333; background:#fafafa;
}
.meet{ color:var(--muted); font-size:14px; margin-top:4px; }
.actions{ margin-top:auto; padding:12px; display:flex; gap:8px; }

/* Buttons */

.btn{
    flex:1; text-align:center; border-radius:10px; padding:10px 12px;
    border:1px solid var(--border); background:#fff;
    transition:transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn.primary{ background:var(--cardinal); color:#fff; border-color:var(--cardinal); }
.btn.primary:hover{ background:var(--cardinal-dark); }

/* Footer */

footer{ color:var(--muted); text-align:center; padding:28px 0 44px; }

/* Utility (screen-reader) */

.sr-only{
    position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}