/* =========================================
   HEADER COMPARE DROPDOWN — FINAL
   File: assets/css/header-compare.css
   Purpose:
   - Compare toggle icon ALWAYS white (normal + hover)
   - Match Account button behavior exactly
   - Dropdown + badge unchanged
========================================= */

.stm-compare{
  position: relative;
}

/* ======================================================
   TOGGLE (ICON BUTTON) — FINAL WHITE LOCK
====================================================== */
.stm-compare__toggle{
  position: relative;

  appearance: none;
  -webkit-appearance: none;

  background: #fff !important;
  color: rgba(0,0,0,.85);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px !important;

  box-shadow: none !important;
  outline: none !important;
  transform: none !important;

  cursor: pointer; /* ✅ THIS IS THE FIX */

  transition: border-color .12s ease;
}


/* hover = SAME AS NORMAL */
.stm-compare__toggle:hover{
  background: #fff !important;
  border-color: rgba(0,0,0,.18);
  box-shadow: none !important;
  transform: none !important;
}

/* keyboard focus only */
.stm-compare__toggle:focus-visible{
  background: #fff !important;
  border-color: rgba(255,122,0,.55);
  box-shadow: 0 0 0 2px rgba(255,122,0,.12);
}

/* kill browser focus */
.stm-compare__toggle:focus{
  outline: none;
}

/* Ensure icon wrapper consistency */
.stm-compare .stm-mb-action,
.stm-compare .stm-hicon{
  border-radius: 8px !important;
  background: transparent !important;
}

/* ======================================================
   BADGE — unchanged (wishlist style)
====================================================== */
.stm-compare__badge{
  position: absolute;
  top: -6px;
  right: -6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 18px;
  height: 18px;
  padding: 0 6px;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;

  color: #fff;
  background: #111;
  border-radius: 999px;
}

/* ======================================================
   DROPDOWN SHELL
====================================================== */
.stm-compare__dd{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: 340px;
  max-width: 92vw;

  background: #fff;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;

  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;

  overflow: hidden;
  z-index: 50;
}

/* Header */
.stm-compare__hd{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.stm-compare__title{
  font-size: 14px;
  font-weight: 800;
}

.stm-compare__close{
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.stm-compare__close:hover{
  background: rgba(0,0,0,0.06);
}

/* Body */
.stm-compare__body{
  padding: 12px 14px 8px;
}

.stm-compare__empty{
  margin: 0;
  font-size: 13px;
  color: rgba(0,0,0,0.62);
}

/* List */
.stm-compare__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.stm-compare__item{
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.stm-compare__thumb{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  overflow: hidden;
}

.stm-compare__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title */
.stm-compare__name{
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
}

.stm-compare__name a{
  color: inherit;
  text-decoration: none;

  white-space: normal !important;
  overflow: hidden !important;

  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;

  max-height: calc(1.25em * 3) !important;
  word-break: break-word;
}

.stm-compare__name a:hover{
  text-decoration: underline;
}

/* Remove */
.stm-compare__remove{
  border: 0;
  background: transparent;
  cursor: pointer;

  width: 34px;
  height: 34px;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(0,0,0,0.65);
  font-size: 18px;
}

.stm-compare__remove:hover{
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.9);
}

.stm-compare__remove:focus{ outline:none; }
.stm-compare__remove:focus-visible{
  box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}

/* Footer */
.stm-compare__ft{
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.stm-compare__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 42px;

  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);

  text-decoration: none;
  font-size: 13px;
  font-weight: 800;

  color: #111;
  background: #fff;
}

.stm-compare__btn:hover{
  background: rgba(0,0,0,0.04);
}
