.logo {
  position: absolute;
  right: 0;
  top: 0;
  width: 200px;
  filter: brightness(100);
}

.redbox {
  padding: 15px 30px;
  border: 1px solid #ce0000;
  background: #ce0000;
}
.redbox * {
  color: #fff;
}

.backdrop, .thankyou { 
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.6);
	justify-content: center;
  align-items: center;
  display: none;
  z-index: 10;
}

.modal {
	background: white;
	padding: 20px;
	width: 80%;
	max-width: 500px;
  border-radius: 12px;
}

label {
	display: block;
	margin-top: 10px;
}

.modal input {
    width: 100%;
    font-family: "PT Serif", serif;
    font-size: clamp(16px, 1.1vw, 20px);
    margin: 15px 0 0 0;
    border: 1px solid #ccc;
    padding: 8px 15px;
}

.modal .button {
	border: none;
  width: auto;
  padding: 12px 50px;
  cursor: pointer;
}

.kategorije-main {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #fff; 
    box-shadow: 4px 4px 14px 0 rgba(0, 0, 0, 0.13);
    padding: 30px;
    margin-top: -40px;
    z-index: 2;
}

.kategorije-wrapper {
  position: relative;
  font-family: system-ui, -apple-system, sans-serif;
  user-select: none;
}

.kategorije-trigger, .button-sort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 350px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #D3D0D0;
  cursor: pointer;
  color: #333;
  transition: all 0.3s ease;
}

.if {
  transition: transform 0.3s ease;
}

.kategorije-wrapper.open .if {
  transform: rotate(180deg);
}

.kategorije {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: max-height 0.3s ease;
}

.kategorije-wrapper.open .kategorije {
  max-height: 250px; /* Adjust based on how many items you want visible */
  overflow-y: auto;
}

.kategorije a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}

.kategorije a:hover,
.kategorije a.selected {
  background: #f8f9fa;
}


@media only screen and (min-width: 768px) and (max-width: 991px) {
    .container, .page-wrap {
      padding: 0 40px;
    }
    .button {
      padding: 12px 22px;
    }
    .item {
      gap: 20px;
    }
    .item .info {
      padding: 20px 20px 20px 0;
    }
    .modal {
      width: calc(100% - 80px);
    }
}

@media only screen and (max-width: 767px) {
    .kategorije-main {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .kategorije-trigger, .button-sort { 
      width: 100%;
      padding: 8px;
    }
    .modal {
        width: calc(100% - 40px);
    }
    .modal .button {
      width: 100%;
    }

}

.style-text h3 {
  font-size: clamp(40px, 4vw, 60px);
  color: #ce0000;
  text-wrap: balance;
}

.style-text p {
  margin: revert;
}
.style-text ul {
  margin: revert;
  padding: revert;
}
.style-text a {
  color: #ce0000;
  transition: .3s all ease-in-out;
}
.style-text a:hover {
  color: #000;
}