@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
  /* font-family: 'JetBrains Mono', monospace; */

}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hidden {
  display: none !important;
}

body,
html {
  margin: 0;
  font-family: sans-serif;
}

/* VARIABLER! */
:root {
  --primary-color: #B11217;
  --primary-color-light: #FDE8E8;
  --background-color: #F2F2F2;
  --background-color-2: #F2F2F295;
  --text-color: #000000;
  --card-background: #FFFFFF;
}


/* RESPONSIVE! */

header {
  box-shadow: 2px 2px 8px rgba(0, 0, 0, .2);
  position: fixed;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
}

.header-top {
  padding: 0px 8px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 70px;
}

.search {
  display: flex;
  justify-items: center;
  gap: 4px;
  width: 100%;
}

.searchAndFilters {
  padding: 4px 0px;
  width: 100%;
}

.searchInput {
  gap: 8px;
  display: flex;
  border-radius: 9px;
  margin: 0 8px;
  border: 1px solid var(--primary-color);
  width: 100%;
  height: 43px;
  border-radius: 8px;
  padding: 0px 12px;
  align-items: center;
}




.filters button {
  height: auto;
  background-color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  color: #0a0a0a;
  fill: #0a0a0a;

}

button,
input {
  all: unset;
  box-sizing: border-box;
  font: inherit;
}

button {
  cursor: pointer;
}

:where(a, button, input):focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

button svg,
.searchInput svg {
  height: 18px;
  width: 18px;
}

.searchInput input {
  font-family: "Inter", sans-serif;
  flex: flex-grow;
  flex-grow: 1;
  width: 100%;
}

h1 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
}

::placeholder {
  font-size: 12px;
  font-family: "Inter", sans-serif;
  color: #000;
}

/* filters and chips */
.filters {
  display: flex;
  justify-content: space-around;
  padding: 8px;
  width: 100%;
  overflow-x: auto;
  gap: 8px;
  position: relative;
}

.chip {
  display: flex;
  gap: 4px;
  align-items: center;
  text-decoration: none;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #A1A1A1;
  color: #0a0a0a;
  min-height: 44px;
  font-weight: 200;
  white-space: nowrap;
  user-select: none;
  outline: none;
}

.chip:hover {
  cursor: pointer;
}


/*CARD COMPONENT*/
main {
  padding: 16px;
  padding-top: 128px;
}

.results {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-around;
}

.results::after {
  content: "";
  flex: auto;
}

.card {
  font-family: 'Inter', sans-serif;
  justify-content: space-between;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  width: min(100%, 168px);
  min-height: 228px;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 1px 1px 1px 1px #00000025;
}

button.card {
  color: inherit;
  text-align: inherit;
}

.card:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 4px;
}

.card img {
  width: 100%;
  padding: 8px;
  height: auto;
}

.card h2 {
  width: 100%;
  font: 'inter';
  font-weight: bold;
  text-align: left;
  font-size: 16px;
}

.card__imageHolder {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: #E3E3E3;
  display: flex;
  justify-content: center;
  position: relative;
}

.card__rating {
  background: #878787;
  border-radius: 9px;
  font-size: 12px;
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 2px 4px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #fff;
}

.card__rating svg {
  margin-right: 4px;

}

.card__info {
  display: flex;
  width: 100%;
  font-weight: 700;
  justify-content: space-around;
  align-items: center;
}

.card__infoTAG {
  font-size: 12px;
  color: #6f6f6f;
  display: flex;
  align-items: center;
}

.card__infoTAG svg {
  height: 11px;
  width: 11px;
  color: #6f6f6f;
  margin-right: 4px;
}

