/* ── Bubble ───────────────────────────────────────────────── */
#disc-bubble {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  width: 46px;
  height: 46px;
  background: #656C7D;
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  transition: width .2s, background .2s;
}
#disc-bubble:hover { background: #57AACD; width: 52px; }

#disc-bubble-count {
  position: absolute;
  top: 4px; right: 4px;
  background: #57AACD;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#disc-bubble:hover #disc-bubble-count {
  background: #656C7D;
}

/* ── Tooltip ──────────────────────────────────────────────── */
#disc-tooltip {
  position: fixed;
  left: 58px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 36px 14px 16px;
  width: 230px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: discSlideIn .35s ease;
}
#disc-tooltip.disc-hidden { display: none; }

.disc-tooltip-arrow {
  position: absolute;
  left: -9px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid #fff;
  filter: drop-shadow(-2px 0 1px rgba(0,0,0,0.07));
}
.disc-tooltip-msg {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.disc-tooltip-sub {
  margin: 0 0 10px;
  font-size: 12px;
  color: #666;
}
.disc-tooltip-btn {
  display: block;
  width: 100%;
  background: #656C7D;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow .15s;
}
.disc-tooltip-btn:hover,
.disc-tooltip-btn:focus {
  background: #57AACD;
}
.disc-tooltip-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none; border: none;
  font-size: 18px; color: #aaa;
  cursor: pointer; line-height: 1;
}
.disc-tooltip-close:hover { color: #333; }

/* ── Overlay ──────────────────────────────────────────────── */
#disc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(0,0,0,0.5);
}
#disc-overlay.disc-open { display: block; }

/* ── Panel — identic cu rm-sidebar din tema ───────────────── */
#disc-panel {
  position: fixed;
  left: -420px;
  top: 0;
  height: 100%;
  width: 400px;
  z-index: 10000;
  overflow-y: auto;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}
#disc-panel.disc-open { left: 0; }

/* Subtitle sub titlul panel-ului */
.rm-sidebar-subtitle {
  font-size: 12px;
  color: #999;
  padding: 0 15px 10px;
}

/* ── Badge out of stock pe imagine ────────────────────────── */
.disc-oos-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 1;
}

#disc-panel .disc-sidebar-title-text {
      font-size: 20px;
    line-height: 24px;
    -ms-flex-item-align: center;
    align-self: center;
    padding-left: 25px;
}

/* ── Animatie tooltip ─────────────────────────────────────── */
@keyframes discSlideIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-8px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}