@font-face { font-family: "CeraPro"; src: url("fonts/CeraPro-Bold.woff") format("woff"); 
    font-weight: 400; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { font-family: "CeraPro"; src: url("fonts/CeraPro-Medium.woff") format("woff"); 
    font-weight: 500; 
    font-style: normal; 
    font-display: swap; 
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "CeraPro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #2d2d2d;
  background: #fff;
}
.catalog {
  width: 840px;
  margin: 64px auto;
}
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.tabs {
  display: flex;
  gap: 36px;
}
.tab {
  position: relative;
  text-decoration: none;
  color: #3d3d3d;
  font-weight: 500;
}
.tab.active { color: #46a358; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: #46a358;
}
.sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-label {
  color: #727272;
}
.select-wrap {
  position: relative;
  display: inline-flex;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 7px;
  background: url("") no-repeat center / contain;
  pointer-events: none;
}
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 0;
  padding: 6px 26px 6px 0;
  background: transparent;
  font: inherit;
  color: #3d3d3d;
  cursor: pointer;
}
select:focus { outline: none; }

.products {
  display: flex;
  gap: 33px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  width: 258px;
  height: 350px;
  display: flex;
  flex-direction: column;
}
.media {
  position: relative;
  width: 100%;
  height: 300px;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
}
.product {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hover-line {
  position: absolute;
  left: 0; top: 0;
  width: 258px; height: 1px;
  background: #46a358;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
.actions {
  position: absolute;
  left: 50%; bottom: 10%;
  transform: translate(-50%, 8px);
  display: flex; align-items: center; gap: 16px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.icon { width: 20px; height: 20px; display: block; }
.badge {
  position: absolute;
  top: 14px; left: 14px;
  width: 80px; height: 29px;
  object-fit: contain;
  display: block;
}
.card:hover .hover-line { transform: scaleX(1); }
.card:hover .actions { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.title { margin: 12px 0 6px; font-size: 16px; font-weight: 500; }
.price { margin: 0; font-size: 16px; }
.price .now { color: #46a358; font-weight: 700; }
.price .old { margin-left: 8px; color: #a5a5a5; text-decoration: line-through; font-weight: 400; }