/* Overlay + drawer */
.overlay {
  font-family: "Inter", sans-serif;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 75vh;
  background: #F2F2F2;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  position: fixed;
  bottom: 0;
  z-index: 110;
  border-radius: 18px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay active state for slide up animation */
.overlay.overlay--active {
  transform: translateY(0);
}

.overlay__header {
  padding: 13px;
}

.topInfo {
  display: flex;
  padding: 0px 33px;
  display: flex;
  justify-content: space-around;
}

.title {
  margin: 0px;
  font-size: 20px;
}

.title h2,
.shortDesc {
  text-align: center;
}

.gameinfo {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.shortDesc {
  font-size: 12px;
}

.overlay__main img {
  width: 170px;
  height: 170px;
}

.drawer.open {
  max-height: 450PX;
}

.drawer {
  display: flex;
  position: absolute;
  border-radius: 24px 24px 0px 0px;
  background: #fff;
  bottom: 0px;
  width: 100%;
  max-height: 80px;
  flex-direction: column;
  align-items: center;
  transition: max-height 0.4s ease;
  padding: 8px;
  box-shadow: 4px 4px solid #00000025;
}

.drawHandle {
  background: var(--primary-color);
  height: 5px !important;
  width: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}

.drawer p {
  padding: 8px;
  font-weight: 100;
  font-size: 14px;
  text-wrap: pretty;
}

.overlay .card__rating {
  height: 22px;
  width: 50px;
  background: #878787;
  border-radius: 9px;
  font-size: 16px;
  position: absolute;
  right: 13px;
  top: 13px;
  padding: 0 4px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #fff;
}

.rating-dices {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rating-die {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 2px solid #6b7280;
  border-radius: 4px;
  background: #fff;
}

.rating-die.is-active {
  border-color: #111;
  background: #111;
}

.rating-dices svg {
  animation: roll-dice 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  /* Each dice will get a different delay using nth-child */
}

.rating-dices svg:nth-child(1) {
  animation-delay: 0s;
}

.rating-dices svg:nth-child(2) {
  animation-delay: 0.1s;
}

.rating-dices svg:nth-child(3) {
  animation-delay: 0.2s;
}

.rating-dices svg:nth-child(4) {
  animation-delay: 0.3s;
}

.rating-dices svg:nth-child(5) {
  animation-delay: 0.4s;
}

.rating-dices svg:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes roll-dice {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }

  40% {
    transform: scale(1.3) rotate(180deg);
    opacity: 1;
  }

  80% {
    transform: scale(0.9) rotate(270deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

.overlay .card__rating svg {
  margin-right: 4px;
}

.info {
  padding: 10px 55px;
  height: fit-content;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.boks {
  width: 50%;
  height: 70px;
  display: flex;
  flex-direction: column;
  font-weight: 100;
  font-size: 14px;
}

.boks span {
  padding-top: 4px;
  font-weight: 500;
  font-size: 18px;
}

.chip-dropdown {
  padding: 10px;
  display: flex;
  overflow-x: auto;
  gap: 4px;
  background: #fff;
  border-radius: 8px;
  margin: 8px 0px;
}

.chip-dropdown .chip {
  border: 1px solid var(--primary-color);
  background-color: #fff;
  color: var(--primary-color);
  height: 28px;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 8px;
}

/* Invisible overlay for sub-filters dropdown */
.sub-filters-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 199;
  display: none;
}


.sub-filters {
  display: flex;
  flex-direction: column;
  background: #fff;
  justify-content: space-around;
  padding: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  gap: 8px;
  position: absolute;
  border: 1px solid #A1A1A1;
  border-radius: 8px;
  z-index: 200;
  left: 50%;
  transform: translateX(-50%);
}

.sub-filters .sub-chip {
  border: 1px solid #A1A1A1;
  background-color: #fff;
  color: #0a0a0a;
  height: 28px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
}

.sub-filters .sub-chip.active {
  background: var(--primary-color);
  color: #fff;
}

.sub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip.active+.sub-filters {
  display: block;
  position: relative;
  margin-top: 5px;
}

.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
}

.selected-chip {
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 12px;
  color: #721c24;

  display: flex;
  align-items: center;
  gap: 5px;
}

.selected-chip button {
  background: none;
  border: none;
  cursor: pointer;
}


.game-list-empty {
  text-align: center;
  margin-top: 160px;
  width: 100%;
}

.shake {
  animation: shake 900ms;
  animation-iteration-count: 2;
  animation-fill-mode: both;
}



@keyframes shake {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  10% {
    transform: translateX(-10px) rotate(-5deg);
  }

  20% {
    transform: translateX(10px) rotate(5deg);
  }

  30% {
    transform: translateX(-10px) rotate(-5deg);
  }

  40% {
    transform: translateX(10px) rotate(5deg);
  }

  50% {
    transform: translateX(-10px) rotate(-5deg);
  }

  60% {
    transform: translateX(10px) rotate(5deg);
  }

  70% {
    transform: translateX(-10px) rotate(-5deg);
  }

  80% {
    transform: translateX(10px) translateY(10px) rotate(5deg);
  }

  90% {
    transform: translateX(-10px) translateY(-10px) rotate(-5deg);
  }
}

.brutal-shake {
  animation: brutal-shake 1s;
  animation-iteration-count: 3;
  animation-fill-mode: both;
}

.overlay-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 44px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content button {
  font-size: 18px;
  margin-top: 10px;
  padding: 5px 10px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content button:hover {
  background: #7f0d11;
}

#form-wrapper {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
}

form {
  width: 90%;
  max-width: 500px;
}

form #form-title {
  margin-top: 0;
  font-weight: 400;
  text-align: center;
}

form #debt-amount-slider {
  display: flex;
  flex-direction: row;
  align-content: stretch;
  position: relative;
  width: 100%;
  height: 50px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

form #debt-amount-slider::before {
  content: " ";
  position: absolute;
  height: 2px;
  width: 100%;
  width: calc(100% * (4 / 5));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
}

form #debt-amount-slider input,
form #debt-amount-slider label {
  box-sizing: border-box;
  flex: 1;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

form #debt-amount-slider label {
  display: inline-block;
  position: relative;
  width: 20%;
  height: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

form #debt-amount-slider label::before {
  content: attr(data-debt-amount);
  position: absolute;
  left: 50%;
  padding-top: 10px;
  transform: translate(-50%, 45px);
  font-size: 14px;
  letter-spacing: 0.4px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0.85;
  transition: all 0.15s ease-in-out;
}

form #debt-amount-slider label::after {
  content: " ";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 1;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

form #debt-amount-slider label:hover::after {
  transform: translate(-50%, -50%) scale(1.25);
}

