/* ----- Generic Reset Styles for Icon Buttons ----- */
.icon-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 24px;
  min-height: 24px;

  width: 24px;
  /* make square for better balance */
  height: 24px;
}


/* ----- Generic Reset Styles for Search Inputs ----- */
.search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  height: 40px;
  font-size: 14px;
  padding: 0 12px;
  max-width: 90%;
  transition: all 0.2s ease-out 0.2s;

  color: var(--mb-lightest, #4A4B44);
  /* Search */
  font-family: Montserrat;
  font-size: 11px;
  font-style: normal;
  font-weight: 540;
  line-height: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-overlay.hidden .search-input {
  opacity: 0;
  transform: translateX(-10px);
}

/* Search input focus animation */
.search-input:focus {
  opacity: 1;
  transform: translateX(0);
}



/* Search bar border */
.search-bar-border {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  border-top: rgb(from var(--ib) r g b / 0.5) 1px solid;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

/* Search bar container */
.search-bar-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  z-index: 1000;
}

/* ----- Unified Search Icon Styles ----- */
.search-icon,
.sidebar-search-icon,
.search-overlay-icon {
  display: block;
  width: 24px !important;
  height: 24px !important;
  max-width: 100%;
  flex-shrink: 0;
  /* prevent flexbox from collapsing */
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}





#menu-overlay {
  position: fixed;
  top: var(--header-height);
  height: auto;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  overflow-x: hidden;
  left: 0;
  right: 0;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 99999;
  transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  backdrop-filter: blur(10px);
}

/* Menu overlay transitions - simple opacity only */
#menu-overlay:not(.hidden) {
  opacity: 1;
  backdrop-filter: blur(10px);
}

#menu-overlay.hidden {
  opacity: 0;
  backdrop-filter: blur(0px);
}

/* Fade in animation for menu content */
#menu-overlay .menu-sections {
  opacity: 1;
  transition: opacity 0.3s ease-out 0.1s;
}

#menu-overlay.hidden .menu-sections {
  opacity: 0;
}



@media only screen and (max-width: 640px) {
  .search-overlay {
    padding: 0 20px 12px !important;
  }

  #search-overlay {
    padding: 0 20px 12px !important;
  }
}

/* the "moved" bottom border */
#search-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 25px;
  height: 1px;
  background: rgb(from var(--ib) r g b / 0.5);
  pointer-events: none;
}

/* Hidden class - updated for animations */
.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Special case for dropdown menu to maintain display: none behavior */
.dropdown-menu.hidden {
  display: none;
}

.atelier {
  color: var(--mb);
  text-align: center;

  /* Button text/Mobile */
  font-family: Montserrat;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.popular-searches {
  padding-top: 30px;
}


/* Popular searches */
.popular-searches span {
  color: var(--mb);
  text-align: center;

  /* Hamburger Menu - Primary/DT */
  font-family: Montserrat;
  font-size: 13px;
  font-style: normal;
  font-weight: 540;
  line-height: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popular-searches ul {
  margin: 0;
  padding: 12px 0 0 0;
  /* push li’s down */
  list-style: none;
}

.popular-searches ul li {
  font-size: 12px;
  color: var(--dc-greys-900);
  margin-bottom: 10px;

}

.popular-searches ul li a {
  color: var(--mb-lighter, #33342E);
  /* Hamburger Menu - Secondary/DT */
  font-family: Montserrat;
  font-size: 12px;
  font-style: normal;
  font-weight: 540;
  line-height: normal;
  text-transform: capitalize;
  text-decoration: none;
  margin-left: 5px;

}

.popular-searches ul li a:hover {
  text-decoration: none;
}

/* ----- Layout ----- */
.sidebar-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 0;
}

/* ----- Sidebar ----- */
.sidebar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: transparent;
  box-sizing: border-box;
}

/* ----- Suggested Block ----- */
.suggested-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggested-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dc-greys-900);
}

.suggested-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}


