/* CanaimaShop Ultra Search v1.2.3 */
.cs-us-wrap{position:relative;}

/* Portal dropdown (attached to body to avoid clipping) */
#cs-us-portal{position:fixed;z-index:999999;left:0;top:0;width:320px;}
#cs-us-portal.is-hidden{display:none;}
#cs-us-portal .cs-us-dropdown{
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.18);
  overflow:auto;
  padding:10px 0;
}
#cs-us-portal .cs-us-results{display:block;}

/* US-07.1: Mobile bottom sheet */
@media (max-width: 768px) {
  #cs-us-portal {
    position:fixed;
    left:0;
    right:0;
    top:auto;
    bottom:0;
    width:100%;
    z-index:999999;
    display:flex;
    flex-direction:column;
  }
  
  #cs-us-portal.is-hidden {
    display:none;
  }
  
  #cs-us-portal .cs-us-dropdown {
    border-radius:20px 20px 0 0;
    max-height:80vh;
    overflow-y:auto;
    overscroll-behavior:contain;
    box-shadow:0 -4px 20px rgba(0,0,0,.15);
  }
  
  /* Prevent body scroll when sheet open */
  body.cs-us-sheet-open {
    overflow:hidden;
  }
}

/* Item */
.cs-us-item{
  display:flex;
  gap:10px;
  padding:10px 12px;
  text-decoration:none !important;
  color:#111 !important;
  align-items:flex-start;
}
.cs-us-item:hover{background:rgba(0,0,0,.04);}

/* Thumbnail + badge */
.cs-us-thumbwrap{
  position:relative;
  width:60px;
  height:60px;
  flex:0 0 60px;
  border-radius:12px;
  background:#f3f3f3;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.cs-us-thumb{width:60px;height:60px;object-fit:contain;display:block;}
.cs-us-thumb.ph{width:44px;height:44px;border-radius:10px;background:rgba(0,0,0,.06);}
.cs-us-badge{
  position:absolute;
  top:6px;
  right:6px;
  font-size:11px;
  line-height:1;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,223,126,.9);
  color:#111;
  white-space:nowrap;
}

/* Meta */
.cs-us-meta{flex:1 1 auto;min-width:0;}
.cs-us-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:14px;
  line-height:1.2;
  margin:0 0 6px 0;
  color:#111;
}

/* Prices */
.cs-us-price{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;}
.cs-us-was{color:#7a7a7a;font-weight:700;text-decoration:line-through;font-size:13px;}
.cs-us-now{  color: var(--contrast-3);  font-weight: 700;  font-size: 13px;}


/* View all */
.cs-us-viewall{
  display:block;
  margin:8px 12px 2px 12px;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none !important;
  font-weight:700;
  color:#111 !important;
  background:rgba(0,0,0,.04);
}
.cs-us-viewall:hover{background:rgba(0,0,0,.06);}
.cs-us-viewall.is-hidden{display:none;}

/* US-01.3: Multi-block sections */
.cs-us-section{
  margin:4px 0;
}
.cs-us-section + .cs-us-section{
  border-top:1px solid rgba(0,0,0,.08);
  padding-top:4px;
}
.cs-us-section-header{
  padding:8px 12px 4px 12px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.5px;
  color:#7a7a7a;
}

/* US-01.3: Category & Brand items (no thumbnail) */
.cs-us-item--category,
.cs-us-item--brand{
  align-items:center;
}
.cs-us-item--category .cs-us-icon,
.cs-us-item--brand .cs-us-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  background:rgba(0,0,0,.04);
  border-radius:10px;
}
.cs-us-item--category .cs-us-title,
.cs-us-item--brand .cs-us-title{
  margin:0;
  font-weight:500;
}

/* US-07.2: Recent searches */
.cs-us-recent-list {
  list-style:none;
  margin:0;
  padding:8px 0;
}

.cs-us-recent-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  text-decoration:none !important;
  color:#666;
  font-size:14px;
  gap:10px;
}

.cs-us-recent-item:hover {
  background:rgba(0,0,0,.04);
}

.cs-us-recent-item-text {
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
}

.cs-us-recent-item-text::before {
  content:'🕐';
  font-size:16px;
  flex:0 0 auto;
}

.cs-us-recent-item-clear {
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border:none;
  background:rgba(0,0,0,.08);
  border-radius:8px;
  cursor:pointer;
  font-size:12px;
  color:#999;
  padding:0;
}

.cs-us-recent-item-clear:hover {
  background:rgba(0,0,0,.12);
}