form #debt-amount-slider input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

form #debt-amount-slider input:focus-visible + label::after {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

form #debt-amount-slider input:checked+label::before {
  font-weight: 800;
  opacity: 1;
}

form #debt-amount-slider input:checked+label::after {
  border-width: 2px;
  border-color: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.2);
}

form #debt-amount-slider input:checked~#debt-amount-pos {
  opacity: 1;
}

form #debt-amount-slider input:checked:nth-child(1)~#debt-amount-pos {
  left: 10%;
}

form #debt-amount-slider input:checked:nth-child(3)~#debt-amount-pos {
  left: 30%;
}

form #debt-amount-slider input:checked:nth-child(5)~#debt-amount-pos {
  left: 50%;
}

form #debt-amount-slider input:checked:nth-child(7)~#debt-amount-pos {
  left: 70%;
}

form #debt-amount-slider input:checked:nth-child(9)~#debt-amount-pos {
  left: 90%;
}

form #debt-amount-slider #debt-amount-pos {
  display: block;
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  transition: all 0.15s ease-in-out;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  opacity: 0;
  z-index: 2;
}

form:valid #debt-amount-slider input+label::before {
  transform: translate(-50%, 45px) scale(0.9);
  transition: all 0.15s linear;
}

form:valid #debt-amount-slider input:checked+label::before {
  transform: translate(-50%, 45px) scale(1.1);
  transition: all 0.15s linear;
}

form+button {
  display: block;
  position: relative;
  margin: 56px auto 0;
  padding: 10px 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: all 0.15s ease-in-out;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  outline: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

form+button:hover {
  background: #000;
  color: #fff;
}

form+button:hover:active {
  transform: scale(0.9);
}

form+button:focus {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
  pointer-events: none;
}

form+button:focus::before {
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

form+button::before {
  display: inline-block;
  width: 0;
  opacity: 0;
  content: "";
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
  margin-right: 0;
  transform: rotate(0deg);
}

form:invalid+button {
  pointer-events: none;
  opacity: 0.25;
}

@-webkit-keyframes spin {
  from {
    transform: rotate(0deg);
    width: 24px;
    opacity: 1;
    margin-right: 12px;
  }

  to {
    transform: rotate(360deg);
    width: 24px;
    opacity: 1;
    margin-right: 12px;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
    width: 24px;
    opacity: 1;
    margin-right: 12px;
  }

  to {
    transform: rotate(360deg);
    width: 24px;
    opacity: 1;
    margin-right: 12px;
  }
}


.footer-nav {
  padding: 0px 0px;
  box-shadow: 2px -2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  z-index: 100;
  width: 100%;
  display: flex;
  bottom: 0;
  background: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.9);
}

.chip-info {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background-color: var(--background-color-2);
  color: #333;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 12px;
  z-index: 100;
}

.back {
  fill: #000000;
  width: 44px;
  height: 44px;
}


.locationData,
.playersForm,
.locationsForm,
.timeForm,
.difficultyForm,
.genreForm,
.sortForm {
  display: none;
  justify-content: space-around;
}

.active {
  border-color: var(--primary-color);
  font-weight: 600;
}

.locationsForm {
  padding: 0px 16px;
}


.playersForm {
  height: 100px;
  padding: 16px 0px;
}

.towns {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 16px 0px;
  justify-content: space-between;
}

.timeForm h2 {
  margin: 0 0 1.5rem 0;
  color: #333;
}

.timeForm .radio-group {
  display: flex;
  gap: 2rem;
  position: relative;
}

.timeForm input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.timeForm input[type="radio"]:focus-visible + label,
.difficultyForm input[type="radio"]:focus-visible + label {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

.timeForm label {
  cursor: pointer;
  padding: 0.5rem 0;
  color: #666;
  transition: color 0.3s;
  position: relative;
}

.timeForm label:hover {
  color: #333;
}

.timeForm input[type="radio"]:checked+label {
  color: var(--primary-color);
  font-weight: 500;
}

.timeForm .underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  pointer-events: none;
}

.timeForm form {
  display: flex;
  justify-content: space-evenly;
}

.difficultyForm form {
  display: flex;
  justify-content: space-evenly;
  padding: 8px 0;
  gap:4px;
}

.difficultyForm input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.genreForm .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
}

