/* ==========================================================================
   GU LIVE SEARCH PRO - OPENCART 4 (DAEDONG CRIMSON & GOLD THEME)
   ========================================================================== */
.gu-ls-host {
  position: relative !important;
}

.gu-ls-dropdown,
.input-group > .gu-ls-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--gu-ls-maxw, 780px), calc(100vw - 24px));
  background: #ffffff;
  border: 1.5px solid rgba(212, 160, 23, 0.45);
  border-radius: 16px !important;
  border-top-left-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
  box-shadow: 0 20px 55px rgba(56, 6, 8, 0.22);
  z-index: 1060;
  overflow: hidden;
  display: none;
  text-align: left;
  margin-left: 0 !important;
}

.input-group.gu-ls-host > .btn-dd-search {
  border-top-right-radius: 50px !important;
  border-bottom-right-radius: 50px !important;
}

.gu-ls-dropdown.is-open {
  display: block;
}

/* Close (X) button on top-right of live search dropdown */
.gu-ls-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(150, 22, 27, 0.2);
  background: #ffffff;
  color: #5c0a0e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(56, 6, 8, 0.1);
  transition: all 0.16s ease;
}

.gu-ls-close:hover {
  background: #96161b;
  border-color: #96161b;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Clear text (X) button inside search input */
.gu-ls-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  color: #8c7b75;
  width: 30px;
  height: 30px;
  padding: 0;
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  cursor: pointer;
  border-radius: 50%;
  font-size: 14px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.gu-ls-clear-btn.is-visible {
  display: inline-flex;
}

.gu-ls-clear-btn:hover {
  background: rgba(150, 22, 27, 0.1) !important;
  color: #96161b;
}

.gu-ls-host input[name="search"] {
  padding-right: 36px !important;
}

.gu-ls-loading {
  padding: 26px 20px;
  text-align: center;
  color: #6c5b55;
  font-size: 13.5px;
}

.gu-ls-loading i {
  color: #96161b;
  margin-right: 8px;
}

/* Popular phrases */
.gu-ls-popular {
  padding: 16px 18px;
  background: #fffdf9;
}

.gu-ls-sec-head {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #96161b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gu-ls-sec-head i {
  color: #d4a017;
}

.gu-ls-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gu-ls-chip {
  border: 1px solid rgba(150, 22, 27, 0.2);
  background: #faf6f0;
  color: #241715;
  border-radius: 50px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gu-ls-chip:hover,
.gu-ls-chip.is-active {
  background: linear-gradient(135deg, #96161b 0%, #5c0a0e 100%);
  border-color: #d4a017;
  color: #f4c430;
}

/* 2-Column Body */
.gu-ls-body {
  display: flex;
  max-height: 470px;
  overflow-y: auto;
}

.gu-ls-body.is-single {
  flex-direction: column;
}

.gu-ls-sidebar {
  width: 225px;
  flex-shrink: 0;
  background: #faf6f0;
  border-right: 1px solid rgba(212, 160, 23, 0.28);
  padding: 14px 14px;
}

.gu-ls-body.is-single .gu-ls-sidebar {
  width: 100%;
  border-right: none;
  border-bottom: 1px solid rgba(212, 160, 23, 0.28);
}

.gu-ls-side-group {
  margin-bottom: 14px;
}

.gu-ls-side-group:last-child {
  margin-bottom: 0;
}

.gu-ls-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gu-ls-side-list li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 13px;
  color: #241715;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.gu-ls-side-list li a:hover {
  background: #ffffff;
  color: #96161b;
}

.gu-ls-side-list li a i {
  color: #d4a017;
  font-size: 11px;
}

.gu-ls-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
}

/* Category filter bar inside results */
.gu-ls-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(212, 160, 23, 0.35);
}

.gu-ls-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gu-ls-product:hover,
.gu-ls-product.is-focused {
  background: #fffaf0;
  border-color: rgba(212, 160, 23, 0.45);
}

.gu-ls-thumb {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(212, 160, 23, 0.3);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gu-ls-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gu-ls-info {
  flex: 1 1 auto;
  min-width: 0;
}

.gu-ls-title {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: #241715;
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 3px;
}

.gu-ls-title:hover {
  color: #96161b;
}

.gu-ls-title mark {
  background: rgba(244, 196, 48, 0.4);
  color: #5c0a0e;
  padding: 0 2px;
  border-radius: 3px;
}

.gu-ls-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #6c5b55;
}

.gu-ls-cat-pill {
  background: rgba(150, 22, 27, 0.08);
  color: #96161b;
  border-radius: 50px;
  padding: 1px 8px;
  font-weight: 600;
  font-size: 11px;
}

.gu-ls-stock-in {
  color: #15803d;
  font-weight: 600;
}

.gu-ls-stock-out {
  color: #dc2626;
  font-weight: 600;
}

.gu-ls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gu-ls-price-box {
  text-align: right;
  white-space: nowrap;
}

.gu-ls-price-new {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #96161b;
}

.gu-ls-price-old {
  display: block;
  font-size: 11.5px;
  color: #9e8f89;
  text-decoration: line-through;
}

.gu-ls-atc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d4a017;
  background: linear-gradient(135deg, #96161b 0%, #5c0a0e 100%);
  color: #f4c430;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.gu-ls-atc:hover {
  transform: scale(1.08);
  background: #380608;
}

.gu-ls-empty {
  padding: 28px 16px;
  text-align: center;
  color: #6c5b55;
  font-size: 13.5px;
}

.gu-ls-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: linear-gradient(90deg, #5c0a0e 0%, #96161b 50%, #5c0a0e 100%);
  color: #f4c430 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid #d4a017;
}

.gu-ls-footer:hover {
  background: #380608;
  color: #ffffff !important;
}

@media (max-width: 767.98px) {
  .gu-ls-dropdown {
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 14px;
  }
  .gu-ls-body {
    flex-direction: column;
    max-height: 68vh;
  }
  .gu-ls-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(212, 160, 23, 0.28);
  }
}
