@font-face {
  font-family: 'Synco';
  src: url('../fonts/Syncopate-Regular.ttf') ; /* Adjust the path as needed */
  font-weight: normal; /* or 400 */
  font-style: normal; /* or italic, if it's an italic font */
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf'); /* Adjust the path as needed */
  font-weight: 100; /* or 400 */
  font-style: normal; /* or italic, if it's an italic font */
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat3';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf'); /* Adjust the path as needed */
  font-weight: normal; /* or 400 */
  font-style: normal; /* or italic, if it's an italic font */
  font-display: swap;
}
#filter-container {
display: flex;
align-items: flex-start;
margin-top: 20px;
margin-bottom: 60px;
}

#sidebar {
width: 15%;
margin-left: 4%;
margin-right: 1%;
position: relative;
align-self: flex-start;
}

.sidebar-label{
display: flex;
align-items: center;
justify-content: center;
background-color: #dce4ea;
width: 100%;
min-height: 52px;
text-align: center;
padding: 8px 0;
color: #111;
text-transform: uppercase;
  font-family: 'Synco', sans-serif;
  box-sizing: border-box;
}



.main-label{
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #dce4ea;
  width: 100%;
  flex: 0 0 100%;
  min-height: 52px;
  padding: 8px 16px;
  color: #111;
  text-transform: uppercase;
  font-family: 'Synco', sans-serif;
  box-sizing: border-box;
}

.logo-big-label {
  height: 36px;
  width: auto;
}

#main {
width: 80%;
margin-right: 4%;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-content: flex-start;
align-self: flex-start;
}

#cards-container {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-content: flex-start;
width: 100%;
position: relative;
}

.sidebar-card {
position: relative;
overflow: hidden;
box-sizing: border-box;
width: calc(33.333% - 20px); /* 3 cards per row */
margin: 10px; /* Consistent margin */
}

.sidebar-card img {
width: 100%;
height: 250px;
object-fit: cover;
}

/* ── POLOVNI CARD ── */
.sidebar-card {
  cursor: pointer;
  transition: box-shadow 0.35s ease;
}

.sidebar-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.polovni-img-wrap {
  overflow: hidden;
  position: relative;
}

.polovni-img-wrap img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.sidebar-card:hover .polovni-img-wrap img {
  transform: scale(1.06);
}

.polovni-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.45s ease;
  pointer-events: none;
}

.sidebar-card:hover .polovni-img-wrap::after {
  background: rgba(0, 0, 0, 0.15);
}

.polovni-card-content {
  background: #f5f5f5;
  padding: 18px 14px 20px;
}

.polovni-card-title {
  font-family: 'Montserrat3', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #111;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polovni-card-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0 0 14px;
}

.polovni-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.polovni-spec {
  display: flex;
  flex-direction: column;
}

.polovni-spec-label {
  font-family: 'Montserrat3', sans-serif;
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.polovni-spec-value {
  font-family: 'Montserrat3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-content {
  position: absolute;
  bottom: 0; /* Start from the bottom */
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  color: white; /* Assuming white text color */
  transition: all 0.3s ease; /* Smooth transition for the hover effect */
  max-height: 40px; /* Adjust as needed to only show the title initially */
  height: 100%;
  overflow: hidden; /* Hide the rest of the content */
  /* Other styles as needed */
}

.sidebar-card:hover .card-content {
  max-height: 100%; /* Expand to show full content on hover */
  /* Adjust other styles if needed for hover state */
}
.card-title{
  font-family: 'Synco', sans-serif;
  display: flex;
  justify-content: center;
  text-align: center;
}
.card-button:hover{
  color:white;
  scale: 1.1;
  box-shadow: 0 0px 20px #003b63 ;
  border: none;
}
.card-button{
  margin-top: 15px;
}
.card-specs, .card-button{
  font-family: 'Montserrat3', sans-serif;
  border: none;
}
/* Styles for other elements inside .card-content */
.card-title, .card-specs, .card-button {
  padding: 10px; /* Add padding for better spacing */
  /* Other styles as needed */
  text-transform: uppercase;
}
.spec {
  display: flex;
  justify-content: space-between; /* This will push the key to the left and the value to the right */
  align-items: center; /* This will vertically center-align the key and value if they have different heights */
}

.key, .value {
  margin: 0; /* Adjust as necessary */
  padding: 0; /* Adjust as necessary */
}

/* You may also want to ensure that the key and value do not wrap onto multiple lines */
.key, .value {
  white-space: nowrap; /* Prevents wrapping */
  overflow: hidden; /* Ensures overflow text is hidden */
  text-overflow: ellipsis; /* Adds an ellipsis (...) to text that overflows */
  font-size: 14px;
}
.spec-divider {
  border: none;
  height: 1px;
  background-color: #fff; /* Assuming white divider color */
  margin: 5px 0; /* Spacing around the divider */
}


/* Responsive adjustments */
@media (max-width: 1200px) {
.sidebar-card {
  width: calc(50% - 20px); /* 2 cards per row */
}
}

@media(max-width:1440px){
  #sidebar{
     width: 23%;
  }
 
 }