.sortForm {
  padding: 8px 16px;

}

@media (min-width: 768px) {
  .header-top {
    padding-inline: clamp(24px, 5vw, 72px);
  }

  .filters {
    justify-content: center;
  }

  main {
    padding: 156px clamp(24px, 5vw, 72px) 80px;
  }

  .results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    max-width: 1280px;
    margin-inline: auto;
  }

  .results::after {
    display: none;
  }

  .card {
    width: 100%;
    max-width: 240px;
    min-height: 280px;
    justify-self: center;
  }

  .card__imageHolder {
    width: 160px;
    height: 160px;
  }

  .overlay {
    width: min(720px, calc(100% - 48px));
    left: 50%;
    transform: translate(-50%, 100%);
  }

  .overlay.overlay--active {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

/* Delaflevering 2: visuelt system fra brandmanualen */
:root {
  --primary-color: #B00020;
  --primary-dark: #8A0018;
  --warm-dark: #3C342F;
  --warm-white: #FBF9F1;
  --sand: #F0E7DA;
  --grey: #595959;
  --primary-color-light: #FDE8E8;
  --background-color: var(--warm-white);
  --background-color-2: rgba(251, 249, 241, 0.96);
  --text-color: var(--warm-dark);
  --card-background: #FFFFFF;
}

html {
  background: var(--warm-white);
  color: var(--warm-dark);
}

body {
  min-height: 100vh;
  background: var(--warm-white);
  color: var(--warm-dark);
}

header {
  background: rgba(251, 249, 241, 0.97);
  border-bottom: 1px solid var(--sand);
  box-shadow: 0 2px 10px rgba(60, 52, 47, 0.08);
}

.header-top {
  height: 64px;
  gap: 8px;
}

.header-top > a {
  flex: 0 0 auto;
  border-radius: 50%;
}

.searchInput {
  height: 44px;
  margin: 0;
  border: 1px solid #D8D1C8;
  background: #FFFFFF;
}

.searchInput:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.12);
}

.filters {
  justify-content: flex-start;
  padding: 6px 8px 10px;
  scrollbar-width: thin;
}

.chip {
  min-height: 44px;
  border-color: #C9BFB5;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--warm-dark);
  font-weight: 500;
}

.chip:hover {
  border-color: var(--primary-color);
}

.chip.active,
.chip[aria-pressed="true"] {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #FFFFFF;
}

.results-heading {
  width: min(100%, 1180px);
  margin: 0 auto 14px;
}

.results-heading h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: var(--warm-dark);
}

.results-heading p {
  margin-top: 4px;
  color: var(--grey);
  font-size: 0.875rem;
}

main {
  padding: 144px 12px 72px;
}

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  justify-content: initial;
  max-width: 1180px;
  margin: 0 auto;
}

.results::after {
  display: none;
}

.card {
  width: 100%;
  min-height: 0;
  padding: 8px;
  gap: 7px;
  align-items: stretch;
  border: 1px solid #E5DED5;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(60, 52, 47, 0.09);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  border-color: #C9BFB5;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(60, 52, 47, 0.13);
}

.card__imageHolder {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #F2F0EC;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.card h2 {
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--warm-dark);
}

.card__info {
  justify-content: flex-start;
  gap: 10px;
}

.card__infoTAG {
  font-size: 0.68rem;
  color: var(--grey);
}

.card__rating {
  right: 5px;
  top: 5px;
  background: rgba(60, 52, 47, 0.9);
}

.chip-info {
  bottom: 12px;
  right: 12px;
  border: 1px solid var(--sand);
  box-shadow: 0 2px 8px rgba(60, 52, 47, 0.1);
}

.sub-filters-under {
  background: var(--warm-white);
  border-top: 1px solid var(--sand);
}

.overlay {
  background: #ECEBE8;
  color: var(--warm-dark);
  border: 1px solid #D8D1C8;
}

.drawer {
  color: var(--warm-dark);
}

@media (min-width: 768px) {
  .header-top {
    height: 76px;
    max-width: 1280px;
    margin: 0 auto;
  }

  .searchAndFilters {
    max-width: 460px;
  }

  .filters {
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
  }

  main {
    padding: 160px clamp(24px, 5vw, 72px) 80px;
  }

  .results {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 14px;
  }

  .card {
    max-width: 170px;
    min-height: 0;
    padding: 9px;
  }

  .card__imageHolder {
    width: 100%;
    height: auto;
  }

  .overlay {
    height: min(680px, 82vh);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(60, 52, 47, 0.22);
  }
}

@media (min-width: 1120px) {
  .results {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