.suggested-list li a {
  text-decoration: none;
  color: var(--mb-lightest, #4A4B44);

  /* Hamburger Menu - Secondary/DT */
  font-family: Montserrat;
  font-size: 12px;
  font-style: normal;
  font-weight: 540;
  line-height: normal;
  text-transform: capitalize;
  margin-left: 5px;
}

.suggested-list li a:hover {
  text-decoration: none;
}

/* ----- Main Content ----- */
.dashboard-main {
  /*padding: 24px 48px;*/
}

.dashboard-heading {
  /*  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;*/
  color: var(--mb-lighter, #33342E);
  text-align: center;

  /* Hamburger Menu - Primary/DT */
  font-family: Montserrat;
  font-size: 13px;
  font-style: normal;
  font-weight: 540;
  line-height: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;

}

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


.search-result-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.18s ease;
  width: 182px;
  /* match image width */
  margin: 0 auto;
  /* center it inside the grid cell */


}

.result-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.search-img {
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  border: none;
  display: block;
  width: 182px;
  height: 278px;
  flex-shrink: 0;
  aspect-ratio: 91/139;

}

.search-result-card .tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* pushes left + right apart */
}

.search-result-card .tags::before {
  content: "";
  width: 64px;
  /* fixed width from Figma */
  height: 0.5px;
  background: var(--DC-Greys-500, #999);
  display: inline-block;
}




.tags {
  margin: 0;
  text-decoration: none;
  color: var(--mb-lighter, #33342E);
  /* Price text */
  font-family: "Bodoni Moda";
  font-size: 11px;
  font-style: normal;
  line-height: normal;

}

.author {
  color: var(--mb-lighter, #33342E);

  /* Location Text */
  font-family: Montserrat;
  font-size: 11px;
  font-style: normal;
  font-weight: 479;
  line-height: normal;
}



.artist-name {
  color: var(--mb-lighter, #33342E);
  /* Hamburger Menu - Primary/DT */
  font-family: Montserrat;
  font-size: 13px;
  font-style: normal;
  font-weight: 540;
  line-height: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;

}


.sidebar-search-form {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.sidebar-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 14px;
}

.sidebar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}


.search-icon,
.hamburger-icon {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
  top: 2px;
}

.menu-sections {
  display: grid;
  grid-template-columns: 250px 250px 250px;
  /* fixed widths instead of 1fr */
  gap: 144px;
  /* small gap between them */
  justify-content: center;
  /* center the group */
  margin: 30px 60px 0;
  /* adjust vertical spacing as you like */
  padding: 0;
  width: max-content;
  /* shrink container to fit columns */
}

.menu-section {
  min-width: 250px;
  /* keep all sections same width */
}





.menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-section ul li {
  color: var(--mb-lighter, #33342E);
  /* Hamburger Menu - Secondary/DT */
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
  margin-bottom: 10px;
  letter-spacing: 0.08em;

}




/* Mobile menu footer - stack vertically */
@media only screen and (max-width: 640px) {
  .menu-footer {
    justify-content: flex-end;
  }

  .menu-footer ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 1em;
  }
}


.close-btn {
  position: absolute;
  top: 16px;
  right: 70px;
  /* or keep right:16px with transform */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  z-index: 9999;
  pointer-events: auto;
}

.close-icon {
  width: 24px;
  height: 24px;
}


.sidebar-search-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: var(--quaver);
}

.search-input {
  flex: 1;
  padding: 0.5em 0.75em;
  border: 1px solid var(--grey-200);
  border-radius: var(--border-radius, 4px);
  font-size: 0.95em;
  letter-spacing: 0.08em;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: var(--quaver);
  margin-top: var(--crotchet);
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-dropdown {
  padding: 0.5em;
  border: 1px solid var(--grey-200);
  border-radius: var(--border-radius, 4px);
  background: var(--grey-100);
  font-size: 0.95em;
}

.search-page-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* Scope all sidebar rules to only the search page */
.search-page-layout .sidebar {
  padding: 24px;
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-page-layout .dashboard-main {
  flex: 1;
  padding: 24px 48px;
}

.search-page-layout .sidebar-search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: transparent;
  box-sizing: border-box;
}