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

.card {
  width: 200px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding-bottom: 18px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; /* juster afstanden mellem kortene */
}
.cards a {
  text-decoration: none;
  color: inherit;
}
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.card p {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  padding: 0 10px;
}

body {
  background: #fff;
  font-family: "Inter", sans-serif;
}

.app {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 60px 80px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.icon {
  font-size: 28px;
  flex-shrink: 0;
}
.icon svg {
  width: 28px;
  height: 28px;
  stroke: #000;
  fill: none;
  stroke-width: 2;
  cursor: pointer;
}
.menu {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #000;
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

.hero {
  text-align: center;
}

.hero h1 {
  font-size: 120px;
  font-weight: 900;
  line-height: 0.9;
  text-decoration: none;
}

.hero h1 a {
  color: inherit;
  text-decoration: none;
}

.hero h2 {
  font-family: "Inter", sans-serif;
  font-size: 56px;
  font-weight: 400;
  margin: -10px 0 20px;
}

.hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

h3 {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  margin: 40px 0 30px;
}

h3 span {
  font-weight: 400;
}

/* Container til knapper og dropdown */
.controls {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
}

/* De enkelte filter-knapper */
.filter-btn {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  transition: all 0.2s ease;
}

/* Når man holder musen over knapperne (Hover) */
.filter-btn:hover {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* Selve dropdown-menuen */
#price-sort {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: "Inter", sans-serif;
  cursor: pointer;
}

.suggestion-box {
  margin-top: 40px;
  padding: 20px;
  background: #f0f0f0;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.suggestion-box p {
  margin-bottom: 20px;
}

#product-suggestion {
  display: flex;
  flex-direction: column; /* Stabel på mobil */
  gap: 15px;
  max-width: 100%; /* Fyld bredden på mobil */
  margin: 0 auto;
}

/* Container for label + input */
.form-group {
  display: flex;
  flex-direction: column; /* Label over input på mobil */
  gap: 5px;
  text-align: left;
}

#product-suggestion label {
  font-weight: bold;
}

#product-suggestion input,
#product-suggestion select {
  padding: 12px;
  border: 1px solid #333;
  width: 100%; /* Inputs fylder gruppen */
  box-sizing: border-box; /* Vigtigt for padding */
}

/* KNAPPEN PÅ MOBIL */
#product-suggestion button {
  background: #000;
  color: #fff;
  padding: 15px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  width: 100%; /* Fuld bredde på mobil er fint */
}

@media (max-width: 600px) {
  .cards {
    display: grid;
    /* 1fr betyder "brug den ledige plads" - det forhindrer dem i at blive for brede */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    /* Dette sikrer, at hele grid'et holder sig indenfor skærmen */
    width: 100%;
    box-sizing: border-box;
  }

  .card {
    /* Fjern eventuelle faste width: 300px eller lignende! */
    width: auto;
    background: white;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    /* Sørg for at padding ikke gør kortet bredere end de 50% */
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 220px;
  }

  .card img {
    width: 100%; /* Billedet skal følge kortets bredde */
    max-height: 120px; /* Juster denne ned, hvis kortene føles for lange */
    object-fit: contain;
  }
  .card p {
    font-size: 14px;
  }
  .hero h1 {
    font-size: 48px;
    line-height: 1;
    text-decoration: none;
  }
  .hero h1 a {
    color: inherit;
    text-decoration: none;
  }
  .hero h2 {
    font-size: 28px;
    margin: 0 0 14px;
  }

  .hero img {
    height: 220px;
  }

  h3 {
    font-size: 24px;
    margin: 30px 0 20px;
  }
  .controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-group {
    flex-direction: row; /* På linje! */
    align-items: center; /* Centreret vertikalt */
    justify-content: flex-end; /* Skub mod højre */
  }

  /* Fast bredde til labels så inputs flugter */
  #product-suggestion label {
    width: 120px; /* Juster denne hvis nødvendigt */
    margin-right: 15px;
    text-align: right;
  }

  /* Inputs får fast bredde så de flugter */
  #product-suggestion input,
  #product-suggestion select {
    width: 300px; /* Juster denne */
  }

  /* KNAPPEN PÅ DESKTOP (Fixer "for lang") */
  #product-suggestion button {
    width: auto; /* Ikke 100% */
    padding: 12px 30px; /* Lidt smallere */
    align-self: flex-end; /* Skub helt til højre foran inputs */
    margin-right: 0;
  }
}
