/* css/concierge/search-takeover.css */
/* Full-Screen Search Takeover for Bottles & Experience Packages */

.search-takeover-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: #FFFFFF;
  z-index: 100200; /* Above bottle takeover and bottle detail */
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.24s;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.search-takeover-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Header with Search Bar */
.st-header {
  flex-shrink: 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #ECEEF1;
  padding: max(16px, env(safe-area-inset-top)) 16px 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.st-search-bar {
  flex: 1;
  height: 44px;
  background-color: #F3F4F6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.st-search-bar:focus-within {
  background-color: #FFFFFF;
  box-shadow: 0 0 0 2px #111317;
}

.st-search-icon {
  color: #717680;
  flex-shrink: 0;
}

.st-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  font-weight: 500;
  color: #111317;
  font-family: inherit;
  padding: 0;
}

.st-search-input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.st-clear-btn {
  background: none;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.st-clear-btn:hover {
  color: #111317;
}

.st-cancel-btn {
  background: none;
  border: none;
  padding: 0 4px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111317;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.st-cancel-btn:hover {
  opacity: 0.7;
}

/* Scrollable Content Body */
.st-content-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 60px 16px;
  box-sizing: border-box;
}

/* Section Header */
.st-section-title {
  margin: 18px 0 10px 0;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.st-section-title:first-child {
  margin-top: 0;
}

.st-section-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9CA3AF;
}

/* Mini Card Row: Left Image, Right Info */
.st-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #F0F2F5;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.st-mini-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #E2E4E9;
}

/* Left Mini Media: Square or packshot */
.st-mini-media {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.st-mini-bottle-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

.st-mini-exp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Staggered duo in mini card */
.st-mini-duo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-mini-duo-primary {
  transform: translateX(-16%) scale(0.9);
  max-height: 80%;
  z-index: 2;
}

.st-mini-duo-secondary {
  position: absolute;
  transform: translateX(18%) scale(0.75);
  max-height: 80%;
  z-index: 1;
}

/* Right Info */
.st-mini-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.st-mini-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111317;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-mini-desc {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-mini-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.st-mini-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: #111317;
}

.st-mini-price-was {
  font-size: 0.75rem;
  color: #9CA3AF;
  text-decoration: line-through;
  margin-left: 4px;
}

.st-mini-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  background: #F3F4F6;
  color: #374151;
  text-transform: uppercase;
}

.st-mini-badge.deal {
  background: #FFE600;
  color: #111317;
}

/* Right Chevron Arrow */
.st-mini-arrow {
  color: #C1C5CD;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.st-mini-card:hover .st-mini-arrow {
  color: #111317;
  transform: translateX(2px);
}

/* Empty / No Results State */
.st-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: #8E929B;
}

.st-empty-title {
  margin: 12px 0 4px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111317;
}

.st-empty-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: #6B7280;
  max-width: 280px;
}
