:root{
  --bg:#f5f5f5;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --brand:#e0f2fe;
  --accent:#2563eb;
  --border:#e5e7eb;
  --shadow: 0 10px 25px rgba(0,0,0,.06);
}

.logo{
  max-height: 105px;
  width: auto;
  display: block;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  line-height:1.6;
  background:var(--bg);
  color:var(--text);
}

.container{ max-width: 1040px; margin:0 auto; padding:0 20px; }

.topbar{ background: var(--brand); color:#fff; }
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding: 16px 0;
  gap: 24px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.nav{
  margin-left: auto;
}


.brand{ display:flex; flex-direction:column; gap:2px; }
.brand strong{ font-size: 1.15rem; letter-spacing:.2px; }
.brand span{ color:#d1d5db; font-size:.95rem; }

.nav{ display:flex; gap:10px; flex-wrap:wrap; }
.nav a{
  color:#fff; text-decoration:none; font-weight:800; font-size:.95rem;
  padding:8px 10px; border-radius:10px;
}
.nav a:hover{ background: rgba(255,255,255,.12); }
.nav a.active{ background: rgba(255,255,255,.18); }

.hero{ padding: 40px 0 18px; }
.hero h1{ margin:0 0 10px; font-size:2.2rem; letter-spacing:.2px; }
.hero p{ margin:0; color: var(--muted); max-width: 75ch; font-size:1.05rem; }

.main{ padding: 24px 0 48px; }

.grid{ display:grid; gap:16px; grid-template-columns: repeat(12, 1fr); }

.card{
  grid-column: span 12;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

@media (min-width: 900px){
  .card.third{ grid-column: span 4; }
  .card.half{ grid-column: span 6; }
}

.card h2{ margin: 0 0 6px; font-size: 1.25rem; }
.card p{ margin: 0 0 12px; color: var(--muted); }
.small{ color: var(--muted); font-size: .92rem; }

.btn{
  display:inline-block;
  background: var(--accent);
  color:#fff; text-decoration:none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 900;
}
.btn:hover{ filter: brightness(.93); }
.btn.secondary{ background:#111827; }

.hr{ height:1px; background: var(--border); margin: 14px 0; }

.linklist{ margin: 0; padding-left: 18px; color: var(--muted); }
.linklist a{ color: var(--accent); text-decoration:none; font-weight: 800; }
.linklist a:hover{ text-decoration: underline; }

/* Product grid */
.product-grid{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}
.product{
  grid-column: span 12;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: var(--shadow);
  text-decoration:none;
  color: inherit;
}
@media (min-width: 900px){
  .product{ grid-column: span 4; }
}
.product img{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
}
.product-body{ padding: 14px; }
.product-title{ margin:0 0 6px; font-size: 1.05rem; font-weight: 900; }
.product-desc{ margin:0; color: var(--muted); font-size: .95rem; }
.product:hover{ outline: 3px solid rgba(37,99,235,.18); }

.footer{
  border-top:1px solid var(--border);
  padding: 18px 0;
  background:#fff;
  text-align:center;
  color: var(--muted);
  font-size:.95rem;
}

/* --- Header override (put at bottom of file) --- */
.header-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap: 24px !important;
}

.brand{
  display:flex !important;
  align-items:center !important;
  gap: 12px !important;
}

.logo{
  max-height: 52px;
  width:auto;
  display:block;
}

.logo-link{
  display:inline-block;
}

.brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.nav{
  margin-left:auto !important;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Logo-only header (override) */
.brand{
  display:flex;
  align-items:center;
}

.logo{
  max-height: 105px;
  width: auto;
  display: block;
}

.nav{
  margin-left: auto;
}

/* Header text color override for light background */
.topbar,
.topbar a{
  color: #111827;
}

.topbar .nav a{
  color: #111827;
}

.topbar .nav a:hover,
.topbar .nav a.active{
  background: rgba(0,0,0,.06);
}
