/* Yume Craft v2 — Compact Frosted Glass Search Dropdown */
.drawer-heading .v2-search-close-lines { display: none; }

.drawer-overlay.is-search {
  z-index: 48;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink);
  display: block;
  padding: 0;
}

.drawer-overlay.is-search .drawer-backdrop {
  background: transparent;
  transition: none;
}

.drawer-overlay.is-search .drawer {
  position: absolute;
  top: calc(22px + var(--glass-height, 36px) + 8px);
  left: calc(var(--v2-page-gutter, 32px) + 62px);
  right: auto;
  bottom: auto;
  width: min(360px, calc(100vw - var(--v2-page-gutter, 32px) * 2 - 62px));
  max-width: none;
  height: auto;
  max-height: min(460px, calc(100svh - 84px));
  padding: 12px;
  border-radius: 20px;
  background: var(--glass-tint-panel, rgba(244, 244, 247, 0.56));
  backdrop-filter: var(--glass-blur-panel, blur(30px) saturate(1.2));
  -webkit-backdrop-filter: var(--glass-blur-panel, blur(30px) saturate(1.2));
  border: 0;
  box-shadow: none;
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform-origin: top left;
  transform: scale(0.92) !important;
  opacity: 0;
  transition: opacity 150ms ease-out, transform 240ms cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .drawer-overlay.is-search .drawer {
    transition: opacity 150ms ease-out, transform 260ms linear(0, 0.45 15%, 1.06 35%, 0.98 55%, 1.01 75%, 1);
  }
}

.drawer-overlay.is-search.is-open .drawer {
  opacity: 1;
  transform: scale(1) !important;
}

.drawer-overlay.is-search .drawer-heading {
  display: none;
}

.drawer-overlay.is-search [data-search-panel] {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
}

.drawer-overlay.is-search .search-form {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.drawer-overlay.is-search .search-form input {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 14px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 0;
  box-shadow: none;
  color: #000;
  font-family: inherit;
  font-size: var(--v2-text-size, 13px);
  font-weight: 500;
  line-height: 1;
  text-align: left;
  text-transform: lowercase;
  appearance: none;
}
.drawer-overlay.is-search .search-form input::placeholder {
  color: rgba(0, 0, 0, 0.45);
  opacity: 1;
  text-transform: lowercase;
}

.drawer-overlay.is-search .search-suggestions,
.drawer-overlay.is-search .search-matches {
  width: 100%;
  margin-top: 10px;
  padding: 0;
}

.drawer-overlay.is-search .search-section-title {
  margin: 2px 6px 8px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 11px;
  text-transform: lowercase;
}

.drawer-overlay.is-search .search-suggestion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawer-overlay.is-search .search-suggestion-pills .glass-pill {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  text-transform: lowercase;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.drawer-overlay.is-search .search-suggestion-pills .glass-pill:hover {
  background: rgba(255, 255, 255, 0.85);
}

.drawer-overlay.is-search .search-product-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-overlay.is-search .catalog-item {
  display: block;
}

.drawer-overlay.is-search .product-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: background-color 150ms ease;
}

.drawer-overlay.is-search .product-card:hover,
.drawer-overlay.is-search .product-card:focus-visible {
  background: rgba(255, 255, 255, 0.55);
}

.drawer-overlay.is-search .card-media {
  width: 44px;
  height: 55px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  flex: none;
}

.drawer-overlay.is-search .card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  font-size: 12.5px;
  line-height: 1.25;
}

.drawer-overlay.is-search .card-info > p:first-child {
  width: 100%;
  text-transform: lowercase;
}

.drawer-overlay.is-search .card-price {
  margin: 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 11.5px;
}

.drawer-overlay.is-search .search-empty,
.drawer-overlay.is-search .search-error {
  padding: 12px 6px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  text-align: left;
  text-transform: lowercase;
}

@media (max-width: 809px) {
  .drawer-overlay.is-search .drawer {
    top: calc(14px + var(--glass-height, 36px) + 8px);
    left: var(--v2-page-gutter, 20px);
    width: calc(100vw - 2 * var(--v2-page-gutter, 20px));
    max-height: calc(100svh - 76px);
  }
}
