@font-face {
    font-family: "BebasNeue";
    src: url('../fonts/BebasNeue-Thin.eot') format('embedded-opentype'),
         url('../fonts/BebasNeue-Thin.woff2') format('woff2'),
         url('../fonts/BebasNeue-Thin.woff') format('woff'),
         url('../fonts/BebasNeue-Thin.ttf') format('truetype');
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: "BebasNeue";
    src: url('../fonts/BebasNeueBold.eot') format('embedded-opentype'),
         url('../fonts/BebasNeueBold.woff2') format('woff2'),
         url('../fonts/BebasNeueBold.woff') format('woff'),
         url('../fonts/BebasNeueBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "BebasNeue";
    src: url('../fonts/BebasNeueRegular.eot') format('embedded-opentype'),
         url('../fonts/BebasNeueRegular.woff2') format('woff2'),
         url('../fonts/BebasNeueRegular.woff') format('woff'),
         url('../fonts/BebasNeueRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
  font-family: Inter, sans-serif;
  background-color: #f6f3ee;
  /* background-image: url("../bg/white-abstract-texture-background.jpg");
  background-size:25%;
  background-repeat: repeat; */
  color: #2d2616;
  margin: 0;
}

.catalog {
  max-width: 1200px;
  padding: 60px 5%;
  margin: 20px auto;
}

h1 {
  font-family: "BebasNeue";
  margin-bottom: 10px;
  text-align: center;
  font-size: 42px;
}
h2 {
  font-weight: 300;
  font-size: 18px;
  text-align: center;
  margin-bottom: 60px;
  color: #433b25;
}
h3{
  font-family: "BebasNeue";
  font-size: 24px;
  margin: 0;
  padding: 0;
  line-height: 26px;
}
.catalog__main-icon{
  text-align: center;
}
.main-icon{
  width: 250px;
  height: auto;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #e8e1da;
  border-radius: 5px;
}

.filters input,
.filters select {
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #ccc;
  flex-grow: 2;
}
.filters select{
  flex-basis: 100px;
  max-width: 150px;
  background-color: #ddd5ce;
}

@media screen and (width < 560px){
  .filters input{
    width: 100%;
  }
  .filters{
    flex-wrap: wrap;
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.horse-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: ease-in-out 0.2s;
}

.horse-card:hover {
  /* transform: translateY(-4px); */
  transform: scale(1.5);
  transition: ease-in-out .2s;
}

.image {
  position: relative;
}

.image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #c59a5c;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
}

.content {
  padding: 16px;
}

.meta {
  color: #777;
  font-size: 14px;
}

.desc {
  margin: 10px 0;
}

.stats {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.btn {
  font-size: 18px;
  font-family: "BebasNeue";
  margin-top: 10px;
  background: #2f5e3e;
  color: #fff;
  border: none;
  padding: 15px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  margin-top: 5%;
  margin-bottom: 5%;
  background: #fff;
  padding: 20px;
  /* padding-top: 50px; */
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  height: 90%;
  overflow-y: scroll;
}
.modal__header{
  border-radius: 16px;
  position:fixed;
  z-index: 999;
  top: 2%;
  width: 90%;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  max-width: 700px;
  background-color: #fff;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal img {
  width: 100%;
  border-radius: 12px;
  margin: 10px 0;
}

.close {
  cursor: pointer;
  float: right;
  font-size: 24px;
}

.skeleton {
  height: 300px;
  background: linear-gradient(90deg, #eee, #ddd, #eee);
  animation: pulse 0.5s infinite;
}

@keyframes pulse {
  0% {opacity: .3;}
  50% {opacity: 1;}
  100% {opacity: .6;}
}

.horse-card {
  transition: 0.25s;
}

.horse-card:hover {
  transform:  scale(1.2);
  transition: transform .3s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.horse-card {
  opacity: 0;
  transform: scale(1);
  transition: transform .3s;
  transform: translateY(10px) translateX(10px) scale(1.2);
  transition: transform ease-in 0.5s 0.1s;
  animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}