@media(max-width:1024px){
.sidebar-card {
width: calc(50% - 20px);
}
#main{
width: 100%;
}
.cyberpunk-checkbox-label{
    margin-bottom: 0;
    margin-left: 10px;
}
#filter-container {
  flex-direction: column; /* Stacks the sidebar above the main content */
}

#sidebar {
  width: 100%; /* Full width for the sidebar */
  order: -1; /* Ensures sidebar is placed above main content */
}
#sidebar, #main {
width: 100%;
margin-left: 0;
margin-right: 0;
box-sizing: border-box;
}
.sidebar-label, .main-label {
width: 100%; /* Sets the label width to full viewport width */
margin-left: 0; /* Removes any left margin if present */
margin-right: 0; /* Removes any right margin if present */
box-sizing: border-box; /* Ensures padding and border are included in the width */
display: block; /* Ensure labels are block level elements */
}
}

@media (max-width: 610px) {
.sidebar-card {
  width: calc(100% - 20px); /* 1 card per row */
}
#main{
  width: 100%;
}
.cyberpunk-checkbox-label{
      margin-bottom: 0;
  }
#filter-container {
    flex-direction: column; /* Stacks the sidebar above the main content */
}

#sidebar {
    width: 100%; /* Full width for the sidebar */
    order: -1; /* Ensures sidebar is placed above main content */
}

}

@media (max-width: 425px) {
.main-label{
  font-size: 15px;
}
.main-label img{
  width: 150px;
}
.sidebar-label{
  font-size: 15px;
}
}
@media (max-width: 350px) {
.main-label{
  font-size: 10px;
}
.main-label img{
  width: 150px;
}
.sidebar-label{
  font-size: 15px;
}
}

  

.cyberpunk-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #dce4ea;
  border-radius: 5px;
  background-color: #dce4ea;
  display: inline-block;
  position: relative;
  margin-right: 10px;
  cursor: pointer;

}

.cyberpunk-checkbox:before {
  content: "";
  background-color: rgb(2, 19, 26);
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 15px;
  height: 15px;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.cyberpunk-checkbox:checked:before {
  transform: translate(-50%, -50%) scale(1);
}

.cyberpunk-checkbox-label {
  text-transform: uppercase   ;
  font-family: 'Synco', sans-serif;
  color: black;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
}


/*LOADER*/ 

.loader {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 40px auto;
  width: 150px;
  height: 150px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 25px 25px 75px rgba(0,0,0,0.55);
  border: 1px solid #dce4ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  
}

.loader::before {
  content: '';
  position: absolute;
  inset: 20px;
  background: transparent;
  border: 1px dashed #dce4ea;
  border-radius: 50%;
  box-shadow: inset -5px -5px 25px rgba(0,0,0,0.25),
  inset 5px 5px 35px rgba(0,0,0,0.25);
}

.loader::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px dashed #dce4ea;
  box-shadow: inset -5px -5px 25px rgba(0,0,0,0.25),
  inset 5px 5px 35px rgba(0,0,0,0.25);
}

.loader span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 100%;
  background: transparent;
  transform-origin: top left;
  animation: radar82 2s linear infinite;
  border-top: 1px dashed #fff;
}

.loader span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #dce4ea;
  transform-origin: top left;
  transform: rotate(-55deg);
  filter: blur(30px) drop-shadow(20px 20px 20px #dce4ea);
}

@keyframes radar82 {
  0% {
    transform: rotate(0deg);
  }

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

