/* UX Enhancements Stylesheet - orguyunu.com / w26reseller */

/* ------------------------------------------------------------
   1. Live Search Autocomplete Suggestions
   ------------------------------------------------------------ */
.search-input-wrap {
  position: relative;
}
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1100;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-top: 2px;
  max-height: 450px;
  overflow-y: auto;
  font-size: 13px;
  text-align: left;
}
.search-suggestions__section-title {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #718096;
  letter-spacing: 0.5px;
  background: #f7fafc;
  border-bottom: 1px solid #edf2f7;
}
.search-suggestions__category-item {
  display: inline-block;
  margin: 4px 6px 8px 12px;
  padding: 4px 10px;
  background: #edf2f7;
  color: #2d3748;
  border-radius: 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s;
}
.search-suggestions__category-item:hover {
  background: #e2e8f0;
  color: #1a202c;
  text-decoration: none;
}
.search-suggestions__product-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #edf2f7;
  color: #2d3748;
  text-decoration: none;
  transition: background 0.15s;
}
.search-suggestions__product-item:hover {
  background: #f7fafc;
  text-decoration: none;
}
.search-suggestions__thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
  border: 1px solid #edf2f7;
}
.search-suggestions__details {
  flex-grow: 1;
  min-width: 0;
}
.search-suggestions__title {
  font-weight: 600;
  color: #2d3748;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.search-suggestions__price {
  color: #e53e3e;
  font-weight: 700;
  font-size: 12px;
}
.search-suggestions__footer {
  display: block;
  text-align: center;
  padding: 10px;
  background: #f7fafc;
  color: #3182ce;
  font-weight: 600;
  text-decoration: none;
}
.search-suggestions__footer:hover {
  background: #edf2f7;
  text-decoration: none;
}

/* ------------------------------------------------------------
   2. Sticky Mobile Bottom Navigation Bar
   ------------------------------------------------------------ */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 767px) {
  body {
    padding-bottom: 60px !important;
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
  }
  .mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    position: relative;
  }
  .mobile-bottom-nav__item i {
    font-size: 18px;
    margin-bottom: 2px;
  }
  .mobile-bottom-nav__item.active {
    color: #2b6cb0;
    font-weight: 700;
  }
  .mobile-bottom-nav__badge {
    position: absolute;
    top: 6px;
    right: 50%;
    margin-right: -18px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
  }
}

/* ------------------------------------------------------------
   3. Active Filter Chips & Mobile Drawer Toggle
   ------------------------------------------------------------ */
.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.active-filters-bar__label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-right: 4px;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.15s;
}
.active-filter-chip:hover {
  background: #cbd5e1;
  color: #0f172a;
  text-decoration: none;
}
.active-filter-chip i {
  margin-left: 6px;
  font-size: 11px;
  color: #64748b;
}
.active-filters-clear-all {
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
  margin-left: auto;
  text-decoration: underline;
}



/* ------------------------------------------------------------
   5. Quick View Modal & Toast Notifications
   ------------------------------------------------------------ */
.ux-toast {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 10000;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.ux-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ux-toast--success i {
  color: #10b981;
}

/* Quick View Button on Card */
.btn-quick-view {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.15s;
}
.btn-quick-view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Fullscreen Lightbox */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pdp-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.pdp-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.pdp-lightbox__close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}
