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

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column; /* Use flexbox for sticky footer */
  overflow-x: hidden;
}

header {
  background-color: #333;
  padding: 20px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

nav ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

nav ul.nav-left {
  flex: 1;
}

nav ul.nav-center {
  flex: 2;
  justify-content: center;
}

nav ul.nav-right {
  flex: 1;
  justify-content: flex-end;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

nav ul li a img {
  filter: brightness(0) invert(1);
  width: 100px;
  height: auto;
}

header h1 {
  font-size: 3em;
  margin-bottom: 20px;
  padding-top: 100px;
}

.main-content {
  flex: 1; /* Fill remaining vertical space */
  display: flex;
  flex-direction: column; /* Ensure flex items stack vertically */
}

.filter-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.filter-section label {
  margin-right: 10px;
  font-size: 1.1rem;
  color: #333;
}

.filter-section select,
.filter-section input[type="text"] {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.filter-section select {
  min-width: 150px;
}

.filter-section input[type="text"] {
  flex: 1;
}

.filter-section select:focus,
.filter-section input[type="text"]:focus {
  outline: none;
  border-color: #66afe9;
}

/* CSS for brand filter dropdown */
#brand-dropdown {
  background-color: #fff;
  color: #333;
}

#brand-dropdown option {
  background-color: #fff;
  color: #333;
}

/* CSS for brand search input */
#brand-search {
  max-width: 300px;
}

.brands {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Adjust alignment as needed */
  flex-wrap: wrap;
  margin-top: 50px;
  flex: 1; /* Fill remaining vertical space */
}

.brand {
  width: 280px;
  height: 280px;
  margin: 20px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f7f7f7;
}

.brand > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.1);
}

/* Stilizacija moda */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal img:hover {
  transform: scale(2); /* Scale the image to 110% of its original size */
  transition: transform 0.3s ease; /* Smooth transition */
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Perfume details styles */
.perfume-item {
  margin-bottom: 20px;
  text-align: center;
  position: relative; /* Za badge unutar parfema */
}

.perfume-item img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  display: inline-block;
  margin: 0 10px;
}

.perfume-item p {
  margin-top: 10px;
  font-size: 1.2em;
}
footer {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px; /* Adjust padding to your needs */
  font-family: "Arial", sans-serif; /* Use a clean, readable font */
}

.footer-left,
.footer-right {
  flex: 0 0 auto;
}

.footer-left img {
  width: 100px;
  height: auto;
}
.footer-right img {
  width: 75px; /* Adjust the width to make it smaller */
  height: auto; /* Maintain aspect ratio */
  margin-right: 20px; /* Optional: Adjust margin if needed */
}
.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  font-family: "Georgia", serif;
}

.footer-content p {
  margin-bottom: 10px;
}

.white-icon {
  filter: brightness(0) invert(1);
  width: 30px; /* Adjust size as needed */
  height: 30px;
}

/* NEW BADGE za brendove i parfeme */
.new-badge-img {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;   /* ili 28px, probaj manju vrednost */
  height: 32px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
.new-badge-inline {
  width: 28px;
  height: 28px;
  margin-left: 8px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }
  nav ul {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .filter-section {
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    width: 100%;
  }

  .modal-content {
    width: 90%;
  }
  .footer-left img {
    width: 80px; /* Resize the logo in the footer on tablets and smaller devices */
  }

  .footer-right img {
    width: 60px; /* Resize the other image in the footer on tablets and smaller devices */
  }
}

@media (max-width: 480px) {
  nav {
    padding: 10px;
  }

  nav ul {
    flex-direction: row;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    white-space: nowrap; /* Prevent items from wrapping */
    gap: 5px; /* Adjust the gap between items */
  }

  nav ul li {
    flex: 0 0 auto;
  }

  nav ul li a {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  nav ul li a img {
    width: 70px; /* Adjust logo size on very small screens */
  }

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

  .modal-content {
    width: 95%;
  }

  footer {
    font-size: 0.9em;
  }
  .footer-left img {
    width: 60px; /* Further resize for smaller mobile devices */
  }

  .footer-right img {
    width: 50px; /* Further resize for smaller mobile devices */
  }
}