/*
Theme Name: Cochrane Revamp
Theme URI:  https://cochranemarket.com
Author:      Joe Cochrane
Author URI:  https://cochranemarket.com
Description: Minimal theme built to work with CM-REVAMP2 plugin.
Version:     1.0
License:     GNU General Public License v2 or later
Text Domain: cochrane-revamp
*/

:root{
  --site-max-width: 1200px;
}

body {
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--cm-body-bg, #f7f7f7);
  color: var(--cm-body-text, #222);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.site {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: var(--cm-header-bg, #fff);
  color: var(--cm-header-text, #111);
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.site-branding { display:flex; align-items:center; gap:12px; }

.site-title { font-size:1.25rem; margin:0; }

.site-prefooter { padding: 28px 0; background: var(--cm-prefooter-bg, #fff); color: var(--cm-prefooter-text, #111); }

.site-footer { padding: 20px 0; background: var(--cm-footer-bg, #222); color: var(--cm-footer-text, #fff); margin-top: 24px; }

.content { padding: 24px 0; }

.ad-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.ad-card {
  background: #fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display:flex;
  flex-direction:column;
}

.ad-card .thumb { width:100%; height:160px; object-fit:cover; display:block; }

.ad-card .meta { padding:12px; flex:1; display:flex; flex-direction:column; gap:8px; }

.ad-card .title { font-weight:600; font-size:1rem; margin:0; }

.ad-card .price { color:#0073aa; font-weight:700; }

@media (max-width:768px){
  .site { padding: 0 12px; }
}

