@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #f5f4f0;
  --white: #ffffff;
  --ink: #1a1a1a;
  --mid: #6b6b6b;
  --light: #e8e6e0;
  --accent: #c8102e;
  --accent-light: #fdf0f2;
  --green: #1a7a3c;
}

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAV */
nav {
  background: var(--white);
  padding: 0 60px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--light);
  border-top: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.logo sup {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: super;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

nav ul a {
  color: var(--mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover, nav ul a.active { color: var(--ink); }

.nav-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-phone:hover { color: var(--accent); }

.nav-wa {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-wa:hover { background: #145e2d; }

/* FOOTER */
footer {
  padding: 24px 60px;
  border-top: 1px solid #2a2a2a;
  background: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 12px;
}

footer a { color: #888; text-decoration: none; }
footer a:hover { color: #fff; }

/* SECTION UTILS */
.section-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

/* BUTTONS */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-dark:hover { background: #333; transform: translateY(-1px); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s, transform 0.15s;
}

.btn-wa:hover { background: var(--green); color: #fff; transform: translateY(-1px); }

/* SVG ICON HELPERS */
svg { display: block; }

.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Category text placeholder (catalog part cards — shown when no photo) */
.cat-placeholder {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ccc;
  text-align: center;
  line-height: 1.8;
  padding: 0 16px;
  user-select: none;
}

/* SEARCH INPUT */
.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--mid);
  pointer-events: none;
  flex-shrink: 0;
}

.search-wrap input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1.5px solid var(--light);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-wrap input:focus { border-color: var(--accent); background: var(--white); }
.search-wrap input:focus + .search-icon, .search-wrap:focus-within .search-icon { color: var(--accent); }

/* PART CARD IMAGE */
.part-card-img {
  background: var(--bg);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--light);
  position: relative;
  overflow: hidden;
  color: var(--mid);
}

.part-card-img.has-image { padding: 0; }
.part-card-img.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  nav ul { display: none; }
  footer { padding: 20px; flex-direction: column; text-align: center; }
}
